From 989e6b6dcdc113a3b93ae1268309c2fdc6794b31 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Fri, 7 Apr 2023 10:20:03 +0200 Subject: [PATCH 01/21] Add excess_data_gas to BlockHeader --- silkworm/core/consensus/base/engine.cpp | 8 ++++++++ silkworm/core/consensus/validation.hpp | 4 ++++ silkworm/core/types/block.cpp | 16 ++++++++++++++++ silkworm/core/types/block.hpp | 1 + 4 files changed, 29 insertions(+) diff --git a/silkworm/core/consensus/base/engine.cpp b/silkworm/core/consensus/base/engine.cpp index 3e1b08e805..194664c43a 100644 --- a/silkworm/core/consensus/base/engine.cpp +++ b/silkworm/core/consensus/base/engine.cpp @@ -181,6 +181,7 @@ ValidationResult EngineBase::validate_block_header(const BlockHeader& header, co } const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; + if (rev < EVMC_SHANGHAI && header.withdrawals_root) { return ValidationResult::kUnexpectedWithdrawals; } @@ -188,6 +189,13 @@ ValidationResult EngineBase::validate_block_header(const BlockHeader& header, co return ValidationResult::kMissingWithdrawals; } + if (rev < EVMC_CANCUN && header.excess_data_gas) { + return ValidationResult::kUnexpectedExcessDataGas; + } + if (rev >= EVMC_CANCUN && !header.excess_data_gas) { + return ValidationResult::kMissingExcessDataGas; + } + return validate_seal(header); } diff --git a/silkworm/core/consensus/validation.hpp b/silkworm/core/consensus/validation.hpp index b373b5e4dc..213f803cd3 100644 --- a/silkworm/core/consensus/validation.hpp +++ b/silkworm/core/consensus/validation.hpp @@ -80,6 +80,10 @@ enum class [[nodiscard]] ValidationResult{ kMissingWithdrawals, kUnexpectedWithdrawals, kWrongWithdrawalsRoot, + + // EIP-4844: Shard Blob Transactions + kMissingExcessDataGas, + kUnexpectedExcessDataGas, }; } // namespace silkworm diff --git a/silkworm/core/types/block.cpp b/silkworm/core/types/block.cpp index dea16e0147..f1b7ace862 100644 --- a/silkworm/core/types/block.cpp +++ b/silkworm/core/types/block.cpp @@ -74,6 +74,10 @@ namespace rlp { if (header.withdrawals_root) { rlp_head.payload_length += kHashLength + 1; } + if (header.excess_data_gas) { + rlp_head.payload_length += length(*header.excess_data_gas); + } + return rlp_head; } @@ -112,6 +116,9 @@ namespace rlp { if (header.withdrawals_root) { encode(to, *header.withdrawals_root); } + if (header.excess_data_gas) { + encode(to, *header.excess_data_gas); + } } template <> @@ -189,6 +196,15 @@ namespace rlp { to.withdrawals_root = withdrawals_root; } + to.excess_data_gas = std::nullopt; + if (from.length() > leftover) { + intx::uint256 excess_data_gas; + if (DecodingResult res{decode(from, excess_data_gas)}; !res) { + return res; + } + to.excess_data_gas = excess_data_gas; + } + if (from.length() != leftover) { return tl::unexpected{DecodingError::kListLengthMismatch}; } diff --git a/silkworm/core/types/block.hpp b/silkworm/core/types/block.hpp index fcd58e82ea..e0cfe9991e 100644 --- a/silkworm/core/types/block.hpp +++ b/silkworm/core/types/block.hpp @@ -70,6 +70,7 @@ struct BlockHeader { std::optional base_fee_per_gas{std::nullopt}; // EIP-1559 std::optional withdrawals_root{std::nullopt}; // EIP-4895 + std::optional excess_data_gas{std::nullopt}; // EIP-4844 [[nodiscard]] evmc::bytes32 hash(bool for_sealing = false, bool exclude_extra_data_sig = false) const; From 18a37158d9ff0bc534761d200df8f6a52cd427f5 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Fri, 7 Apr 2023 17:30:30 +0200 Subject: [PATCH 02/21] Start updating interfaces --- .../3.14.0/execution/execution.pb.cc | 2 +- .../3.14.0/p2psentry/sentry.grpc.pb.cc | 84 +- .../3.14.0/p2psentry/sentry.grpc.pb.h | 365 +- .../interfaces/3.14.0/p2psentry/sentry.pb.cc | 757 +- .../interfaces/3.14.0/p2psentry/sentry.pb.h | 537 +- .../3.14.0/p2psentry/sentry_mock.grpc.pb.h | 3 - .../3.14.0/remote/ethbackend.grpc.pb.cc | 198 +- .../3.14.0/remote/ethbackend.grpc.pb.h | 720 +- .../interfaces/3.14.0/remote/ethbackend.pb.cc | 2161 ++++-- .../interfaces/3.14.0/remote/ethbackend.pb.h | 1736 +++-- .../3.14.0/remote/ethbackend_mock.grpc.pb.h | 36 +- .../interfaces/3.14.0/remote/kv.grpc.pb.cc | 209 +- .../interfaces/3.14.0/remote/kv.grpc.pb.h | 809 ++- silkworm/interfaces/3.14.0/remote/kv.pb.cc | 4035 +++++++++-- silkworm/interfaces/3.14.0/remote/kv.pb.h | 6396 +++++++++++++---- .../3.14.0/remote/kv_mock.grpc.pb.h | 18 +- silkworm/interfaces/3.14.0/types/types.pb.cc | 923 ++- silkworm/interfaces/3.14.0/types/types.pb.h | 1094 ++- silkworm/interfaces/generate_grpc.cmake | 35 +- silkworm/interfaces/proto | 2 +- silkworm/node/stagedsync/remote_client.cpp | 4 +- silkworm/sentry/api/api_common/service.hpp | 3 - silkworm/sentry/api/router/direct_service.cpp | 4 - silkworm/sentry/api/router/direct_service.hpp | 1 - silkworm/sentry/rpc/client/sentry_client.cpp | 7 - silkworm/sentry/rpc/server/server.cpp | 1 - silkworm/sentry/rpc/server/server_calls.hpp | 14 - 27 files changed, 14839 insertions(+), 5315 deletions(-) diff --git a/silkworm/interfaces/3.14.0/execution/execution.pb.cc b/silkworm/interfaces/3.14.0/execution/execution.pb.cc index 719bba3c75..c70d37807c 100644 --- a/silkworm/interfaces/3.14.0/execution/execution.pb.cc +++ b/silkworm/interfaces/3.14.0/execution/execution.pb.cc @@ -19,7 +19,7 @@ extern PROTOBUF_INTERNAL_EXPORT_execution_2fexecution_2eproto ::PROTOBUF_NAMESPA extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H160_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H2048_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H256_types_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Withdrawal_types_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Withdrawal_types_2ftypes_2eproto; namespace execution { class ForkChoiceReceiptDefaultTypeInternal { public: diff --git a/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.cc b/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.cc index fabff124ab..84e13de39b 100644 --- a/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.cc +++ b/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.cc @@ -25,7 +25,6 @@ static const char* Sentry_method_names[] = { "/sentry.Sentry/SetStatus", "/sentry.Sentry/PenalizePeer", "/sentry.Sentry/PeerMinBlock", - "/sentry.Sentry/PeerUseless", "/sentry.Sentry/HandShake", "/sentry.Sentry/SendMessageByMinBlock", "/sentry.Sentry/SendMessageById", @@ -49,18 +48,17 @@ Sentry::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, co : channel_(channel), rpcmethod_SetStatus_(Sentry_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_PenalizePeer_(Sentry_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_PeerMinBlock_(Sentry_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerUseless_(Sentry_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_HandShake_(Sentry_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageByMinBlock_(Sentry_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageById_(Sentry_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageToRandomPeers_(Sentry_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageToAll_(Sentry_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Messages_(Sentry_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_Peers_(Sentry_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerCount_(Sentry_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerById_(Sentry_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerEvents_(Sentry_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_NodeInfo_(Sentry_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_HandShake_(Sentry_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageByMinBlock_(Sentry_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageById_(Sentry_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageToRandomPeers_(Sentry_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageToAll_(Sentry_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Messages_(Sentry_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_Peers_(Sentry_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PeerCount_(Sentry_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PeerById_(Sentry_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PeerEvents_(Sentry_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_NodeInfo_(Sentry_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status Sentry::Stub::SetStatus(::grpc::ClientContext* context, const ::sentry::StatusData& request, ::sentry::SetStatusReply* response) { @@ -132,29 +130,6 @@ ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Sentry::Stub::Asy return result; } -::grpc::Status Sentry::Stub::PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response) { - return ::grpc::internal::BlockingUnaryCall< ::sentry::PeerUselessRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PeerUseless_, context, request, response); -} - -void Sentry::Stub::async::PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::sentry::PeerUselessRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PeerUseless_, context, request, response, std::move(f)); -} - -void Sentry::Stub::async::PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PeerUseless_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Sentry::Stub::PrepareAsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::sentry::PeerUselessRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PeerUseless_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Sentry::Stub::AsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPeerUselessRaw(context, request, cq); - result->StartCall(); - return result; -} - ::grpc::Status Sentry::Stub::HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response) { return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::Empty, ::sentry::HandShakeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HandShake_, context, request, response); } @@ -428,16 +403,6 @@ Sentry::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( Sentry_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::PeerUselessRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](Sentry::Service* service, - ::grpc::ServerContext* ctx, - const ::sentry::PeerUselessRequest* req, - ::google::protobuf::Empty* resp) { - return service->PeerUseless(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::google::protobuf::Empty, ::sentry::HandShakeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, ::grpc::ServerContext* ctx, @@ -446,7 +411,7 @@ Sentry::Service::Service() { return service->HandShake(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[5], + Sentry_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -456,7 +421,7 @@ Sentry::Service::Service() { return service->SendMessageByMinBlock(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[6], + Sentry_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::SendMessageByIdRequest, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -466,7 +431,7 @@ Sentry::Service::Service() { return service->SendMessageById(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[7], + Sentry_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -476,7 +441,7 @@ Sentry::Service::Service() { return service->SendMessageToRandomPeers(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[8], + Sentry_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::OutboundMessageData, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -486,7 +451,7 @@ Sentry::Service::Service() { return service->SendMessageToAll(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[9], + Sentry_method_names[8], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< Sentry::Service, ::sentry::MessagesRequest, ::sentry::InboundMessage>( [](Sentry::Service* service, @@ -496,7 +461,7 @@ Sentry::Service::Service() { return service->Messages(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[10], + Sentry_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::google::protobuf::Empty, ::sentry::PeersReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -506,7 +471,7 @@ Sentry::Service::Service() { return service->Peers(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[11], + Sentry_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::PeerCountRequest, ::sentry::PeerCountReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -516,7 +481,7 @@ Sentry::Service::Service() { return service->PeerCount(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[12], + Sentry_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -526,7 +491,7 @@ Sentry::Service::Service() { return service->PeerById(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[13], + Sentry_method_names[12], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< Sentry::Service, ::sentry::PeerEventsRequest, ::sentry::PeerEvent>( [](Sentry::Service* service, @@ -536,7 +501,7 @@ Sentry::Service::Service() { return service->PeerEvents(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[14], + Sentry_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::google::protobuf::Empty, ::types::NodeInfoReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -571,13 +536,6 @@ ::grpc::Status Sentry::Service::PeerMinBlock(::grpc::ServerContext* context, con return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Sentry::Service::PeerUseless(::grpc::ServerContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status Sentry::Service::HandShake(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response) { (void) context; (void) request; diff --git a/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.h b/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.h index b59b300332..8f7d663f36 100644 --- a/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.h +++ b/silkworm/interfaces/3.14.0/p2psentry/sentry.grpc.pb.h @@ -57,14 +57,7 @@ class Sentry final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncPeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncPeerMinBlockRaw(context, request, cq)); } - virtual ::grpc::Status PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncPeerUselessRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncPeerUselessRaw(context, request, cq)); - } - // HandShake - pre-requirement for all Send* methods - returns ETH protocol version, + // HandShake - pre-requirement for all Send* methods - returns list of ETH protocol versions, // without knowledge of protocol - impossible encode correct P2P message virtual ::grpc::Status HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>> AsyncHandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { @@ -162,9 +155,7 @@ class Sentry final { virtual void PenalizePeer(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; virtual void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, std::function) = 0; virtual void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, std::function) = 0; - virtual void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // HandShake - pre-requirement for all Send* methods - returns ETH protocol version, + // HandShake - pre-requirement for all Send* methods - returns list of ETH protocol versions, // without knowledge of protocol - impossible encode correct P2P message virtual void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, std::function) = 0; virtual void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -202,8 +193,6 @@ class Sentry final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPenalizePeerRaw(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>* AsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>* PrepareAsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::sentry::SentPeers>* AsyncSendMessageByMinBlockRaw(::grpc::ClientContext* context, const ::sentry::SendMessageByMinBlockRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -253,13 +242,6 @@ class Sentry final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncPeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncPeerMinBlockRaw(context, request, cq)); } - ::grpc::Status PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncPeerUselessRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncPeerUselessRaw(context, request, cq)); - } ::grpc::Status HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>> AsyncHandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>>(AsyncHandShakeRaw(context, request, cq)); @@ -350,8 +332,6 @@ class Sentry final { void PenalizePeer(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, std::function) override; void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, std::function) override; - void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, std::function) override; void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, ::grpc::ClientUnaryReactor* reactor) override; void SendMessageByMinBlock(::grpc::ClientContext* context, const ::sentry::SendMessageByMinBlockRequest* request, ::sentry::SentPeers* response, std::function) override; @@ -389,8 +369,6 @@ class Sentry final { ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPenalizePeerRaw(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>* AsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>* PrepareAsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::sentry::SentPeers>* AsyncSendMessageByMinBlockRaw(::grpc::ClientContext* context, const ::sentry::SendMessageByMinBlockRequest& request, ::grpc::CompletionQueue* cq) override; @@ -418,7 +396,6 @@ class Sentry final { const ::grpc::internal::RpcMethod rpcmethod_SetStatus_; const ::grpc::internal::RpcMethod rpcmethod_PenalizePeer_; const ::grpc::internal::RpcMethod rpcmethod_PeerMinBlock_; - const ::grpc::internal::RpcMethod rpcmethod_PeerUseless_; const ::grpc::internal::RpcMethod rpcmethod_HandShake_; const ::grpc::internal::RpcMethod rpcmethod_SendMessageByMinBlock_; const ::grpc::internal::RpcMethod rpcmethod_SendMessageById_; @@ -441,8 +418,7 @@ class Sentry final { virtual ::grpc::Status SetStatus(::grpc::ServerContext* context, const ::sentry::StatusData* request, ::sentry::SetStatusReply* response); virtual ::grpc::Status PenalizePeer(::grpc::ServerContext* context, const ::sentry::PenalizePeerRequest* request, ::google::protobuf::Empty* response); virtual ::grpc::Status PeerMinBlock(::grpc::ServerContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response); - virtual ::grpc::Status PeerUseless(::grpc::ServerContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response); - // HandShake - pre-requirement for all Send* methods - returns ETH protocol version, + // HandShake - pre-requirement for all Send* methods - returns list of ETH protocol versions, // without knowledge of protocol - impossible encode correct P2P message virtual ::grpc::Status HandShake(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response); virtual ::grpc::Status SendMessageByMinBlock(::grpc::ServerContext* context, const ::sentry::SendMessageByMinBlockRequest* request, ::sentry::SentPeers* response); @@ -522,32 +498,12 @@ class Sentry final { } }; template - class WithAsyncMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PeerUseless() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPeerUseless(::grpc::ServerContext* context, ::sentry::PeerUselessRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithAsyncMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_HandShake() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(3); } ~WithAsyncMethod_HandShake() override { BaseClassMustBeDerivedFromService(this); @@ -558,7 +514,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHandShake(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::sentry::HandShakeReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -567,7 +523,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(4); } ~WithAsyncMethod_SendMessageByMinBlock() override { BaseClassMustBeDerivedFromService(this); @@ -578,7 +534,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageByMinBlock(::grpc::ServerContext* context, ::sentry::SendMessageByMinBlockRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -587,7 +543,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageById() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(5); } ~WithAsyncMethod_SendMessageById() override { BaseClassMustBeDerivedFromService(this); @@ -598,7 +554,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageById(::grpc::ServerContext* context, ::sentry::SendMessageByIdRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -607,7 +563,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_SendMessageToRandomPeers() override { BaseClassMustBeDerivedFromService(this); @@ -618,7 +574,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToRandomPeers(::grpc::ServerContext* context, ::sentry::SendMessageToRandomPeersRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* 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); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -627,7 +583,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_SendMessageToAll() override { BaseClassMustBeDerivedFromService(this); @@ -638,7 +594,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToAll(::grpc::ServerContext* context, ::sentry::OutboundMessageData* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -647,7 +603,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Messages() { - ::grpc::Service::MarkMethodAsync(9); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_Messages() override { BaseClassMustBeDerivedFromService(this); @@ -658,7 +614,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMessages(::grpc::ServerContext* context, ::sentry::MessagesRequest* request, ::grpc::ServerAsyncWriter< ::sentry::InboundMessage>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(9, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(8, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -667,7 +623,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Peers() { - ::grpc::Service::MarkMethodAsync(10); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_Peers() override { BaseClassMustBeDerivedFromService(this); @@ -678,7 +634,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeers(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::sentry::PeersReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -687,7 +643,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PeerCount() { - ::grpc::Service::MarkMethodAsync(11); + ::grpc::Service::MarkMethodAsync(10); } ~WithAsyncMethod_PeerCount() override { BaseClassMustBeDerivedFromService(this); @@ -698,7 +654,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerCount(::grpc::ServerContext* context, ::sentry::PeerCountRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::PeerCountReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -707,7 +663,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PeerById() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(11); } ~WithAsyncMethod_PeerById() override { BaseClassMustBeDerivedFromService(this); @@ -718,7 +674,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerById(::grpc::ServerContext* context, ::sentry::PeerByIdRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::PeerByIdReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -727,7 +683,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PeerEvents() { - ::grpc::Service::MarkMethodAsync(13); + ::grpc::Service::MarkMethodAsync(12); } ~WithAsyncMethod_PeerEvents() override { BaseClassMustBeDerivedFromService(this); @@ -738,7 +694,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerEvents(::grpc::ServerContext* context, ::sentry::PeerEventsRequest* request, ::grpc::ServerAsyncWriter< ::sentry::PeerEvent>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(13, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -747,7 +703,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_NodeInfo() { - ::grpc::Service::MarkMethodAsync(14); + ::grpc::Service::MarkMethodAsync(13); } ~WithAsyncMethod_NodeInfo() override { BaseClassMustBeDerivedFromService(this); @@ -758,10 +714,10 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNodeInfo(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::types::NodeInfoReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_SetStatus > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_SetStatus > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_SetStatus : public BaseClass { private: @@ -844,45 +800,18 @@ class Sentry final { ::grpc::CallbackServerContext* /*context*/, const ::sentry::PeerMinBlockRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_PeerUseless() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::sentry::PeerUselessRequest, ::google::protobuf::Empty>( - [this]( - ::grpc::CallbackServerContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response) { return this->PeerUseless(context, request, response); }));} - void SetMessageAllocatorFor_PeerUseless( - ::grpc::MessageAllocator< ::sentry::PeerUselessRequest, ::google::protobuf::Empty>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::PeerUselessRequest, ::google::protobuf::Empty>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* PeerUseless( - ::grpc::CallbackServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; } - }; - template class WithCallbackMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_HandShake() { - ::grpc::Service::MarkMethodCallback(4, + ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::HandShakeReply>( [this]( ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response) { return this->HandShake(context, request, response); }));} void SetMessageAllocatorFor_HandShake( ::grpc::MessageAllocator< ::google::protobuf::Empty, ::sentry::HandShakeReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::HandShakeReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -903,13 +832,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodCallback(5, + ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::SendMessageByMinBlockRequest* request, ::sentry::SentPeers* response) { return this->SendMessageByMinBlock(context, request, response); }));} void SetMessageAllocatorFor_SendMessageByMinBlock( ::grpc::MessageAllocator< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -930,13 +859,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageById() { - ::grpc::Service::MarkMethodCallback(6, + ::grpc::Service::MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::SendMessageByIdRequest* request, ::sentry::SentPeers* response) { return this->SendMessageById(context, request, response); }));} void SetMessageAllocatorFor_SendMessageById( ::grpc::MessageAllocator< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -957,13 +886,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodCallback(7, + ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::SendMessageToRandomPeersRequest* request, ::sentry::SentPeers* response) { return this->SendMessageToRandomPeers(context, request, response); }));} void SetMessageAllocatorFor_SendMessageToRandomPeers( ::grpc::MessageAllocator< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -984,13 +913,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodCallback(8, + ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::sentry::OutboundMessageData, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::OutboundMessageData* request, ::sentry::SentPeers* response) { return this->SendMessageToAll(context, request, response); }));} void SetMessageAllocatorFor_SendMessageToAll( ::grpc::MessageAllocator< ::sentry::OutboundMessageData, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::OutboundMessageData, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -1011,7 +940,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_Messages() { - ::grpc::Service::MarkMethodCallback(9, + ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackServerStreamingHandler< ::sentry::MessagesRequest, ::sentry::InboundMessage>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::MessagesRequest* request) { return this->Messages(context, request); })); @@ -1033,13 +962,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_Peers() { - ::grpc::Service::MarkMethodCallback(10, + ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::PeersReply>( [this]( ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::sentry::PeersReply* response) { return this->Peers(context, request, response); }));} void SetMessageAllocatorFor_Peers( ::grpc::MessageAllocator< ::google::protobuf::Empty, ::sentry::PeersReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::PeersReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1060,13 +989,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PeerCount() { - ::grpc::Service::MarkMethodCallback(11, + ::grpc::Service::MarkMethodCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::PeerCountRequest* request, ::sentry::PeerCountReply* response) { return this->PeerCount(context, request, response); }));} void SetMessageAllocatorFor_PeerCount( ::grpc::MessageAllocator< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1087,13 +1016,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PeerById() { - ::grpc::Service::MarkMethodCallback(12, + ::grpc::Service::MarkMethodCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::PeerByIdRequest* request, ::sentry::PeerByIdReply* response) { return this->PeerById(context, request, response); }));} void SetMessageAllocatorFor_PeerById( ::grpc::MessageAllocator< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1114,7 +1043,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PeerEvents() { - ::grpc::Service::MarkMethodCallback(13, + ::grpc::Service::MarkMethodCallback(12, new ::grpc::internal::CallbackServerStreamingHandler< ::sentry::PeerEventsRequest, ::sentry::PeerEvent>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::PeerEventsRequest* request) { return this->PeerEvents(context, request); })); @@ -1136,13 +1065,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_NodeInfo() { - ::grpc::Service::MarkMethodCallback(14, + ::grpc::Service::MarkMethodCallback(13, new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::types::NodeInfoReply>( [this]( ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::types::NodeInfoReply* response) { return this->NodeInfo(context, request, response); }));} void SetMessageAllocatorFor_NodeInfo( ::grpc::MessageAllocator< ::google::protobuf::Empty, ::types::NodeInfoReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::types::NodeInfoReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1157,7 +1086,7 @@ class Sentry final { virtual ::grpc::ServerUnaryReactor* NodeInfo( ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::types::NodeInfoReply* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_SetStatus > > > > > > > > > > > > > > CallbackService; + typedef WithCallbackMethod_SetStatus > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_SetStatus : public BaseClass { @@ -1211,29 +1140,12 @@ class Sentry final { } }; template - class WithGenericMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PeerUseless() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_HandShake() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(3); } ~WithGenericMethod_HandShake() override { BaseClassMustBeDerivedFromService(this); @@ -1250,7 +1162,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(4); } ~WithGenericMethod_SendMessageByMinBlock() override { BaseClassMustBeDerivedFromService(this); @@ -1267,7 +1179,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageById() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(5); } ~WithGenericMethod_SendMessageById() override { BaseClassMustBeDerivedFromService(this); @@ -1284,7 +1196,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_SendMessageToRandomPeers() override { BaseClassMustBeDerivedFromService(this); @@ -1301,7 +1213,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_SendMessageToAll() override { BaseClassMustBeDerivedFromService(this); @@ -1318,7 +1230,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Messages() { - ::grpc::Service::MarkMethodGeneric(9); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_Messages() override { BaseClassMustBeDerivedFromService(this); @@ -1335,7 +1247,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Peers() { - ::grpc::Service::MarkMethodGeneric(10); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_Peers() override { BaseClassMustBeDerivedFromService(this); @@ -1352,7 +1264,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PeerCount() { - ::grpc::Service::MarkMethodGeneric(11); + ::grpc::Service::MarkMethodGeneric(10); } ~WithGenericMethod_PeerCount() override { BaseClassMustBeDerivedFromService(this); @@ -1369,7 +1281,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PeerById() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(11); } ~WithGenericMethod_PeerById() override { BaseClassMustBeDerivedFromService(this); @@ -1386,7 +1298,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PeerEvents() { - ::grpc::Service::MarkMethodGeneric(13); + ::grpc::Service::MarkMethodGeneric(12); } ~WithGenericMethod_PeerEvents() override { BaseClassMustBeDerivedFromService(this); @@ -1403,7 +1315,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_NodeInfo() { - ::grpc::Service::MarkMethodGeneric(14); + ::grpc::Service::MarkMethodGeneric(13); } ~WithGenericMethod_NodeInfo() override { BaseClassMustBeDerivedFromService(this); @@ -1475,32 +1387,12 @@ class Sentry final { } }; template - class WithRawMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PeerUseless() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPeerUseless(::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(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_HandShake() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(3); } ~WithRawMethod_HandShake() override { BaseClassMustBeDerivedFromService(this); @@ -1511,7 +1403,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHandShake(::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(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1520,7 +1412,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(4); } ~WithRawMethod_SendMessageByMinBlock() override { BaseClassMustBeDerivedFromService(this); @@ -1531,7 +1423,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageByMinBlock(::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(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1540,7 +1432,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageById() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(5); } ~WithRawMethod_SendMessageById() override { BaseClassMustBeDerivedFromService(this); @@ -1551,7 +1443,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageById(::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(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1560,7 +1452,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_SendMessageToRandomPeers() override { BaseClassMustBeDerivedFromService(this); @@ -1571,7 +1463,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToRandomPeers(::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(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1580,7 +1472,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodRaw(8); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_SendMessageToAll() override { BaseClassMustBeDerivedFromService(this); @@ -1591,7 +1483,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToAll(::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(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1600,7 +1492,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Messages() { - ::grpc::Service::MarkMethodRaw(9); + ::grpc::Service::MarkMethodRaw(8); } ~WithRawMethod_Messages() override { BaseClassMustBeDerivedFromService(this); @@ -1611,7 +1503,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMessages(::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(9, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(8, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1620,7 +1512,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Peers() { - ::grpc::Service::MarkMethodRaw(10); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_Peers() override { BaseClassMustBeDerivedFromService(this); @@ -1631,7 +1523,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeers(::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(10, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1640,7 +1532,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PeerCount() { - ::grpc::Service::MarkMethodRaw(11); + ::grpc::Service::MarkMethodRaw(10); } ~WithRawMethod_PeerCount() override { BaseClassMustBeDerivedFromService(this); @@ -1651,7 +1543,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerCount(::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(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1660,7 +1552,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PeerById() { - ::grpc::Service::MarkMethodRaw(12); + ::grpc::Service::MarkMethodRaw(11); } ~WithRawMethod_PeerById() override { BaseClassMustBeDerivedFromService(this); @@ -1671,7 +1563,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerById(::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(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1680,7 +1572,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PeerEvents() { - ::grpc::Service::MarkMethodRaw(13); + ::grpc::Service::MarkMethodRaw(12); } ~WithRawMethod_PeerEvents() override { BaseClassMustBeDerivedFromService(this); @@ -1691,7 +1583,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerEvents(::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(13, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1700,7 +1592,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_NodeInfo() { - ::grpc::Service::MarkMethodRaw(14); + ::grpc::Service::MarkMethodRaw(13); } ~WithRawMethod_NodeInfo() override { BaseClassMustBeDerivedFromService(this); @@ -1711,7 +1603,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNodeInfo(::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(14, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1781,34 +1673,12 @@ class Sentry final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_PeerUseless() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PeerUseless(context, request, response); })); - } - ~WithRawCallbackMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* PeerUseless( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template class WithRawCallbackMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_HandShake() { - ::grpc::Service::MarkMethodRawCallback(4, + ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HandShake(context, request, response); })); @@ -1830,7 +1700,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodRawCallback(5, + ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageByMinBlock(context, request, response); })); @@ -1852,7 +1722,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageById() { - ::grpc::Service::MarkMethodRawCallback(6, + ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageById(context, request, response); })); @@ -1874,7 +1744,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodRawCallback(7, + ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageToRandomPeers(context, request, response); })); @@ -1896,7 +1766,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodRawCallback(8, + ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageToAll(context, request, response); })); @@ -1918,7 +1788,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_Messages() { - ::grpc::Service::MarkMethodRawCallback(9, + ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->Messages(context, request); })); @@ -1940,7 +1810,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_Peers() { - ::grpc::Service::MarkMethodRawCallback(10, + ::grpc::Service::MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Peers(context, request, response); })); @@ -1962,7 +1832,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PeerCount() { - ::grpc::Service::MarkMethodRawCallback(11, + ::grpc::Service::MarkMethodRawCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PeerCount(context, request, response); })); @@ -1984,7 +1854,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PeerById() { - ::grpc::Service::MarkMethodRawCallback(12, + ::grpc::Service::MarkMethodRawCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PeerById(context, request, response); })); @@ -2006,7 +1876,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PeerEvents() { - ::grpc::Service::MarkMethodRawCallback(13, + ::grpc::Service::MarkMethodRawCallback(12, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->PeerEvents(context, request); })); @@ -2028,7 +1898,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_NodeInfo() { - ::grpc::Service::MarkMethodRawCallback(14, + ::grpc::Service::MarkMethodRawCallback(13, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NodeInfo(context, request, response); })); @@ -2126,39 +1996,12 @@ class Sentry final { virtual ::grpc::Status StreamedPeerMinBlock(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::sentry::PeerMinBlockRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PeerUseless() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< - ::sentry::PeerUselessRequest, ::google::protobuf::Empty>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::sentry::PeerUselessRequest, ::google::protobuf::Empty>* streamer) { - return this->StreamedPeerUseless(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPeerUseless(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::sentry::PeerUselessRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_HandShake() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::sentry::HandShakeReply>( [this](::grpc::ServerContext* context, @@ -2185,7 +2028,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2212,7 +2055,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageById() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2239,7 +2082,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2266,7 +2109,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::sentry::OutboundMessageData, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2293,7 +2136,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Peers() { - ::grpc::Service::MarkMethodStreamed(10, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::sentry::PeersReply>( [this](::grpc::ServerContext* context, @@ -2320,7 +2163,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PeerCount() { - ::grpc::Service::MarkMethodStreamed(11, + ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>( [this](::grpc::ServerContext* context, @@ -2347,7 +2190,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PeerById() { - ::grpc::Service::MarkMethodStreamed(12, + ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>( [this](::grpc::ServerContext* context, @@ -2374,7 +2217,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_NodeInfo() { - ::grpc::Service::MarkMethodStreamed(14, + ::grpc::Service::MarkMethodStreamed(13, new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::types::NodeInfoReply>( [this](::grpc::ServerContext* context, @@ -2395,14 +2238,14 @@ class Sentry final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedNodeInfo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::types::NodeInfoReply>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_Messages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_Messages() { - ::grpc::Service::MarkMethodStreamed(9, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::SplitServerStreamingHandler< ::sentry::MessagesRequest, ::sentry::InboundMessage>( [this](::grpc::ServerContext* context, @@ -2429,7 +2272,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_PeerEvents() { - ::grpc::Service::MarkMethodStreamed(13, + ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::SplitServerStreamingHandler< ::sentry::PeerEventsRequest, ::sentry::PeerEvent>( [this](::grpc::ServerContext* context, @@ -2451,7 +2294,7 @@ class Sentry final { virtual ::grpc::Status StreamedPeerEvents(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::sentry::PeerEventsRequest,::sentry::PeerEvent>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_Messages > SplitStreamedService; - typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > > > StreamedService; }; } // namespace sentry diff --git a/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.cc b/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.cc index 46ed191965..11b790490a 100644 --- a/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.cc +++ b/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.cc @@ -16,6 +16,7 @@ #include extern PROTOBUF_INTERNAL_EXPORT_p2psentry_2fsentry_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Forks_p2psentry_2fsentry_2eproto; extern PROTOBUF_INTERNAL_EXPORT_p2psentry_2fsentry_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OutboundMessageData_p2psentry_2fsentry_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_p2psentry_2fsentry_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerCountPerProtocol_p2psentry_2fsentry_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H256_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H512_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerInfo_types_2ftypes_2eproto; @@ -48,10 +49,6 @@ class PeerMinBlockRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PeerMinBlockRequest_default_instance_; -class PeerUselessRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _PeerUselessRequest_default_instance_; class InboundMessageDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -84,6 +81,10 @@ class PeerCountRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PeerCountRequest_default_instance_; +class PeerCountPerProtocolDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _PeerCountPerProtocol_default_instance_; class PeerCountReplyDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -200,6 +201,19 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PeerByIdRequest_p2psentry {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PeerByIdRequest_p2psentry_2fsentry_2eproto}, { &scc_info_H512_types_2ftypes_2eproto.base,}}; +static void InitDefaultsscc_info_PeerCountPerProtocol_p2psentry_2fsentry_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::sentry::_PeerCountPerProtocol_default_instance_; + new (ptr) ::sentry::PeerCountPerProtocol(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerCountPerProtocol_p2psentry_2fsentry_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PeerCountPerProtocol_p2psentry_2fsentry_2eproto}, {}}; + static void InitDefaultsscc_info_PeerCountReply_p2psentry_2fsentry_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -210,8 +224,9 @@ static void InitDefaultsscc_info_PeerCountReply_p2psentry_2fsentry_2eproto() { } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerCountReply_p2psentry_2fsentry_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PeerCountReply_p2psentry_2fsentry_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PeerCountReply_p2psentry_2fsentry_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PeerCountReply_p2psentry_2fsentry_2eproto}, { + &scc_info_PeerCountPerProtocol_p2psentry_2fsentry_2eproto.base,}}; static void InitDefaultsscc_info_PeerCountRequest_p2psentry_2fsentry_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -267,20 +282,6 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PeerMinBlockRequest_p2pse {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PeerMinBlockRequest_p2psentry_2fsentry_2eproto}, { &scc_info_H512_types_2ftypes_2eproto.base,}}; -static void InitDefaultsscc_info_PeerUselessRequest_p2psentry_2fsentry_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::sentry::_PeerUselessRequest_default_instance_; - new (ptr) ::sentry::PeerUselessRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PeerUselessRequest_p2psentry_2fsentry_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PeerUselessRequest_p2psentry_2fsentry_2eproto}, { - &scc_info_H512_types_2ftypes_2eproto.base,}}; - static void InitDefaultsscc_info_PeersReply_p2psentry_2fsentry_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -449,12 +450,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_p2psentry_2fsentry_2eproto::of PROTOBUF_FIELD_OFFSET(::sentry::PeerMinBlockRequest, peer_id_), PROTOBUF_FIELD_OFFSET(::sentry::PeerMinBlockRequest, min_block_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::sentry::PeerUselessRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::sentry::PeerUselessRequest, peer_id_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::InboundMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -481,7 +476,6 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_p2psentry_2fsentry_2eproto::of PROTOBUF_FIELD_OFFSET(::sentry::StatusData, fork_data_), PROTOBUF_FIELD_OFFSET(::sentry::StatusData, max_block_height_), PROTOBUF_FIELD_OFFSET(::sentry::StatusData, max_block_time_), - PROTOBUF_FIELD_OFFSET(::sentry::StatusData, passive_peers_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::SetStatusReply, _internal_metadata_), ~0u, // no _extensions_ @@ -511,11 +505,19 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_p2psentry_2fsentry_2eproto::of ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountPerProtocol, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountPerProtocol, protocol_), + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountPerProtocol, count_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::PeerCountReply, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::sentry::PeerCountReply, count_), + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountReply, countsperprotocol_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::PeerByIdRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -550,20 +552,20 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 29, -1, sizeof(::sentry::SentPeers)}, { 35, -1, sizeof(::sentry::PenalizePeerRequest)}, { 42, -1, sizeof(::sentry::PeerMinBlockRequest)}, - { 49, -1, sizeof(::sentry::PeerUselessRequest)}, - { 55, -1, sizeof(::sentry::InboundMessage)}, - { 63, -1, sizeof(::sentry::Forks)}, - { 71, -1, sizeof(::sentry::StatusData)}, - { 83, -1, sizeof(::sentry::SetStatusReply)}, - { 88, -1, sizeof(::sentry::HandShakeReply)}, - { 94, -1, sizeof(::sentry::MessagesRequest)}, - { 100, -1, sizeof(::sentry::PeersReply)}, - { 106, -1, sizeof(::sentry::PeerCountRequest)}, + { 49, -1, sizeof(::sentry::InboundMessage)}, + { 57, -1, sizeof(::sentry::Forks)}, + { 65, -1, sizeof(::sentry::StatusData)}, + { 76, -1, sizeof(::sentry::SetStatusReply)}, + { 81, -1, sizeof(::sentry::HandShakeReply)}, + { 87, -1, sizeof(::sentry::MessagesRequest)}, + { 93, -1, sizeof(::sentry::PeersReply)}, + { 99, -1, sizeof(::sentry::PeerCountRequest)}, + { 104, -1, sizeof(::sentry::PeerCountPerProtocol)}, { 111, -1, sizeof(::sentry::PeerCountReply)}, - { 117, -1, sizeof(::sentry::PeerByIdRequest)}, - { 123, 129, sizeof(::sentry::PeerByIdReply)}, - { 130, -1, sizeof(::sentry::PeerEventsRequest)}, - { 135, -1, sizeof(::sentry::PeerEvent)}, + { 118, -1, sizeof(::sentry::PeerByIdRequest)}, + { 124, 130, sizeof(::sentry::PeerByIdReply)}, + { 131, -1, sizeof(::sentry::PeerEventsRequest)}, + { 136, -1, sizeof(::sentry::PeerEvent)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -574,7 +576,6 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::sentry::_SentPeers_default_instance_), reinterpret_cast(&::sentry::_PenalizePeerRequest_default_instance_), reinterpret_cast(&::sentry::_PeerMinBlockRequest_default_instance_), - reinterpret_cast(&::sentry::_PeerUselessRequest_default_instance_), reinterpret_cast(&::sentry::_InboundMessage_default_instance_), reinterpret_cast(&::sentry::_Forks_default_instance_), reinterpret_cast(&::sentry::_StatusData_default_instance_), @@ -583,6 +584,7 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::sentry::_MessagesRequest_default_instance_), reinterpret_cast(&::sentry::_PeersReply_default_instance_), reinterpret_cast(&::sentry::_PeerCountRequest_default_instance_), + reinterpret_cast(&::sentry::_PeerCountPerProtocol_default_instance_), reinterpret_cast(&::sentry::_PeerCountReply_default_instance_), reinterpret_cast(&::sentry::_PeerByIdRequest_default_instance_), reinterpret_cast(&::sentry::_PeerByIdReply_default_instance_), @@ -607,76 +609,77 @@ const char descriptor_table_protodef_p2psentry_2fsentry_2eproto[] PROTOBUF_SECTI "t\022\034\n\007peer_id\030\001 \001(\0132\013.types.H512\022$\n\007penal" "ty\030\002 \001(\0162\023.sentry.PenaltyKind\"F\n\023PeerMin" "BlockRequest\022\034\n\007peer_id\030\001 \001(\0132\013.types.H5" - "12\022\021\n\tmin_block\030\002 \001(\004\"2\n\022PeerUselessRequ" - "est\022\034\n\007peer_id\030\001 \001(\0132\013.types.H512\"[\n\016Inb" - "oundMessage\022\035\n\002id\030\001 \001(\0162\021.sentry.Message" - "Id\022\014\n\004data\030\002 \001(\014\022\034\n\007peer_id\030\003 \001(\0132\013.type" - "s.H512\"O\n\005Forks\022\034\n\007genesis\030\001 \001(\0132\013.types" - ".H256\022\024\n\014height_forks\030\002 \003(\004\022\022\n\ntime_fork" - "s\030\003 \003(\004\"\322\001\n\nStatusData\022\022\n\nnetwork_id\030\001 \001" - "(\004\022%\n\020total_difficulty\030\002 \001(\0132\013.types.H25" - "6\022\036\n\tbest_hash\030\003 \001(\0132\013.types.H256\022 \n\tfor" - "k_data\030\004 \001(\0132\r.sentry.Forks\022\030\n\020max_block" - "_height\030\005 \001(\004\022\026\n\016max_block_time\030\006 \001(\004\022\025\n" - "\rpassive_peers\030\007 \001(\010\"\020\n\016SetStatusReply\"4" - "\n\016HandShakeReply\022\"\n\010protocol\030\001 \001(\0162\020.sen" - "try.Protocol\"1\n\017MessagesRequest\022\036\n\003ids\030\001" - " \003(\0162\021.sentry.MessageId\",\n\nPeersReply\022\036\n" - "\005peers\030\001 \003(\0132\017.types.PeerInfo\"\022\n\020PeerCou" - "ntRequest\"\037\n\016PeerCountReply\022\r\n\005count\030\001 \001" - "(\004\"/\n\017PeerByIdRequest\022\034\n\007peer_id\030\001 \001(\0132\013" - ".types.H512\"<\n\rPeerByIdReply\022\"\n\004peer\030\001 \001" - "(\0132\017.types.PeerInfoH\000\210\001\001B\007\n\005_peer\"\023\n\021Pee" - "rEventsRequest\"\206\001\n\tPeerEvent\022\034\n\007peer_id\030" - "\001 \001(\0132\013.types.H512\022/\n\010event_id\030\002 \001(\0162\035.s" - "entry.PeerEvent.PeerEventId\"*\n\013PeerEvent" - "Id\022\013\n\007Connect\020\000\022\016\n\nDisconnect\020\001*\332\005\n\tMess" - "ageId\022\r\n\tSTATUS_65\020\000\022\030\n\024GET_BLOCK_HEADER" - "S_65\020\001\022\024\n\020BLOCK_HEADERS_65\020\002\022\023\n\017BLOCK_HA" - "SHES_65\020\003\022\027\n\023GET_BLOCK_BODIES_65\020\004\022\023\n\017BL" - "OCK_BODIES_65\020\005\022\024\n\020GET_NODE_DATA_65\020\006\022\020\n" - "\014NODE_DATA_65\020\007\022\023\n\017GET_RECEIPTS_65\020\010\022\017\n\013" - "RECEIPTS_65\020\t\022\027\n\023NEW_BLOCK_HASHES_65\020\n\022\020" - "\n\014NEW_BLOCK_65\020\013\022\023\n\017TRANSACTIONS_65\020\014\022$\n" - " NEW_POOLED_TRANSACTION_HASHES_65\020\r\022\036\n\032G" - "ET_POOLED_TRANSACTIONS_65\020\016\022\032\n\026POOLED_TR" - "ANSACTIONS_65\020\017\022\r\n\tSTATUS_66\020\021\022\027\n\023NEW_BL" - "OCK_HASHES_66\020\022\022\020\n\014NEW_BLOCK_66\020\023\022\023\n\017TRA" - "NSACTIONS_66\020\024\022$\n NEW_POOLED_TRANSACTION" - "_HASHES_66\020\025\022\030\n\024GET_BLOCK_HEADERS_66\020\026\022\027" - "\n\023GET_BLOCK_BODIES_66\020\027\022\024\n\020GET_NODE_DATA" - "_66\020\030\022\023\n\017GET_RECEIPTS_66\020\031\022\036\n\032GET_POOLED" - "_TRANSACTIONS_66\020\032\022\024\n\020BLOCK_HEADERS_66\020\033" - "\022\023\n\017BLOCK_BODIES_66\020\034\022\020\n\014NODE_DATA_66\020\035\022" - "\017\n\013RECEIPTS_66\020\036\022\032\n\026POOLED_TRANSACTIONS_" - "66\020\037*\027\n\013PenaltyKind\022\010\n\004Kick\020\000*+\n\010Protoco" - "l\022\t\n\005ETH65\020\000\022\t\n\005ETH66\020\001\022\t\n\005ETH67\020\0022\346\007\n\006S" - "entry\0227\n\tSetStatus\022\022.sentry.StatusData\032\026" - ".sentry.SetStatusReply\022C\n\014PenalizePeer\022\033" - ".sentry.PenalizePeerRequest\032\026.google.pro" - "tobuf.Empty\022C\n\014PeerMinBlock\022\033.sentry.Pee" - "rMinBlockRequest\032\026.google.protobuf.Empty" - "\022A\n\013PeerUseless\022\032.sentry.PeerUselessRequ" - "est\032\026.google.protobuf.Empty\022;\n\tHandShake" - "\022\026.google.protobuf.Empty\032\026.sentry.HandSh" - "akeReply\022P\n\025SendMessageByMinBlock\022$.sent" - "ry.SendMessageByMinBlockRequest\032\021.sentry" - ".SentPeers\022D\n\017SendMessageById\022\036.sentry.S" - "endMessageByIdRequest\032\021.sentry.SentPeers" - "\022V\n\030SendMessageToRandomPeers\022\'.sentry.Se" - "ndMessageToRandomPeersRequest\032\021.sentry.S" - "entPeers\022B\n\020SendMessageToAll\022\033.sentry.Ou" - "tboundMessageData\032\021.sentry.SentPeers\022=\n\010" - "Messages\022\027.sentry.MessagesRequest\032\026.sent" - "ry.InboundMessage0\001\0223\n\005Peers\022\026.google.pr" - "otobuf.Empty\032\022.sentry.PeersReply\022=\n\tPeer" - "Count\022\030.sentry.PeerCountRequest\032\026.sentry" - ".PeerCountReply\022:\n\010PeerById\022\027.sentry.Pee" - "rByIdRequest\032\025.sentry.PeerByIdReply\022<\n\nP" - "eerEvents\022\031.sentry.PeerEventsRequest\032\021.s" - "entry.PeerEvent0\001\0228\n\010NodeInfo\022\026.google.p" - "rotobuf.Empty\032\024.types.NodeInfoReplyB\021Z\017." - "/sentry;sentryb\006proto3" + "12\022\021\n\tmin_block\030\002 \001(\004\"[\n\016InboundMessage\022" + "\035\n\002id\030\001 \001(\0162\021.sentry.MessageId\022\014\n\004data\030\002" + " \001(\014\022\034\n\007peer_id\030\003 \001(\0132\013.types.H512\"O\n\005Fo" + "rks\022\034\n\007genesis\030\001 \001(\0132\013.types.H256\022\024\n\014hei" + "ght_forks\030\002 \003(\004\022\022\n\ntime_forks\030\003 \003(\004\"\273\001\n\n" + "StatusData\022\022\n\nnetwork_id\030\001 \001(\004\022%\n\020total_" + "difficulty\030\002 \001(\0132\013.types.H256\022\036\n\tbest_ha" + "sh\030\003 \001(\0132\013.types.H256\022 \n\tfork_data\030\004 \001(\013" + "2\r.sentry.Forks\022\030\n\020max_block_height\030\005 \001(" + "\004\022\026\n\016max_block_time\030\006 \001(\004\"\020\n\016SetStatusRe" + "ply\"4\n\016HandShakeReply\022\"\n\010protocol\030\001 \001(\0162" + "\020.sentry.Protocol\"1\n\017MessagesRequest\022\036\n\003" + "ids\030\001 \003(\0162\021.sentry.MessageId\",\n\nPeersRep" + "ly\022\036\n\005peers\030\001 \003(\0132\017.types.PeerInfo\"\022\n\020Pe" + "erCountRequest\"I\n\024PeerCountPerProtocol\022\"" + "\n\010protocol\030\001 \001(\0162\020.sentry.Protocol\022\r\n\005co" + "unt\030\002 \001(\004\"X\n\016PeerCountReply\022\r\n\005count\030\001 \001" + "(\004\0227\n\021countsPerProtocol\030\002 \003(\0132\034.sentry.P" + "eerCountPerProtocol\"/\n\017PeerByIdRequest\022\034" + "\n\007peer_id\030\001 \001(\0132\013.types.H512\"<\n\rPeerById" + "Reply\022\"\n\004peer\030\001 \001(\0132\017.types.PeerInfoH\000\210\001" + "\001B\007\n\005_peer\"\023\n\021PeerEventsRequest\"\206\001\n\tPeer" + "Event\022\034\n\007peer_id\030\001 \001(\0132\013.types.H512\022/\n\010e" + "vent_id\030\002 \001(\0162\035.sentry.PeerEvent.PeerEve" + "ntId\"*\n\013PeerEventId\022\013\n\007Connect\020\000\022\016\n\nDisc" + "onnect\020\001*\200\006\n\tMessageId\022\r\n\tSTATUS_65\020\000\022\030\n" + "\024GET_BLOCK_HEADERS_65\020\001\022\024\n\020BLOCK_HEADERS" + "_65\020\002\022\023\n\017BLOCK_HASHES_65\020\003\022\027\n\023GET_BLOCK_" + "BODIES_65\020\004\022\023\n\017BLOCK_BODIES_65\020\005\022\024\n\020GET_" + "NODE_DATA_65\020\006\022\020\n\014NODE_DATA_65\020\007\022\023\n\017GET_" + "RECEIPTS_65\020\010\022\017\n\013RECEIPTS_65\020\t\022\027\n\023NEW_BL" + "OCK_HASHES_65\020\n\022\020\n\014NEW_BLOCK_65\020\013\022\023\n\017TRA" + "NSACTIONS_65\020\014\022$\n NEW_POOLED_TRANSACTION" + "_HASHES_65\020\r\022\036\n\032GET_POOLED_TRANSACTIONS_" + "65\020\016\022\032\n\026POOLED_TRANSACTIONS_65\020\017\022\r\n\tSTAT" + "US_66\020\021\022\027\n\023NEW_BLOCK_HASHES_66\020\022\022\020\n\014NEW_" + "BLOCK_66\020\023\022\023\n\017TRANSACTIONS_66\020\024\022$\n NEW_P" + "OOLED_TRANSACTION_HASHES_66\020\025\022\030\n\024GET_BLO" + "CK_HEADERS_66\020\026\022\027\n\023GET_BLOCK_BODIES_66\020\027" + "\022\024\n\020GET_NODE_DATA_66\020\030\022\023\n\017GET_RECEIPTS_6" + "6\020\031\022\036\n\032GET_POOLED_TRANSACTIONS_66\020\032\022\024\n\020B" + "LOCK_HEADERS_66\020\033\022\023\n\017BLOCK_BODIES_66\020\034\022\020" + "\n\014NODE_DATA_66\020\035\022\017\n\013RECEIPTS_66\020\036\022\032\n\026POO" + "LED_TRANSACTIONS_66\020\037\022$\n NEW_POOLED_TRAN" + "SACTION_HASHES_68\020 *\027\n\013PenaltyKind\022\010\n\004Ki" + "ck\020\000*6\n\010Protocol\022\t\n\005ETH65\020\000\022\t\n\005ETH66\020\001\022\t" + "\n\005ETH67\020\002\022\t\n\005ETH68\020\0032\243\007\n\006Sentry\0227\n\tSetSt" + "atus\022\022.sentry.StatusData\032\026.sentry.SetSta" + "tusReply\022C\n\014PenalizePeer\022\033.sentry.Penali" + "zePeerRequest\032\026.google.protobuf.Empty\022C\n" + "\014PeerMinBlock\022\033.sentry.PeerMinBlockReque" + "st\032\026.google.protobuf.Empty\022;\n\tHandShake\022" + "\026.google.protobuf.Empty\032\026.sentry.HandSha" + "keReply\022P\n\025SendMessageByMinBlock\022$.sentr" + "y.SendMessageByMinBlockRequest\032\021.sentry." + "SentPeers\022D\n\017SendMessageById\022\036.sentry.Se" + "ndMessageByIdRequest\032\021.sentry.SentPeers\022" + "V\n\030SendMessageToRandomPeers\022\'.sentry.Sen" + "dMessageToRandomPeersRequest\032\021.sentry.Se" + "ntPeers\022B\n\020SendMessageToAll\022\033.sentry.Out" + "boundMessageData\032\021.sentry.SentPeers\022=\n\010M" + "essages\022\027.sentry.MessagesRequest\032\026.sentr" + "y.InboundMessage0\001\0223\n\005Peers\022\026.google.pro" + "tobuf.Empty\032\022.sentry.PeersReply\022=\n\tPeerC" + "ount\022\030.sentry.PeerCountRequest\032\026.sentry." + "PeerCountReply\022:\n\010PeerById\022\027.sentry.Peer" + "ByIdRequest\032\025.sentry.PeerByIdReply\022<\n\nPe" + "erEvents\022\031.sentry.PeerEventsRequest\032\021.se" + "ntry.PeerEvent0\001\0228\n\010NodeInfo\022\026.google.pr" + "otobuf.Empty\032\024.types.NodeInfoReplyB\021Z\017./" + "sentry;sentryb\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_p2psentry_2fsentry_2eproto_deps[2] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, @@ -690,12 +693,12 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_p2p &scc_info_OutboundMessageData_p2psentry_2fsentry_2eproto.base, &scc_info_PeerByIdReply_p2psentry_2fsentry_2eproto.base, &scc_info_PeerByIdRequest_p2psentry_2fsentry_2eproto.base, + &scc_info_PeerCountPerProtocol_p2psentry_2fsentry_2eproto.base, &scc_info_PeerCountReply_p2psentry_2fsentry_2eproto.base, &scc_info_PeerCountRequest_p2psentry_2fsentry_2eproto.base, &scc_info_PeerEvent_p2psentry_2fsentry_2eproto.base, &scc_info_PeerEventsRequest_p2psentry_2fsentry_2eproto.base, &scc_info_PeerMinBlockRequest_p2psentry_2fsentry_2eproto.base, - &scc_info_PeerUselessRequest_p2psentry_2fsentry_2eproto.base, &scc_info_PeersReply_p2psentry_2fsentry_2eproto.base, &scc_info_PenalizePeerRequest_p2psentry_2fsentry_2eproto.base, &scc_info_SendMessageByIdRequest_p2psentry_2fsentry_2eproto.base, @@ -707,7 +710,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_p2p }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_p2psentry_2fsentry_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_p2psentry_2fsentry_2eproto = { - false, false, descriptor_table_protodef_p2psentry_2fsentry_2eproto, "p2psentry/sentry.proto", 3422, + false, false, descriptor_table_protodef_p2psentry_2fsentry_2eproto, "p2psentry/sentry.proto", 3461, &descriptor_table_p2psentry_2fsentry_2eproto_once, descriptor_table_p2psentry_2fsentry_2eproto_sccs, descriptor_table_p2psentry_2fsentry_2eproto_deps, 21, 2, schemas, file_default_instances, TableStruct_p2psentry_2fsentry_2eproto::offsets, file_level_metadata_p2psentry_2fsentry_2eproto, 21, file_level_enum_descriptors_p2psentry_2fsentry_2eproto, file_level_service_descriptors_p2psentry_2fsentry_2eproto, @@ -774,6 +777,7 @@ bool MessageId_IsValid(int value) { case 29: case 30: case 31: + case 32: return true; default: return false; @@ -802,6 +806,7 @@ bool Protocol_IsValid(int value) { case 0: case 1: case 2: + case 3: return true; default: return false; @@ -2517,222 +2522,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PeerMinBlockRequest::GetMetadata() const { } -// =================================================================== - -class PeerUselessRequest::_Internal { - public: - static const ::types::H512& peer_id(const PeerUselessRequest* msg); -}; - -const ::types::H512& -PeerUselessRequest::_Internal::peer_id(const PeerUselessRequest* msg) { - return *msg->peer_id_; -} -void PeerUselessRequest::clear_peer_id() { - if (GetArena() == nullptr && peer_id_ != nullptr) { - delete peer_id_; - } - peer_id_ = nullptr; -} -PeerUselessRequest::PeerUselessRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:sentry.PeerUselessRequest) -} -PeerUselessRequest::PeerUselessRequest(const PeerUselessRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_peer_id()) { - peer_id_ = new ::types::H512(*from.peer_id_); - } else { - peer_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:sentry.PeerUselessRequest) -} - -void PeerUselessRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PeerUselessRequest_p2psentry_2fsentry_2eproto.base); - peer_id_ = nullptr; -} - -PeerUselessRequest::~PeerUselessRequest() { - // @@protoc_insertion_point(destructor:sentry.PeerUselessRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void PeerUselessRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete peer_id_; -} - -void PeerUselessRequest::ArenaDtor(void* object) { - PeerUselessRequest* _this = reinterpret_cast< PeerUselessRequest* >(object); - (void)_this; -} -void PeerUselessRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PeerUselessRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PeerUselessRequest& PeerUselessRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PeerUselessRequest_p2psentry_2fsentry_2eproto.base); - return *internal_default_instance(); -} - - -void PeerUselessRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:sentry.PeerUselessRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && peer_id_ != nullptr) { - delete peer_id_; - } - peer_id_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PeerUselessRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .types.H512 peer_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_peer_id(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* PeerUselessRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:sentry.PeerUselessRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .types.H512 peer_id = 1; - if (this->has_peer_id()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::peer_id(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:sentry.PeerUselessRequest) - return target; -} - -size_t PeerUselessRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:sentry.PeerUselessRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .types.H512 peer_id = 1; - if (this->has_peer_id()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *peer_id_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PeerUselessRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:sentry.PeerUselessRequest) - GOOGLE_DCHECK_NE(&from, this); - const PeerUselessRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:sentry.PeerUselessRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:sentry.PeerUselessRequest) - MergeFrom(*source); - } -} - -void PeerUselessRequest::MergeFrom(const PeerUselessRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:sentry.PeerUselessRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_peer_id()) { - _internal_mutable_peer_id()->::types::H512::MergeFrom(from._internal_peer_id()); - } -} - -void PeerUselessRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:sentry.PeerUselessRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PeerUselessRequest::CopyFrom(const PeerUselessRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:sentry.PeerUselessRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PeerUselessRequest::IsInitialized() const { - return true; -} - -void PeerUselessRequest::InternalSwap(PeerUselessRequest* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(peer_id_, other->peer_id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PeerUselessRequest::GetMetadata() const { - return GetMetadataStatic(); -} - - // =================================================================== class InboundMessage::_Internal { @@ -3368,8 +3157,8 @@ StatusData::StatusData(const StatusData& from) fork_data_ = nullptr; } ::memcpy(&network_id_, &from.network_id_, - static_cast(reinterpret_cast(&passive_peers_) - - reinterpret_cast(&network_id_)) + sizeof(passive_peers_)); + static_cast(reinterpret_cast(&max_block_time_) - + reinterpret_cast(&network_id_)) + sizeof(max_block_time_)); // @@protoc_insertion_point(copy_constructor:sentry.StatusData) } @@ -3377,8 +3166,8 @@ void StatusData::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StatusData_p2psentry_2fsentry_2eproto.base); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&total_difficulty_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&passive_peers_) - - reinterpret_cast(&total_difficulty_)) + sizeof(passive_peers_)); + 0, static_cast(reinterpret_cast(&max_block_time_) - + reinterpret_cast(&total_difficulty_)) + sizeof(max_block_time_)); } StatusData::~StatusData() { @@ -3428,8 +3217,8 @@ void StatusData::Clear() { } fork_data_ = nullptr; ::memset(&network_id_, 0, static_cast( - reinterpret_cast(&passive_peers_) - - reinterpret_cast(&network_id_)) + sizeof(passive_peers_)); + reinterpret_cast(&max_block_time_) - + reinterpret_cast(&network_id_)) + sizeof(max_block_time_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3482,13 +3271,6 @@ const char* StatusData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // bool passive_peers = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - passive_peers_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -3559,12 +3341,6 @@ ::PROTOBUF_NAMESPACE_ID::uint8* StatusData::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_max_block_time(), target); } - // bool passive_peers = 7; - if (this->passive_peers() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_passive_peers(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -3623,11 +3399,6 @@ size_t StatusData::ByteSizeLong() const { this->_internal_max_block_time()); } - // bool passive_peers = 7; - if (this->passive_peers() != 0) { - total_size += 1 + 1; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -3677,9 +3448,6 @@ void StatusData::MergeFrom(const StatusData& from) { if (from.max_block_time() != 0) { _internal_set_max_block_time(from._internal_max_block_time()); } - if (from.passive_peers() != 0) { - _internal_set_passive_peers(from._internal_passive_peers()); - } } void StatusData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -3704,8 +3472,8 @@ void StatusData::InternalSwap(StatusData* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(StatusData, passive_peers_) - + sizeof(StatusData::passive_peers_) + PROTOBUF_FIELD_OFFSET(StatusData, max_block_time_) + + sizeof(StatusData::max_block_time_) - PROTOBUF_FIELD_OFFSET(StatusData, total_difficulty_)>( reinterpret_cast(&total_difficulty_), reinterpret_cast(&other->total_difficulty_)); @@ -4648,6 +4416,236 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PeerCountRequest::GetMetadata() const { } +// =================================================================== + +class PeerCountPerProtocol::_Internal { + public: +}; + +PeerCountPerProtocol::PeerCountPerProtocol(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:sentry.PeerCountPerProtocol) +} +PeerCountPerProtocol::PeerCountPerProtocol(const PeerCountPerProtocol& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&count_, &from.count_, + static_cast(reinterpret_cast(&protocol_) - + reinterpret_cast(&count_)) + sizeof(protocol_)); + // @@protoc_insertion_point(copy_constructor:sentry.PeerCountPerProtocol) +} + +void PeerCountPerProtocol::SharedCtor() { + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&count_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&protocol_) - + reinterpret_cast(&count_)) + sizeof(protocol_)); +} + +PeerCountPerProtocol::~PeerCountPerProtocol() { + // @@protoc_insertion_point(destructor:sentry.PeerCountPerProtocol) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void PeerCountPerProtocol::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void PeerCountPerProtocol::ArenaDtor(void* object) { + PeerCountPerProtocol* _this = reinterpret_cast< PeerCountPerProtocol* >(object); + (void)_this; +} +void PeerCountPerProtocol::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PeerCountPerProtocol::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PeerCountPerProtocol& PeerCountPerProtocol::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PeerCountPerProtocol_p2psentry_2fsentry_2eproto.base); + return *internal_default_instance(); +} + + +void PeerCountPerProtocol::Clear() { +// @@protoc_insertion_point(message_clear_start:sentry.PeerCountPerProtocol) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&count_, 0, static_cast( + reinterpret_cast(&protocol_) - + reinterpret_cast(&count_)) + sizeof(protocol_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PeerCountPerProtocol::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .sentry.Protocol protocol = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_protocol(static_cast<::sentry::Protocol>(val)); + } else goto handle_unusual; + continue; + // uint64 count = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* PeerCountPerProtocol::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:sentry.PeerCountPerProtocol) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .sentry.Protocol protocol = 1; + if (this->protocol() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_protocol(), target); + } + + // uint64 count = 2; + if (this->count() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_count(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:sentry.PeerCountPerProtocol) + return target; +} + +size_t PeerCountPerProtocol::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:sentry.PeerCountPerProtocol) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 count = 2; + if (this->count() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_count()); + } + + // .sentry.Protocol protocol = 1; + if (this->protocol() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_protocol()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PeerCountPerProtocol::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:sentry.PeerCountPerProtocol) + GOOGLE_DCHECK_NE(&from, this); + const PeerCountPerProtocol* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:sentry.PeerCountPerProtocol) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:sentry.PeerCountPerProtocol) + MergeFrom(*source); + } +} + +void PeerCountPerProtocol::MergeFrom(const PeerCountPerProtocol& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:sentry.PeerCountPerProtocol) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.count() != 0) { + _internal_set_count(from._internal_count()); + } + if (from.protocol() != 0) { + _internal_set_protocol(from._internal_protocol()); + } +} + +void PeerCountPerProtocol::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:sentry.PeerCountPerProtocol) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PeerCountPerProtocol::CopyFrom(const PeerCountPerProtocol& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:sentry.PeerCountPerProtocol) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PeerCountPerProtocol::IsInitialized() const { + return true; +} + +void PeerCountPerProtocol::InternalSwap(PeerCountPerProtocol* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PeerCountPerProtocol, protocol_) + + sizeof(PeerCountPerProtocol::protocol_) + - PROTOBUF_FIELD_OFFSET(PeerCountPerProtocol, count_)>( + reinterpret_cast(&count_), + reinterpret_cast(&other->count_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PeerCountPerProtocol::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== class PeerCountReply::_Internal { @@ -4655,19 +4653,22 @@ class PeerCountReply::_Internal { }; PeerCountReply::PeerCountReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + countsperprotocol_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:sentry.PeerCountReply) } PeerCountReply::PeerCountReply(const PeerCountReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { + : ::PROTOBUF_NAMESPACE_ID::Message(), + countsperprotocol_(from.countsperprotocol_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); count_ = from.count_; // @@protoc_insertion_point(copy_constructor:sentry.PeerCountReply) } void PeerCountReply::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PeerCountReply_p2psentry_2fsentry_2eproto.base); count_ = PROTOBUF_ULONGLONG(0); } @@ -4702,6 +4703,7 @@ void PeerCountReply::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + countsperprotocol_.Clear(); count_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -4720,6 +4722,18 @@ const char* PeerCountReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr); } else goto handle_unusual; continue; + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_countsperprotocol(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -4754,6 +4768,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* PeerCountReply::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_count(), target); } + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_countsperprotocol_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_countsperprotocol(i), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -4770,6 +4792,13 @@ size_t PeerCountReply::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + total_size += 1UL * this->_internal_countsperprotocol_size(); + for (const auto& msg : this->countsperprotocol_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // uint64 count = 1; if (this->count() != 0) { total_size += 1 + @@ -4808,6 +4837,7 @@ void PeerCountReply::MergeFrom(const PeerCountReply& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + countsperprotocol_.MergeFrom(from.countsperprotocol_); if (from.count() != 0) { _internal_set_count(from._internal_count()); } @@ -4834,6 +4864,7 @@ bool PeerCountReply::IsInitialized() const { void PeerCountReply::InternalSwap(PeerCountReply* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + countsperprotocol_.InternalSwap(&other->countsperprotocol_); swap(count_, other->count_); } @@ -5724,9 +5755,6 @@ template<> PROTOBUF_NOINLINE ::sentry::PenalizePeerRequest* Arena::CreateMaybeMe template<> PROTOBUF_NOINLINE ::sentry::PeerMinBlockRequest* Arena::CreateMaybeMessage< ::sentry::PeerMinBlockRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::PeerMinBlockRequest >(arena); } -template<> PROTOBUF_NOINLINE ::sentry::PeerUselessRequest* Arena::CreateMaybeMessage< ::sentry::PeerUselessRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::sentry::PeerUselessRequest >(arena); -} template<> PROTOBUF_NOINLINE ::sentry::InboundMessage* Arena::CreateMaybeMessage< ::sentry::InboundMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::InboundMessage >(arena); } @@ -5751,6 +5779,9 @@ template<> PROTOBUF_NOINLINE ::sentry::PeersReply* Arena::CreateMaybeMessage< :: template<> PROTOBUF_NOINLINE ::sentry::PeerCountRequest* Arena::CreateMaybeMessage< ::sentry::PeerCountRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::PeerCountRequest >(arena); } +template<> PROTOBUF_NOINLINE ::sentry::PeerCountPerProtocol* Arena::CreateMaybeMessage< ::sentry::PeerCountPerProtocol >(Arena* arena) { + return Arena::CreateMessageInternal< ::sentry::PeerCountPerProtocol >(arena); +} template<> PROTOBUF_NOINLINE ::sentry::PeerCountReply* Arena::CreateMaybeMessage< ::sentry::PeerCountReply >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::PeerCountReply >(arena); } diff --git a/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.h b/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.h index d10ad6059e..64c00f47a2 100644 --- a/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.h +++ b/silkworm/interfaces/3.14.0/p2psentry/sentry.pb.h @@ -78,6 +78,9 @@ extern PeerByIdReplyDefaultTypeInternal _PeerByIdReply_default_instance_; class PeerByIdRequest; class PeerByIdRequestDefaultTypeInternal; extern PeerByIdRequestDefaultTypeInternal _PeerByIdRequest_default_instance_; +class PeerCountPerProtocol; +class PeerCountPerProtocolDefaultTypeInternal; +extern PeerCountPerProtocolDefaultTypeInternal _PeerCountPerProtocol_default_instance_; class PeerCountReply; class PeerCountReplyDefaultTypeInternal; extern PeerCountReplyDefaultTypeInternal _PeerCountReply_default_instance_; @@ -93,9 +96,6 @@ extern PeerEventsRequestDefaultTypeInternal _PeerEventsRequest_default_instance_ class PeerMinBlockRequest; class PeerMinBlockRequestDefaultTypeInternal; extern PeerMinBlockRequestDefaultTypeInternal _PeerMinBlockRequest_default_instance_; -class PeerUselessRequest; -class PeerUselessRequestDefaultTypeInternal; -extern PeerUselessRequestDefaultTypeInternal _PeerUselessRequest_default_instance_; class PeersReply; class PeersReplyDefaultTypeInternal; extern PeersReplyDefaultTypeInternal _PeersReply_default_instance_; @@ -129,12 +129,12 @@ template<> ::sentry::MessagesRequest* Arena::CreateMaybeMessage<::sentry::Messag template<> ::sentry::OutboundMessageData* Arena::CreateMaybeMessage<::sentry::OutboundMessageData>(Arena*); template<> ::sentry::PeerByIdReply* Arena::CreateMaybeMessage<::sentry::PeerByIdReply>(Arena*); template<> ::sentry::PeerByIdRequest* Arena::CreateMaybeMessage<::sentry::PeerByIdRequest>(Arena*); +template<> ::sentry::PeerCountPerProtocol* Arena::CreateMaybeMessage<::sentry::PeerCountPerProtocol>(Arena*); template<> ::sentry::PeerCountReply* Arena::CreateMaybeMessage<::sentry::PeerCountReply>(Arena*); template<> ::sentry::PeerCountRequest* Arena::CreateMaybeMessage<::sentry::PeerCountRequest>(Arena*); template<> ::sentry::PeerEvent* Arena::CreateMaybeMessage<::sentry::PeerEvent>(Arena*); template<> ::sentry::PeerEventsRequest* Arena::CreateMaybeMessage<::sentry::PeerEventsRequest>(Arena*); template<> ::sentry::PeerMinBlockRequest* Arena::CreateMaybeMessage<::sentry::PeerMinBlockRequest>(Arena*); -template<> ::sentry::PeerUselessRequest* Arena::CreateMaybeMessage<::sentry::PeerUselessRequest>(Arena*); template<> ::sentry::PeersReply* Arena::CreateMaybeMessage<::sentry::PeersReply>(Arena*); template<> ::sentry::PenalizePeerRequest* Arena::CreateMaybeMessage<::sentry::PenalizePeerRequest>(Arena*); template<> ::sentry::SendMessageByIdRequest* Arena::CreateMaybeMessage<::sentry::SendMessageByIdRequest>(Arena*); @@ -203,12 +203,13 @@ enum MessageId : int { NODE_DATA_66 = 29, RECEIPTS_66 = 30, POOLED_TRANSACTIONS_66 = 31, + NEW_POOLED_TRANSACTION_HASHES_68 = 32, MessageId_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), MessageId_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool MessageId_IsValid(int value); constexpr MessageId MessageId_MIN = STATUS_65; -constexpr MessageId MessageId_MAX = POOLED_TRANSACTIONS_66; +constexpr MessageId MessageId_MAX = NEW_POOLED_TRANSACTION_HASHES_68; constexpr int MessageId_ARRAYSIZE = MessageId_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MessageId_descriptor(); @@ -253,12 +254,13 @@ enum Protocol : int { ETH65 = 0, ETH66 = 1, ETH67 = 2, + ETH68 = 3, Protocol_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), Protocol_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Protocol_IsValid(int value); constexpr Protocol Protocol_MIN = ETH65; -constexpr Protocol Protocol_MAX = ETH67; +constexpr Protocol Protocol_MAX = ETH68; constexpr int Protocol_ARRAYSIZE = Protocol_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Protocol_descriptor(); @@ -1376,151 +1378,6 @@ class PeerMinBlockRequest PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class PeerUselessRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.PeerUselessRequest) */ { - public: - inline PeerUselessRequest() : PeerUselessRequest(nullptr) {} - virtual ~PeerUselessRequest(); - - PeerUselessRequest(const PeerUselessRequest& from); - PeerUselessRequest(PeerUselessRequest&& from) noexcept - : PeerUselessRequest() { - *this = ::std::move(from); - } - - inline PeerUselessRequest& operator=(const PeerUselessRequest& from) { - CopyFrom(from); - return *this; - } - inline PeerUselessRequest& operator=(PeerUselessRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const PeerUselessRequest& default_instance(); - - static inline const PeerUselessRequest* internal_default_instance() { - return reinterpret_cast( - &_PeerUselessRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(PeerUselessRequest& a, PeerUselessRequest& b) { - a.Swap(&b); - } - inline void Swap(PeerUselessRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PeerUselessRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline PeerUselessRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PeerUselessRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const PeerUselessRequest& from); - void MergeFrom(const PeerUselessRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PeerUselessRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "sentry.PeerUselessRequest"; - } - protected: - explicit PeerUselessRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_p2psentry_2fsentry_2eproto); - return ::descriptor_table_p2psentry_2fsentry_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPeerIdFieldNumber = 1, - }; - // .types.H512 peer_id = 1; - bool has_peer_id() const; - private: - bool _internal_has_peer_id() const; - public: - void clear_peer_id(); - const ::types::H512& peer_id() const; - ::types::H512* release_peer_id(); - ::types::H512* mutable_peer_id(); - void set_allocated_peer_id(::types::H512* peer_id); - private: - const ::types::H512& _internal_peer_id() const; - ::types::H512* _internal_mutable_peer_id(); - public: - void unsafe_arena_set_allocated_peer_id( - ::types::H512* peer_id); - ::types::H512* unsafe_arena_release_peer_id(); - - // @@protoc_insertion_point(class_scope:sentry.PeerUselessRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::types::H512* peer_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_p2psentry_2fsentry_2eproto; -}; -// ------------------------------------------------------------------- - class InboundMessage PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.InboundMessage) */ { public: @@ -1562,7 +1419,7 @@ class InboundMessage PROTOBUF_FINAL : &_InboundMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 7; friend void swap(InboundMessage& a, InboundMessage& b) { a.Swap(&b); @@ -1736,7 +1593,7 @@ class Forks PROTOBUF_FINAL : &_Forks_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 8; friend void swap(Forks& a, Forks& b) { a.Swap(&b); @@ -1931,7 +1788,7 @@ class StatusData PROTOBUF_FINAL : &_StatusData_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; friend void swap(StatusData& a, StatusData& b) { a.Swap(&b); @@ -2008,7 +1865,6 @@ class StatusData PROTOBUF_FINAL : kNetworkIdFieldNumber = 1, kMaxBlockHeightFieldNumber = 5, kMaxBlockTimeFieldNumber = 6, - kPassivePeersFieldNumber = 7, }; // .types.H256 total_difficulty = 2; bool has_total_difficulty() const; @@ -2091,15 +1947,6 @@ class StatusData PROTOBUF_FINAL : void _internal_set_max_block_time(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // bool passive_peers = 7; - void clear_passive_peers(); - bool passive_peers() const; - void set_passive_peers(bool value); - private: - bool _internal_passive_peers() const; - void _internal_set_passive_peers(bool value); - public: - // @@protoc_insertion_point(class_scope:sentry.StatusData) private: class _Internal; @@ -2113,7 +1960,6 @@ class StatusData PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::uint64 network_id_; ::PROTOBUF_NAMESPACE_ID::uint64 max_block_height_; ::PROTOBUF_NAMESPACE_ID::uint64 max_block_time_; - bool passive_peers_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_p2psentry_2fsentry_2eproto; }; @@ -2160,7 +2006,7 @@ class SetStatusReply PROTOBUF_FINAL : &_SetStatusReply_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 10; friend void swap(SetStatusReply& a, SetStatusReply& b) { a.Swap(&b); @@ -2283,7 +2129,7 @@ class HandShakeReply PROTOBUF_FINAL : &_HandShakeReply_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 11; friend void swap(HandShakeReply& a, HandShakeReply& b) { a.Swap(&b); @@ -2419,7 +2265,7 @@ class MessagesRequest PROTOBUF_FINAL : &_MessagesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; friend void swap(MessagesRequest& a, MessagesRequest& b) { a.Swap(&b); @@ -2564,7 +2410,7 @@ class PeersReply PROTOBUF_FINAL : &_PeersReply_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 13; friend void swap(PeersReply& a, PeersReply& b) { a.Swap(&b); @@ -2709,7 +2555,7 @@ class PeerCountRequest PROTOBUF_FINAL : &_PeerCountRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 14; friend void swap(PeerCountRequest& a, PeerCountRequest& b) { a.Swap(&b); @@ -2791,6 +2637,153 @@ class PeerCountRequest PROTOBUF_FINAL : }; // ------------------------------------------------------------------- +class PeerCountPerProtocol PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.PeerCountPerProtocol) */ { + public: + inline PeerCountPerProtocol() : PeerCountPerProtocol(nullptr) {} + virtual ~PeerCountPerProtocol(); + + PeerCountPerProtocol(const PeerCountPerProtocol& from); + PeerCountPerProtocol(PeerCountPerProtocol&& from) noexcept + : PeerCountPerProtocol() { + *this = ::std::move(from); + } + + inline PeerCountPerProtocol& operator=(const PeerCountPerProtocol& from) { + CopyFrom(from); + return *this; + } + inline PeerCountPerProtocol& operator=(PeerCountPerProtocol&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const PeerCountPerProtocol& default_instance(); + + static inline const PeerCountPerProtocol* internal_default_instance() { + return reinterpret_cast( + &_PeerCountPerProtocol_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(PeerCountPerProtocol& a, PeerCountPerProtocol& b) { + a.Swap(&b); + } + inline void Swap(PeerCountPerProtocol* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PeerCountPerProtocol* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PeerCountPerProtocol* New() const final { + return CreateMaybeMessage(nullptr); + } + + PeerCountPerProtocol* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PeerCountPerProtocol& from); + void MergeFrom(const PeerCountPerProtocol& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PeerCountPerProtocol* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "sentry.PeerCountPerProtocol"; + } + protected: + explicit PeerCountPerProtocol(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_p2psentry_2fsentry_2eproto); + return ::descriptor_table_p2psentry_2fsentry_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCountFieldNumber = 2, + kProtocolFieldNumber = 1, + }; + // uint64 count = 2; + void clear_count(); + ::PROTOBUF_NAMESPACE_ID::uint64 count() const; + void set_count(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_count() const; + void _internal_set_count(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // .sentry.Protocol protocol = 1; + void clear_protocol(); + ::sentry::Protocol protocol() const; + void set_protocol(::sentry::Protocol value); + private: + ::sentry::Protocol _internal_protocol() const; + void _internal_set_protocol(::sentry::Protocol value); + public: + + // @@protoc_insertion_point(class_scope:sentry.PeerCountPerProtocol) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 count_; + int protocol_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_p2psentry_2fsentry_2eproto; +}; +// ------------------------------------------------------------------- + class PeerCountReply PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.PeerCountReply) */ { public: @@ -2903,8 +2896,27 @@ class PeerCountReply PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { + kCountsPerProtocolFieldNumber = 2, kCountFieldNumber = 1, }; + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + int countsperprotocol_size() const; + private: + int _internal_countsperprotocol_size() const; + public: + void clear_countsperprotocol(); + ::sentry::PeerCountPerProtocol* mutable_countsperprotocol(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >* + mutable_countsperprotocol(); + private: + const ::sentry::PeerCountPerProtocol& _internal_countsperprotocol(int index) const; + ::sentry::PeerCountPerProtocol* _internal_add_countsperprotocol(); + public: + const ::sentry::PeerCountPerProtocol& countsperprotocol(int index) const; + ::sentry::PeerCountPerProtocol* add_countsperprotocol(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >& + countsperprotocol() const; + // uint64 count = 1; void clear_count(); ::PROTOBUF_NAMESPACE_ID::uint64 count() const; @@ -2921,6 +2933,7 @@ class PeerCountReply PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol > countsperprotocol_; ::PROTOBUF_NAMESPACE_ID::uint64 count_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_p2psentry_2fsentry_2eproto; @@ -4259,87 +4272,6 @@ inline void PeerMinBlockRequest::set_min_block(::PROTOBUF_NAMESPACE_ID::uint64 v // ------------------------------------------------------------------- -// PeerUselessRequest - -// .types.H512 peer_id = 1; -inline bool PeerUselessRequest::_internal_has_peer_id() const { - return this != internal_default_instance() && peer_id_ != nullptr; -} -inline bool PeerUselessRequest::has_peer_id() const { - return _internal_has_peer_id(); -} -inline const ::types::H512& PeerUselessRequest::_internal_peer_id() const { - const ::types::H512* p = peer_id_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H512_default_instance_); -} -inline const ::types::H512& PeerUselessRequest::peer_id() const { - // @@protoc_insertion_point(field_get:sentry.PeerUselessRequest.peer_id) - return _internal_peer_id(); -} -inline void PeerUselessRequest::unsafe_arena_set_allocated_peer_id( - ::types::H512* peer_id) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(peer_id_); - } - peer_id_ = peer_id; - if (peer_id) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:sentry.PeerUselessRequest.peer_id) -} -inline ::types::H512* PeerUselessRequest::release_peer_id() { - - ::types::H512* temp = peer_id_; - peer_id_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::types::H512* PeerUselessRequest::unsafe_arena_release_peer_id() { - // @@protoc_insertion_point(field_release:sentry.PeerUselessRequest.peer_id) - - ::types::H512* temp = peer_id_; - peer_id_ = nullptr; - return temp; -} -inline ::types::H512* PeerUselessRequest::_internal_mutable_peer_id() { - - if (peer_id_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H512>(GetArena()); - peer_id_ = p; - } - return peer_id_; -} -inline ::types::H512* PeerUselessRequest::mutable_peer_id() { - // @@protoc_insertion_point(field_mutable:sentry.PeerUselessRequest.peer_id) - return _internal_mutable_peer_id(); -} -inline void PeerUselessRequest::set_allocated_peer_id(::types::H512* peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(peer_id_); - } - if (peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(peer_id)->GetArena(); - if (message_arena != submessage_arena) { - peer_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, peer_id, submessage_arena); - } - - } else { - - } - peer_id_ = peer_id; - // @@protoc_insertion_point(field_set_allocated:sentry.PeerUselessRequest.peer_id) -} - -// ------------------------------------------------------------------- - // InboundMessage // .sentry.MessageId id = 1; @@ -4976,26 +4908,6 @@ inline void StatusData::set_max_block_time(::PROTOBUF_NAMESPACE_ID::uint64 value // @@protoc_insertion_point(field_set:sentry.StatusData.max_block_time) } -// bool passive_peers = 7; -inline void StatusData::clear_passive_peers() { - passive_peers_ = false; -} -inline bool StatusData::_internal_passive_peers() const { - return passive_peers_; -} -inline bool StatusData::passive_peers() const { - // @@protoc_insertion_point(field_get:sentry.StatusData.passive_peers) - return _internal_passive_peers(); -} -inline void StatusData::_internal_set_passive_peers(bool value) { - - passive_peers_ = value; -} -inline void StatusData::set_passive_peers(bool value) { - _internal_set_passive_peers(value); - // @@protoc_insertion_point(field_set:sentry.StatusData.passive_peers) -} - // ------------------------------------------------------------------- // SetStatusReply @@ -5117,6 +5029,50 @@ PeersReply::peers() const { // ------------------------------------------------------------------- +// PeerCountPerProtocol + +// .sentry.Protocol protocol = 1; +inline void PeerCountPerProtocol::clear_protocol() { + protocol_ = 0; +} +inline ::sentry::Protocol PeerCountPerProtocol::_internal_protocol() const { + return static_cast< ::sentry::Protocol >(protocol_); +} +inline ::sentry::Protocol PeerCountPerProtocol::protocol() const { + // @@protoc_insertion_point(field_get:sentry.PeerCountPerProtocol.protocol) + return _internal_protocol(); +} +inline void PeerCountPerProtocol::_internal_set_protocol(::sentry::Protocol value) { + + protocol_ = value; +} +inline void PeerCountPerProtocol::set_protocol(::sentry::Protocol value) { + _internal_set_protocol(value); + // @@protoc_insertion_point(field_set:sentry.PeerCountPerProtocol.protocol) +} + +// uint64 count = 2; +inline void PeerCountPerProtocol::clear_count() { + count_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PeerCountPerProtocol::_internal_count() const { + return count_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PeerCountPerProtocol::count() const { + // @@protoc_insertion_point(field_get:sentry.PeerCountPerProtocol.count) + return _internal_count(); +} +inline void PeerCountPerProtocol::_internal_set_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + count_ = value; +} +inline void PeerCountPerProtocol::set_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:sentry.PeerCountPerProtocol.count) +} + +// ------------------------------------------------------------------- + // PeerCountReply // uint64 count = 1; @@ -5139,6 +5095,45 @@ inline void PeerCountReply::set_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { // @@protoc_insertion_point(field_set:sentry.PeerCountReply.count) } +// repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; +inline int PeerCountReply::_internal_countsperprotocol_size() const { + return countsperprotocol_.size(); +} +inline int PeerCountReply::countsperprotocol_size() const { + return _internal_countsperprotocol_size(); +} +inline void PeerCountReply::clear_countsperprotocol() { + countsperprotocol_.Clear(); +} +inline ::sentry::PeerCountPerProtocol* PeerCountReply::mutable_countsperprotocol(int index) { + // @@protoc_insertion_point(field_mutable:sentry.PeerCountReply.countsPerProtocol) + return countsperprotocol_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >* +PeerCountReply::mutable_countsperprotocol() { + // @@protoc_insertion_point(field_mutable_list:sentry.PeerCountReply.countsPerProtocol) + return &countsperprotocol_; +} +inline const ::sentry::PeerCountPerProtocol& PeerCountReply::_internal_countsperprotocol(int index) const { + return countsperprotocol_.Get(index); +} +inline const ::sentry::PeerCountPerProtocol& PeerCountReply::countsperprotocol(int index) const { + // @@protoc_insertion_point(field_get:sentry.PeerCountReply.countsPerProtocol) + return _internal_countsperprotocol(index); +} +inline ::sentry::PeerCountPerProtocol* PeerCountReply::_internal_add_countsperprotocol() { + return countsperprotocol_.Add(); +} +inline ::sentry::PeerCountPerProtocol* PeerCountReply::add_countsperprotocol() { + // @@protoc_insertion_point(field_add:sentry.PeerCountReply.countsPerProtocol) + return _internal_add_countsperprotocol(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >& +PeerCountReply::countsperprotocol() const { + // @@protoc_insertion_point(field_list:sentry.PeerCountReply.countsPerProtocol) + return countsperprotocol_; +} + // ------------------------------------------------------------------- // PeerByIdRequest diff --git a/silkworm/interfaces/3.14.0/p2psentry/sentry_mock.grpc.pb.h b/silkworm/interfaces/3.14.0/p2psentry/sentry_mock.grpc.pb.h index ee7a858b4d..8f4837e54d 100644 --- a/silkworm/interfaces/3.14.0/p2psentry/sentry_mock.grpc.pb.h +++ b/silkworm/interfaces/3.14.0/p2psentry/sentry_mock.grpc.pb.h @@ -21,9 +21,6 @@ class MockSentryStub : public Sentry::StubInterface { MOCK_METHOD3(PeerMinBlock, ::grpc::Status(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::google::protobuf::Empty* response)); MOCK_METHOD3(AsyncPeerMinBlockRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncPeerMinBlockRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PeerUseless, ::grpc::Status(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response)); - MOCK_METHOD3(AsyncPeerUselessRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncPeerUselessRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(HandShake, ::grpc::Status(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response)); MOCK_METHOD3(AsyncHandShakeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncHandShakeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); diff --git a/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.cc b/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.cc index 6af3cbfa00..6ed22463a9 100644 --- a/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.cc +++ b/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.cc @@ -25,12 +25,12 @@ static const char* ETHBACKEND_method_names[] = { "/remote.ETHBACKEND/Etherbase", "/remote.ETHBACKEND/NetVersion", "/remote.ETHBACKEND/NetPeerCount", - "/remote.ETHBACKEND/EngineNewPayloadV1", - "/remote.ETHBACKEND/EngineNewPayloadV2", - "/remote.ETHBACKEND/EngineForkChoiceUpdatedV1", - "/remote.ETHBACKEND/EngineForkChoiceUpdatedV2", - "/remote.ETHBACKEND/EngineGetPayloadV1", - "/remote.ETHBACKEND/EngineGetPayloadV2", + "/remote.ETHBACKEND/EngineNewPayload", + "/remote.ETHBACKEND/EngineForkChoiceUpdated", + "/remote.ETHBACKEND/EngineGetPayload", + "/remote.ETHBACKEND/EngineGetPayloadBodiesByHashV1", + "/remote.ETHBACKEND/EngineGetPayloadBodiesByRangeV1", + "/remote.ETHBACKEND/EngineGetBlobsBundleV1", "/remote.ETHBACKEND/Version", "/remote.ETHBACKEND/ProtocolVersion", "/remote.ETHBACKEND/ClientVersion", @@ -53,12 +53,12 @@ ETHBACKEND::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel : channel_(channel), rpcmethod_Etherbase_(ETHBACKEND_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_NetVersion_(ETHBACKEND_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_NetPeerCount_(ETHBACKEND_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineNewPayloadV1_(ETHBACKEND_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineNewPayloadV2_(ETHBACKEND_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineForkChoiceUpdatedV1_(ETHBACKEND_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineForkChoiceUpdatedV2_(ETHBACKEND_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineGetPayloadV1_(ETHBACKEND_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineGetPayloadV2_(ETHBACKEND_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineNewPayload_(ETHBACKEND_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineForkChoiceUpdated_(ETHBACKEND_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetPayload_(ETHBACKEND_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetPayloadBodiesByHashV1_(ETHBACKEND_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetPayloadBodiesByRangeV1_(ETHBACKEND_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetBlobsBundleV1_(ETHBACKEND_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_Version_(ETHBACKEND_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ProtocolVersion_(ETHBACKEND_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ClientVersion_(ETHBACKEND_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) @@ -140,140 +140,140 @@ ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>* ETHBACKEND::Stu return result; } -::grpc::Status ETHBACKEND::Stub::EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) { - return ::grpc::internal::BlockingUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineNewPayloadV1_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) { + return ::grpc::internal::BlockingUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineNewPayload_, context, request, response); } -void ETHBACKEND::Stub::async::EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV1_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayload_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV1_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayload_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::PrepareAsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EnginePayloadStatus, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineNewPayloadV1_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::PrepareAsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EnginePayloadStatus, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineNewPayload_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::AsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::AsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineNewPayloadV1Raw(context, request, cq); + this->PrepareAsyncEngineNewPayloadRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response) { - return ::grpc::internal::BlockingUnaryCall< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineNewPayloadV2_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineForkChoiceUpdated_, context, request, response); } -void ETHBACKEND::Stub::async::EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV2_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdated_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV2_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdated_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::PrepareAsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EnginePayloadStatus, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineNewPayloadV2_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* ETHBACKEND::Stub::PrepareAsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineForkChoiceUpdatedResponse, ::remote::EngineForkChoiceUpdatedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineForkChoiceUpdated_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::AsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* ETHBACKEND::Stub::AsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineNewPayloadV2Raw(context, request, cq); + this->PrepareAsyncEngineForkChoiceUpdatedRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineForkChoiceUpdatedV1_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayload_, context, request, response); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV1_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayload_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV1_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayload_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::PrepareAsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineForkChoiceUpdatedReply, ::remote::EngineForkChoiceUpdatedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineForkChoiceUpdatedV1_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineGetPayloadResponse, ::remote::EngineGetPayloadRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayload_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::AsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* ETHBACKEND::Stub::AsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineForkChoiceUpdatedV1Raw(context, request, cq); + this->PrepareAsyncEngineGetPayloadRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineForkChoiceUpdatedV2_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request, response); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV2_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV2_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::PrepareAsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineForkChoiceUpdatedReply, ::remote::EngineForkChoiceUpdatedRequestV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineForkChoiceUpdatedV2_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineGetPayloadBodiesV1Response, ::remote::EngineGetPayloadBodiesByHashV1Request, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::AsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::AsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineForkChoiceUpdatedV2Raw(context, request, cq); + this->PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadV1_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request, response); } -void ETHBACKEND::Stub::async::EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV1_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV1_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::types::ExecutionPayload, ::remote::EngineGetPayloadRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadV1_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineGetPayloadBodiesV1Response, ::remote::EngineGetPayloadBodiesByRangeV1Request, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* ETHBACKEND::Stub::AsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::AsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineGetPayloadV1Raw(context, request, cq); + this->PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadV2_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetBlobsBundleV1_, context, request, response); } -void ETHBACKEND::Stub::async::EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV2_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetBlobsBundleV1_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV2_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetBlobsBundleV1_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::types::ExecutionPayloadV2, ::remote::EngineGetPayloadRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadV2_, context, request); +::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* ETHBACKEND::Stub::PrepareAsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::types::BlobsBundleV1, ::remote::EngineGetBlobsBundleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetBlobsBundleV1_, context, request); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* ETHBACKEND::Stub::AsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* ETHBACKEND::Stub::AsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineGetPayloadV2Raw(context, request, cq); + this->PrepareAsyncEngineGetBlobsBundleV1Raw(context, request, cq); result->StartCall(); return result; } @@ -533,57 +533,57 @@ ETHBACKEND::Service::Service() { ::grpc::ServerContext* ctx, const ::types::ExecutionPayload* req, ::remote::EnginePayloadStatus* resp) { - return service->EngineNewPayloadV1(ctx, req, resp); + return service->EngineNewPayload(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::types::ExecutionPayloadV2* req, - ::remote::EnginePayloadStatus* resp) { - return service->EngineNewPayloadV2(ctx, req, resp); + const ::remote::EngineForkChoiceUpdatedRequest* req, + ::remote::EngineForkChoiceUpdatedResponse* resp) { + return service->EngineForkChoiceUpdated(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineForkChoiceUpdatedRequest* req, - ::remote::EngineForkChoiceUpdatedReply* resp) { - return service->EngineForkChoiceUpdatedV1(ctx, req, resp); + const ::remote::EngineGetPayloadRequest* req, + ::remote::EngineGetPayloadResponse* resp) { + return service->EngineGetPayload(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineForkChoiceUpdatedRequestV2* req, - ::remote::EngineForkChoiceUpdatedReply* resp) { - return service->EngineForkChoiceUpdatedV2(ctx, req, resp); + const ::remote::EngineGetPayloadBodiesByHashV1Request* req, + ::remote::EngineGetPayloadBodiesV1Response* resp) { + return service->EngineGetPayloadBodiesByHashV1(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineGetPayloadRequest* req, - ::types::ExecutionPayload* resp) { - return service->EngineGetPayloadV1(ctx, req, resp); + const ::remote::EngineGetPayloadBodiesByRangeV1Request* req, + ::remote::EngineGetPayloadBodiesV1Response* resp) { + return service->EngineGetPayloadBodiesByRangeV1(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineGetPayloadRequest* req, - ::types::ExecutionPayloadV2* resp) { - return service->EngineGetPayloadV2(ctx, req, resp); + const ::remote::EngineGetBlobsBundleRequest* req, + ::types::BlobsBundleV1* resp) { + return service->EngineGetBlobsBundleV1(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[9], @@ -711,42 +711,42 @@ ::grpc::Status ETHBACKEND::Service::NetPeerCount(::grpc::ServerContext* context, return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineNewPayloadV1(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { +::grpc::Status ETHBACKEND::Service::EngineNewPayload(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineNewPayloadV2(::grpc::ServerContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response) { +::grpc::Status ETHBACKEND::Service::EngineForkChoiceUpdated(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineForkChoiceUpdatedV1(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response) { +::grpc::Status ETHBACKEND::Service::EngineGetPayload(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineForkChoiceUpdatedV2(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response) { +::grpc::Status ETHBACKEND::Service::EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineGetPayloadV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response) { +::grpc::Status ETHBACKEND::Service::EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineGetPayloadV2(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response) { +::grpc::Status ETHBACKEND::Service::EngineGetBlobsBundleV1(::grpc::ServerContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response) { (void) context; (void) request; (void) response; diff --git a/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.h b/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.h index a6c7367f2b..b7e11c2f15 100644 --- a/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.h +++ b/silkworm/interfaces/3.14.0/remote/ethbackend.grpc.pb.h @@ -61,52 +61,50 @@ class ETHBACKEND final { // See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md // // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV1Raw(context, request, cq)); + virtual ::grpc::Status EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> AsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadRaw(context, request, cq)); } - // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV2Raw(context, request, cq)); + // Update fork choice + virtual ::grpc::Status EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>> AsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>>(AsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>> PrepareAsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>>(PrepareAsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + // Fetch Execution Payload using its ID. + virtual ::grpc::Status EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>> AsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>>(AsyncEngineGetPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>> PrepareAsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>>(PrepareAsyncEngineGetPayloadRaw(context, request, cq)); } - // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + virtual ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>> AsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>>(AsyncEngineGetPayloadV1Raw(context, request, cq)); + virtual ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>> PrepareAsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>>(PrepareAsyncEngineGetPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>> AsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>>(AsyncEngineGetPayloadV2Raw(context, request, cq)); + // Fetch the blobs bundle using its ID. + virtual ::grpc::Status EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>> AsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>>(AsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>> PrepareAsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>>(PrepareAsyncEngineGetPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>> PrepareAsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>>(PrepareAsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } // End of Engine API requests // ------------------------------------------------------------------------ @@ -210,23 +208,21 @@ class ETHBACKEND final { // See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md // // Validate and possibly execute the payload. - virtual void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) = 0; - virtual void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // Validate and possibly execute the payload. - virtual void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, std::function) = 0; - virtual void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // Update fork choice - virtual void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) = 0; - virtual void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) = 0; + virtual void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Update fork choice - virtual void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) = 0; - virtual void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // Fetch Execution Payload using its ID. - virtual void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, std::function) = 0; - virtual void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, std::function) = 0; + virtual void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Fetch Execution Payload using its ID. - virtual void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, std::function) = 0; - virtual void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, std::function) = 0; + virtual void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) = 0; + virtual void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) = 0; + virtual void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Fetch the blobs bundle using its ID. + virtual void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, std::function) = 0; + virtual void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, ::grpc::ClientUnaryReactor* reactor) = 0; // End of Engine API requests // ------------------------------------------------------------------------ // @@ -270,18 +266,18 @@ class ETHBACKEND final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetVersionReply>* PrepareAsyncNetVersionRaw(::grpc::ClientContext* context, const ::remote::NetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>* AsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>* PrepareAsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>* AsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>* PrepareAsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>* AsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>* PrepareAsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>* AsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>* PrepareAsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>* AsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>* PrepareAsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>* AsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>* PrepareAsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>* AsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>* PrepareAsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::ProtocolVersionReply>* AsyncProtocolVersionRaw(::grpc::ClientContext* context, const ::remote::ProtocolVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -329,47 +325,47 @@ class ETHBACKEND final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>> PrepareAsyncNetPeerCount(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>>(PrepareAsyncNetPeerCountRaw(context, request, cq)); } - ::grpc::Status EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV1Raw(context, request, cq)); + ::grpc::Status EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> AsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadRaw(context, request, cq)); } - ::grpc::Status EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV2Raw(context, request, cq)); + ::grpc::Status EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>> AsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>>(AsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>> PrepareAsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>>(PrepareAsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + ::grpc::Status EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>> AsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>>(AsyncEngineGetPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>> PrepareAsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>>(PrepareAsyncEngineGetPayloadRaw(context, request, cq)); } - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - ::grpc::Status EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>> AsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>>(AsyncEngineGetPayloadV1Raw(context, request, cq)); + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>> PrepareAsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>>(PrepareAsyncEngineGetPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - ::grpc::Status EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>> AsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>>(AsyncEngineGetPayloadV2Raw(context, request, cq)); + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>> AsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>>(AsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>> PrepareAsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>>(PrepareAsyncEngineGetPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>> PrepareAsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>>(PrepareAsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } ::grpc::Status Version(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::types::VersionReply* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::VersionReply>> AsyncVersion(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { @@ -454,18 +450,18 @@ class ETHBACKEND final { void NetVersion(::grpc::ClientContext* context, const ::remote::NetVersionRequest* request, ::remote::NetVersionReply* response, ::grpc::ClientUnaryReactor* reactor) override; void NetPeerCount(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest* request, ::remote::NetPeerCountReply* response, std::function) override; void NetPeerCount(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest* request, ::remote::NetPeerCountReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) override; - void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, std::function) override; - void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) override; - void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) override; - void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, std::function) override; - void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, std::function) override; - void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) override; + void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, std::function) override; + void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, std::function) override; + void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) override; + void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) override; + void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, std::function) override; + void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, ::grpc::ClientUnaryReactor* reactor) override; void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::types::VersionReply* response, std::function) override; void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::types::VersionReply* response, ::grpc::ClientUnaryReactor* reactor) override; void ProtocolVersion(::grpc::ClientContext* context, const ::remote::ProtocolVersionRequest* request, ::remote::ProtocolVersionReply* response, std::function) override; @@ -501,18 +497,18 @@ class ETHBACKEND final { ::grpc::ClientAsyncResponseReader< ::remote::NetVersionReply>* PrepareAsyncNetVersionRaw(::grpc::ClientContext* context, const ::remote::NetVersionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>* AsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>* PrepareAsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* AsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* PrepareAsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* AsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* PrepareAsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* AsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* PrepareAsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* AsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* PrepareAsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* AsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* PrepareAsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::types::VersionReply>* AsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::types::VersionReply>* PrepareAsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::ProtocolVersionReply>* AsyncProtocolVersionRaw(::grpc::ClientContext* context, const ::remote::ProtocolVersionRequest& request, ::grpc::CompletionQueue* cq) override; @@ -538,12 +534,12 @@ class ETHBACKEND final { const ::grpc::internal::RpcMethod rpcmethod_Etherbase_; const ::grpc::internal::RpcMethod rpcmethod_NetVersion_; const ::grpc::internal::RpcMethod rpcmethod_NetPeerCount_; - const ::grpc::internal::RpcMethod rpcmethod_EngineNewPayloadV1_; - const ::grpc::internal::RpcMethod rpcmethod_EngineNewPayloadV2_; - const ::grpc::internal::RpcMethod rpcmethod_EngineForkChoiceUpdatedV1_; - const ::grpc::internal::RpcMethod rpcmethod_EngineForkChoiceUpdatedV2_; - const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadV1_; - const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadV2_; + const ::grpc::internal::RpcMethod rpcmethod_EngineNewPayload_; + const ::grpc::internal::RpcMethod rpcmethod_EngineForkChoiceUpdated_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayload_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadBodiesByHashV1_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadBodiesByRangeV1_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetBlobsBundleV1_; const ::grpc::internal::RpcMethod rpcmethod_Version_; const ::grpc::internal::RpcMethod rpcmethod_ProtocolVersion_; const ::grpc::internal::RpcMethod rpcmethod_ClientVersion_; @@ -569,17 +565,15 @@ class ETHBACKEND final { // See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md // // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response); - // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response); - // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response); + virtual ::grpc::Status EngineNewPayload(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response); // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response); - // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response); + virtual ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response); // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response); + virtual ::grpc::Status EngineGetPayload(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response); + virtual ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response); + virtual ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response); + // Fetch the blobs bundle using its ID. + virtual ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response); // End of Engine API requests // ------------------------------------------------------------------------ // @@ -666,122 +660,122 @@ class ETHBACKEND final { } }; template - class WithAsyncMethod_EngineNewPayloadV1 : public BaseClass { + class WithAsyncMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineNewPayloadV1() { + WithAsyncMethod_EngineNewPayload() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_EngineNewPayloadV1() override { + ~WithAsyncMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV1(::grpc::ServerContext* context, ::types::ExecutionPayload* request, ::grpc::ServerAsyncResponseWriter< ::remote::EnginePayloadStatus>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineNewPayload(::grpc::ServerContext* context, ::types::ExecutionPayload* request, ::grpc::ServerAsyncResponseWriter< ::remote::EnginePayloadStatus>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineNewPayloadV2 : public BaseClass { + class WithAsyncMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineNewPayloadV2() { + WithAsyncMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_EngineNewPayloadV2() override { + ~WithAsyncMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV2(::grpc::ServerContext* context, ::types::ExecutionPayloadV2* request, ::grpc::ServerAsyncResponseWriter< ::remote::EnginePayloadStatus>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineForkChoiceUpdated(::grpc::ServerContext* context, ::remote::EngineForkChoiceUpdatedRequest* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineForkChoiceUpdatedResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithAsyncMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineForkChoiceUpdatedV1() { + WithAsyncMethod_EngineGetPayload() { ::grpc::Service::MarkMethodAsync(5); } - ~WithAsyncMethod_EngineForkChoiceUpdatedV1() override { + ~WithAsyncMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV1(::grpc::ServerContext* context, ::remote::EngineForkChoiceUpdatedRequest* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineForkChoiceUpdatedReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayload(::grpc::ServerContext* context, ::remote::EngineGetPayloadRequest* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineGetPayloadResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithAsyncMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineForkChoiceUpdatedV2() { + WithAsyncMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodAsync(6); } - ~WithAsyncMethod_EngineForkChoiceUpdatedV2() override { + ~WithAsyncMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV2(::grpc::ServerContext* context, ::remote::EngineForkChoiceUpdatedRequestV2* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineForkChoiceUpdatedReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineGetPayloadBodiesV1Response>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineGetPayloadV1 : public BaseClass { + class WithAsyncMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineGetPayloadV1() { + WithAsyncMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodAsync(7); } - ~WithAsyncMethod_EngineGetPayloadV1() override { + ~WithAsyncMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV1(::grpc::ServerContext* context, ::remote::EngineGetPayloadRequest* request, ::grpc::ServerAsyncResponseWriter< ::types::ExecutionPayload>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineGetPayloadBodiesV1Response>* 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); } }; template - class WithAsyncMethod_EngineGetPayloadV2 : public BaseClass { + class WithAsyncMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineGetPayloadV2() { + WithAsyncMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodAsync(8); } - ~WithAsyncMethod_EngineGetPayloadV2() override { + ~WithAsyncMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV2(::grpc::ServerContext* context, ::remote::EngineGetPayloadRequest* request, ::grpc::ServerAsyncResponseWriter< ::types::ExecutionPayloadV2>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetBlobsBundleV1(::grpc::ServerContext* context, ::remote::EngineGetBlobsBundleRequest* request, ::grpc::ServerAsyncResponseWriter< ::types::BlobsBundleV1>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -985,7 +979,7 @@ class ETHBACKEND final { ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_Etherbase > > > > > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_Etherbase > > > > > > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_Etherbase : public BaseClass { private: @@ -1068,166 +1062,166 @@ class ETHBACKEND final { ::grpc::CallbackServerContext* /*context*/, const ::remote::NetPeerCountRequest* /*request*/, ::remote::NetPeerCountReply* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineNewPayloadV1 : public BaseClass { + class WithCallbackMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineNewPayloadV1() { + WithCallbackMethod_EngineNewPayload() { ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>( [this]( - ::grpc::CallbackServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { return this->EngineNewPayloadV1(context, request, response); }));} - void SetMessageAllocatorFor_EngineNewPayloadV1( + ::grpc::CallbackServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { return this->EngineNewPayload(context, request, response); }));} + void SetMessageAllocatorFor_EngineNewPayload( ::grpc::MessageAllocator< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); static_cast<::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineNewPayloadV1() override { + ~WithCallbackMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV1( + virtual ::grpc::ServerUnaryReactor* EngineNewPayload( ::grpc::CallbackServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineNewPayloadV2 : public BaseClass { + class WithCallbackMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineNewPayloadV2() { + WithCallbackMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response) { return this->EngineNewPayloadV2(context, request, response); }));} - void SetMessageAllocatorFor_EngineNewPayloadV2( - ::grpc::MessageAllocator< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response) { return this->EngineForkChoiceUpdated(context, request, response); }));} + void SetMessageAllocatorFor_EngineForkChoiceUpdated( + ::grpc::MessageAllocator< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineNewPayloadV2() override { + ~WithCallbackMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV2( - ::grpc::CallbackServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdated( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithCallbackMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineForkChoiceUpdatedV1() { + WithCallbackMethod_EngineGetPayload() { ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response) { return this->EngineForkChoiceUpdatedV1(context, request, response); }));} - void SetMessageAllocatorFor_EngineForkChoiceUpdatedV1( - ::grpc::MessageAllocator< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response) { return this->EngineGetPayload(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetPayload( + ::grpc::MessageAllocator< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineForkChoiceUpdatedV1() override { + ~WithCallbackMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV1( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetPayload( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithCallbackMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineForkChoiceUpdatedV2() { + WithCallbackMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response) { return this->EngineForkChoiceUpdatedV2(context, request, response); }));} - void SetMessageAllocatorFor_EngineForkChoiceUpdatedV2( - ::grpc::MessageAllocator< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { return this->EngineGetPayloadBodiesByHashV1(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetPayloadBodiesByHashV1( + ::grpc::MessageAllocator< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineForkChoiceUpdatedV2() override { + ~WithCallbackMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV2( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByHashV1( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineGetPayloadV1 : public BaseClass { + class WithCallbackMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineGetPayloadV1() { + WithCallbackMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response) { return this->EngineGetPayloadV1(context, request, response); }));} - void SetMessageAllocatorFor_EngineGetPayloadV1( - ::grpc::MessageAllocator< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { return this->EngineGetPayloadBodiesByRangeV1(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetPayloadBodiesByRangeV1( + ::grpc::MessageAllocator< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineGetPayloadV1() override { + ~WithCallbackMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV1( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByRangeV1( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineGetPayloadV2 : public BaseClass { + class WithCallbackMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineGetPayloadV2() { + WithCallbackMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response) { return this->EngineGetPayloadV2(context, request, response); }));} - void SetMessageAllocatorFor_EngineGetPayloadV2( - ::grpc::MessageAllocator< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response) { return this->EngineGetBlobsBundleV1(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetBlobsBundleV1( + ::grpc::MessageAllocator< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineGetPayloadV2() override { + ~WithCallbackMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV2( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetBlobsBundleV1( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) { return nullptr; } }; template class WithCallbackMethod_Version : public BaseClass { @@ -1490,7 +1484,7 @@ class ETHBACKEND final { virtual ::grpc::ServerUnaryReactor* PendingBlock( ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::remote::PendingBlockReply* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Etherbase > > > > > > > > > > > > > > > > > > CallbackService; + typedef WithCallbackMethod_Etherbase > > > > > > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Etherbase : public BaseClass { @@ -1544,103 +1538,103 @@ class ETHBACKEND final { } }; template - class WithGenericMethod_EngineNewPayloadV1 : public BaseClass { + class WithGenericMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineNewPayloadV1() { + WithGenericMethod_EngineNewPayload() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_EngineNewPayloadV1() override { + ~WithGenericMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineNewPayloadV2 : public BaseClass { + class WithGenericMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineNewPayloadV2() { + WithGenericMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodGeneric(4); } - ~WithGenericMethod_EngineNewPayloadV2() override { + ~WithGenericMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithGenericMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineForkChoiceUpdatedV1() { + WithGenericMethod_EngineGetPayload() { ::grpc::Service::MarkMethodGeneric(5); } - ~WithGenericMethod_EngineForkChoiceUpdatedV1() override { + ~WithGenericMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithGenericMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineForkChoiceUpdatedV2() { + WithGenericMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodGeneric(6); } - ~WithGenericMethod_EngineForkChoiceUpdatedV2() override { + ~WithGenericMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineGetPayloadV1 : public BaseClass { + class WithGenericMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineGetPayloadV1() { + WithGenericMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodGeneric(7); } - ~WithGenericMethod_EngineGetPayloadV1() override { + ~WithGenericMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineGetPayloadV2 : public BaseClass { + class WithGenericMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineGetPayloadV2() { + WithGenericMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodGeneric(8); } - ~WithGenericMethod_EngineGetPayloadV2() override { + ~WithGenericMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1876,122 +1870,122 @@ class ETHBACKEND final { } }; template - class WithRawMethod_EngineNewPayloadV1 : public BaseClass { + class WithRawMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineNewPayloadV1() { + WithRawMethod_EngineNewPayload() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_EngineNewPayloadV1() override { + ~WithRawMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV1(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineNewPayload(::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(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineNewPayloadV2 : public BaseClass { + class WithRawMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineNewPayloadV2() { + WithRawMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodRaw(4); } - ~WithRawMethod_EngineNewPayloadV2() override { + ~WithRawMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineForkChoiceUpdated(::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(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithRawMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineForkChoiceUpdatedV1() { + WithRawMethod_EngineGetPayload() { ::grpc::Service::MarkMethodRaw(5); } - ~WithRawMethod_EngineForkChoiceUpdatedV1() override { + ~WithRawMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV1(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayload(::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(5, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithRawMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineForkChoiceUpdatedV2() { + WithRawMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodRaw(6); } - ~WithRawMethod_EngineForkChoiceUpdatedV2() override { + ~WithRawMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByHashV1(::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(6, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineGetPayloadV1 : public BaseClass { + class WithRawMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineGetPayloadV1() { + WithRawMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodRaw(7); } - ~WithRawMethod_EngineGetPayloadV1() override { + ~WithRawMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV1(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByRangeV1(::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(7, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineGetPayloadV2 : public BaseClass { + class WithRawMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineGetPayloadV2() { + WithRawMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodRaw(8); } - ~WithRawMethod_EngineGetPayloadV2() override { + ~WithRawMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetBlobsBundleV1(::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(8, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -2262,135 +2256,135 @@ class ETHBACKEND final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineNewPayloadV1 : public BaseClass { + class WithRawCallbackMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineNewPayloadV1() { + WithRawCallbackMethod_EngineNewPayload() { ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineNewPayloadV1(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineNewPayload(context, request, response); })); } - ~WithRawCallbackMethod_EngineNewPayloadV1() override { + ~WithRawCallbackMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV1( + virtual ::grpc::ServerUnaryReactor* EngineNewPayload( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineNewPayloadV2 : public BaseClass { + class WithRawCallbackMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineNewPayloadV2() { + WithRawCallbackMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineNewPayloadV2(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineForkChoiceUpdated(context, request, response); })); } - ~WithRawCallbackMethod_EngineNewPayloadV2() override { + ~WithRawCallbackMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV2( + virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdated( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithRawCallbackMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineForkChoiceUpdatedV1() { + WithRawCallbackMethod_EngineGetPayload() { ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineForkChoiceUpdatedV1(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayload(context, request, response); })); } - ~WithRawCallbackMethod_EngineForkChoiceUpdatedV1() override { + ~WithRawCallbackMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV1( + virtual ::grpc::ServerUnaryReactor* EngineGetPayload( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithRawCallbackMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineForkChoiceUpdatedV2() { + WithRawCallbackMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineForkChoiceUpdatedV2(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadBodiesByHashV1(context, request, response); })); } - ~WithRawCallbackMethod_EngineForkChoiceUpdatedV2() override { + ~WithRawCallbackMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV2( + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByHashV1( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineGetPayloadV1 : public BaseClass { + class WithRawCallbackMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineGetPayloadV1() { + WithRawCallbackMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadV1(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadBodiesByRangeV1(context, request, response); })); } - ~WithRawCallbackMethod_EngineGetPayloadV1() override { + ~WithRawCallbackMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV1( + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByRangeV1( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineGetPayloadV2 : public BaseClass { + class WithRawCallbackMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineGetPayloadV2() { + WithRawCallbackMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadV2(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetBlobsBundleV1(context, request, response); })); } - ~WithRawCallbackMethod_EngineGetPayloadV2() override { + ~WithRawCallbackMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV2( + virtual ::grpc::ServerUnaryReactor* EngineGetBlobsBundleV1( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template @@ -2696,166 +2690,166 @@ class ETHBACKEND final { virtual ::grpc::Status StreamedNetPeerCount(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::NetPeerCountRequest,::remote::NetPeerCountReply>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineNewPayloadV1 : public BaseClass { + class WithStreamedUnaryMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineNewPayloadV1() { + WithStreamedUnaryMethod_EngineNewPayload() { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>* streamer) { - return this->StreamedEngineNewPayloadV1(context, + return this->StreamedEngineNewPayload(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineNewPayloadV1() override { + ~WithStreamedUnaryMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineNewPayloadV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayload,::remote::EnginePayloadStatus>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineNewPayload(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayload,::remote::EnginePayloadStatus>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineNewPayloadV2 : public BaseClass { + class WithStreamedUnaryMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineNewPayloadV2() { + WithStreamedUnaryMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< - ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>( + ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>* streamer) { - return this->StreamedEngineNewPayloadV2(context, + ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>* streamer) { + return this->StreamedEngineForkChoiceUpdated(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineNewPayloadV2() override { + ~WithStreamedUnaryMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineNewPayloadV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayloadV2,::remote::EnginePayloadStatus>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineForkChoiceUpdated(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineForkChoiceUpdatedRequest,::remote::EngineForkChoiceUpdatedResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineForkChoiceUpdatedV1() { + WithStreamedUnaryMethod_EngineGetPayload() { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>( + ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>* streamer) { - return this->StreamedEngineForkChoiceUpdatedV1(context, + ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>* streamer) { + return this->StreamedEngineGetPayload(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineForkChoiceUpdatedV1() override { + ~WithStreamedUnaryMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineForkChoiceUpdatedV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineForkChoiceUpdatedRequest,::remote::EngineForkChoiceUpdatedReply>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetPayload(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadRequest,::remote::EngineGetPayloadResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineForkChoiceUpdatedV2() { + WithStreamedUnaryMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>( + ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>* streamer) { - return this->StreamedEngineForkChoiceUpdatedV2(context, + ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>* streamer) { + return this->StreamedEngineGetPayloadBodiesByHashV1(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineForkChoiceUpdatedV2() override { + ~WithStreamedUnaryMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineForkChoiceUpdatedV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineForkChoiceUpdatedRequestV2,::remote::EngineForkChoiceUpdatedReply>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadBodiesByHashV1Request,::remote::EngineGetPayloadBodiesV1Response>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineGetPayloadV1 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineGetPayloadV1() { + WithStreamedUnaryMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>( + ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>* streamer) { - return this->StreamedEngineGetPayloadV1(context, + ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>* streamer) { + return this->StreamedEngineGetPayloadBodiesByRangeV1(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineGetPayloadV1() override { + ~WithStreamedUnaryMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineGetPayloadV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadRequest,::types::ExecutionPayload>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadBodiesByRangeV1Request,::remote::EngineGetPayloadBodiesV1Response>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineGetPayloadV2 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineGetPayloadV2() { + WithStreamedUnaryMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>( + ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>* streamer) { - return this->StreamedEngineGetPayloadV2(context, + ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>* streamer) { + return this->StreamedEngineGetBlobsBundleV1(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineGetPayloadV2() override { + ~WithStreamedUnaryMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineGetPayloadV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadRequest,::types::ExecutionPayloadV2>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetBlobsBundleV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetBlobsBundleRequest,::types::BlobsBundleV1>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_Version : public BaseClass { @@ -3073,7 +3067,7 @@ class ETHBACKEND final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedPendingBlock(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::remote::PendingBlockReply>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_Subscribe : public BaseClass { private: @@ -3102,7 +3096,7 @@ class ETHBACKEND final { virtual ::grpc::Status StreamedSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::SubscribeRequest,::remote::SubscribeReply>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_Subscribe SplitStreamedService; - typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > > StreamedService; }; } // namespace remote diff --git a/silkworm/interfaces/3.14.0/remote/ethbackend.pb.cc b/silkworm/interfaces/3.14.0/remote/ethbackend.pb.cc index 03c6c7c2a4..37f64ef7d7 100644 --- a/silkworm/interfaces/3.14.0/remote/ethbackend.pb.cc +++ b/silkworm/interfaces/3.14.0/remote/ethbackend.pb.cc @@ -15,14 +15,15 @@ // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_remote_2fethbackend_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EngineForkChoiceState_remote_2fethbackend_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_remote_2fethbackend_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_remote_2fethbackend_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_remote_2fethbackend_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto; extern PROTOBUF_INTERNAL_EXPORT_remote_2fethbackend_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnginePayloadStatus_remote_2fethbackend_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ExecutionPayload_types_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H160_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H256_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NodeInfoReply_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerInfo_types_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Withdrawal_types_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Withdrawal_types_2ftypes_2eproto; namespace remote { class EtherbaseRequestDefaultTypeInternal { public: @@ -52,6 +53,10 @@ class EngineGetPayloadRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _EngineGetPayloadRequest_default_instance_; +class EngineGetBlobsBundleRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EngineGetBlobsBundleRequest_default_instance_; class EnginePayloadStatusDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -68,18 +73,14 @@ class EngineForkChoiceUpdatedRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _EngineForkChoiceUpdatedRequest_default_instance_; -class EnginePayloadAttributesV2DefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EnginePayloadAttributesV2_default_instance_; -class EngineForkChoiceUpdatedRequestV2DefaultTypeInternal { +class EngineForkChoiceUpdatedResponseDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EngineForkChoiceUpdatedRequestV2_default_instance_; -class EngineForkChoiceUpdatedReplyDefaultTypeInternal { + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EngineForkChoiceUpdatedResponse_default_instance_; +class EngineGetPayloadResponseDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _EngineForkChoiceUpdatedReply_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EngineGetPayloadResponse_default_instance_; class ProtocolVersionRequestDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -144,6 +145,18 @@ class PendingBlockReplyDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PendingBlockReply_default_instance_; +class EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EngineGetPayloadBodiesByHashV1Request_default_instance_; +class EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EngineGetPayloadBodiesByRangeV1Request_default_instance_; +class EngineGetPayloadBodiesV1ResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _EngineGetPayloadBodiesV1Response_default_instance_; } // namespace remote static void InitDefaultsscc_info_BlockReply_remote_2fethbackend_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -212,49 +225,88 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EngineForkChoiceState_rem {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EngineForkChoiceState_remote_2fethbackend_2eproto}, { &scc_info_H256_types_2ftypes_2eproto.base,}}; -static void InitDefaultsscc_info_EngineForkChoiceUpdatedReply_remote_2fethbackend_2eproto() { +static void InitDefaultsscc_info_EngineForkChoiceUpdatedRequest_remote_2fethbackend_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_EngineForkChoiceUpdatedRequest_default_instance_; + new (ptr) ::remote::EngineForkChoiceUpdatedRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EngineForkChoiceUpdatedRequest_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_EngineForkChoiceUpdatedRequest_remote_2fethbackend_2eproto}, { + &scc_info_EngineForkChoiceState_remote_2fethbackend_2eproto.base, + &scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto.base,}}; + +static void InitDefaultsscc_info_EngineForkChoiceUpdatedResponse_remote_2fethbackend_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::remote::_EngineForkChoiceUpdatedReply_default_instance_; - new (ptr) ::remote::EngineForkChoiceUpdatedReply(); + void* ptr = &::remote::_EngineForkChoiceUpdatedResponse_default_instance_; + new (ptr) ::remote::EngineForkChoiceUpdatedResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EngineForkChoiceUpdatedReply_remote_2fethbackend_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EngineForkChoiceUpdatedReply_remote_2fethbackend_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EngineForkChoiceUpdatedResponse_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EngineForkChoiceUpdatedResponse_remote_2fethbackend_2eproto}, { &scc_info_EnginePayloadStatus_remote_2fethbackend_2eproto.base,}}; -static void InitDefaultsscc_info_EngineForkChoiceUpdatedRequest_remote_2fethbackend_2eproto() { +static void InitDefaultsscc_info_EngineGetBlobsBundleRequest_remote_2fethbackend_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::remote::_EngineForkChoiceUpdatedRequest_default_instance_; - new (ptr) ::remote::EngineForkChoiceUpdatedRequest(); + void* ptr = &::remote::_EngineGetBlobsBundleRequest_default_instance_; + new (ptr) ::remote::EngineGetBlobsBundleRequest(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EngineForkChoiceUpdatedRequest_remote_2fethbackend_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_EngineForkChoiceUpdatedRequest_remote_2fethbackend_2eproto}, { - &scc_info_EngineForkChoiceState_remote_2fethbackend_2eproto.base, - &scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EngineGetBlobsBundleRequest_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EngineGetBlobsBundleRequest_remote_2fethbackend_2eproto}, {}}; -static void InitDefaultsscc_info_EngineForkChoiceUpdatedRequestV2_remote_2fethbackend_2eproto() { +static void InitDefaultsscc_info_EngineGetPayloadBodiesByHashV1Request_remote_2fethbackend_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::remote::_EngineForkChoiceUpdatedRequestV2_default_instance_; - new (ptr) ::remote::EngineForkChoiceUpdatedRequestV2(); + void* ptr = &::remote::_EngineGetPayloadBodiesByHashV1Request_default_instance_; + new (ptr) ::remote::EngineGetPayloadBodiesByHashV1Request(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EngineForkChoiceUpdatedRequestV2_remote_2fethbackend_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_EngineForkChoiceUpdatedRequestV2_remote_2fethbackend_2eproto}, { - &scc_info_EngineForkChoiceState_remote_2fethbackend_2eproto.base, - &scc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EngineGetPayloadBodiesByHashV1Request_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EngineGetPayloadBodiesByHashV1Request_remote_2fethbackend_2eproto}, { + &scc_info_H256_types_2ftypes_2eproto.base,}}; + +static void InitDefaultsscc_info_EngineGetPayloadBodiesByRangeV1Request_remote_2fethbackend_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_EngineGetPayloadBodiesByRangeV1Request_default_instance_; + new (ptr) ::remote::EngineGetPayloadBodiesByRangeV1Request(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EngineGetPayloadBodiesByRangeV1Request_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EngineGetPayloadBodiesByRangeV1Request_remote_2fethbackend_2eproto}, {}}; + +static void InitDefaultsscc_info_EngineGetPayloadBodiesV1Response_remote_2fethbackend_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_EngineGetPayloadBodiesV1Response_default_instance_; + new (ptr) ::remote::EngineGetPayloadBodiesV1Response(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EngineGetPayloadBodiesV1Response_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EngineGetPayloadBodiesV1Response_remote_2fethbackend_2eproto}, { + &scc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto.base,}}; static void InitDefaultsscc_info_EngineGetPayloadRequest_remote_2fethbackend_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -269,34 +321,35 @@ static void InitDefaultsscc_info_EngineGetPayloadRequest_remote_2fethbackend_2ep ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EngineGetPayloadRequest_remote_2fethbackend_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_EngineGetPayloadRequest_remote_2fethbackend_2eproto}, {}}; -static void InitDefaultsscc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto() { +static void InitDefaultsscc_info_EngineGetPayloadResponse_remote_2fethbackend_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::remote::_EnginePayloadAttributes_default_instance_; - new (ptr) ::remote::EnginePayloadAttributes(); + void* ptr = &::remote::_EngineGetPayloadResponse_default_instance_; + new (ptr) ::remote::EngineGetPayloadResponse(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto}, { - &scc_info_H256_types_2ftypes_2eproto.base, - &scc_info_H160_types_2ftypes_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EngineGetPayloadResponse_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_EngineGetPayloadResponse_remote_2fethbackend_2eproto}, { + &scc_info_ExecutionPayload_types_2ftypes_2eproto.base, + &scc_info_H256_types_2ftypes_2eproto.base,}}; -static void InitDefaultsscc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto() { +static void InitDefaultsscc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::remote::_EnginePayloadAttributesV2_default_instance_; - new (ptr) ::remote::EnginePayloadAttributesV2(); + void* ptr = &::remote::_EnginePayloadAttributes_default_instance_; + new (ptr) ::remote::EnginePayloadAttributes(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto}, { - &scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto.base, +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto}, { + &scc_info_H256_types_2ftypes_2eproto.base, + &scc_info_H160_types_2ftypes_2eproto.base, &scc_info_Withdrawal_types_2ftypes_2eproto.base,}}; static void InitDefaultsscc_info_EnginePayloadStatus_remote_2fethbackend_2eproto() { @@ -555,7 +608,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TxnLookupRequest_remote_2 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TxnLookupRequest_remote_2fethbackend_2eproto}, { &scc_info_H256_types_2ftypes_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_remote_2fethbackend_2eproto[30]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_remote_2fethbackend_2eproto[33]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_remote_2fethbackend_2eproto[2]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_remote_2fethbackend_2eproto = nullptr; @@ -600,6 +653,12 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_remote_2fethbackend_2eproto::o ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadRequest, payloadid_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetBlobsBundleRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetBlobsBundleRequest, payloadid_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -612,9 +671,11 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_remote_2fethbackend_2eproto::o ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, version_), PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, timestamp_), PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, prevrandao_), PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, suggestedfeerecipient_), + PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, withdrawals_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceState, _internal_metadata_), ~0u, // no _extensions_ @@ -631,26 +692,19 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_remote_2fethbackend_2eproto::o PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequest, forkchoicestate_), PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequest, payloadattributes_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributesV2, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributesV2, attributes_), - PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributesV2, withdrawals_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequestV2, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequestV2, forkchoicestate_), - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequestV2, payloadattributes_), + PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedResponse, payloadstatus_), + PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedResponse, payloadid_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedReply, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedReply, payloadstatus_), - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedReply, payloadid_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadResponse, executionpayload_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadResponse, blockvalue_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::ProtocolVersionRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -759,6 +813,25 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_remote_2fethbackend_2eproto::o ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::remote::PendingBlockReply, blockrlp_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByHashV1Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByHashV1Request, hashes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByRangeV1Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByRangeV1Request, start_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByRangeV1Request, count_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesV1Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesV1Response, bodies_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::remote::EtherbaseRequest)}, @@ -768,29 +841,32 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 22, -1, sizeof(::remote::NetPeerCountRequest)}, { 27, -1, sizeof(::remote::NetPeerCountReply)}, { 33, -1, sizeof(::remote::EngineGetPayloadRequest)}, - { 39, -1, sizeof(::remote::EnginePayloadStatus)}, - { 47, -1, sizeof(::remote::EnginePayloadAttributes)}, - { 55, -1, sizeof(::remote::EngineForkChoiceState)}, - { 63, -1, sizeof(::remote::EngineForkChoiceUpdatedRequest)}, - { 70, -1, sizeof(::remote::EnginePayloadAttributesV2)}, - { 77, -1, sizeof(::remote::EngineForkChoiceUpdatedRequestV2)}, - { 84, -1, sizeof(::remote::EngineForkChoiceUpdatedReply)}, - { 91, -1, sizeof(::remote::ProtocolVersionRequest)}, - { 96, -1, sizeof(::remote::ProtocolVersionReply)}, - { 102, -1, sizeof(::remote::ClientVersionRequest)}, - { 107, -1, sizeof(::remote::ClientVersionReply)}, - { 113, -1, sizeof(::remote::SubscribeRequest)}, - { 119, -1, sizeof(::remote::SubscribeReply)}, - { 126, -1, sizeof(::remote::LogsFilterRequest)}, - { 135, -1, sizeof(::remote::SubscribeLogsReply)}, - { 149, -1, sizeof(::remote::BlockRequest)}, - { 156, -1, sizeof(::remote::BlockReply)}, - { 163, -1, sizeof(::remote::TxnLookupRequest)}, - { 169, -1, sizeof(::remote::TxnLookupReply)}, - { 175, -1, sizeof(::remote::NodesInfoRequest)}, - { 181, -1, sizeof(::remote::NodesInfoReply)}, - { 187, -1, sizeof(::remote::PeersReply)}, - { 193, -1, sizeof(::remote::PendingBlockReply)}, + { 39, -1, sizeof(::remote::EngineGetBlobsBundleRequest)}, + { 45, -1, sizeof(::remote::EnginePayloadStatus)}, + { 53, -1, sizeof(::remote::EnginePayloadAttributes)}, + { 63, -1, sizeof(::remote::EngineForkChoiceState)}, + { 71, -1, sizeof(::remote::EngineForkChoiceUpdatedRequest)}, + { 78, -1, sizeof(::remote::EngineForkChoiceUpdatedResponse)}, + { 85, -1, sizeof(::remote::EngineGetPayloadResponse)}, + { 92, -1, sizeof(::remote::ProtocolVersionRequest)}, + { 97, -1, sizeof(::remote::ProtocolVersionReply)}, + { 103, -1, sizeof(::remote::ClientVersionRequest)}, + { 108, -1, sizeof(::remote::ClientVersionReply)}, + { 114, -1, sizeof(::remote::SubscribeRequest)}, + { 120, -1, sizeof(::remote::SubscribeReply)}, + { 127, -1, sizeof(::remote::LogsFilterRequest)}, + { 136, -1, sizeof(::remote::SubscribeLogsReply)}, + { 150, -1, sizeof(::remote::BlockRequest)}, + { 157, -1, sizeof(::remote::BlockReply)}, + { 164, -1, sizeof(::remote::TxnLookupRequest)}, + { 170, -1, sizeof(::remote::TxnLookupReply)}, + { 176, -1, sizeof(::remote::NodesInfoRequest)}, + { 182, -1, sizeof(::remote::NodesInfoReply)}, + { 188, -1, sizeof(::remote::PeersReply)}, + { 194, -1, sizeof(::remote::PendingBlockReply)}, + { 200, -1, sizeof(::remote::EngineGetPayloadBodiesByHashV1Request)}, + { 206, -1, sizeof(::remote::EngineGetPayloadBodiesByRangeV1Request)}, + { 213, -1, sizeof(::remote::EngineGetPayloadBodiesV1Response)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -801,13 +877,13 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::remote::_NetPeerCountRequest_default_instance_), reinterpret_cast(&::remote::_NetPeerCountReply_default_instance_), reinterpret_cast(&::remote::_EngineGetPayloadRequest_default_instance_), + reinterpret_cast(&::remote::_EngineGetBlobsBundleRequest_default_instance_), reinterpret_cast(&::remote::_EnginePayloadStatus_default_instance_), reinterpret_cast(&::remote::_EnginePayloadAttributes_default_instance_), reinterpret_cast(&::remote::_EngineForkChoiceState_default_instance_), reinterpret_cast(&::remote::_EngineForkChoiceUpdatedRequest_default_instance_), - reinterpret_cast(&::remote::_EnginePayloadAttributesV2_default_instance_), - reinterpret_cast(&::remote::_EngineForkChoiceUpdatedRequestV2_default_instance_), - reinterpret_cast(&::remote::_EngineForkChoiceUpdatedReply_default_instance_), + reinterpret_cast(&::remote::_EngineForkChoiceUpdatedResponse_default_instance_), + reinterpret_cast(&::remote::_EngineGetPayloadResponse_default_instance_), reinterpret_cast(&::remote::_ProtocolVersionRequest_default_instance_), reinterpret_cast(&::remote::_ProtocolVersionReply_default_instance_), reinterpret_cast(&::remote::_ClientVersionRequest_default_instance_), @@ -824,6 +900,9 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::remote::_NodesInfoReply_default_instance_), reinterpret_cast(&::remote::_PeersReply_default_instance_), reinterpret_cast(&::remote::_PendingBlockReply_default_instance_), + reinterpret_cast(&::remote::_EngineGetPayloadBodiesByHashV1Request_default_instance_), + reinterpret_cast(&::remote::_EngineGetPayloadBodiesByRangeV1Request_default_instance_), + reinterpret_cast(&::remote::_EngineGetPayloadBodiesV1Response_default_instance_), }; const char descriptor_table_protodef_remote_2fethbackend_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -834,112 +913,121 @@ const char descriptor_table_protodef_remote_2fethbackend_2eproto[] PROTOBUF_SECT "ionRequest\"\035\n\017NetVersionReply\022\n\n\002id\030\001 \001(" "\004\"\025\n\023NetPeerCountRequest\"\"\n\021NetPeerCount" "Reply\022\r\n\005count\030\001 \001(\004\",\n\027EngineGetPayload" - "Request\022\021\n\tpayloadId\030\001 \001(\004\"z\n\023EnginePayl" - "oadStatus\022$\n\006status\030\001 \001(\0162\024.remote.Engin" - "eStatus\022$\n\017latestValidHash\030\002 \001(\0132\013.types" - ".H256\022\027\n\017validationError\030\003 \001(\t\"y\n\027Engine" - "PayloadAttributes\022\021\n\ttimestamp\030\001 \001(\004\022\037\n\n" - "prevRandao\030\002 \001(\0132\013.types.H256\022*\n\025suggest" - "edFeeRecipient\030\003 \001(\0132\013.types.H160\"\210\001\n\025En" - "gineForkChoiceState\022\"\n\rheadBlockHash\030\001 \001" - "(\0132\013.types.H256\022\"\n\rsafeBlockHash\030\002 \001(\0132\013" - ".types.H256\022\'\n\022finalizedBlockHash\030\003 \001(\0132" - "\013.types.H256\"\224\001\n\036EngineForkChoiceUpdated" - "Request\0226\n\017forkchoiceState\030\001 \001(\0132\035.remot" - "e.EngineForkChoiceState\022:\n\021payloadAttrib" - "utes\030\002 \001(\0132\037.remote.EnginePayloadAttribu" - "tes\"x\n\031EnginePayloadAttributesV2\0223\n\nattr" - "ibutes\030\001 \001(\0132\037.remote.EnginePayloadAttri" - "butes\022&\n\013withdrawals\030\002 \003(\0132\021.types.Withd" - "rawal\"\230\001\n EngineForkChoiceUpdatedRequest" - "V2\0226\n\017forkchoiceState\030\001 \001(\0132\035.remote.Eng" - "ineForkChoiceState\022<\n\021payloadAttributes\030" - "\002 \001(\0132!.remote.EnginePayloadAttributesV2" - "\"e\n\034EngineForkChoiceUpdatedReply\0222\n\rpayl" - "oadStatus\030\001 \001(\0132\033.remote.EnginePayloadSt" - "atus\022\021\n\tpayloadId\030\002 \001(\004\"\030\n\026ProtocolVersi" - "onRequest\"\"\n\024ProtocolVersionReply\022\n\n\002id\030" - "\001 \001(\004\"\026\n\024ClientVersionRequest\"&\n\022ClientV" - "ersionReply\022\020\n\010nodeName\030\001 \001(\t\"/\n\020Subscri" - "beRequest\022\033\n\004type\030\001 \001(\0162\r.remote.Event\";" - "\n\016SubscribeReply\022\033\n\004type\030\001 \001(\0162\r.remote." - "Event\022\014\n\004data\030\002 \001(\014\"y\n\021LogsFilterRequest" - "\022\024\n\014allAddresses\030\001 \001(\010\022\036\n\taddresses\030\002 \003(" - "\0132\013.types.H160\022\021\n\tallTopics\030\003 \001(\010\022\033\n\006top" - "ics\030\004 \003(\0132\013.types.H256\"\365\001\n\022SubscribeLogs" - "Reply\022\034\n\007address\030\001 \001(\0132\013.types.H160\022\036\n\tb" - "lockHash\030\002 \001(\0132\013.types.H256\022\023\n\013blockNumb" - "er\030\003 \001(\004\022\014\n\004data\030\004 \001(\014\022\020\n\010logIndex\030\005 \001(\004" - "\022\033\n\006topics\030\006 \003(\0132\013.types.H256\022$\n\017transac" - "tionHash\030\007 \001(\0132\013.types.H256\022\030\n\020transacti" - "onIndex\030\010 \001(\004\022\017\n\007removed\030\t \001(\010\"C\n\014BlockR" - "equest\022\023\n\013blockHeight\030\002 \001(\004\022\036\n\tblockHash" - "\030\003 \001(\0132\013.types.H256\"/\n\nBlockReply\022\020\n\010blo" - "ckRlp\030\001 \001(\014\022\017\n\007senders\030\002 \001(\014\"0\n\020TxnLooku" - "pRequest\022\034\n\007txnHash\030\001 \001(\0132\013.types.H256\"%" - "\n\016TxnLookupReply\022\023\n\013blockNumber\030\001 \001(\004\"!\n" - "\020NodesInfoRequest\022\r\n\005limit\030\001 \001(\r\"9\n\016Node" - "sInfoReply\022\'\n\tnodesInfo\030\001 \003(\0132\024.types.No" - "deInfoReply\",\n\nPeersReply\022\036\n\005peers\030\001 \003(\013" - "2\017.types.PeerInfo\"%\n\021PendingBlockReply\022\020" - "\n\010blockRlp\030\001 \001(\014*J\n\005Event\022\n\n\006HEADER\020\000\022\020\n" - "\014PENDING_LOGS\020\001\022\021\n\rPENDING_BLOCK\020\002\022\020\n\014NE" - "W_SNAPSHOT\020\003*Y\n\014EngineStatus\022\t\n\005VALID\020\000\022" - "\013\n\007INVALID\020\001\022\013\n\007SYNCING\020\002\022\014\n\010ACCEPTED\020\003\022" - "\026\n\022INVALID_BLOCK_HASH\020\0042\362\n\n\nETHBACKEND\022=" - "\n\tEtherbase\022\030.remote.EtherbaseRequest\032\026." - "remote.EtherbaseReply\022@\n\nNetVersion\022\031.re" - "mote.NetVersionRequest\032\027.remote.NetVersi" - "onReply\022F\n\014NetPeerCount\022\033.remote.NetPeer" - "CountRequest\032\031.remote.NetPeerCountReply\022" - "J\n\022EngineNewPayloadV1\022\027.types.ExecutionP" - "ayload\032\033.remote.EnginePayloadStatus\022L\n\022E" - "ngineNewPayloadV2\022\031.types.ExecutionPaylo" - "adV2\032\033.remote.EnginePayloadStatus\022i\n\031Eng" - "ineForkChoiceUpdatedV1\022&.remote.EngineFo" - "rkChoiceUpdatedRequest\032$.remote.EngineFo" - "rkChoiceUpdatedReply\022k\n\031EngineForkChoice" - "UpdatedV2\022(.remote.EngineForkChoiceUpdat" - "edRequestV2\032$.remote.EngineForkChoiceUpd" - "atedReply\022N\n\022EngineGetPayloadV1\022\037.remote" - ".EngineGetPayloadRequest\032\027.types.Executi" - "onPayload\022P\n\022EngineGetPayloadV2\022\037.remote" - ".EngineGetPayloadRequest\032\031.types.Executi" - "onPayloadV2\0226\n\007Version\022\026.google.protobuf" - ".Empty\032\023.types.VersionReply\022O\n\017ProtocolV" - "ersion\022\036.remote.ProtocolVersionRequest\032\034" - ".remote.ProtocolVersionReply\022I\n\rClientVe" - "rsion\022\034.remote.ClientVersionRequest\032\032.re" - "mote.ClientVersionReply\022\?\n\tSubscribe\022\030.r" - "emote.SubscribeRequest\032\026.remote.Subscrib" - "eReply0\001\022J\n\rSubscribeLogs\022\031.remote.LogsF" - "ilterRequest\032\032.remote.SubscribeLogsReply" - "(\0010\001\0221\n\005Block\022\024.remote.BlockRequest\032\022.re" - "mote.BlockReply\022=\n\tTxnLookup\022\030.remote.Tx" - "nLookupRequest\032\026.remote.TxnLookupReply\022<" - "\n\010NodeInfo\022\030.remote.NodesInfoRequest\032\026.r" - "emote.NodesInfoReply\0223\n\005Peers\022\026.google.p" - "rotobuf.Empty\032\022.remote.PeersReply\022A\n\014Pen" - "dingBlock\022\026.google.protobuf.Empty\032\031.remo" - "te.PendingBlockReplyB\021Z\017./remote;remoteb" - "\006proto3" + "Request\022\021\n\tpayloadId\030\001 \001(\004\"0\n\033EngineGetB" + "lobsBundleRequest\022\021\n\tpayloadId\030\001 \001(\004\"z\n\023" + "EnginePayloadStatus\022$\n\006status\030\001 \001(\0162\024.re" + "mote.EngineStatus\022$\n\017latestValidHash\030\002 \001" + "(\0132\013.types.H256\022\027\n\017validationError\030\003 \001(\t" + "\"\262\001\n\027EnginePayloadAttributes\022\017\n\007version\030" + "\001 \001(\r\022\021\n\ttimestamp\030\002 \001(\004\022\037\n\nprevRandao\030\003" + " \001(\0132\013.types.H256\022*\n\025suggestedFeeRecipie" + "nt\030\004 \001(\0132\013.types.H160\022&\n\013withdrawals\030\005 \003" + "(\0132\021.types.Withdrawal\"\210\001\n\025EngineForkChoi" + "ceState\022\"\n\rheadBlockHash\030\001 \001(\0132\013.types.H" + "256\022\"\n\rsafeBlockHash\030\002 \001(\0132\013.types.H256\022" + "\'\n\022finalizedBlockHash\030\003 \001(\0132\013.types.H256" + "\"\224\001\n\036EngineForkChoiceUpdatedRequest\0226\n\017f" + "orkchoiceState\030\001 \001(\0132\035.remote.EngineFork" + "ChoiceState\022:\n\021payloadAttributes\030\002 \001(\0132\037" + ".remote.EnginePayloadAttributes\"h\n\037Engin" + "eForkChoiceUpdatedResponse\0222\n\rpayloadSta" + "tus\030\001 \001(\0132\033.remote.EnginePayloadStatus\022\021" + "\n\tpayloadId\030\002 \001(\004\"n\n\030EngineGetPayloadRes" + "ponse\0221\n\020executionPayload\030\001 \001(\0132\027.types." + "ExecutionPayload\022\037\n\nblockValue\030\002 \001(\0132\013.t" + "ypes.H256\"\030\n\026ProtocolVersionRequest\"\"\n\024P" + "rotocolVersionReply\022\n\n\002id\030\001 \001(\004\"\026\n\024Clien" + "tVersionRequest\"&\n\022ClientVersionReply\022\020\n" + "\010nodeName\030\001 \001(\t\"/\n\020SubscribeRequest\022\033\n\004t" + "ype\030\001 \001(\0162\r.remote.Event\";\n\016SubscribeRep" + "ly\022\033\n\004type\030\001 \001(\0162\r.remote.Event\022\014\n\004data\030" + "\002 \001(\014\"y\n\021LogsFilterRequest\022\024\n\014allAddress" + "es\030\001 \001(\010\022\036\n\taddresses\030\002 \003(\0132\013.types.H160" + "\022\021\n\tallTopics\030\003 \001(\010\022\033\n\006topics\030\004 \003(\0132\013.ty" + "pes.H256\"\365\001\n\022SubscribeLogsReply\022\034\n\007addre" + "ss\030\001 \001(\0132\013.types.H160\022\036\n\tblockHash\030\002 \001(\013" + "2\013.types.H256\022\023\n\013blockNumber\030\003 \001(\004\022\014\n\004da" + "ta\030\004 \001(\014\022\020\n\010logIndex\030\005 \001(\004\022\033\n\006topics\030\006 \003" + "(\0132\013.types.H256\022$\n\017transactionHash\030\007 \001(\013" + "2\013.types.H256\022\030\n\020transactionIndex\030\010 \001(\004\022" + "\017\n\007removed\030\t \001(\010\"C\n\014BlockRequest\022\023\n\013bloc" + "kHeight\030\002 \001(\004\022\036\n\tblockHash\030\003 \001(\0132\013.types" + ".H256\"/\n\nBlockReply\022\020\n\010blockRlp\030\001 \001(\014\022\017\n" + "\007senders\030\002 \001(\014\"0\n\020TxnLookupRequest\022\034\n\007tx" + "nHash\030\001 \001(\0132\013.types.H256\"%\n\016TxnLookupRep" + "ly\022\023\n\013blockNumber\030\001 \001(\004\"!\n\020NodesInfoRequ" + "est\022\r\n\005limit\030\001 \001(\r\"9\n\016NodesInfoReply\022\'\n\t" + "nodesInfo\030\001 \003(\0132\024.types.NodeInfoReply\",\n" + "\nPeersReply\022\036\n\005peers\030\001 \003(\0132\017.types.PeerI" + "nfo\"%\n\021PendingBlockReply\022\020\n\010blockRlp\030\001 \001" + "(\014\"D\n%EngineGetPayloadBodiesByHashV1Requ" + "est\022\033\n\006hashes\030\001 \003(\0132\013.types.H256\"F\n&Engi" + "neGetPayloadBodiesByRangeV1Request\022\r\n\005st" + "art\030\001 \001(\004\022\r\n\005count\030\002 \001(\004\"Q\n EngineGetPay" + "loadBodiesV1Response\022-\n\006bodies\030\001 \003(\0132\035.t" + "ypes.ExecutionPayloadBodyV1*J\n\005Event\022\n\n\006" + "HEADER\020\000\022\020\n\014PENDING_LOGS\020\001\022\021\n\rPENDING_BL" + "OCK\020\002\022\020\n\014NEW_SNAPSHOT\020\003*Y\n\014EngineStatus\022" + "\t\n\005VALID\020\000\022\013\n\007INVALID\020\001\022\013\n\007SYNCING\020\002\022\014\n\010" + "ACCEPTED\020\003\022\026\n\022INVALID_BLOCK_HASH\020\0042\270\013\n\nE" + "THBACKEND\022=\n\tEtherbase\022\030.remote.Etherbas" + "eRequest\032\026.remote.EtherbaseReply\022@\n\nNetV" + "ersion\022\031.remote.NetVersionRequest\032\027.remo" + "te.NetVersionReply\022F\n\014NetPeerCount\022\033.rem" + "ote.NetPeerCountRequest\032\031.remote.NetPeer" + "CountReply\022H\n\020EngineNewPayload\022\027.types.E" + "xecutionPayload\032\033.remote.EnginePayloadSt" + "atus\022j\n\027EngineForkChoiceUpdated\022&.remote" + ".EngineForkChoiceUpdatedRequest\032\'.remote" + ".EngineForkChoiceUpdatedResponse\022U\n\020Engi" + "neGetPayload\022\037.remote.EngineGetPayloadRe" + "quest\032 .remote.EngineGetPayloadResponse\022" + "y\n\036EngineGetPayloadBodiesByHashV1\022-.remo" + "te.EngineGetPayloadBodiesByHashV1Request" + "\032(.remote.EngineGetPayloadBodiesV1Respon" + "se\022{\n\037EngineGetPayloadBodiesByRangeV1\022.." + "remote.EngineGetPayloadBodiesByRangeV1Re" + "quest\032(.remote.EngineGetPayloadBodiesV1R" + "esponse\022S\n\026EngineGetBlobsBundleV1\022#.remo" + "te.EngineGetBlobsBundleRequest\032\024.types.B" + "lobsBundleV1\0226\n\007Version\022\026.google.protobu" + "f.Empty\032\023.types.VersionReply\022O\n\017Protocol" + "Version\022\036.remote.ProtocolVersionRequest\032" + "\034.remote.ProtocolVersionReply\022I\n\rClientV" + "ersion\022\034.remote.ClientVersionRequest\032\032.r" + "emote.ClientVersionReply\022\?\n\tSubscribe\022\030." + "remote.SubscribeRequest\032\026.remote.Subscri" + "beReply0\001\022J\n\rSubscribeLogs\022\031.remote.Logs" + "FilterRequest\032\032.remote.SubscribeLogsRepl" + "y(\0010\001\0221\n\005Block\022\024.remote.BlockRequest\032\022.r" + "emote.BlockReply\022=\n\tTxnLookup\022\030.remote.T" + "xnLookupRequest\032\026.remote.TxnLookupReply\022" + "<\n\010NodeInfo\022\030.remote.NodesInfoRequest\032\026." + "remote.NodesInfoReply\0223\n\005Peers\022\026.google." + "protobuf.Empty\032\022.remote.PeersReply\022A\n\014Pe" + "ndingBlock\022\026.google.protobuf.Empty\032\031.rem" + "ote.PendingBlockReplyB\021Z\017./remote;remote" + "b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_remote_2fethbackend_2eproto_deps[2] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, &::descriptor_table_types_2ftypes_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_remote_2fethbackend_2eproto_sccs[30] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_remote_2fethbackend_2eproto_sccs[33] = { &scc_info_BlockReply_remote_2fethbackend_2eproto.base, &scc_info_BlockRequest_remote_2fethbackend_2eproto.base, &scc_info_ClientVersionReply_remote_2fethbackend_2eproto.base, &scc_info_ClientVersionRequest_remote_2fethbackend_2eproto.base, &scc_info_EngineForkChoiceState_remote_2fethbackend_2eproto.base, - &scc_info_EngineForkChoiceUpdatedReply_remote_2fethbackend_2eproto.base, &scc_info_EngineForkChoiceUpdatedRequest_remote_2fethbackend_2eproto.base, - &scc_info_EngineForkChoiceUpdatedRequestV2_remote_2fethbackend_2eproto.base, + &scc_info_EngineForkChoiceUpdatedResponse_remote_2fethbackend_2eproto.base, + &scc_info_EngineGetBlobsBundleRequest_remote_2fethbackend_2eproto.base, + &scc_info_EngineGetPayloadBodiesByHashV1Request_remote_2fethbackend_2eproto.base, + &scc_info_EngineGetPayloadBodiesByRangeV1Request_remote_2fethbackend_2eproto.base, + &scc_info_EngineGetPayloadBodiesV1Response_remote_2fethbackend_2eproto.base, &scc_info_EngineGetPayloadRequest_remote_2fethbackend_2eproto.base, + &scc_info_EngineGetPayloadResponse_remote_2fethbackend_2eproto.base, &scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto.base, - &scc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto.base, &scc_info_EnginePayloadStatus_remote_2fethbackend_2eproto.base, &scc_info_EtherbaseReply_remote_2fethbackend_2eproto.base, &scc_info_EtherbaseRequest_remote_2fethbackend_2eproto.base, @@ -962,10 +1050,10 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_rem }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_remote_2fethbackend_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_remote_2fethbackend_2eproto = { - false, false, descriptor_table_protodef_remote_2fethbackend_2eproto, "remote/ethbackend.proto", 3807, - &descriptor_table_remote_2fethbackend_2eproto_once, descriptor_table_remote_2fethbackend_2eproto_sccs, descriptor_table_remote_2fethbackend_2eproto_deps, 30, 2, + false, false, descriptor_table_protodef_remote_2fethbackend_2eproto, "remote/ethbackend.proto", 4048, + &descriptor_table_remote_2fethbackend_2eproto_once, descriptor_table_remote_2fethbackend_2eproto_sccs, descriptor_table_remote_2fethbackend_2eproto_deps, 33, 2, schemas, file_default_instances, TableStruct_remote_2fethbackend_2eproto::offsets, - file_level_metadata_remote_2fethbackend_2eproto, 30, file_level_enum_descriptors_remote_2fethbackend_2eproto, file_level_service_descriptors_remote_2fethbackend_2eproto, + file_level_metadata_remote_2fethbackend_2eproto, 33, file_level_enum_descriptors_remote_2fethbackend_2eproto, file_level_service_descriptors_remote_2fethbackend_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -2289,6 +2377,200 @@ ::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadRequest::GetMetadata() const { } +// =================================================================== + +class EngineGetBlobsBundleRequest::_Internal { + public: +}; + +EngineGetBlobsBundleRequest::EngineGetBlobsBundleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetBlobsBundleRequest) +} +EngineGetBlobsBundleRequest::EngineGetBlobsBundleRequest(const EngineGetBlobsBundleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + payloadid_ = from.payloadid_; + // @@protoc_insertion_point(copy_constructor:remote.EngineGetBlobsBundleRequest) +} + +void EngineGetBlobsBundleRequest::SharedCtor() { + payloadid_ = PROTOBUF_ULONGLONG(0); +} + +EngineGetBlobsBundleRequest::~EngineGetBlobsBundleRequest() { + // @@protoc_insertion_point(destructor:remote.EngineGetBlobsBundleRequest) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void EngineGetBlobsBundleRequest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void EngineGetBlobsBundleRequest::ArenaDtor(void* object) { + EngineGetBlobsBundleRequest* _this = reinterpret_cast< EngineGetBlobsBundleRequest* >(object); + (void)_this; +} +void EngineGetBlobsBundleRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void EngineGetBlobsBundleRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EngineGetBlobsBundleRequest& EngineGetBlobsBundleRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineGetBlobsBundleRequest_remote_2fethbackend_2eproto.base); + return *internal_default_instance(); +} + + +void EngineGetBlobsBundleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetBlobsBundleRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + payloadid_ = PROTOBUF_ULONGLONG(0); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EngineGetBlobsBundleRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 payloadId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + payloadid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EngineGetBlobsBundleRequest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetBlobsBundleRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 payloadId = 1; + if (this->payloadid() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_payloadid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetBlobsBundleRequest) + return target; +} + +size_t EngineGetBlobsBundleRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetBlobsBundleRequest) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 payloadId = 1; + if (this->payloadid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_payloadid()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EngineGetBlobsBundleRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineGetBlobsBundleRequest) + GOOGLE_DCHECK_NE(&from, this); + const EngineGetBlobsBundleRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineGetBlobsBundleRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineGetBlobsBundleRequest) + MergeFrom(*source); + } +} + +void EngineGetBlobsBundleRequest::MergeFrom(const EngineGetBlobsBundleRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetBlobsBundleRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.payloadid() != 0) { + _internal_set_payloadid(from._internal_payloadid()); + } +} + +void EngineGetBlobsBundleRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineGetBlobsBundleRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EngineGetBlobsBundleRequest::CopyFrom(const EngineGetBlobsBundleRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetBlobsBundleRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetBlobsBundleRequest::IsInitialized() const { + return true; +} + +void EngineGetBlobsBundleRequest::InternalSwap(EngineGetBlobsBundleRequest* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(payloadid_, other->payloadid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetBlobsBundleRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== class EnginePayloadStatus::_Internal { @@ -2605,14 +2887,19 @@ void EnginePayloadAttributes::clear_suggestedfeerecipient() { } suggestedfeerecipient_ = nullptr; } +void EnginePayloadAttributes::clear_withdrawals() { + withdrawals_.Clear(); +} EnginePayloadAttributes::EnginePayloadAttributes(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + withdrawals_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:remote.EnginePayloadAttributes) } EnginePayloadAttributes::EnginePayloadAttributes(const EnginePayloadAttributes& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { + : ::PROTOBUF_NAMESPACE_ID::Message(), + withdrawals_(from.withdrawals_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_prevrandao()) { prevrandao_ = new ::types::H256(*from.prevrandao_); @@ -2624,7 +2911,9 @@ EnginePayloadAttributes::EnginePayloadAttributes(const EnginePayloadAttributes& } else { suggestedfeerecipient_ = nullptr; } - timestamp_ = from.timestamp_; + ::memcpy(×tamp_, &from.timestamp_, + static_cast(reinterpret_cast(&version_) - + reinterpret_cast(×tamp_)) + sizeof(version_)); // @@protoc_insertion_point(copy_constructor:remote.EnginePayloadAttributes) } @@ -2632,8 +2921,8 @@ void EnginePayloadAttributes::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnginePayloadAttributes_remote_2fethbackend_2eproto.base); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&prevrandao_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(×tamp_) - - reinterpret_cast(&prevrandao_)) + sizeof(timestamp_)); + 0, static_cast(reinterpret_cast(&version_) - + reinterpret_cast(&prevrandao_)) + sizeof(version_)); } EnginePayloadAttributes::~EnginePayloadAttributes() { @@ -2669,6 +2958,7 @@ void EnginePayloadAttributes::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + withdrawals_.Clear(); if (GetArena() == nullptr && prevrandao_ != nullptr) { delete prevrandao_; } @@ -2677,7 +2967,9 @@ void EnginePayloadAttributes::Clear() { delete suggestedfeerecipient_; } suggestedfeerecipient_ = nullptr; - timestamp_ = PROTOBUF_ULONGLONG(0); + ::memset(×tamp_, 0, static_cast( + reinterpret_cast(&version_) - + reinterpret_cast(×tamp_)) + sizeof(version_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2688,31 +2980,50 @@ const char* EnginePayloadAttributes::_InternalParse(const char* ptr, ::PROTOBUF_ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 timestamp = 1; + // uint32 version = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 prevRandao = 2; + // uint64 timestamp = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H160 suggestedFeeRecipient = 3; + // .types.H256 prevRandao = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .types.H160 suggestedFeeRecipient = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_suggestedfeerecipient(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + // repeated .types.Withdrawal withdrawals = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, @@ -2737,26 +3048,40 @@ ::PROTOBUF_NAMESPACE_ID::uint8* EnginePayloadAttributes::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 timestamp = 1; + // uint32 version = 1; + if (this->version() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_version(), target); + } + + // uint64 timestamp = 2; if (this->timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_timestamp(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_timestamp(), target); } - // .types.H256 prevRandao = 2; + // .types.H256 prevRandao = 3; if (this->has_prevrandao()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 2, _Internal::prevrandao(this), target, stream); + 3, _Internal::prevrandao(this), target, stream); } - // .types.H160 suggestedFeeRecipient = 3; + // .types.H160 suggestedFeeRecipient = 4; if (this->has_suggestedfeerecipient()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 3, _Internal::suggestedfeerecipient(this), target, stream); + 4, _Internal::suggestedfeerecipient(this), target, stream); + } + + // repeated .types.Withdrawal withdrawals = 5; + for (unsigned int i = 0, + n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, this->_internal_withdrawals(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2775,27 +3100,41 @@ size_t EnginePayloadAttributes::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .types.H256 prevRandao = 2; + // repeated .types.Withdrawal withdrawals = 5; + total_size += 1UL * this->_internal_withdrawals_size(); + for (const auto& msg : this->withdrawals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .types.H256 prevRandao = 3; if (this->has_prevrandao()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *prevrandao_); } - // .types.H160 suggestedFeeRecipient = 3; + // .types.H160 suggestedFeeRecipient = 4; if (this->has_suggestedfeerecipient()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *suggestedfeerecipient_); } - // uint64 timestamp = 1; + // uint64 timestamp = 2; if (this->timestamp() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_timestamp()); } + // uint32 version = 1; + if (this->version() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_version()); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -2827,6 +3166,7 @@ void EnginePayloadAttributes::MergeFrom(const EnginePayloadAttributes& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + withdrawals_.MergeFrom(from.withdrawals_); if (from.has_prevrandao()) { _internal_mutable_prevrandao()->::types::H256::MergeFrom(from._internal_prevrandao()); } @@ -2836,6 +3176,9 @@ void EnginePayloadAttributes::MergeFrom(const EnginePayloadAttributes& from) { if (from.timestamp() != 0) { _internal_set_timestamp(from._internal_timestamp()); } + if (from.version() != 0) { + _internal_set_version(from._internal_version()); + } } void EnginePayloadAttributes::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -2859,9 +3202,10 @@ bool EnginePayloadAttributes::IsInitialized() const { void EnginePayloadAttributes::InternalSwap(EnginePayloadAttributes* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + withdrawals_.InternalSwap(&other->withdrawals_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EnginePayloadAttributes, timestamp_) - + sizeof(EnginePayloadAttributes::timestamp_) + PROTOBUF_FIELD_OFFSET(EnginePayloadAttributes, version_) + + sizeof(EnginePayloadAttributes::version_) - PROTOBUF_FIELD_OFFSET(EnginePayloadAttributes, prevrandao_)>( reinterpret_cast(&prevrandao_), reinterpret_cast(&other->prevrandao_)); @@ -3448,106 +3792,100 @@ ::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedRequest::GetMetadata() // =================================================================== -class EnginePayloadAttributesV2::_Internal { +class EngineForkChoiceUpdatedResponse::_Internal { public: - static const ::remote::EnginePayloadAttributes& attributes(const EnginePayloadAttributesV2* msg); + static const ::remote::EnginePayloadStatus& payloadstatus(const EngineForkChoiceUpdatedResponse* msg); }; -const ::remote::EnginePayloadAttributes& -EnginePayloadAttributesV2::_Internal::attributes(const EnginePayloadAttributesV2* msg) { - return *msg->attributes_; -} -void EnginePayloadAttributesV2::clear_withdrawals() { - withdrawals_.Clear(); +const ::remote::EnginePayloadStatus& +EngineForkChoiceUpdatedResponse::_Internal::payloadstatus(const EngineForkChoiceUpdatedResponse* msg) { + return *msg->payloadstatus_; } -EnginePayloadAttributesV2::EnginePayloadAttributesV2(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - withdrawals_(arena) { +EngineForkChoiceUpdatedResponse::EngineForkChoiceUpdatedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(arena_constructor:remote.EngineForkChoiceUpdatedResponse) } -EnginePayloadAttributesV2::EnginePayloadAttributesV2(const EnginePayloadAttributesV2& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - withdrawals_(from.withdrawals_) { +EngineForkChoiceUpdatedResponse::EngineForkChoiceUpdatedResponse(const EngineForkChoiceUpdatedResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_attributes()) { - attributes_ = new ::remote::EnginePayloadAttributes(*from.attributes_); + if (from._internal_has_payloadstatus()) { + payloadstatus_ = new ::remote::EnginePayloadStatus(*from.payloadstatus_); } else { - attributes_ = nullptr; + payloadstatus_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:remote.EnginePayloadAttributesV2) + payloadid_ = from.payloadid_; + // @@protoc_insertion_point(copy_constructor:remote.EngineForkChoiceUpdatedResponse) } -void EnginePayloadAttributesV2::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto.base); - attributes_ = nullptr; +void EngineForkChoiceUpdatedResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EngineForkChoiceUpdatedResponse_remote_2fethbackend_2eproto.base); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&payloadstatus_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&payloadid_) - + reinterpret_cast(&payloadstatus_)) + sizeof(payloadid_)); } -EnginePayloadAttributesV2::~EnginePayloadAttributesV2() { - // @@protoc_insertion_point(destructor:remote.EnginePayloadAttributesV2) +EngineForkChoiceUpdatedResponse::~EngineForkChoiceUpdatedResponse() { + // @@protoc_insertion_point(destructor:remote.EngineForkChoiceUpdatedResponse) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void EnginePayloadAttributesV2::SharedDtor() { +void EngineForkChoiceUpdatedResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete attributes_; + if (this != internal_default_instance()) delete payloadstatus_; } -void EnginePayloadAttributesV2::ArenaDtor(void* object) { - EnginePayloadAttributesV2* _this = reinterpret_cast< EnginePayloadAttributesV2* >(object); +void EngineForkChoiceUpdatedResponse::ArenaDtor(void* object) { + EngineForkChoiceUpdatedResponse* _this = reinterpret_cast< EngineForkChoiceUpdatedResponse* >(object); (void)_this; } -void EnginePayloadAttributesV2::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void EngineForkChoiceUpdatedResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void EnginePayloadAttributesV2::SetCachedSize(int size) const { +void EngineForkChoiceUpdatedResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const EnginePayloadAttributesV2& EnginePayloadAttributesV2::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnginePayloadAttributesV2_remote_2fethbackend_2eproto.base); +const EngineForkChoiceUpdatedResponse& EngineForkChoiceUpdatedResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineForkChoiceUpdatedResponse_remote_2fethbackend_2eproto.base); return *internal_default_instance(); } -void EnginePayloadAttributesV2::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineForkChoiceUpdatedResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - withdrawals_.Clear(); - if (GetArena() == nullptr && attributes_ != nullptr) { - delete attributes_; + if (GetArena() == nullptr && payloadstatus_ != nullptr) { + delete payloadstatus_; } - attributes_ = nullptr; + payloadstatus_ = nullptr; + payloadid_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EnginePayloadAttributesV2::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* EngineForkChoiceUpdatedResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .remote.EnginePayloadAttributes attributes = 1; + // .remote.EnginePayloadStatus payloadStatus = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_attributes(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_payloadstatus(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // repeated .types.Withdrawal withdrawals = 2; + // uint64 payloadId = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + payloadid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); } else goto handle_unusual; continue; default: { @@ -3572,56 +3910,54 @@ const char* EnginePayloadAttributesV2::_InternalParse(const char* ptr, ::PROTOBU #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* EnginePayloadAttributesV2::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* EngineForkChoiceUpdatedResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineForkChoiceUpdatedResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .remote.EnginePayloadAttributes attributes = 1; - if (this->has_attributes()) { + // .remote.EnginePayloadStatus payloadStatus = 1; + if (this->has_payloadstatus()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 1, _Internal::attributes(this), target, stream); + 1, _Internal::payloadstatus(this), target, stream); } - // repeated .types.Withdrawal withdrawals = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { + // uint64 payloadId = 2; + if (this->payloadid() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_withdrawals(i), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_payloadid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineForkChoiceUpdatedResponse) return target; } -size_t EnginePayloadAttributesV2::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.EnginePayloadAttributesV2) +size_t EngineForkChoiceUpdatedResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineForkChoiceUpdatedResponse) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .types.Withdrawal withdrawals = 2; - total_size += 1UL * this->_internal_withdrawals_size(); - for (const auto& msg : this->withdrawals_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // .remote.EnginePayloadStatus payloadStatus = 1; + if (this->has_payloadstatus()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *payloadstatus_); } - // .remote.EnginePayloadAttributes attributes = 1; - if (this->has_attributes()) { + // uint64 payloadId = 2; + if (this->payloadid() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *attributes_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_payloadid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3633,172 +3969,190 @@ size_t EnginePayloadAttributesV2::ByteSizeLong() const { return total_size; } -void EnginePayloadAttributesV2::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineForkChoiceUpdatedResponse) GOOGLE_DCHECK_NE(&from, this); - const EnginePayloadAttributesV2* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const EngineForkChoiceUpdatedResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineForkChoiceUpdatedResponse) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineForkChoiceUpdatedResponse) MergeFrom(*source); } } -void EnginePayloadAttributesV2::MergeFrom(const EnginePayloadAttributesV2& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::MergeFrom(const EngineForkChoiceUpdatedResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineForkChoiceUpdatedResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - withdrawals_.MergeFrom(from.withdrawals_); - if (from.has_attributes()) { - _internal_mutable_attributes()->::remote::EnginePayloadAttributes::MergeFrom(from._internal_attributes()); + if (from.has_payloadstatus()) { + _internal_mutable_payloadstatus()->::remote::EnginePayloadStatus::MergeFrom(from._internal_payloadstatus()); + } + if (from.payloadid() != 0) { + _internal_set_payloadid(from._internal_payloadid()); } } -void EnginePayloadAttributesV2::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineForkChoiceUpdatedResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void EnginePayloadAttributesV2::CopyFrom(const EnginePayloadAttributesV2& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::CopyFrom(const EngineForkChoiceUpdatedResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineForkChoiceUpdatedResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool EnginePayloadAttributesV2::IsInitialized() const { +bool EngineForkChoiceUpdatedResponse::IsInitialized() const { return true; } -void EnginePayloadAttributesV2::InternalSwap(EnginePayloadAttributesV2* other) { +void EngineForkChoiceUpdatedResponse::InternalSwap(EngineForkChoiceUpdatedResponse* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - withdrawals_.InternalSwap(&other->withdrawals_); - swap(attributes_, other->attributes_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedResponse, payloadid_) + + sizeof(EngineForkChoiceUpdatedResponse::payloadid_) + - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedResponse, payloadstatus_)>( + reinterpret_cast(&payloadstatus_), + reinterpret_cast(&other->payloadstatus_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EnginePayloadAttributesV2::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedResponse::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class EngineForkChoiceUpdatedRequestV2::_Internal { +class EngineGetPayloadResponse::_Internal { public: - static const ::remote::EngineForkChoiceState& forkchoicestate(const EngineForkChoiceUpdatedRequestV2* msg); - static const ::remote::EnginePayloadAttributesV2& payloadattributes(const EngineForkChoiceUpdatedRequestV2* msg); + static const ::types::ExecutionPayload& executionpayload(const EngineGetPayloadResponse* msg); + static const ::types::H256& blockvalue(const EngineGetPayloadResponse* msg); }; -const ::remote::EngineForkChoiceState& -EngineForkChoiceUpdatedRequestV2::_Internal::forkchoicestate(const EngineForkChoiceUpdatedRequestV2* msg) { - return *msg->forkchoicestate_; +const ::types::ExecutionPayload& +EngineGetPayloadResponse::_Internal::executionpayload(const EngineGetPayloadResponse* msg) { + return *msg->executionpayload_; } -const ::remote::EnginePayloadAttributesV2& -EngineForkChoiceUpdatedRequestV2::_Internal::payloadattributes(const EngineForkChoiceUpdatedRequestV2* msg) { - return *msg->payloadattributes_; +const ::types::H256& +EngineGetPayloadResponse::_Internal::blockvalue(const EngineGetPayloadResponse* msg) { + return *msg->blockvalue_; +} +void EngineGetPayloadResponse::clear_executionpayload() { + if (GetArena() == nullptr && executionpayload_ != nullptr) { + delete executionpayload_; + } + executionpayload_ = nullptr; +} +void EngineGetPayloadResponse::clear_blockvalue() { + if (GetArena() == nullptr && blockvalue_ != nullptr) { + delete blockvalue_; + } + blockvalue_ = nullptr; } -EngineForkChoiceUpdatedRequestV2::EngineForkChoiceUpdatedRequestV2(::PROTOBUF_NAMESPACE_ID::Arena* arena) +EngineGetPayloadResponse::EngineGetPayloadResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadResponse) } -EngineForkChoiceUpdatedRequestV2::EngineForkChoiceUpdatedRequestV2(const EngineForkChoiceUpdatedRequestV2& from) +EngineGetPayloadResponse::EngineGetPayloadResponse(const EngineGetPayloadResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_forkchoicestate()) { - forkchoicestate_ = new ::remote::EngineForkChoiceState(*from.forkchoicestate_); + if (from._internal_has_executionpayload()) { + executionpayload_ = new ::types::ExecutionPayload(*from.executionpayload_); } else { - forkchoicestate_ = nullptr; + executionpayload_ = nullptr; } - if (from._internal_has_payloadattributes()) { - payloadattributes_ = new ::remote::EnginePayloadAttributesV2(*from.payloadattributes_); + if (from._internal_has_blockvalue()) { + blockvalue_ = new ::types::H256(*from.blockvalue_); } else { - payloadattributes_ = nullptr; + blockvalue_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadResponse) } -void EngineForkChoiceUpdatedRequestV2::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EngineForkChoiceUpdatedRequestV2_remote_2fethbackend_2eproto.base); +void EngineGetPayloadResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EngineGetPayloadResponse_remote_2fethbackend_2eproto.base); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&forkchoicestate_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&payloadattributes_) - - reinterpret_cast(&forkchoicestate_)) + sizeof(payloadattributes_)); + reinterpret_cast(&executionpayload_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&blockvalue_) - + reinterpret_cast(&executionpayload_)) + sizeof(blockvalue_)); } -EngineForkChoiceUpdatedRequestV2::~EngineForkChoiceUpdatedRequestV2() { - // @@protoc_insertion_point(destructor:remote.EngineForkChoiceUpdatedRequestV2) +EngineGetPayloadResponse::~EngineGetPayloadResponse() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadResponse) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void EngineForkChoiceUpdatedRequestV2::SharedDtor() { +void EngineGetPayloadResponse::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete forkchoicestate_; - if (this != internal_default_instance()) delete payloadattributes_; + if (this != internal_default_instance()) delete executionpayload_; + if (this != internal_default_instance()) delete blockvalue_; } -void EngineForkChoiceUpdatedRequestV2::ArenaDtor(void* object) { - EngineForkChoiceUpdatedRequestV2* _this = reinterpret_cast< EngineForkChoiceUpdatedRequestV2* >(object); +void EngineGetPayloadResponse::ArenaDtor(void* object) { + EngineGetPayloadResponse* _this = reinterpret_cast< EngineGetPayloadResponse* >(object); (void)_this; } -void EngineForkChoiceUpdatedRequestV2::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void EngineGetPayloadResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void EngineForkChoiceUpdatedRequestV2::SetCachedSize(int size) const { +void EngineGetPayloadResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const EngineForkChoiceUpdatedRequestV2& EngineForkChoiceUpdatedRequestV2::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineForkChoiceUpdatedRequestV2_remote_2fethbackend_2eproto.base); +const EngineGetPayloadResponse& EngineGetPayloadResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineGetPayloadResponse_remote_2fethbackend_2eproto.base); return *internal_default_instance(); } -void EngineForkChoiceUpdatedRequestV2::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && forkchoicestate_ != nullptr) { - delete forkchoicestate_; + if (GetArena() == nullptr && executionpayload_ != nullptr) { + delete executionpayload_; } - forkchoicestate_ = nullptr; - if (GetArena() == nullptr && payloadattributes_ != nullptr) { - delete payloadattributes_; + executionpayload_ = nullptr; + if (GetArena() == nullptr && blockvalue_ != nullptr) { + delete blockvalue_; } - payloadattributes_ = nullptr; + blockvalue_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EngineForkChoiceUpdatedRequestV2::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* EngineGetPayloadResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .remote.EngineForkChoiceState forkchoiceState = 1; + // .types.ExecutionPayload executionPayload = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_forkchoicestate(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_executionpayload(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; + // .types.H256 blockValue = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_payloadattributes(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_blockvalue(), ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -3824,56 +4178,56 @@ const char* EngineForkChoiceUpdatedRequestV2::_InternalParse(const char* ptr, :: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* EngineForkChoiceUpdatedRequestV2::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* EngineGetPayloadResponse::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadResponse) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .remote.EngineForkChoiceState forkchoiceState = 1; - if (this->has_forkchoicestate()) { + // .types.ExecutionPayload executionPayload = 1; + if (this->has_executionpayload()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 1, _Internal::forkchoicestate(this), target, stream); + 1, _Internal::executionpayload(this), target, stream); } - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; - if (this->has_payloadattributes()) { + // .types.H256 blockValue = 2; + if (this->has_blockvalue()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 2, _Internal::payloadattributes(this), target, stream); + 2, _Internal::blockvalue(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadResponse) return target; } -size_t EngineForkChoiceUpdatedRequestV2::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.EngineForkChoiceUpdatedRequestV2) +size_t EngineGetPayloadResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadResponse) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .remote.EngineForkChoiceState forkchoiceState = 1; - if (this->has_forkchoicestate()) { + // .types.ExecutionPayload executionPayload = 1; + if (this->has_executionpayload()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *forkchoicestate_); + *executionpayload_); } - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; - if (this->has_payloadattributes()) { + // .types.H256 blockValue = 2; + if (this->has_blockvalue()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payloadattributes_); + *blockvalue_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3885,170 +4239,131 @@ size_t EngineForkChoiceUpdatedRequestV2::ByteSizeLong() const { return total_size; } -void EngineForkChoiceUpdatedRequestV2::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineGetPayloadResponse) GOOGLE_DCHECK_NE(&from, this); - const EngineForkChoiceUpdatedRequestV2* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const EngineGetPayloadResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineGetPayloadResponse) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineGetPayloadResponse) MergeFrom(*source); } } -void EngineForkChoiceUpdatedRequestV2::MergeFrom(const EngineForkChoiceUpdatedRequestV2& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::MergeFrom(const EngineGetPayloadResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_forkchoicestate()) { - _internal_mutable_forkchoicestate()->::remote::EngineForkChoiceState::MergeFrom(from._internal_forkchoicestate()); + if (from.has_executionpayload()) { + _internal_mutable_executionpayload()->::types::ExecutionPayload::MergeFrom(from._internal_executionpayload()); } - if (from.has_payloadattributes()) { - _internal_mutable_payloadattributes()->::remote::EnginePayloadAttributesV2::MergeFrom(from._internal_payloadattributes()); + if (from.has_blockvalue()) { + _internal_mutable_blockvalue()->::types::H256::MergeFrom(from._internal_blockvalue()); } } -void EngineForkChoiceUpdatedRequestV2::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineGetPayloadResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void EngineForkChoiceUpdatedRequestV2::CopyFrom(const EngineForkChoiceUpdatedRequestV2& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::CopyFrom(const EngineGetPayloadResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool EngineForkChoiceUpdatedRequestV2::IsInitialized() const { +bool EngineGetPayloadResponse::IsInitialized() const { return true; } -void EngineForkChoiceUpdatedRequestV2::InternalSwap(EngineForkChoiceUpdatedRequestV2* other) { +void EngineGetPayloadResponse::InternalSwap(EngineGetPayloadResponse* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedRequestV2, payloadattributes_) - + sizeof(EngineForkChoiceUpdatedRequestV2::payloadattributes_) - - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedRequestV2, forkchoicestate_)>( - reinterpret_cast(&forkchoicestate_), - reinterpret_cast(&other->forkchoicestate_)); + PROTOBUF_FIELD_OFFSET(EngineGetPayloadResponse, blockvalue_) + + sizeof(EngineGetPayloadResponse::blockvalue_) + - PROTOBUF_FIELD_OFFSET(EngineGetPayloadResponse, executionpayload_)>( + reinterpret_cast(&executionpayload_), + reinterpret_cast(&other->executionpayload_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedRequestV2::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadResponse::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class EngineForkChoiceUpdatedReply::_Internal { +class ProtocolVersionRequest::_Internal { public: - static const ::remote::EnginePayloadStatus& payloadstatus(const EngineForkChoiceUpdatedReply* msg); }; -const ::remote::EnginePayloadStatus& -EngineForkChoiceUpdatedReply::_Internal::payloadstatus(const EngineForkChoiceUpdatedReply* msg) { - return *msg->payloadstatus_; -} -EngineForkChoiceUpdatedReply::EngineForkChoiceUpdatedReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) +ProtocolVersionRequest::ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(arena_constructor:remote.ProtocolVersionRequest) } -EngineForkChoiceUpdatedReply::EngineForkChoiceUpdatedReply(const EngineForkChoiceUpdatedReply& from) +ProtocolVersionRequest::ProtocolVersionRequest(const ProtocolVersionRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_payloadstatus()) { - payloadstatus_ = new ::remote::EnginePayloadStatus(*from.payloadstatus_); - } else { - payloadstatus_ = nullptr; - } - payloadid_ = from.payloadid_; - // @@protoc_insertion_point(copy_constructor:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(copy_constructor:remote.ProtocolVersionRequest) } -void EngineForkChoiceUpdatedReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EngineForkChoiceUpdatedReply_remote_2fethbackend_2eproto.base); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&payloadstatus_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&payloadid_) - - reinterpret_cast(&payloadstatus_)) + sizeof(payloadid_)); +void ProtocolVersionRequest::SharedCtor() { } -EngineForkChoiceUpdatedReply::~EngineForkChoiceUpdatedReply() { - // @@protoc_insertion_point(destructor:remote.EngineForkChoiceUpdatedReply) +ProtocolVersionRequest::~ProtocolVersionRequest() { + // @@protoc_insertion_point(destructor:remote.ProtocolVersionRequest) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void EngineForkChoiceUpdatedReply::SharedDtor() { +void ProtocolVersionRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete payloadstatus_; } -void EngineForkChoiceUpdatedReply::ArenaDtor(void* object) { - EngineForkChoiceUpdatedReply* _this = reinterpret_cast< EngineForkChoiceUpdatedReply* >(object); +void ProtocolVersionRequest::ArenaDtor(void* object) { + ProtocolVersionRequest* _this = reinterpret_cast< ProtocolVersionRequest* >(object); (void)_this; } -void EngineForkChoiceUpdatedReply::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ProtocolVersionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void EngineForkChoiceUpdatedReply::SetCachedSize(int size) const { +void ProtocolVersionRequest::SetCachedSize(int size) const { _cached_size_.Set(size); } -const EngineForkChoiceUpdatedReply& EngineForkChoiceUpdatedReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineForkChoiceUpdatedReply_remote_2fethbackend_2eproto.base); +const ProtocolVersionRequest& ProtocolVersionRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProtocolVersionRequest_remote_2fethbackend_2eproto.base); return *internal_default_instance(); } -void EngineForkChoiceUpdatedReply::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.EngineForkChoiceUpdatedReply) +void ProtocolVersionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.ProtocolVersionRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && payloadstatus_ != nullptr) { - delete payloadstatus_; - } - payloadstatus_ = nullptr; - payloadid_ = PROTOBUF_ULONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EngineForkChoiceUpdatedReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ProtocolVersionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); - switch (tag >> 3) { - // .remote.EnginePayloadStatus payloadStatus = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_payloadstatus(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 payloadId = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - payloadid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; @@ -4058,8 +4373,6 @@ const char* EngineForkChoiceUpdatedReply::_InternalParse(const char* ptr, ::PROT ptr, ctx); CHK_(ptr != nullptr); continue; - } - } // switch } // while success: return ptr; @@ -4069,56 +4382,28 @@ const char* EngineForkChoiceUpdatedReply::_InternalParse(const char* ptr, ::PROT #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* EngineForkChoiceUpdatedReply::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ProtocolVersionRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(serialize_to_array_start:remote.ProtocolVersionRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .remote.EnginePayloadStatus payloadStatus = 1; - if (this->has_payloadstatus()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::payloadstatus(this), target, stream); - } - - // uint64 payloadId = 2; - if (this->payloadid() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_payloadid(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(serialize_to_array_end:remote.ProtocolVersionRequest) return target; } -size_t EngineForkChoiceUpdatedReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.EngineForkChoiceUpdatedReply) +size_t ProtocolVersionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.ProtocolVersionRequest) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .remote.EnginePayloadStatus payloadStatus = 1; - if (this->has_payloadstatus()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payloadstatus_); - } - - // uint64 payloadId = 2; - if (this->payloadid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_payloadid()); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -4128,213 +4413,39 @@ size_t EngineForkChoiceUpdatedReply::ByteSizeLong() const { return total_size; } -void EngineForkChoiceUpdatedReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineForkChoiceUpdatedReply) +void ProtocolVersionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.ProtocolVersionRequest) GOOGLE_DCHECK_NE(&from, this); - const EngineForkChoiceUpdatedReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const ProtocolVersionRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.ProtocolVersionRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.ProtocolVersionRequest) MergeFrom(*source); } } -void EngineForkChoiceUpdatedReply::MergeFrom(const EngineForkChoiceUpdatedReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineForkChoiceUpdatedReply) +void ProtocolVersionRequest::MergeFrom(const ProtocolVersionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.ProtocolVersionRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.has_payloadstatus()) { - _internal_mutable_payloadstatus()->::remote::EnginePayloadStatus::MergeFrom(from._internal_payloadstatus()); - } - if (from.payloadid() != 0) { - _internal_set_payloadid(from._internal_payloadid()); - } } -void EngineForkChoiceUpdatedReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineForkChoiceUpdatedReply) +void ProtocolVersionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.ProtocolVersionRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void EngineForkChoiceUpdatedReply::CopyFrom(const EngineForkChoiceUpdatedReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineForkChoiceUpdatedReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EngineForkChoiceUpdatedReply::IsInitialized() const { - return true; -} - -void EngineForkChoiceUpdatedReply::InternalSwap(EngineForkChoiceUpdatedReply* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedReply, payloadid_) - + sizeof(EngineForkChoiceUpdatedReply::payloadid_) - - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedReply, payloadstatus_)>( - reinterpret_cast(&payloadstatus_), - reinterpret_cast(&other->payloadstatus_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedReply::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -class ProtocolVersionRequest::_Internal { - public: -}; - -ProtocolVersionRequest::ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.ProtocolVersionRequest) -} -ProtocolVersionRequest::ProtocolVersionRequest(const ProtocolVersionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:remote.ProtocolVersionRequest) -} - -void ProtocolVersionRequest::SharedCtor() { -} - -ProtocolVersionRequest::~ProtocolVersionRequest() { - // @@protoc_insertion_point(destructor:remote.ProtocolVersionRequest) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ProtocolVersionRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void ProtocolVersionRequest::ArenaDtor(void* object) { - ProtocolVersionRequest* _this = reinterpret_cast< ProtocolVersionRequest* >(object); - (void)_this; -} -void ProtocolVersionRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ProtocolVersionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProtocolVersionRequest& ProtocolVersionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProtocolVersionRequest_remote_2fethbackend_2eproto.base); - return *internal_default_instance(); -} - - -void ProtocolVersionRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.ProtocolVersionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ProtocolVersionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ProtocolVersionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.ProtocolVersionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:remote.ProtocolVersionRequest) - return target; -} - -size_t ProtocolVersionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.ProtocolVersionRequest) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProtocolVersionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.ProtocolVersionRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProtocolVersionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.ProtocolVersionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.ProtocolVersionRequest) - MergeFrom(*source); - } -} - -void ProtocolVersionRequest::MergeFrom(const ProtocolVersionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.ProtocolVersionRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ProtocolVersionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.ProtocolVersionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProtocolVersionRequest::CopyFrom(const ProtocolVersionRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.ProtocolVersionRequest) +void ProtocolVersionRequest::CopyFrom(const ProtocolVersionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.ProtocolVersionRequest) if (&from == this) return; Clear(); MergeFrom(from); @@ -7810,53 +7921,688 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PendingBlockReply::GetMetadata() const { } -// @@protoc_insertion_point(namespace_scope) -} // namespace remote -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::remote::EtherbaseRequest* Arena::CreateMaybeMessage< ::remote::EtherbaseRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EtherbaseRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::remote::EtherbaseReply* Arena::CreateMaybeMessage< ::remote::EtherbaseReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EtherbaseReply >(arena); -} -template<> PROTOBUF_NOINLINE ::remote::NetVersionRequest* Arena::CreateMaybeMessage< ::remote::NetVersionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetVersionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::remote::NetVersionReply* Arena::CreateMaybeMessage< ::remote::NetVersionReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetVersionReply >(arena); +// =================================================================== + +class EngineGetPayloadBodiesByHashV1Request::_Internal { + public: +}; + +void EngineGetPayloadBodiesByHashV1Request::clear_hashes() { + hashes_.Clear(); } -template<> PROTOBUF_NOINLINE ::remote::NetPeerCountRequest* Arena::CreateMaybeMessage< ::remote::NetPeerCountRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetPeerCountRequest >(arena); +EngineGetPayloadBodiesByHashV1Request::EngineGetPayloadBodiesByHashV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + hashes_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadBodiesByHashV1Request) } -template<> PROTOBUF_NOINLINE ::remote::NetPeerCountReply* Arena::CreateMaybeMessage< ::remote::NetPeerCountReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetPeerCountReply >(arena); +EngineGetPayloadBodiesByHashV1Request::EngineGetPayloadBodiesByHashV1Request(const EngineGetPayloadBodiesByHashV1Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + hashes_(from.hashes_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadBodiesByHashV1Request) } -template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadRequest* Arena::CreateMaybeMessage< ::remote::EngineGetPayloadRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EngineGetPayloadRequest >(arena); + +void EngineGetPayloadBodiesByHashV1Request::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EngineGetPayloadBodiesByHashV1Request_remote_2fethbackend_2eproto.base); } -template<> PROTOBUF_NOINLINE ::remote::EnginePayloadStatus* Arena::CreateMaybeMessage< ::remote::EnginePayloadStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EnginePayloadStatus >(arena); + +EngineGetPayloadBodiesByHashV1Request::~EngineGetPayloadBodiesByHashV1Request() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadBodiesByHashV1Request) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::remote::EnginePayloadAttributes* Arena::CreateMaybeMessage< ::remote::EnginePayloadAttributes >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EnginePayloadAttributes >(arena); + +void EngineGetPayloadBodiesByHashV1Request::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } -template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceState* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceState >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EngineForkChoiceState >(arena); + +void EngineGetPayloadBodiesByHashV1Request::ArenaDtor(void* object) { + EngineGetPayloadBodiesByHashV1Request* _this = reinterpret_cast< EngineGetPayloadBodiesByHashV1Request* >(object); + (void)_this; } -template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedRequest* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedRequest >(arena); +void EngineGetPayloadBodiesByHashV1Request::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -template<> PROTOBUF_NOINLINE ::remote::EnginePayloadAttributesV2* Arena::CreateMaybeMessage< ::remote::EnginePayloadAttributesV2 >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EnginePayloadAttributesV2 >(arena); +void EngineGetPayloadBodiesByHashV1Request::SetCachedSize(int size) const { + _cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedRequestV2* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedRequestV2 >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedRequestV2 >(arena); +const EngineGetPayloadBodiesByHashV1Request& EngineGetPayloadBodiesByHashV1Request::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineGetPayloadBodiesByHashV1Request_remote_2fethbackend_2eproto.base); + return *internal_default_instance(); } -template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedReply* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedReply >(arena); + + +void EngineGetPayloadBodiesByHashV1Request::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadBodiesByHashV1Request) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hashes_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::remote::ProtocolVersionRequest* Arena::CreateMaybeMessage< ::remote::ProtocolVersionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::ProtocolVersionRequest >(arena); + +const char* EngineGetPayloadBodiesByHashV1Request::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .types.H256 hashes = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_hashes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EngineGetPayloadBodiesByHashV1Request::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadBodiesByHashV1Request) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .types.H256 hashes = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_hashes_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_hashes(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadBodiesByHashV1Request) + return target; +} + +size_t EngineGetPayloadBodiesByHashV1Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadBodiesByHashV1Request) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .types.H256 hashes = 1; + total_size += 1UL * this->_internal_hashes_size(); + for (const auto& msg : this->hashes_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EngineGetPayloadBodiesByHashV1Request::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineGetPayloadBodiesByHashV1Request) + GOOGLE_DCHECK_NE(&from, this); + const EngineGetPayloadBodiesByHashV1Request* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineGetPayloadBodiesByHashV1Request) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineGetPayloadBodiesByHashV1Request) + MergeFrom(*source); + } +} + +void EngineGetPayloadBodiesByHashV1Request::MergeFrom(const EngineGetPayloadBodiesByHashV1Request& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadBodiesByHashV1Request) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + hashes_.MergeFrom(from.hashes_); +} + +void EngineGetPayloadBodiesByHashV1Request::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineGetPayloadBodiesByHashV1Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EngineGetPayloadBodiesByHashV1Request::CopyFrom(const EngineGetPayloadBodiesByHashV1Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadBodiesByHashV1Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetPayloadBodiesByHashV1Request::IsInitialized() const { + return true; +} + +void EngineGetPayloadBodiesByHashV1Request::InternalSwap(EngineGetPayloadBodiesByHashV1Request* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + hashes_.InternalSwap(&other->hashes_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadBodiesByHashV1Request::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class EngineGetPayloadBodiesByRangeV1Request::_Internal { + public: +}; + +EngineGetPayloadBodiesByRangeV1Request::EngineGetPayloadBodiesByRangeV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadBodiesByRangeV1Request) +} +EngineGetPayloadBodiesByRangeV1Request::EngineGetPayloadBodiesByRangeV1Request(const EngineGetPayloadBodiesByRangeV1Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&start_, &from.start_, + static_cast(reinterpret_cast(&count_) - + reinterpret_cast(&start_)) + sizeof(count_)); + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadBodiesByRangeV1Request) +} + +void EngineGetPayloadBodiesByRangeV1Request::SharedCtor() { + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&start_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&count_) - + reinterpret_cast(&start_)) + sizeof(count_)); +} + +EngineGetPayloadBodiesByRangeV1Request::~EngineGetPayloadBodiesByRangeV1Request() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadBodiesByRangeV1Request) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void EngineGetPayloadBodiesByRangeV1Request::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void EngineGetPayloadBodiesByRangeV1Request::ArenaDtor(void* object) { + EngineGetPayloadBodiesByRangeV1Request* _this = reinterpret_cast< EngineGetPayloadBodiesByRangeV1Request* >(object); + (void)_this; +} +void EngineGetPayloadBodiesByRangeV1Request::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void EngineGetPayloadBodiesByRangeV1Request::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EngineGetPayloadBodiesByRangeV1Request& EngineGetPayloadBodiesByRangeV1Request::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineGetPayloadBodiesByRangeV1Request_remote_2fethbackend_2eproto.base); + return *internal_default_instance(); +} + + +void EngineGetPayloadBodiesByRangeV1Request::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadBodiesByRangeV1Request) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&start_, 0, static_cast( + reinterpret_cast(&count_) - + reinterpret_cast(&start_)) + sizeof(count_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EngineGetPayloadBodiesByRangeV1Request::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 start = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 count = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EngineGetPayloadBodiesByRangeV1Request::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadBodiesByRangeV1Request) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 start = 1; + if (this->start() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_start(), target); + } + + // uint64 count = 2; + if (this->count() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_count(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadBodiesByRangeV1Request) + return target; +} + +size_t EngineGetPayloadBodiesByRangeV1Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadBodiesByRangeV1Request) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 start = 1; + if (this->start() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_start()); + } + + // uint64 count = 2; + if (this->count() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_count()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EngineGetPayloadBodiesByRangeV1Request::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineGetPayloadBodiesByRangeV1Request) + GOOGLE_DCHECK_NE(&from, this); + const EngineGetPayloadBodiesByRangeV1Request* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineGetPayloadBodiesByRangeV1Request) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineGetPayloadBodiesByRangeV1Request) + MergeFrom(*source); + } +} + +void EngineGetPayloadBodiesByRangeV1Request::MergeFrom(const EngineGetPayloadBodiesByRangeV1Request& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadBodiesByRangeV1Request) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.start() != 0) { + _internal_set_start(from._internal_start()); + } + if (from.count() != 0) { + _internal_set_count(from._internal_count()); + } +} + +void EngineGetPayloadBodiesByRangeV1Request::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineGetPayloadBodiesByRangeV1Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EngineGetPayloadBodiesByRangeV1Request::CopyFrom(const EngineGetPayloadBodiesByRangeV1Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadBodiesByRangeV1Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetPayloadBodiesByRangeV1Request::IsInitialized() const { + return true; +} + +void EngineGetPayloadBodiesByRangeV1Request::InternalSwap(EngineGetPayloadBodiesByRangeV1Request* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EngineGetPayloadBodiesByRangeV1Request, count_) + + sizeof(EngineGetPayloadBodiesByRangeV1Request::count_) + - PROTOBUF_FIELD_OFFSET(EngineGetPayloadBodiesByRangeV1Request, start_)>( + reinterpret_cast(&start_), + reinterpret_cast(&other->start_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadBodiesByRangeV1Request::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class EngineGetPayloadBodiesV1Response::_Internal { + public: +}; + +void EngineGetPayloadBodiesV1Response::clear_bodies() { + bodies_.Clear(); +} +EngineGetPayloadBodiesV1Response::EngineGetPayloadBodiesV1Response(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + bodies_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadBodiesV1Response) +} +EngineGetPayloadBodiesV1Response::EngineGetPayloadBodiesV1Response(const EngineGetPayloadBodiesV1Response& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + bodies_(from.bodies_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadBodiesV1Response) +} + +void EngineGetPayloadBodiesV1Response::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EngineGetPayloadBodiesV1Response_remote_2fethbackend_2eproto.base); +} + +EngineGetPayloadBodiesV1Response::~EngineGetPayloadBodiesV1Response() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadBodiesV1Response) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void EngineGetPayloadBodiesV1Response::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void EngineGetPayloadBodiesV1Response::ArenaDtor(void* object) { + EngineGetPayloadBodiesV1Response* _this = reinterpret_cast< EngineGetPayloadBodiesV1Response* >(object); + (void)_this; +} +void EngineGetPayloadBodiesV1Response::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void EngineGetPayloadBodiesV1Response::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EngineGetPayloadBodiesV1Response& EngineGetPayloadBodiesV1Response::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EngineGetPayloadBodiesV1Response_remote_2fethbackend_2eproto.base); + return *internal_default_instance(); +} + + +void EngineGetPayloadBodiesV1Response::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadBodiesV1Response) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bodies_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EngineGetPayloadBodiesV1Response::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_bodies(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* EngineGetPayloadBodiesV1Response::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadBodiesV1Response) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_bodies_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_bodies(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadBodiesV1Response) + return target; +} + +size_t EngineGetPayloadBodiesV1Response::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadBodiesV1Response) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + total_size += 1UL * this->_internal_bodies_size(); + for (const auto& msg : this->bodies_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EngineGetPayloadBodiesV1Response::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.EngineGetPayloadBodiesV1Response) + GOOGLE_DCHECK_NE(&from, this); + const EngineGetPayloadBodiesV1Response* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.EngineGetPayloadBodiesV1Response) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.EngineGetPayloadBodiesV1Response) + MergeFrom(*source); + } +} + +void EngineGetPayloadBodiesV1Response::MergeFrom(const EngineGetPayloadBodiesV1Response& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadBodiesV1Response) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + bodies_.MergeFrom(from.bodies_); +} + +void EngineGetPayloadBodiesV1Response::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.EngineGetPayloadBodiesV1Response) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EngineGetPayloadBodiesV1Response::CopyFrom(const EngineGetPayloadBodiesV1Response& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadBodiesV1Response) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetPayloadBodiesV1Response::IsInitialized() const { + return true; +} + +void EngineGetPayloadBodiesV1Response::InternalSwap(EngineGetPayloadBodiesV1Response* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + bodies_.InternalSwap(&other->bodies_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadBodiesV1Response::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace remote +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::remote::EtherbaseRequest* Arena::CreateMaybeMessage< ::remote::EtherbaseRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EtherbaseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EtherbaseReply* Arena::CreateMaybeMessage< ::remote::EtherbaseReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EtherbaseReply >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetVersionRequest* Arena::CreateMaybeMessage< ::remote::NetVersionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetVersionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetVersionReply* Arena::CreateMaybeMessage< ::remote::NetVersionReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetVersionReply >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetPeerCountRequest* Arena::CreateMaybeMessage< ::remote::NetPeerCountRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetPeerCountRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetPeerCountReply* Arena::CreateMaybeMessage< ::remote::NetPeerCountReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetPeerCountReply >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadRequest* Arena::CreateMaybeMessage< ::remote::EngineGetPayloadRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineGetBlobsBundleRequest* Arena::CreateMaybeMessage< ::remote::EngineGetBlobsBundleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetBlobsBundleRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EnginePayloadStatus* Arena::CreateMaybeMessage< ::remote::EnginePayloadStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EnginePayloadStatus >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EnginePayloadAttributes* Arena::CreateMaybeMessage< ::remote::EnginePayloadAttributes >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EnginePayloadAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceState* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceState >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineForkChoiceState >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedRequest* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedResponse* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadResponse* Arena::CreateMaybeMessage< ::remote::EngineGetPayloadResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::ProtocolVersionRequest* Arena::CreateMaybeMessage< ::remote::ProtocolVersionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::ProtocolVersionRequest >(arena); } template<> PROTOBUF_NOINLINE ::remote::ProtocolVersionReply* Arena::CreateMaybeMessage< ::remote::ProtocolVersionReply >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::ProtocolVersionReply >(arena); @@ -7903,6 +8649,15 @@ template<> PROTOBUF_NOINLINE ::remote::PeersReply* Arena::CreateMaybeMessage< :: template<> PROTOBUF_NOINLINE ::remote::PendingBlockReply* Arena::CreateMaybeMessage< ::remote::PendingBlockReply >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::PendingBlockReply >(arena); } +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadBodiesByHashV1Request* Arena::CreateMaybeMessage< ::remote::EngineGetPayloadBodiesByHashV1Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadBodiesByHashV1Request >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadBodiesByRangeV1Request* Arena::CreateMaybeMessage< ::remote::EngineGetPayloadBodiesByRangeV1Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadBodiesByRangeV1Request >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadBodiesV1Response* Arena::CreateMaybeMessage< ::remote::EngineGetPayloadBodiesV1Response >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadBodiesV1Response >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/silkworm/interfaces/3.14.0/remote/ethbackend.pb.h b/silkworm/interfaces/3.14.0/remote/ethbackend.pb.h index c4a29ae1e2..e9922bcc65 100644 --- a/silkworm/interfaces/3.14.0/remote/ethbackend.pb.h +++ b/silkworm/interfaces/3.14.0/remote/ethbackend.pb.h @@ -49,7 +49,7 @@ struct TableStruct_remote_2fethbackend_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[30] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[33] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -72,24 +72,33 @@ extern ClientVersionRequestDefaultTypeInternal _ClientVersionRequest_default_ins class EngineForkChoiceState; class EngineForkChoiceStateDefaultTypeInternal; extern EngineForkChoiceStateDefaultTypeInternal _EngineForkChoiceState_default_instance_; -class EngineForkChoiceUpdatedReply; -class EngineForkChoiceUpdatedReplyDefaultTypeInternal; -extern EngineForkChoiceUpdatedReplyDefaultTypeInternal _EngineForkChoiceUpdatedReply_default_instance_; class EngineForkChoiceUpdatedRequest; class EngineForkChoiceUpdatedRequestDefaultTypeInternal; extern EngineForkChoiceUpdatedRequestDefaultTypeInternal _EngineForkChoiceUpdatedRequest_default_instance_; -class EngineForkChoiceUpdatedRequestV2; -class EngineForkChoiceUpdatedRequestV2DefaultTypeInternal; -extern EngineForkChoiceUpdatedRequestV2DefaultTypeInternal _EngineForkChoiceUpdatedRequestV2_default_instance_; +class EngineForkChoiceUpdatedResponse; +class EngineForkChoiceUpdatedResponseDefaultTypeInternal; +extern EngineForkChoiceUpdatedResponseDefaultTypeInternal _EngineForkChoiceUpdatedResponse_default_instance_; +class EngineGetBlobsBundleRequest; +class EngineGetBlobsBundleRequestDefaultTypeInternal; +extern EngineGetBlobsBundleRequestDefaultTypeInternal _EngineGetBlobsBundleRequest_default_instance_; +class EngineGetPayloadBodiesByHashV1Request; +class EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal; +extern EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal _EngineGetPayloadBodiesByHashV1Request_default_instance_; +class EngineGetPayloadBodiesByRangeV1Request; +class EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal; +extern EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal _EngineGetPayloadBodiesByRangeV1Request_default_instance_; +class EngineGetPayloadBodiesV1Response; +class EngineGetPayloadBodiesV1ResponseDefaultTypeInternal; +extern EngineGetPayloadBodiesV1ResponseDefaultTypeInternal _EngineGetPayloadBodiesV1Response_default_instance_; class EngineGetPayloadRequest; class EngineGetPayloadRequestDefaultTypeInternal; extern EngineGetPayloadRequestDefaultTypeInternal _EngineGetPayloadRequest_default_instance_; +class EngineGetPayloadResponse; +class EngineGetPayloadResponseDefaultTypeInternal; +extern EngineGetPayloadResponseDefaultTypeInternal _EngineGetPayloadResponse_default_instance_; class EnginePayloadAttributes; class EnginePayloadAttributesDefaultTypeInternal; extern EnginePayloadAttributesDefaultTypeInternal _EnginePayloadAttributes_default_instance_; -class EnginePayloadAttributesV2; -class EnginePayloadAttributesV2DefaultTypeInternal; -extern EnginePayloadAttributesV2DefaultTypeInternal _EnginePayloadAttributesV2_default_instance_; class EnginePayloadStatus; class EnginePayloadStatusDefaultTypeInternal; extern EnginePayloadStatusDefaultTypeInternal _EnginePayloadStatus_default_instance_; @@ -154,12 +163,15 @@ template<> ::remote::BlockRequest* Arena::CreateMaybeMessage<::remote::BlockRequ template<> ::remote::ClientVersionReply* Arena::CreateMaybeMessage<::remote::ClientVersionReply>(Arena*); template<> ::remote::ClientVersionRequest* Arena::CreateMaybeMessage<::remote::ClientVersionRequest>(Arena*); template<> ::remote::EngineForkChoiceState* Arena::CreateMaybeMessage<::remote::EngineForkChoiceState>(Arena*); -template<> ::remote::EngineForkChoiceUpdatedReply* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedReply>(Arena*); template<> ::remote::EngineForkChoiceUpdatedRequest* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedRequest>(Arena*); -template<> ::remote::EngineForkChoiceUpdatedRequestV2* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedRequestV2>(Arena*); +template<> ::remote::EngineForkChoiceUpdatedResponse* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedResponse>(Arena*); +template<> ::remote::EngineGetBlobsBundleRequest* Arena::CreateMaybeMessage<::remote::EngineGetBlobsBundleRequest>(Arena*); +template<> ::remote::EngineGetPayloadBodiesByHashV1Request* Arena::CreateMaybeMessage<::remote::EngineGetPayloadBodiesByHashV1Request>(Arena*); +template<> ::remote::EngineGetPayloadBodiesByRangeV1Request* Arena::CreateMaybeMessage<::remote::EngineGetPayloadBodiesByRangeV1Request>(Arena*); +template<> ::remote::EngineGetPayloadBodiesV1Response* Arena::CreateMaybeMessage<::remote::EngineGetPayloadBodiesV1Response>(Arena*); template<> ::remote::EngineGetPayloadRequest* Arena::CreateMaybeMessage<::remote::EngineGetPayloadRequest>(Arena*); +template<> ::remote::EngineGetPayloadResponse* Arena::CreateMaybeMessage<::remote::EngineGetPayloadResponse>(Arena*); template<> ::remote::EnginePayloadAttributes* Arena::CreateMaybeMessage<::remote::EnginePayloadAttributes>(Arena*); -template<> ::remote::EnginePayloadAttributesV2* Arena::CreateMaybeMessage<::remote::EnginePayloadAttributesV2>(Arena*); template<> ::remote::EnginePayloadStatus* Arena::CreateMaybeMessage<::remote::EnginePayloadStatus>(Arena*); template<> ::remote::EtherbaseReply* Arena::CreateMaybeMessage<::remote::EtherbaseReply>(Arena*); template<> ::remote::EtherbaseRequest* Arena::CreateMaybeMessage<::remote::EtherbaseRequest>(Arena*); @@ -1161,6 +1173,142 @@ class EngineGetPayloadRequest PROTOBUF_FINAL : }; // ------------------------------------------------------------------- +class EngineGetBlobsBundleRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetBlobsBundleRequest) */ { + public: + inline EngineGetBlobsBundleRequest() : EngineGetBlobsBundleRequest(nullptr) {} + virtual ~EngineGetBlobsBundleRequest(); + + EngineGetBlobsBundleRequest(const EngineGetBlobsBundleRequest& from); + EngineGetBlobsBundleRequest(EngineGetBlobsBundleRequest&& from) noexcept + : EngineGetBlobsBundleRequest() { + *this = ::std::move(from); + } + + inline EngineGetBlobsBundleRequest& operator=(const EngineGetBlobsBundleRequest& from) { + CopyFrom(from); + return *this; + } + inline EngineGetBlobsBundleRequest& operator=(EngineGetBlobsBundleRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EngineGetBlobsBundleRequest& default_instance(); + + static inline const EngineGetBlobsBundleRequest* internal_default_instance() { + return reinterpret_cast( + &_EngineGetBlobsBundleRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(EngineGetBlobsBundleRequest& a, EngineGetBlobsBundleRequest& b) { + a.Swap(&b); + } + inline void Swap(EngineGetBlobsBundleRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EngineGetBlobsBundleRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EngineGetBlobsBundleRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + EngineGetBlobsBundleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EngineGetBlobsBundleRequest& from); + void MergeFrom(const EngineGetBlobsBundleRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetBlobsBundleRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetBlobsBundleRequest"; + } + protected: + explicit EngineGetBlobsBundleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fethbackend_2eproto); + return ::descriptor_table_remote_2fethbackend_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPayloadIdFieldNumber = 1, + }; + // uint64 payloadId = 1; + void clear_payloadid(); + ::PROTOBUF_NAMESPACE_ID::uint64 payloadid() const; + void set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_payloadid() const; + void _internal_set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:remote.EngineGetBlobsBundleRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 payloadid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; +// ------------------------------------------------------------------- + class EnginePayloadStatus PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EnginePayloadStatus) */ { public: @@ -1202,7 +1350,7 @@ class EnginePayloadStatus PROTOBUF_FINAL : &_EnginePayloadStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(EnginePayloadStatus& a, EnginePayloadStatus& b) { a.Swap(&b); @@ -1376,7 +1524,7 @@ class EnginePayloadAttributes PROTOBUF_FINAL : &_EnginePayloadAttributes_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(EnginePayloadAttributes& a, EnginePayloadAttributes& b) { a.Swap(&b); @@ -1447,11 +1595,31 @@ class EnginePayloadAttributes PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kPrevRandaoFieldNumber = 2, - kSuggestedFeeRecipientFieldNumber = 3, - kTimestampFieldNumber = 1, + kWithdrawalsFieldNumber = 5, + kPrevRandaoFieldNumber = 3, + kSuggestedFeeRecipientFieldNumber = 4, + kTimestampFieldNumber = 2, + kVersionFieldNumber = 1, }; - // .types.H256 prevRandao = 2; + // repeated .types.Withdrawal withdrawals = 5; + int withdrawals_size() const; + private: + int _internal_withdrawals_size() const; + public: + void clear_withdrawals(); + ::types::Withdrawal* mutable_withdrawals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* + mutable_withdrawals(); + private: + const ::types::Withdrawal& _internal_withdrawals(int index) const; + ::types::Withdrawal* _internal_add_withdrawals(); + public: + const ::types::Withdrawal& withdrawals(int index) const; + ::types::Withdrawal* add_withdrawals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& + withdrawals() const; + + // .types.H256 prevRandao = 3; bool has_prevrandao() const; private: bool _internal_has_prevrandao() const; @@ -1469,7 +1637,7 @@ class EnginePayloadAttributes PROTOBUF_FINAL : ::types::H256* prevrandao); ::types::H256* unsafe_arena_release_prevrandao(); - // .types.H160 suggestedFeeRecipient = 3; + // .types.H160 suggestedFeeRecipient = 4; bool has_suggestedfeerecipient() const; private: bool _internal_has_suggestedfeerecipient() const; @@ -1487,7 +1655,7 @@ class EnginePayloadAttributes PROTOBUF_FINAL : ::types::H160* suggestedfeerecipient); ::types::H160* unsafe_arena_release_suggestedfeerecipient(); - // uint64 timestamp = 1; + // uint64 timestamp = 2; void clear_timestamp(); ::PROTOBUF_NAMESPACE_ID::uint64 timestamp() const; void set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); @@ -1496,6 +1664,15 @@ class EnginePayloadAttributes PROTOBUF_FINAL : void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); public: + // uint32 version = 1; + void clear_version(); + ::PROTOBUF_NAMESPACE_ID::uint32 version() const; + void set_version(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_version() const; + void _internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + // @@protoc_insertion_point(class_scope:remote.EnginePayloadAttributes) private: class _Internal; @@ -1503,9 +1680,11 @@ class EnginePayloadAttributes PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; ::types::H256* prevrandao_; ::types::H160* suggestedfeerecipient_; ::PROTOBUF_NAMESPACE_ID::uint64 timestamp_; + ::PROTOBUF_NAMESPACE_ID::uint32 version_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fethbackend_2eproto; }; @@ -1552,7 +1731,7 @@ class EngineForkChoiceState PROTOBUF_FINAL : &_EngineForkChoiceState_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(EngineForkChoiceState& a, EngineForkChoiceState& b) { a.Swap(&b); @@ -1737,7 +1916,7 @@ class EngineForkChoiceUpdatedRequest PROTOBUF_FINAL : &_EngineForkChoiceUpdatedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(EngineForkChoiceUpdatedRequest& a, EngineForkChoiceUpdatedRequest& b) { a.Swap(&b); @@ -1861,23 +2040,23 @@ class EngineForkChoiceUpdatedRequest PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class EnginePayloadAttributesV2 PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EnginePayloadAttributesV2) */ { +class EngineForkChoiceUpdatedResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineForkChoiceUpdatedResponse) */ { public: - inline EnginePayloadAttributesV2() : EnginePayloadAttributesV2(nullptr) {} - virtual ~EnginePayloadAttributesV2(); + inline EngineForkChoiceUpdatedResponse() : EngineForkChoiceUpdatedResponse(nullptr) {} + virtual ~EngineForkChoiceUpdatedResponse(); - EnginePayloadAttributesV2(const EnginePayloadAttributesV2& from); - EnginePayloadAttributesV2(EnginePayloadAttributesV2&& from) noexcept - : EnginePayloadAttributesV2() { + EngineForkChoiceUpdatedResponse(const EngineForkChoiceUpdatedResponse& from); + EngineForkChoiceUpdatedResponse(EngineForkChoiceUpdatedResponse&& from) noexcept + : EngineForkChoiceUpdatedResponse() { *this = ::std::move(from); } - inline EnginePayloadAttributesV2& operator=(const EnginePayloadAttributesV2& from) { + inline EngineForkChoiceUpdatedResponse& operator=(const EngineForkChoiceUpdatedResponse& from) { CopyFrom(from); return *this; } - inline EnginePayloadAttributesV2& operator=(EnginePayloadAttributesV2&& from) noexcept { + inline EngineForkChoiceUpdatedResponse& operator=(EngineForkChoiceUpdatedResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1895,19 +2074,19 @@ class EnginePayloadAttributesV2 PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const EnginePayloadAttributesV2& default_instance(); + static const EngineForkChoiceUpdatedResponse& default_instance(); - static inline const EnginePayloadAttributesV2* internal_default_instance() { - return reinterpret_cast( - &_EnginePayloadAttributesV2_default_instance_); + static inline const EngineForkChoiceUpdatedResponse* internal_default_instance() { + return reinterpret_cast( + &_EngineForkChoiceUpdatedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; - friend void swap(EnginePayloadAttributesV2& a, EnginePayloadAttributesV2& b) { + friend void swap(EngineForkChoiceUpdatedResponse& a, EngineForkChoiceUpdatedResponse& b) { a.Swap(&b); } - inline void Swap(EnginePayloadAttributesV2* other) { + inline void Swap(EngineForkChoiceUpdatedResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1915,7 +2094,7 @@ class EnginePayloadAttributesV2 PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EnginePayloadAttributesV2* other) { + void UnsafeArenaSwap(EngineForkChoiceUpdatedResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1923,17 +2102,17 @@ class EnginePayloadAttributesV2 PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline EnginePayloadAttributesV2* New() const final { - return CreateMaybeMessage(nullptr); + inline EngineForkChoiceUpdatedResponse* New() const final { + return CreateMaybeMessage(nullptr); } - EnginePayloadAttributesV2* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + EngineForkChoiceUpdatedResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EnginePayloadAttributesV2& from); - void MergeFrom(const EnginePayloadAttributesV2& from); + void CopyFrom(const EngineForkChoiceUpdatedResponse& from); + void MergeFrom(const EngineForkChoiceUpdatedResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1947,13 +2126,13 @@ class EnginePayloadAttributesV2 PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EnginePayloadAttributesV2* other); + void InternalSwap(EngineForkChoiceUpdatedResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.EnginePayloadAttributesV2"; + return "remote.EngineForkChoiceUpdatedResponse"; } protected: - explicit EnginePayloadAttributesV2(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit EngineForkChoiceUpdatedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1973,76 +2152,67 @@ class EnginePayloadAttributesV2 PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kWithdrawalsFieldNumber = 2, - kAttributesFieldNumber = 1, + kPayloadStatusFieldNumber = 1, + kPayloadIdFieldNumber = 2, }; - // repeated .types.Withdrawal withdrawals = 2; - int withdrawals_size() const; + // .remote.EnginePayloadStatus payloadStatus = 1; + bool has_payloadstatus() const; private: - int _internal_withdrawals_size() const; + bool _internal_has_payloadstatus() const; public: - void clear_withdrawals(); - ::types::Withdrawal* mutable_withdrawals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* - mutable_withdrawals(); + void clear_payloadstatus(); + const ::remote::EnginePayloadStatus& payloadstatus() const; + ::remote::EnginePayloadStatus* release_payloadstatus(); + ::remote::EnginePayloadStatus* mutable_payloadstatus(); + void set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus); private: - const ::types::Withdrawal& _internal_withdrawals(int index) const; - ::types::Withdrawal* _internal_add_withdrawals(); + const ::remote::EnginePayloadStatus& _internal_payloadstatus() const; + ::remote::EnginePayloadStatus* _internal_mutable_payloadstatus(); public: - const ::types::Withdrawal& withdrawals(int index) const; - ::types::Withdrawal* add_withdrawals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& - withdrawals() const; + void unsafe_arena_set_allocated_payloadstatus( + ::remote::EnginePayloadStatus* payloadstatus); + ::remote::EnginePayloadStatus* unsafe_arena_release_payloadstatus(); - // .remote.EnginePayloadAttributes attributes = 1; - bool has_attributes() const; - private: - bool _internal_has_attributes() const; - public: - void clear_attributes(); - const ::remote::EnginePayloadAttributes& attributes() const; - ::remote::EnginePayloadAttributes* release_attributes(); - ::remote::EnginePayloadAttributes* mutable_attributes(); - void set_allocated_attributes(::remote::EnginePayloadAttributes* attributes); + // uint64 payloadId = 2; + void clear_payloadid(); + ::PROTOBUF_NAMESPACE_ID::uint64 payloadid() const; + void set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - const ::remote::EnginePayloadAttributes& _internal_attributes() const; - ::remote::EnginePayloadAttributes* _internal_mutable_attributes(); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_payloadid() const; + void _internal_set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - void unsafe_arena_set_allocated_attributes( - ::remote::EnginePayloadAttributes* attributes); - ::remote::EnginePayloadAttributes* unsafe_arena_release_attributes(); - // @@protoc_insertion_point(class_scope:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(class_scope:remote.EngineForkChoiceUpdatedResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; - ::remote::EnginePayloadAttributes* attributes_; + ::remote::EnginePayloadStatus* payloadstatus_; + ::PROTOBUF_NAMESPACE_ID::uint64 payloadid_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fethbackend_2eproto; }; // ------------------------------------------------------------------- -class EngineForkChoiceUpdatedRequestV2 PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineForkChoiceUpdatedRequestV2) */ { +class EngineGetPayloadResponse PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadResponse) */ { public: - inline EngineForkChoiceUpdatedRequestV2() : EngineForkChoiceUpdatedRequestV2(nullptr) {} - virtual ~EngineForkChoiceUpdatedRequestV2(); + inline EngineGetPayloadResponse() : EngineGetPayloadResponse(nullptr) {} + virtual ~EngineGetPayloadResponse(); - EngineForkChoiceUpdatedRequestV2(const EngineForkChoiceUpdatedRequestV2& from); - EngineForkChoiceUpdatedRequestV2(EngineForkChoiceUpdatedRequestV2&& from) noexcept - : EngineForkChoiceUpdatedRequestV2() { + EngineGetPayloadResponse(const EngineGetPayloadResponse& from); + EngineGetPayloadResponse(EngineGetPayloadResponse&& from) noexcept + : EngineGetPayloadResponse() { *this = ::std::move(from); } - inline EngineForkChoiceUpdatedRequestV2& operator=(const EngineForkChoiceUpdatedRequestV2& from) { + inline EngineGetPayloadResponse& operator=(const EngineGetPayloadResponse& from) { CopyFrom(from); return *this; } - inline EngineForkChoiceUpdatedRequestV2& operator=(EngineForkChoiceUpdatedRequestV2&& from) noexcept { + inline EngineGetPayloadResponse& operator=(EngineGetPayloadResponse&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2060,19 +2230,19 @@ class EngineForkChoiceUpdatedRequestV2 PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const EngineForkChoiceUpdatedRequestV2& default_instance(); + static const EngineGetPayloadResponse& default_instance(); - static inline const EngineForkChoiceUpdatedRequestV2* internal_default_instance() { - return reinterpret_cast( - &_EngineForkChoiceUpdatedRequestV2_default_instance_); + static inline const EngineGetPayloadResponse* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; - friend void swap(EngineForkChoiceUpdatedRequestV2& a, EngineForkChoiceUpdatedRequestV2& b) { + friend void swap(EngineGetPayloadResponse& a, EngineGetPayloadResponse& b) { a.Swap(&b); } - inline void Swap(EngineForkChoiceUpdatedRequestV2* other) { + inline void Swap(EngineGetPayloadResponse* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2080,7 +2250,7 @@ class EngineForkChoiceUpdatedRequestV2 PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EngineForkChoiceUpdatedRequestV2* other) { + void UnsafeArenaSwap(EngineGetPayloadResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2088,17 +2258,17 @@ class EngineForkChoiceUpdatedRequestV2 PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline EngineForkChoiceUpdatedRequestV2* New() const final { - return CreateMaybeMessage(nullptr); + inline EngineGetPayloadResponse* New() const final { + return CreateMaybeMessage(nullptr); } - EngineForkChoiceUpdatedRequestV2* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + EngineGetPayloadResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EngineForkChoiceUpdatedRequestV2& from); - void MergeFrom(const EngineForkChoiceUpdatedRequestV2& from); + void CopyFrom(const EngineGetPayloadResponse& from); + void MergeFrom(const EngineGetPayloadResponse& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2112,13 +2282,13 @@ class EngineForkChoiceUpdatedRequestV2 PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EngineForkChoiceUpdatedRequestV2* other); + void InternalSwap(EngineGetPayloadResponse* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.EngineForkChoiceUpdatedRequestV2"; + return "remote.EngineGetPayloadResponse"; } protected: - explicit EngineForkChoiceUpdatedRequestV2(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit EngineGetPayloadResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2138,76 +2308,76 @@ class EngineForkChoiceUpdatedRequestV2 PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kForkchoiceStateFieldNumber = 1, - kPayloadAttributesFieldNumber = 2, + kExecutionPayloadFieldNumber = 1, + kBlockValueFieldNumber = 2, }; - // .remote.EngineForkChoiceState forkchoiceState = 1; - bool has_forkchoicestate() const; + // .types.ExecutionPayload executionPayload = 1; + bool has_executionpayload() const; private: - bool _internal_has_forkchoicestate() const; + bool _internal_has_executionpayload() const; public: - void clear_forkchoicestate(); - const ::remote::EngineForkChoiceState& forkchoicestate() const; - ::remote::EngineForkChoiceState* release_forkchoicestate(); - ::remote::EngineForkChoiceState* mutable_forkchoicestate(); - void set_allocated_forkchoicestate(::remote::EngineForkChoiceState* forkchoicestate); + void clear_executionpayload(); + const ::types::ExecutionPayload& executionpayload() const; + ::types::ExecutionPayload* release_executionpayload(); + ::types::ExecutionPayload* mutable_executionpayload(); + void set_allocated_executionpayload(::types::ExecutionPayload* executionpayload); private: - const ::remote::EngineForkChoiceState& _internal_forkchoicestate() const; - ::remote::EngineForkChoiceState* _internal_mutable_forkchoicestate(); + const ::types::ExecutionPayload& _internal_executionpayload() const; + ::types::ExecutionPayload* _internal_mutable_executionpayload(); public: - void unsafe_arena_set_allocated_forkchoicestate( - ::remote::EngineForkChoiceState* forkchoicestate); - ::remote::EngineForkChoiceState* unsafe_arena_release_forkchoicestate(); + void unsafe_arena_set_allocated_executionpayload( + ::types::ExecutionPayload* executionpayload); + ::types::ExecutionPayload* unsafe_arena_release_executionpayload(); - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; - bool has_payloadattributes() const; + // .types.H256 blockValue = 2; + bool has_blockvalue() const; private: - bool _internal_has_payloadattributes() const; + bool _internal_has_blockvalue() const; public: - void clear_payloadattributes(); - const ::remote::EnginePayloadAttributesV2& payloadattributes() const; - ::remote::EnginePayloadAttributesV2* release_payloadattributes(); - ::remote::EnginePayloadAttributesV2* mutable_payloadattributes(); - void set_allocated_payloadattributes(::remote::EnginePayloadAttributesV2* payloadattributes); + void clear_blockvalue(); + const ::types::H256& blockvalue() const; + ::types::H256* release_blockvalue(); + ::types::H256* mutable_blockvalue(); + void set_allocated_blockvalue(::types::H256* blockvalue); private: - const ::remote::EnginePayloadAttributesV2& _internal_payloadattributes() const; - ::remote::EnginePayloadAttributesV2* _internal_mutable_payloadattributes(); + const ::types::H256& _internal_blockvalue() const; + ::types::H256* _internal_mutable_blockvalue(); public: - void unsafe_arena_set_allocated_payloadattributes( - ::remote::EnginePayloadAttributesV2* payloadattributes); - ::remote::EnginePayloadAttributesV2* unsafe_arena_release_payloadattributes(); + void unsafe_arena_set_allocated_blockvalue( + ::types::H256* blockvalue); + ::types::H256* unsafe_arena_release_blockvalue(); - // @@protoc_insertion_point(class_scope:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadResponse) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::remote::EngineForkChoiceState* forkchoicestate_; - ::remote::EnginePayloadAttributesV2* payloadattributes_; + ::types::ExecutionPayload* executionpayload_; + ::types::H256* blockvalue_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fethbackend_2eproto; }; // ------------------------------------------------------------------- -class EngineForkChoiceUpdatedReply PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineForkChoiceUpdatedReply) */ { +class ProtocolVersionRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.ProtocolVersionRequest) */ { public: - inline EngineForkChoiceUpdatedReply() : EngineForkChoiceUpdatedReply(nullptr) {} - virtual ~EngineForkChoiceUpdatedReply(); + inline ProtocolVersionRequest() : ProtocolVersionRequest(nullptr) {} + virtual ~ProtocolVersionRequest(); - EngineForkChoiceUpdatedReply(const EngineForkChoiceUpdatedReply& from); - EngineForkChoiceUpdatedReply(EngineForkChoiceUpdatedReply&& from) noexcept - : EngineForkChoiceUpdatedReply() { + ProtocolVersionRequest(const ProtocolVersionRequest& from); + ProtocolVersionRequest(ProtocolVersionRequest&& from) noexcept + : ProtocolVersionRequest() { *this = ::std::move(from); } - inline EngineForkChoiceUpdatedReply& operator=(const EngineForkChoiceUpdatedReply& from) { + inline ProtocolVersionRequest& operator=(const ProtocolVersionRequest& from) { CopyFrom(from); return *this; } - inline EngineForkChoiceUpdatedReply& operator=(EngineForkChoiceUpdatedReply&& from) noexcept { + inline ProtocolVersionRequest& operator=(ProtocolVersionRequest&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2225,19 +2395,19 @@ class EngineForkChoiceUpdatedReply PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const EngineForkChoiceUpdatedReply& default_instance(); + static const ProtocolVersionRequest& default_instance(); - static inline const EngineForkChoiceUpdatedReply* internal_default_instance() { - return reinterpret_cast( - &_EngineForkChoiceUpdatedReply_default_instance_); + static inline const ProtocolVersionRequest* internal_default_instance() { + return reinterpret_cast( + &_ProtocolVersionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; - friend void swap(EngineForkChoiceUpdatedReply& a, EngineForkChoiceUpdatedReply& b) { + friend void swap(ProtocolVersionRequest& a, ProtocolVersionRequest& b) { a.Swap(&b); } - inline void Swap(EngineForkChoiceUpdatedReply* other) { + inline void Swap(ProtocolVersionRequest* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2245,7 +2415,7 @@ class EngineForkChoiceUpdatedReply PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EngineForkChoiceUpdatedReply* other) { + void UnsafeArenaSwap(ProtocolVersionRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2253,17 +2423,17 @@ class EngineForkChoiceUpdatedReply PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline EngineForkChoiceUpdatedReply* New() const final { - return CreateMaybeMessage(nullptr); + inline ProtocolVersionRequest* New() const final { + return CreateMaybeMessage(nullptr); } - EngineForkChoiceUpdatedReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + ProtocolVersionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const EngineForkChoiceUpdatedReply& from); - void MergeFrom(const EngineForkChoiceUpdatedReply& from); + void CopyFrom(const ProtocolVersionRequest& from); + void MergeFrom(const ProtocolVersionRequest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2277,13 +2447,13 @@ class EngineForkChoiceUpdatedReply PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EngineForkChoiceUpdatedReply* other); + void InternalSwap(ProtocolVersionRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.EngineForkChoiceUpdatedReply"; + return "remote.ProtocolVersionRequest"; } protected: - explicit EngineForkChoiceUpdatedReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2302,165 +2472,9 @@ class EngineForkChoiceUpdatedReply PROTOBUF_FINAL : // accessors ------------------------------------------------------- - enum : int { - kPayloadStatusFieldNumber = 1, - kPayloadIdFieldNumber = 2, - }; - // .remote.EnginePayloadStatus payloadStatus = 1; - bool has_payloadstatus() const; - private: - bool _internal_has_payloadstatus() const; - public: - void clear_payloadstatus(); - const ::remote::EnginePayloadStatus& payloadstatus() const; - ::remote::EnginePayloadStatus* release_payloadstatus(); - ::remote::EnginePayloadStatus* mutable_payloadstatus(); - void set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus); - private: - const ::remote::EnginePayloadStatus& _internal_payloadstatus() const; - ::remote::EnginePayloadStatus* _internal_mutable_payloadstatus(); - public: - void unsafe_arena_set_allocated_payloadstatus( - ::remote::EnginePayloadStatus* payloadstatus); - ::remote::EnginePayloadStatus* unsafe_arena_release_payloadstatus(); - - // uint64 payloadId = 2; - void clear_payloadid(); - ::PROTOBUF_NAMESPACE_ID::uint64 payloadid() const; - void set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_payloadid() const; - void _internal_set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // @@protoc_insertion_point(class_scope:remote.EngineForkChoiceUpdatedReply) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::remote::EnginePayloadStatus* payloadstatus_; - ::PROTOBUF_NAMESPACE_ID::uint64 payloadid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_remote_2fethbackend_2eproto; -}; -// ------------------------------------------------------------------- - -class ProtocolVersionRequest PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.ProtocolVersionRequest) */ { - public: - inline ProtocolVersionRequest() : ProtocolVersionRequest(nullptr) {} - virtual ~ProtocolVersionRequest(); - - ProtocolVersionRequest(const ProtocolVersionRequest& from); - ProtocolVersionRequest(ProtocolVersionRequest&& from) noexcept - : ProtocolVersionRequest() { - *this = ::std::move(from); - } - - inline ProtocolVersionRequest& operator=(const ProtocolVersionRequest& from) { - CopyFrom(from); - return *this; - } - inline ProtocolVersionRequest& operator=(ProtocolVersionRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ProtocolVersionRequest& default_instance(); - - static inline const ProtocolVersionRequest* internal_default_instance() { - return reinterpret_cast( - &_ProtocolVersionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(ProtocolVersionRequest& a, ProtocolVersionRequest& b) { - a.Swap(&b); - } - inline void Swap(ProtocolVersionRequest* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ProtocolVersionRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ProtocolVersionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProtocolVersionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ProtocolVersionRequest& from); - void MergeFrom(const ProtocolVersionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ProtocolVersionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.ProtocolVersionRequest"; - } - protected: - explicit ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fethbackend_2eproto); - return ::descriptor_table_remote_2fethbackend_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:remote.ProtocolVersionRequest) - private: - class _Internal; + // @@protoc_insertion_point(class_scope:remote.ProtocolVersionRequest) + private: + class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; @@ -4781,6 +4795,443 @@ class PendingBlockReply PROTOBUF_FINAL : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fethbackend_2eproto; }; +// ------------------------------------------------------------------- + +class EngineGetPayloadBodiesByHashV1Request PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadBodiesByHashV1Request) */ { + public: + inline EngineGetPayloadBodiesByHashV1Request() : EngineGetPayloadBodiesByHashV1Request(nullptr) {} + virtual ~EngineGetPayloadBodiesByHashV1Request(); + + EngineGetPayloadBodiesByHashV1Request(const EngineGetPayloadBodiesByHashV1Request& from); + EngineGetPayloadBodiesByHashV1Request(EngineGetPayloadBodiesByHashV1Request&& from) noexcept + : EngineGetPayloadBodiesByHashV1Request() { + *this = ::std::move(from); + } + + inline EngineGetPayloadBodiesByHashV1Request& operator=(const EngineGetPayloadBodiesByHashV1Request& from) { + CopyFrom(from); + return *this; + } + inline EngineGetPayloadBodiesByHashV1Request& operator=(EngineGetPayloadBodiesByHashV1Request&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EngineGetPayloadBodiesByHashV1Request& default_instance(); + + static inline const EngineGetPayloadBodiesByHashV1Request* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadBodiesByHashV1Request_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(EngineGetPayloadBodiesByHashV1Request& a, EngineGetPayloadBodiesByHashV1Request& b) { + a.Swap(&b); + } + inline void Swap(EngineGetPayloadBodiesByHashV1Request* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EngineGetPayloadBodiesByHashV1Request* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EngineGetPayloadBodiesByHashV1Request* New() const final { + return CreateMaybeMessage(nullptr); + } + + EngineGetPayloadBodiesByHashV1Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EngineGetPayloadBodiesByHashV1Request& from); + void MergeFrom(const EngineGetPayloadBodiesByHashV1Request& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetPayloadBodiesByHashV1Request* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetPayloadBodiesByHashV1Request"; + } + protected: + explicit EngineGetPayloadBodiesByHashV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fethbackend_2eproto); + return ::descriptor_table_remote_2fethbackend_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHashesFieldNumber = 1, + }; + // repeated .types.H256 hashes = 1; + int hashes_size() const; + private: + int _internal_hashes_size() const; + public: + void clear_hashes(); + ::types::H256* mutable_hashes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >* + mutable_hashes(); + private: + const ::types::H256& _internal_hashes(int index) const; + ::types::H256* _internal_add_hashes(); + public: + const ::types::H256& hashes(int index) const; + ::types::H256* add_hashes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >& + hashes() const; + + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadBodiesByHashV1Request) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 > hashes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; +// ------------------------------------------------------------------- + +class EngineGetPayloadBodiesByRangeV1Request PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadBodiesByRangeV1Request) */ { + public: + inline EngineGetPayloadBodiesByRangeV1Request() : EngineGetPayloadBodiesByRangeV1Request(nullptr) {} + virtual ~EngineGetPayloadBodiesByRangeV1Request(); + + EngineGetPayloadBodiesByRangeV1Request(const EngineGetPayloadBodiesByRangeV1Request& from); + EngineGetPayloadBodiesByRangeV1Request(EngineGetPayloadBodiesByRangeV1Request&& from) noexcept + : EngineGetPayloadBodiesByRangeV1Request() { + *this = ::std::move(from); + } + + inline EngineGetPayloadBodiesByRangeV1Request& operator=(const EngineGetPayloadBodiesByRangeV1Request& from) { + CopyFrom(from); + return *this; + } + inline EngineGetPayloadBodiesByRangeV1Request& operator=(EngineGetPayloadBodiesByRangeV1Request&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EngineGetPayloadBodiesByRangeV1Request& default_instance(); + + static inline const EngineGetPayloadBodiesByRangeV1Request* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadBodiesByRangeV1Request_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(EngineGetPayloadBodiesByRangeV1Request& a, EngineGetPayloadBodiesByRangeV1Request& b) { + a.Swap(&b); + } + inline void Swap(EngineGetPayloadBodiesByRangeV1Request* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EngineGetPayloadBodiesByRangeV1Request* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EngineGetPayloadBodiesByRangeV1Request* New() const final { + return CreateMaybeMessage(nullptr); + } + + EngineGetPayloadBodiesByRangeV1Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EngineGetPayloadBodiesByRangeV1Request& from); + void MergeFrom(const EngineGetPayloadBodiesByRangeV1Request& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetPayloadBodiesByRangeV1Request* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetPayloadBodiesByRangeV1Request"; + } + protected: + explicit EngineGetPayloadBodiesByRangeV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fethbackend_2eproto); + return ::descriptor_table_remote_2fethbackend_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStartFieldNumber = 1, + kCountFieldNumber = 2, + }; + // uint64 start = 1; + void clear_start(); + ::PROTOBUF_NAMESPACE_ID::uint64 start() const; + void set_start(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_start() const; + void _internal_set_start(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 count = 2; + void clear_count(); + ::PROTOBUF_NAMESPACE_ID::uint64 count() const; + void set_count(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_count() const; + void _internal_set_count(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadBodiesByRangeV1Request) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::uint64 start_; + ::PROTOBUF_NAMESPACE_ID::uint64 count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; +// ------------------------------------------------------------------- + +class EngineGetPayloadBodiesV1Response PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadBodiesV1Response) */ { + public: + inline EngineGetPayloadBodiesV1Response() : EngineGetPayloadBodiesV1Response(nullptr) {} + virtual ~EngineGetPayloadBodiesV1Response(); + + EngineGetPayloadBodiesV1Response(const EngineGetPayloadBodiesV1Response& from); + EngineGetPayloadBodiesV1Response(EngineGetPayloadBodiesV1Response&& from) noexcept + : EngineGetPayloadBodiesV1Response() { + *this = ::std::move(from); + } + + inline EngineGetPayloadBodiesV1Response& operator=(const EngineGetPayloadBodiesV1Response& from) { + CopyFrom(from); + return *this; + } + inline EngineGetPayloadBodiesV1Response& operator=(EngineGetPayloadBodiesV1Response&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EngineGetPayloadBodiesV1Response& default_instance(); + + static inline const EngineGetPayloadBodiesV1Response* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadBodiesV1Response_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(EngineGetPayloadBodiesV1Response& a, EngineGetPayloadBodiesV1Response& b) { + a.Swap(&b); + } + inline void Swap(EngineGetPayloadBodiesV1Response* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EngineGetPayloadBodiesV1Response* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EngineGetPayloadBodiesV1Response* New() const final { + return CreateMaybeMessage(nullptr); + } + + EngineGetPayloadBodiesV1Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EngineGetPayloadBodiesV1Response& from); + void MergeFrom(const EngineGetPayloadBodiesV1Response& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetPayloadBodiesV1Response* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetPayloadBodiesV1Response"; + } + protected: + explicit EngineGetPayloadBodiesV1Response(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fethbackend_2eproto); + return ::descriptor_table_remote_2fethbackend_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBodiesFieldNumber = 1, + }; + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + int bodies_size() const; + private: + int _internal_bodies_size() const; + public: + void clear_bodies(); + ::types::ExecutionPayloadBodyV1* mutable_bodies(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >* + mutable_bodies(); + private: + const ::types::ExecutionPayloadBodyV1& _internal_bodies(int index) const; + ::types::ExecutionPayloadBodyV1* _internal_add_bodies(); + public: + const ::types::ExecutionPayloadBodyV1& bodies(int index) const; + ::types::ExecutionPayloadBodyV1* add_bodies(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >& + bodies() const; + + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadBodiesV1Response) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 > bodies_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; // =================================================================== @@ -4955,6 +5406,30 @@ inline void EngineGetPayloadRequest::set_payloadid(::PROTOBUF_NAMESPACE_ID::uint // ------------------------------------------------------------------- +// EngineGetBlobsBundleRequest + +// uint64 payloadId = 1; +inline void EngineGetBlobsBundleRequest::clear_payloadid() { + payloadid_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineGetBlobsBundleRequest::_internal_payloadid() const { + return payloadid_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineGetBlobsBundleRequest::payloadid() const { + // @@protoc_insertion_point(field_get:remote.EngineGetBlobsBundleRequest.payloadId) + return _internal_payloadid(); +} +inline void EngineGetBlobsBundleRequest::_internal_set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + payloadid_ = value; +} +inline void EngineGetBlobsBundleRequest::set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_payloadid(value); + // @@protoc_insertion_point(field_set:remote.EngineGetBlobsBundleRequest.payloadId) +} + +// ------------------------------------------------------------------- + // EnginePayloadStatus // .remote.EngineStatus status = 1; @@ -5119,7 +5594,27 @@ inline void EnginePayloadStatus::set_allocated_validationerror(std::string* vali // EnginePayloadAttributes -// uint64 timestamp = 1; +// uint32 version = 1; +inline void EnginePayloadAttributes::clear_version() { + version_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 EnginePayloadAttributes::_internal_version() const { + return version_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 EnginePayloadAttributes::version() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.version) + return _internal_version(); +} +inline void EnginePayloadAttributes::_internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) { + + version_ = value; +} +inline void EnginePayloadAttributes::set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_version(value); + // @@protoc_insertion_point(field_set:remote.EnginePayloadAttributes.version) +} + +// uint64 timestamp = 2; inline void EnginePayloadAttributes::clear_timestamp() { timestamp_ = PROTOBUF_ULONGLONG(0); } @@ -5139,7 +5634,7 @@ inline void EnginePayloadAttributes::set_timestamp(::PROTOBUF_NAMESPACE_ID::uint // @@protoc_insertion_point(field_set:remote.EnginePayloadAttributes.timestamp) } -// .types.H256 prevRandao = 2; +// .types.H256 prevRandao = 3; inline bool EnginePayloadAttributes::_internal_has_prevrandao() const { return this != internal_default_instance() && prevrandao_ != nullptr; } @@ -5216,7 +5711,7 @@ inline void EnginePayloadAttributes::set_allocated_prevrandao(::types::H256* pre // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributes.prevRandao) } -// .types.H160 suggestedFeeRecipient = 3; +// .types.H160 suggestedFeeRecipient = 4; inline bool EnginePayloadAttributes::_internal_has_suggestedfeerecipient() const { return this != internal_default_instance() && suggestedfeerecipient_ != nullptr; } @@ -5293,6 +5788,42 @@ inline void EnginePayloadAttributes::set_allocated_suggestedfeerecipient(::types // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributes.suggestedFeeRecipient) } +// repeated .types.Withdrawal withdrawals = 5; +inline int EnginePayloadAttributes::_internal_withdrawals_size() const { + return withdrawals_.size(); +} +inline int EnginePayloadAttributes::withdrawals_size() const { + return _internal_withdrawals_size(); +} +inline ::types::Withdrawal* EnginePayloadAttributes::mutable_withdrawals(int index) { + // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributes.withdrawals) + return withdrawals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* +EnginePayloadAttributes::mutable_withdrawals() { + // @@protoc_insertion_point(field_mutable_list:remote.EnginePayloadAttributes.withdrawals) + return &withdrawals_; +} +inline const ::types::Withdrawal& EnginePayloadAttributes::_internal_withdrawals(int index) const { + return withdrawals_.Get(index); +} +inline const ::types::Withdrawal& EnginePayloadAttributes::withdrawals(int index) const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.withdrawals) + return _internal_withdrawals(index); +} +inline ::types::Withdrawal* EnginePayloadAttributes::_internal_add_withdrawals() { + return withdrawals_.Add(); +} +inline ::types::Withdrawal* EnginePayloadAttributes::add_withdrawals() { + // @@protoc_insertion_point(field_add:remote.EnginePayloadAttributes.withdrawals) + return _internal_add_withdrawals(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& +EnginePayloadAttributes::withdrawals() const { + // @@protoc_insertion_point(field_list:remote.EnginePayloadAttributes.withdrawals) + return withdrawals_; +} + // ------------------------------------------------------------------- // EngineForkChoiceState @@ -5700,402 +6231,267 @@ inline void EngineForkChoiceUpdatedRequest::set_allocated_payloadattributes(::re // ------------------------------------------------------------------- -// EnginePayloadAttributesV2 +// EngineForkChoiceUpdatedResponse -// .remote.EnginePayloadAttributes attributes = 1; -inline bool EnginePayloadAttributesV2::_internal_has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; +// .remote.EnginePayloadStatus payloadStatus = 1; +inline bool EngineForkChoiceUpdatedResponse::_internal_has_payloadstatus() const { + return this != internal_default_instance() && payloadstatus_ != nullptr; } -inline bool EnginePayloadAttributesV2::has_attributes() const { - return _internal_has_attributes(); +inline bool EngineForkChoiceUpdatedResponse::has_payloadstatus() const { + return _internal_has_payloadstatus(); } -inline void EnginePayloadAttributesV2::clear_attributes() { - if (GetArena() == nullptr && attributes_ != nullptr) { - delete attributes_; +inline void EngineForkChoiceUpdatedResponse::clear_payloadstatus() { + if (GetArena() == nullptr && payloadstatus_ != nullptr) { + delete payloadstatus_; } - attributes_ = nullptr; + payloadstatus_ = nullptr; } -inline const ::remote::EnginePayloadAttributes& EnginePayloadAttributesV2::_internal_attributes() const { - const ::remote::EnginePayloadAttributes* p = attributes_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EnginePayloadAttributes_default_instance_); +inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedResponse::_internal_payloadstatus() const { + const ::remote::EnginePayloadStatus* p = payloadstatus_; + return p != nullptr ? *p : reinterpret_cast( + ::remote::_EnginePayloadStatus_default_instance_); } -inline const ::remote::EnginePayloadAttributes& EnginePayloadAttributesV2::attributes() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributesV2.attributes) - return _internal_attributes(); +inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedResponse::payloadstatus() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedResponse.payloadStatus) + return _internal_payloadstatus(); } -inline void EnginePayloadAttributesV2::unsafe_arena_set_allocated_attributes( - ::remote::EnginePayloadAttributes* attributes) { +inline void EngineForkChoiceUpdatedResponse::unsafe_arena_set_allocated_payloadstatus( + ::remote::EnginePayloadStatus* payloadstatus) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attributes_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payloadstatus_); } - attributes_ = attributes; - if (attributes) { + payloadstatus_ = payloadstatus; + if (payloadstatus) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadAttributesV2.attributes) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedResponse.payloadStatus) } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::release_attributes() { +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::release_payloadstatus() { - ::remote::EnginePayloadAttributes* temp = attributes_; - attributes_ = nullptr; + ::remote::EnginePayloadStatus* temp = payloadstatus_; + payloadstatus_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::unsafe_arena_release_attributes() { - // @@protoc_insertion_point(field_release:remote.EnginePayloadAttributesV2.attributes) +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::unsafe_arena_release_payloadstatus() { + // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedResponse.payloadStatus) - ::remote::EnginePayloadAttributes* temp = attributes_; - attributes_ = nullptr; + ::remote::EnginePayloadStatus* temp = payloadstatus_; + payloadstatus_ = nullptr; return temp; } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::_internal_mutable_attributes() { +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::_internal_mutable_payloadstatus() { - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EnginePayloadAttributes>(GetArena()); - attributes_ = p; + if (payloadstatus_ == nullptr) { + auto* p = CreateMaybeMessage<::remote::EnginePayloadStatus>(GetArena()); + payloadstatus_ = p; } - return attributes_; + return payloadstatus_; } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::mutable_attributes() { - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributesV2.attributes) - return _internal_mutable_attributes(); +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::mutable_payloadstatus() { + // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedResponse.payloadStatus) + return _internal_mutable_payloadstatus(); } -inline void EnginePayloadAttributesV2::set_allocated_attributes(::remote::EnginePayloadAttributes* attributes) { +inline void EngineForkChoiceUpdatedResponse::set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete attributes_; + delete payloadstatus_; } - if (attributes) { + if (payloadstatus) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(attributes); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(payloadstatus); if (message_arena != submessage_arena) { - attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); + payloadstatus = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, payloadstatus, submessage_arena); } } else { } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributesV2.attributes) + payloadstatus_ = payloadstatus; + // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedResponse.payloadStatus) } -// repeated .types.Withdrawal withdrawals = 2; -inline int EnginePayloadAttributesV2::_internal_withdrawals_size() const { - return withdrawals_.size(); -} -inline int EnginePayloadAttributesV2::withdrawals_size() const { - return _internal_withdrawals_size(); -} -inline ::types::Withdrawal* EnginePayloadAttributesV2::mutable_withdrawals(int index) { - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributesV2.withdrawals) - return withdrawals_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* -EnginePayloadAttributesV2::mutable_withdrawals() { - // @@protoc_insertion_point(field_mutable_list:remote.EnginePayloadAttributesV2.withdrawals) - return &withdrawals_; -} -inline const ::types::Withdrawal& EnginePayloadAttributesV2::_internal_withdrawals(int index) const { - return withdrawals_.Get(index); +// uint64 payloadId = 2; +inline void EngineForkChoiceUpdatedResponse::clear_payloadid() { + payloadid_ = PROTOBUF_ULONGLONG(0); } -inline const ::types::Withdrawal& EnginePayloadAttributesV2::withdrawals(int index) const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributesV2.withdrawals) - return _internal_withdrawals(index); +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineForkChoiceUpdatedResponse::_internal_payloadid() const { + return payloadid_; } -inline ::types::Withdrawal* EnginePayloadAttributesV2::_internal_add_withdrawals() { - return withdrawals_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineForkChoiceUpdatedResponse::payloadid() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedResponse.payloadId) + return _internal_payloadid(); } -inline ::types::Withdrawal* EnginePayloadAttributesV2::add_withdrawals() { - // @@protoc_insertion_point(field_add:remote.EnginePayloadAttributesV2.withdrawals) - return _internal_add_withdrawals(); +inline void EngineForkChoiceUpdatedResponse::_internal_set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + payloadid_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& -EnginePayloadAttributesV2::withdrawals() const { - // @@protoc_insertion_point(field_list:remote.EnginePayloadAttributesV2.withdrawals) - return withdrawals_; +inline void EngineForkChoiceUpdatedResponse::set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_payloadid(value); + // @@protoc_insertion_point(field_set:remote.EngineForkChoiceUpdatedResponse.payloadId) } // ------------------------------------------------------------------- -// EngineForkChoiceUpdatedRequestV2 - -// .remote.EngineForkChoiceState forkchoiceState = 1; -inline bool EngineForkChoiceUpdatedRequestV2::_internal_has_forkchoicestate() const { - return this != internal_default_instance() && forkchoicestate_ != nullptr; -} -inline bool EngineForkChoiceUpdatedRequestV2::has_forkchoicestate() const { - return _internal_has_forkchoicestate(); -} -inline void EngineForkChoiceUpdatedRequestV2::clear_forkchoicestate() { - if (GetArena() == nullptr && forkchoicestate_ != nullptr) { - delete forkchoicestate_; - } - forkchoicestate_ = nullptr; -} -inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequestV2::_internal_forkchoicestate() const { - const ::remote::EngineForkChoiceState* p = forkchoicestate_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EngineForkChoiceState_default_instance_); -} -inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequestV2::forkchoicestate() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) - return _internal_forkchoicestate(); -} -inline void EngineForkChoiceUpdatedRequestV2::unsafe_arena_set_allocated_forkchoicestate( - ::remote::EngineForkChoiceState* forkchoicestate) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(forkchoicestate_); - } - forkchoicestate_ = forkchoicestate; - if (forkchoicestate) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) -} -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::release_forkchoicestate() { - - ::remote::EngineForkChoiceState* temp = forkchoicestate_; - forkchoicestate_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::unsafe_arena_release_forkchoicestate() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) - - ::remote::EngineForkChoiceState* temp = forkchoicestate_; - forkchoicestate_ = nullptr; - return temp; -} -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::_internal_mutable_forkchoicestate() { - - if (forkchoicestate_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EngineForkChoiceState>(GetArena()); - forkchoicestate_ = p; - } - return forkchoicestate_; -} -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::mutable_forkchoicestate() { - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) - return _internal_mutable_forkchoicestate(); -} -inline void EngineForkChoiceUpdatedRequestV2::set_allocated_forkchoicestate(::remote::EngineForkChoiceState* forkchoicestate) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete forkchoicestate_; - } - if (forkchoicestate) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(forkchoicestate); - if (message_arena != submessage_arena) { - forkchoicestate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, forkchoicestate, submessage_arena); - } - - } else { - - } - forkchoicestate_ = forkchoicestate; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) -} +// EngineGetPayloadResponse -// .remote.EnginePayloadAttributesV2 payloadAttributes = 2; -inline bool EngineForkChoiceUpdatedRequestV2::_internal_has_payloadattributes() const { - return this != internal_default_instance() && payloadattributes_ != nullptr; +// .types.ExecutionPayload executionPayload = 1; +inline bool EngineGetPayloadResponse::_internal_has_executionpayload() const { + return this != internal_default_instance() && executionpayload_ != nullptr; } -inline bool EngineForkChoiceUpdatedRequestV2::has_payloadattributes() const { - return _internal_has_payloadattributes(); -} -inline void EngineForkChoiceUpdatedRequestV2::clear_payloadattributes() { - if (GetArena() == nullptr && payloadattributes_ != nullptr) { - delete payloadattributes_; - } - payloadattributes_ = nullptr; +inline bool EngineGetPayloadResponse::has_executionpayload() const { + return _internal_has_executionpayload(); } -inline const ::remote::EnginePayloadAttributesV2& EngineForkChoiceUpdatedRequestV2::_internal_payloadattributes() const { - const ::remote::EnginePayloadAttributesV2* p = payloadattributes_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EnginePayloadAttributesV2_default_instance_); +inline const ::types::ExecutionPayload& EngineGetPayloadResponse::_internal_executionpayload() const { + const ::types::ExecutionPayload* p = executionpayload_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_ExecutionPayload_default_instance_); } -inline const ::remote::EnginePayloadAttributesV2& EngineForkChoiceUpdatedRequestV2::payloadattributes() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) - return _internal_payloadattributes(); +inline const ::types::ExecutionPayload& EngineGetPayloadResponse::executionpayload() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadResponse.executionPayload) + return _internal_executionpayload(); } -inline void EngineForkChoiceUpdatedRequestV2::unsafe_arena_set_allocated_payloadattributes( - ::remote::EnginePayloadAttributesV2* payloadattributes) { +inline void EngineGetPayloadResponse::unsafe_arena_set_allocated_executionpayload( + ::types::ExecutionPayload* executionpayload) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payloadattributes_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(executionpayload_); } - payloadattributes_ = payloadattributes; - if (payloadattributes) { + executionpayload_ = executionpayload; + if (executionpayload) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineGetPayloadResponse.executionPayload) } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::release_payloadattributes() { +inline ::types::ExecutionPayload* EngineGetPayloadResponse::release_executionpayload() { - ::remote::EnginePayloadAttributesV2* temp = payloadattributes_; - payloadattributes_ = nullptr; + ::types::ExecutionPayload* temp = executionpayload_; + executionpayload_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::unsafe_arena_release_payloadattributes() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) +inline ::types::ExecutionPayload* EngineGetPayloadResponse::unsafe_arena_release_executionpayload() { + // @@protoc_insertion_point(field_release:remote.EngineGetPayloadResponse.executionPayload) - ::remote::EnginePayloadAttributesV2* temp = payloadattributes_; - payloadattributes_ = nullptr; + ::types::ExecutionPayload* temp = executionpayload_; + executionpayload_ = nullptr; return temp; } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::_internal_mutable_payloadattributes() { +inline ::types::ExecutionPayload* EngineGetPayloadResponse::_internal_mutable_executionpayload() { - if (payloadattributes_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EnginePayloadAttributesV2>(GetArena()); - payloadattributes_ = p; + if (executionpayload_ == nullptr) { + auto* p = CreateMaybeMessage<::types::ExecutionPayload>(GetArena()); + executionpayload_ = p; } - return payloadattributes_; + return executionpayload_; } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::mutable_payloadattributes() { - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) - return _internal_mutable_payloadattributes(); +inline ::types::ExecutionPayload* EngineGetPayloadResponse::mutable_executionpayload() { + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadResponse.executionPayload) + return _internal_mutable_executionpayload(); } -inline void EngineForkChoiceUpdatedRequestV2::set_allocated_payloadattributes(::remote::EnginePayloadAttributesV2* payloadattributes) { +inline void EngineGetPayloadResponse::set_allocated_executionpayload(::types::ExecutionPayload* executionpayload) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete payloadattributes_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(executionpayload_); } - if (payloadattributes) { + if (executionpayload) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(payloadattributes); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(executionpayload)->GetArena(); if (message_arena != submessage_arena) { - payloadattributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payloadattributes, submessage_arena); + executionpayload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, executionpayload, submessage_arena); } } else { } - payloadattributes_ = payloadattributes; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) + executionpayload_ = executionpayload; + // @@protoc_insertion_point(field_set_allocated:remote.EngineGetPayloadResponse.executionPayload) } -// ------------------------------------------------------------------- - -// EngineForkChoiceUpdatedReply - -// .remote.EnginePayloadStatus payloadStatus = 1; -inline bool EngineForkChoiceUpdatedReply::_internal_has_payloadstatus() const { - return this != internal_default_instance() && payloadstatus_ != nullptr; -} -inline bool EngineForkChoiceUpdatedReply::has_payloadstatus() const { - return _internal_has_payloadstatus(); +// .types.H256 blockValue = 2; +inline bool EngineGetPayloadResponse::_internal_has_blockvalue() const { + return this != internal_default_instance() && blockvalue_ != nullptr; } -inline void EngineForkChoiceUpdatedReply::clear_payloadstatus() { - if (GetArena() == nullptr && payloadstatus_ != nullptr) { - delete payloadstatus_; - } - payloadstatus_ = nullptr; +inline bool EngineGetPayloadResponse::has_blockvalue() const { + return _internal_has_blockvalue(); } -inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedReply::_internal_payloadstatus() const { - const ::remote::EnginePayloadStatus* p = payloadstatus_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EnginePayloadStatus_default_instance_); +inline const ::types::H256& EngineGetPayloadResponse::_internal_blockvalue() const { + const ::types::H256* p = blockvalue_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); } -inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedReply::payloadstatus() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedReply.payloadStatus) - return _internal_payloadstatus(); +inline const ::types::H256& EngineGetPayloadResponse::blockvalue() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadResponse.blockValue) + return _internal_blockvalue(); } -inline void EngineForkChoiceUpdatedReply::unsafe_arena_set_allocated_payloadstatus( - ::remote::EnginePayloadStatus* payloadstatus) { +inline void EngineGetPayloadResponse::unsafe_arena_set_allocated_blockvalue( + ::types::H256* blockvalue) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payloadstatus_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockvalue_); } - payloadstatus_ = payloadstatus; - if (payloadstatus) { + blockvalue_ = blockvalue; + if (blockvalue) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedReply.payloadStatus) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineGetPayloadResponse.blockValue) } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::release_payloadstatus() { +inline ::types::H256* EngineGetPayloadResponse::release_blockvalue() { - ::remote::EnginePayloadStatus* temp = payloadstatus_; - payloadstatus_ = nullptr; + ::types::H256* temp = blockvalue_; + blockvalue_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::unsafe_arena_release_payloadstatus() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedReply.payloadStatus) +inline ::types::H256* EngineGetPayloadResponse::unsafe_arena_release_blockvalue() { + // @@protoc_insertion_point(field_release:remote.EngineGetPayloadResponse.blockValue) - ::remote::EnginePayloadStatus* temp = payloadstatus_; - payloadstatus_ = nullptr; + ::types::H256* temp = blockvalue_; + blockvalue_ = nullptr; return temp; } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::_internal_mutable_payloadstatus() { +inline ::types::H256* EngineGetPayloadResponse::_internal_mutable_blockvalue() { - if (payloadstatus_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EnginePayloadStatus>(GetArena()); - payloadstatus_ = p; + if (blockvalue_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArena()); + blockvalue_ = p; } - return payloadstatus_; + return blockvalue_; } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::mutable_payloadstatus() { - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedReply.payloadStatus) - return _internal_mutable_payloadstatus(); +inline ::types::H256* EngineGetPayloadResponse::mutable_blockvalue() { + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadResponse.blockValue) + return _internal_mutable_blockvalue(); } -inline void EngineForkChoiceUpdatedReply::set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus) { +inline void EngineGetPayloadResponse::set_allocated_blockvalue(::types::H256* blockvalue) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete payloadstatus_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockvalue_); } - if (payloadstatus) { + if (blockvalue) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(payloadstatus); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockvalue)->GetArena(); if (message_arena != submessage_arena) { - payloadstatus = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payloadstatus, submessage_arena); + blockvalue = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, blockvalue, submessage_arena); } } else { } - payloadstatus_ = payloadstatus; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedReply.payloadStatus) -} - -// uint64 payloadId = 2; -inline void EngineForkChoiceUpdatedReply::clear_payloadid() { - payloadid_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineForkChoiceUpdatedReply::_internal_payloadid() const { - return payloadid_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineForkChoiceUpdatedReply::payloadid() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedReply.payloadId) - return _internal_payloadid(); -} -inline void EngineForkChoiceUpdatedReply::_internal_set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - payloadid_ = value; -} -inline void EngineForkChoiceUpdatedReply::set_payloadid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_payloadid(value); - // @@protoc_insertion_point(field_set:remote.EngineForkChoiceUpdatedReply.payloadId) + blockvalue_ = blockvalue; + // @@protoc_insertion_point(field_set_allocated:remote.EngineGetPayloadResponse.blockValue) } // ------------------------------------------------------------------- @@ -7333,6 +7729,130 @@ inline void PendingBlockReply::set_allocated_blockrlp(std::string* blockrlp) { // @@protoc_insertion_point(field_set_allocated:remote.PendingBlockReply.blockRlp) } +// ------------------------------------------------------------------- + +// EngineGetPayloadBodiesByHashV1Request + +// repeated .types.H256 hashes = 1; +inline int EngineGetPayloadBodiesByHashV1Request::_internal_hashes_size() const { + return hashes_.size(); +} +inline int EngineGetPayloadBodiesByHashV1Request::hashes_size() const { + return _internal_hashes_size(); +} +inline ::types::H256* EngineGetPayloadBodiesByHashV1Request::mutable_hashes(int index) { + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return hashes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >* +EngineGetPayloadBodiesByHashV1Request::mutable_hashes() { + // @@protoc_insertion_point(field_mutable_list:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return &hashes_; +} +inline const ::types::H256& EngineGetPayloadBodiesByHashV1Request::_internal_hashes(int index) const { + return hashes_.Get(index); +} +inline const ::types::H256& EngineGetPayloadBodiesByHashV1Request::hashes(int index) const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return _internal_hashes(index); +} +inline ::types::H256* EngineGetPayloadBodiesByHashV1Request::_internal_add_hashes() { + return hashes_.Add(); +} +inline ::types::H256* EngineGetPayloadBodiesByHashV1Request::add_hashes() { + // @@protoc_insertion_point(field_add:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return _internal_add_hashes(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >& +EngineGetPayloadBodiesByHashV1Request::hashes() const { + // @@protoc_insertion_point(field_list:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return hashes_; +} + +// ------------------------------------------------------------------- + +// EngineGetPayloadBodiesByRangeV1Request + +// uint64 start = 1; +inline void EngineGetPayloadBodiesByRangeV1Request::clear_start() { + start_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineGetPayloadBodiesByRangeV1Request::_internal_start() const { + return start_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineGetPayloadBodiesByRangeV1Request::start() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesByRangeV1Request.start) + return _internal_start(); +} +inline void EngineGetPayloadBodiesByRangeV1Request::_internal_set_start(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + start_ = value; +} +inline void EngineGetPayloadBodiesByRangeV1Request::set_start(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_start(value); + // @@protoc_insertion_point(field_set:remote.EngineGetPayloadBodiesByRangeV1Request.start) +} + +// uint64 count = 2; +inline void EngineGetPayloadBodiesByRangeV1Request::clear_count() { + count_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineGetPayloadBodiesByRangeV1Request::_internal_count() const { + return count_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 EngineGetPayloadBodiesByRangeV1Request::count() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesByRangeV1Request.count) + return _internal_count(); +} +inline void EngineGetPayloadBodiesByRangeV1Request::_internal_set_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + count_ = value; +} +inline void EngineGetPayloadBodiesByRangeV1Request::set_count(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:remote.EngineGetPayloadBodiesByRangeV1Request.count) +} + +// ------------------------------------------------------------------- + +// EngineGetPayloadBodiesV1Response + +// repeated .types.ExecutionPayloadBodyV1 bodies = 1; +inline int EngineGetPayloadBodiesV1Response::_internal_bodies_size() const { + return bodies_.size(); +} +inline int EngineGetPayloadBodiesV1Response::bodies_size() const { + return _internal_bodies_size(); +} +inline ::types::ExecutionPayloadBodyV1* EngineGetPayloadBodiesV1Response::mutable_bodies(int index) { + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadBodiesV1Response.bodies) + return bodies_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >* +EngineGetPayloadBodiesV1Response::mutable_bodies() { + // @@protoc_insertion_point(field_mutable_list:remote.EngineGetPayloadBodiesV1Response.bodies) + return &bodies_; +} +inline const ::types::ExecutionPayloadBodyV1& EngineGetPayloadBodiesV1Response::_internal_bodies(int index) const { + return bodies_.Get(index); +} +inline const ::types::ExecutionPayloadBodyV1& EngineGetPayloadBodiesV1Response::bodies(int index) const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesV1Response.bodies) + return _internal_bodies(index); +} +inline ::types::ExecutionPayloadBodyV1* EngineGetPayloadBodiesV1Response::_internal_add_bodies() { + return bodies_.Add(); +} +inline ::types::ExecutionPayloadBodyV1* EngineGetPayloadBodiesV1Response::add_bodies() { + // @@protoc_insertion_point(field_add:remote.EngineGetPayloadBodiesV1Response.bodies) + return _internal_add_bodies(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >& +EngineGetPayloadBodiesV1Response::bodies() const { + // @@protoc_insertion_point(field_list:remote.EngineGetPayloadBodiesV1Response.bodies) + return bodies_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -7394,6 +7914,12 @@ inline void PendingBlockReply::set_allocated_blockrlp(std::string* blockrlp) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/silkworm/interfaces/3.14.0/remote/ethbackend_mock.grpc.pb.h b/silkworm/interfaces/3.14.0/remote/ethbackend_mock.grpc.pb.h index 15f1c2f174..5e1ef46cfa 100644 --- a/silkworm/interfaces/3.14.0/remote/ethbackend_mock.grpc.pb.h +++ b/silkworm/interfaces/3.14.0/remote/ethbackend_mock.grpc.pb.h @@ -21,24 +21,24 @@ class MockETHBACKENDStub : public ETHBACKEND::StubInterface { MOCK_METHOD3(NetPeerCount, ::grpc::Status(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::remote::NetPeerCountReply* response)); MOCK_METHOD3(AsyncNetPeerCountRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>*(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncNetPeerCountRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>*(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineNewPayloadV1, ::grpc::Status(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response)); - MOCK_METHOD3(AsyncEngineNewPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineNewPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineNewPayloadV2, ::grpc::Status(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response)); - MOCK_METHOD3(AsyncEngineNewPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineNewPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineForkChoiceUpdatedV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response)); - MOCK_METHOD3(AsyncEngineForkChoiceUpdatedV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineForkChoiceUpdatedV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineForkChoiceUpdatedV2, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response)); - MOCK_METHOD3(AsyncEngineForkChoiceUpdatedV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineForkChoiceUpdatedV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineGetPayloadV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response)); - MOCK_METHOD3(AsyncEngineGetPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineGetPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineGetPayloadV2, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response)); - MOCK_METHOD3(AsyncEngineGetPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineGetPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineNewPayload, ::grpc::Status(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response)); + MOCK_METHOD3(AsyncEngineNewPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineNewPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineForkChoiceUpdated, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response)); + MOCK_METHOD3(AsyncEngineForkChoiceUpdatedRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineForkChoiceUpdatedRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetPayload, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response)); + MOCK_METHOD3(AsyncEngineGetPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetPayloadBodiesByHashV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response)); + MOCK_METHOD3(AsyncEngineGetPayloadBodiesByHashV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetPayloadBodiesByHashV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetPayloadBodiesByRangeV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response)); + MOCK_METHOD3(AsyncEngineGetPayloadBodiesByRangeV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetBlobsBundleV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response)); + MOCK_METHOD3(AsyncEngineGetBlobsBundleV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>*(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetBlobsBundleV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>*(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(Version, ::grpc::Status(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::types::VersionReply* response)); MOCK_METHOD3(AsyncVersionRaw, ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncVersionRaw, ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); diff --git a/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.cc b/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.cc index e40aac508a..3a4ea289a2 100644 --- a/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.cc +++ b/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.cc @@ -26,8 +26,12 @@ static const char* KV_method_names[] = { "/remote.KV/Tx", "/remote.KV/StateChanges", "/remote.KV/Snapshots", + "/remote.KV/Range", + "/remote.KV/DomainGet", "/remote.KV/HistoryGet", "/remote.KV/IndexRange", + "/remote.KV/HistoryRange", + "/remote.KV/DomainRange", }; std::unique_ptr< KV::Stub> KV::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -41,8 +45,12 @@ KV::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const , rpcmethod_Tx_(KV_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) , rpcmethod_StateChanges_(KV_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) , rpcmethod_Snapshots_(KV_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_HistoryGet_(KV_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IndexRange_(KV_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_Range_(KV_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DomainGet_(KV_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_HistoryGet_(KV_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IndexRange_(KV_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_HistoryRange_(KV_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DomainRange_(KV_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status KV::Stub::Version(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::types::VersionReply* response) { @@ -123,6 +131,52 @@ ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>* KV::Stub::AsyncSna return result; } +::grpc::Status KV::Stub::Range(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::RangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Range_, context, request, response); +} + +void KV::Stub::async::Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::RangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Range_, context, request, response, std::move(f)); +} + +void KV::Stub::async::Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Range_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::PrepareAsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::Pairs, ::remote::RangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Range_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::AsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRangeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status KV::Stub::DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::DomainGetReq, ::remote::DomainGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DomainGet_, context, request, response); +} + +void KV::Stub::async::DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::DomainGetReq, ::remote::DomainGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainGet_, context, request, response, std::move(f)); +} + +void KV::Stub::async::DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainGet_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* KV::Stub::PrepareAsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::DomainGetReply, ::remote::DomainGetReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DomainGet_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* KV::Stub::AsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDomainGetRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status KV::Stub::HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response) { return ::grpc::internal::BlockingUnaryCall< ::remote::HistoryGetReq, ::remote::HistoryGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HistoryGet_, context, request, response); } @@ -146,20 +200,73 @@ ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>* KV::Stub::AsyncHi return result; } -::grpc::ClientReader< ::remote::IndexRangeReply>* KV::Stub::IndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) { - return ::grpc::internal::ClientReaderFactory< ::remote::IndexRangeReply>::Create(channel_.get(), rpcmethod_IndexRange_, context, request); +::grpc::Status KV::Stub::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::IndexRangeReq, ::remote::IndexRangeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IndexRange_, context, request, response); +} + +void KV::Stub::async::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::IndexRangeReq, ::remote::IndexRangeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IndexRange_, context, request, response, std::move(f)); +} + +void KV::Stub::async::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IndexRange_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* KV::Stub::PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::IndexRangeReply, ::remote::IndexRangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IndexRange_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* KV::Stub::AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncIndexRangeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status KV::Stub::HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::HistoryRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HistoryRange_, context, request, response); } -void KV::Stub::async::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::grpc::ClientReadReactor< ::remote::IndexRangeReply>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::remote::IndexRangeReply>::Create(stub_->channel_.get(), stub_->rpcmethod_IndexRange_, context, request, reactor); +void KV::Stub::async::HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::HistoryRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HistoryRange_, context, request, response, std::move(f)); } -::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* KV::Stub::AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::remote::IndexRangeReply>::Create(channel_.get(), cq, rpcmethod_IndexRange_, context, request, true, tag); +void KV::Stub::async::HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HistoryRange_, context, request, response, reactor); } -::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* KV::Stub::PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::remote::IndexRangeReply>::Create(channel_.get(), cq, rpcmethod_IndexRange_, context, request, false, nullptr); +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::PrepareAsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::Pairs, ::remote::HistoryRangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_HistoryRange_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::AsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncHistoryRangeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status KV::Stub::DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::DomainRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DomainRange_, context, request, response); +} + +void KV::Stub::async::DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::DomainRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainRange_, context, request, response, std::move(f)); +} + +void KV::Stub::async::DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainRange_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::PrepareAsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::Pairs, ::remote::DomainRangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DomainRange_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::AsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDomainRangeRaw(context, request, cq); + result->StartCall(); + return result; } KV::Service::Service() { @@ -206,6 +313,26 @@ KV::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( KV_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::RangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::RangeReq* req, + ::remote::Pairs* resp) { + return service->Range(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::DomainGetReq, ::remote::DomainGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::DomainGetReq* req, + ::remote::DomainGetReply* resp) { + return service->DomainGet(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::HistoryGetReq, ::remote::HistoryGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](KV::Service* service, ::grpc::ServerContext* ctx, @@ -214,14 +341,34 @@ KV::Service::Service() { return service->HistoryGet(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - KV_method_names[5], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< KV::Service, ::remote::IndexRangeReq, ::remote::IndexRangeReply>( + KV_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::IndexRangeReq, ::remote::IndexRangeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](KV::Service* service, ::grpc::ServerContext* ctx, const ::remote::IndexRangeReq* req, - ::grpc::ServerWriter<::remote::IndexRangeReply>* writer) { - return service->IndexRange(ctx, req, writer); + ::remote::IndexRangeReply* resp) { + return service->IndexRange(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::HistoryRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::HistoryRangeReq* req, + ::remote::Pairs* resp) { + return service->HistoryRange(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::DomainRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::DomainRangeReq* req, + ::remote::Pairs* resp) { + return service->DomainRange(ctx, req, resp); }, this))); } @@ -255,6 +402,20 @@ ::grpc::Status KV::Service::Snapshots(::grpc::ServerContext* context, const ::re return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status KV::Service::Range(::grpc::ServerContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status KV::Service::DomainGet(::grpc::ServerContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status KV::Service::HistoryGet(::grpc::ServerContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response) { (void) context; (void) request; @@ -262,10 +423,24 @@ ::grpc::Status KV::Service::HistoryGet(::grpc::ServerContext* context, const ::r return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status KV::Service::IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::grpc::ServerWriter< ::remote::IndexRangeReply>* writer) { +::grpc::Status KV::Service::IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response) { (void) context; (void) request; - (void) writer; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status KV::Service::HistoryRange(::grpc::ServerContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status KV::Service::DomainRange(::grpc::ServerContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response) { + (void) context; + (void) request; + (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } diff --git a/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.h b/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.h index acaf283caa..fb5b705f11 100644 --- a/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.h +++ b/silkworm/interfaces/3.14.0/remote/kv.grpc.pb.h @@ -43,6 +43,12 @@ namespace remote { // Prefix: Has(k, prefix) // Amount: [from, INF) AND maximum N records // +// Entity Naming: +// State: simple table in db +// InvertedIndex: supports range-scans +// History: can return value of key K as of given TimeStamp. Doesn't know about latest/current value of key K. Returns NIL if K not changed after TimeStamp. +// Domain: as History but also aware about latest/current value of key K. +// // Provides methods to access key-value data class KV final { public: @@ -91,7 +97,27 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>> PrepareAsyncSnapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>>(PrepareAsyncSnapshotsRaw(context, request, cq)); } + // Range [from, to) + // Range(from, nil) means [from, EndOfTable) + // Range(nil, to) means [StartOfTable, to) + // If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A") + virtual ::grpc::Status Range(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> AsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(AsyncRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> PrepareAsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(PrepareAsyncRangeRaw(context, request, cq)); + } + // rpc Stream(RangeReq) returns (stream Pairs); // Temporal methods + virtual ::grpc::Status DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>> AsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>>(AsyncDomainGetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>> PrepareAsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>>(PrepareAsyncDomainGetRaw(context, request, cq)); + } + // can return latest value or as of given timestamp virtual ::grpc::Status HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>> AsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>>(AsyncHistoryGetRaw(context, request, cq)); @@ -99,14 +125,26 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>> PrepareAsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>>(PrepareAsyncHistoryGetRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>> IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>>(IndexRangeRaw(context, request)); + virtual ::grpc::Status IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + } + virtual ::grpc::Status HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> AsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(AsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> PrepareAsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(PrepareAsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + virtual ::grpc::Status DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> AsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(AsyncDomainRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> PrepareAsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(PrepareAsyncDomainRangeRaw(context, request, cq)); } class async_interface { public: @@ -124,10 +162,25 @@ class KV final { // Snapshots returns list of current snapshot files. Then client can just open all of them. virtual void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, std::function) = 0; virtual void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Range [from, to) + // Range(from, nil) means [from, EndOfTable) + // Range(nil, to) means [StartOfTable, to) + // If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A") + virtual void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, std::function) = 0; + virtual void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // rpc Stream(RangeReq) returns (stream Pairs); // Temporal methods + virtual void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, std::function) = 0; + virtual void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // can return latest value or as of given timestamp virtual void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, std::function) = 0; virtual void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::grpc::ClientReadReactor< ::remote::IndexRangeReply>* reactor) = 0; + virtual void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, std::function) = 0; + virtual void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, std::function) = 0; + virtual void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, std::function) = 0; + virtual void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -143,11 +196,18 @@ class KV final { virtual ::grpc::ClientAsyncReaderInterface< ::remote::StateChangeBatch>* PrepareAsyncStateChangesRaw(::grpc::ClientContext* context, const ::remote::StateChangeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>* AsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>* PrepareAsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* AsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* PrepareAsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>* AsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>* PrepareAsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>* AsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>* PrepareAsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>* IndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* AsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* PrepareAsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* AsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* PrepareAsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -184,6 +244,20 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>> PrepareAsyncSnapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>>(PrepareAsyncSnapshotsRaw(context, request, cq)); } + ::grpc::Status Range(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> AsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(AsyncRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> PrepareAsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(PrepareAsyncRangeRaw(context, request, cq)); + } + ::grpc::Status DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>> AsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>>(AsyncDomainGetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>> PrepareAsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>>(PrepareAsyncDomainGetRaw(context, request, cq)); + } ::grpc::Status HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>> AsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>>(AsyncHistoryGetRaw(context, request, cq)); @@ -191,14 +265,26 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>> PrepareAsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>>(PrepareAsyncHistoryGetRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientReader< ::remote::IndexRangeReply>> IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) { - return std::unique_ptr< ::grpc::ClientReader< ::remote::IndexRangeReply>>(IndexRangeRaw(context, request)); + ::grpc::Status IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + } + ::grpc::Status HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> AsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(AsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> PrepareAsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(PrepareAsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + ::grpc::Status DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> AsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(AsyncDomainRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> PrepareAsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(PrepareAsyncDomainRangeRaw(context, request, cq)); } class async final : public StubInterface::async_interface { @@ -209,9 +295,18 @@ class KV final { void StateChanges(::grpc::ClientContext* context, const ::remote::StateChangeRequest* request, ::grpc::ClientReadReactor< ::remote::StateChangeBatch>* reactor) override; void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, std::function) override; void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, ::grpc::ClientUnaryReactor* reactor) override; + void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, std::function) override; + void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) override; + void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, std::function) override; + void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, ::grpc::ClientUnaryReactor* reactor) override; void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, std::function) override; void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::grpc::ClientReadReactor< ::remote::IndexRangeReply>* reactor) override; + void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, std::function) override; + void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, ::grpc::ClientUnaryReactor* reactor) override; + void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, std::function) override; + void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) override; + void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, std::function) override; + void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -233,17 +328,28 @@ class KV final { ::grpc::ClientAsyncReader< ::remote::StateChangeBatch>* PrepareAsyncStateChangesRaw(::grpc::ClientContext* context, const ::remote::StateChangeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>* AsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>* PrepareAsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* AsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* PrepareAsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* AsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* PrepareAsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>* AsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>* PrepareAsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::remote::IndexRangeReply>* IndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) override; - ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* AsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* PrepareAsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* AsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* PrepareAsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_Version_; const ::grpc::internal::RpcMethod rpcmethod_Tx_; const ::grpc::internal::RpcMethod rpcmethod_StateChanges_; const ::grpc::internal::RpcMethod rpcmethod_Snapshots_; + const ::grpc::internal::RpcMethod rpcmethod_Range_; + const ::grpc::internal::RpcMethod rpcmethod_DomainGet_; const ::grpc::internal::RpcMethod rpcmethod_HistoryGet_; const ::grpc::internal::RpcMethod rpcmethod_IndexRange_; + const ::grpc::internal::RpcMethod rpcmethod_HistoryRange_; + const ::grpc::internal::RpcMethod rpcmethod_DomainRange_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -262,9 +368,19 @@ class KV final { virtual ::grpc::Status StateChanges(::grpc::ServerContext* context, const ::remote::StateChangeRequest* request, ::grpc::ServerWriter< ::remote::StateChangeBatch>* writer); // Snapshots returns list of current snapshot files. Then client can just open all of them. virtual ::grpc::Status Snapshots(::grpc::ServerContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response); + // Range [from, to) + // Range(from, nil) means [from, EndOfTable) + // Range(nil, to) means [StartOfTable, to) + // If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A") + virtual ::grpc::Status Range(::grpc::ServerContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response); + // rpc Stream(RangeReq) returns (stream Pairs); // Temporal methods + virtual ::grpc::Status DomainGet(::grpc::ServerContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response); + // can return latest value or as of given timestamp virtual ::grpc::Status HistoryGet(::grpc::ServerContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response); - virtual ::grpc::Status IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::grpc::ServerWriter< ::remote::IndexRangeReply>* writer); + virtual ::grpc::Status IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response); + virtual ::grpc::Status HistoryRange(::grpc::ServerContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response); + virtual ::grpc::Status DomainRange(::grpc::ServerContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response); }; template class WithAsyncMethod_Version : public BaseClass { @@ -347,12 +463,52 @@ class KV final { } }; template + class WithAsyncMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Range() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRange(::grpc::ServerContext* context, ::remote::RangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::Pairs>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DomainGet() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainGet(::grpc::ServerContext* context, ::remote::DomainGetReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::DomainGetReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_HistoryGet() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_HistoryGet() override { BaseClassMustBeDerivedFromService(this); @@ -363,7 +519,7 @@ class KV final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHistoryGet(::grpc::ServerContext* context, ::remote::HistoryGetReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::HistoryGetReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -372,21 +528,61 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_IndexRange() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestIndexRange(::grpc::ServerContext* context, ::remote::IndexRangeReq* request, ::grpc::ServerAsyncWriter< ::remote::IndexRangeReply>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(5, context, request, writer, new_call_cq, notification_cq, tag); + void RequestIndexRange(::grpc::ServerContext* context, ::remote::IndexRangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::IndexRangeReply>* 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); } }; - typedef WithAsyncMethod_Version > > > > > AsyncService; + template + class WithAsyncMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_HistoryRange() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHistoryRange(::grpc::ServerContext* context, ::remote::HistoryRangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::Pairs>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DomainRange() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainRange(::grpc::ServerContext* context, ::remote::DomainRangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::Pairs>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Version > > > > > > > > > AsyncService; template class WithCallbackMethod_Version : public BaseClass { private: @@ -487,18 +683,72 @@ class KV final { ::grpc::CallbackServerContext* /*context*/, const ::remote::SnapshotsRequest* /*request*/, ::remote::SnapshotsReply* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Range() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::remote::RangeReq, ::remote::Pairs>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response) { return this->Range(context, request, response); }));} + void SetMessageAllocatorFor_Range( + ::grpc::MessageAllocator< ::remote::RangeReq, ::remote::Pairs>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::RangeReq, ::remote::Pairs>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Range( + ::grpc::CallbackServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DomainGet() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::remote::DomainGetReq, ::remote::DomainGetReply>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response) { return this->DomainGet(context, request, response); }));} + void SetMessageAllocatorFor_DomainGet( + ::grpc::MessageAllocator< ::remote::DomainGetReq, ::remote::DomainGetReply>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::DomainGetReq, ::remote::DomainGetReply>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainGet( + ::grpc::CallbackServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_HistoryGet() { - ::grpc::Service::MarkMethodCallback(4, + ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::remote::HistoryGetReq, ::remote::HistoryGetReply>( [this]( ::grpc::CallbackServerContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response) { return this->HistoryGet(context, request, response); }));} void SetMessageAllocatorFor_HistoryGet( ::grpc::MessageAllocator< ::remote::HistoryGetReq, ::remote::HistoryGetReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::HistoryGetReq, ::remote::HistoryGetReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -519,23 +769,82 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_IndexRange() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackServerStreamingHandler< ::remote::IndexRangeReq, ::remote::IndexRangeReply>( + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::remote::IndexRangeReq, ::remote::IndexRangeReply>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::IndexRangeReq* request) { return this->IndexRange(context, request); })); + ::grpc::CallbackServerContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response) { return this->IndexRange(context, request, response); }));} + void SetMessageAllocatorFor_IndexRange( + ::grpc::MessageAllocator< ::remote::IndexRangeReq, ::remote::IndexRangeReply>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::IndexRangeReq, ::remote::IndexRangeReply>*>(handler) + ->SetMessageAllocator(allocator); } ~WithCallbackMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerWriteReactor< ::remote::IndexRangeReply>* IndexRange( - ::grpc::CallbackServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* IndexRange( + ::grpc::CallbackServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Version > > > > > CallbackService; + template + class WithCallbackMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_HistoryRange() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::remote::HistoryRangeReq, ::remote::Pairs>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response) { return this->HistoryRange(context, request, response); }));} + void SetMessageAllocatorFor_HistoryRange( + ::grpc::MessageAllocator< ::remote::HistoryRangeReq, ::remote::Pairs>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::HistoryRangeReq, ::remote::Pairs>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* HistoryRange( + ::grpc::CallbackServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DomainRange() { + ::grpc::Service::MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::remote::DomainRangeReq, ::remote::Pairs>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response) { return this->DomainRange(context, request, response); }));} + void SetMessageAllocatorFor_DomainRange( + ::grpc::MessageAllocator< ::remote::DomainRangeReq, ::remote::Pairs>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::DomainRangeReq, ::remote::Pairs>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainRange( + ::grpc::CallbackServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Version > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Version : public BaseClass { @@ -606,12 +915,46 @@ class KV final { } }; template + class WithGenericMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Range() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DomainGet() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_HistoryGet() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_HistoryGet() override { BaseClassMustBeDerivedFromService(this); @@ -628,13 +971,47 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_IndexRange() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_HistoryRange() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DomainRange() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -720,12 +1097,52 @@ class KV final { } }; template + class WithRawMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Range() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRange(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DomainGet() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainGet(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_HistoryGet() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_HistoryGet() override { BaseClassMustBeDerivedFromService(this); @@ -736,7 +1153,7 @@ class KV final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHistoryGet(::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(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -745,18 +1162,58 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_IndexRange() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestIndexRange(::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(5, context, request, writer, new_call_cq, notification_cq, tag); + void RequestIndexRange(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_HistoryRange() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHistoryRange(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DomainRange() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainRange(::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(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -849,12 +1306,56 @@ class KV final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Range() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Range(context, request, response); })); + } + ~WithRawCallbackMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Range( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DomainGet() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DomainGet(context, request, response); })); + } + ~WithRawCallbackMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainGet( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_HistoryGet() { - ::grpc::Service::MarkMethodRawCallback(4, + ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HistoryGet(context, request, response); })); @@ -876,21 +1377,65 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_IndexRange() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->IndexRange(context, request); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IndexRange(context, request, response); })); } ~WithRawCallbackMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* IndexRange( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* IndexRange( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_HistoryRange() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HistoryRange(context, request, response); })); + } + ~WithRawCallbackMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* HistoryRange( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DomainRange() { + ::grpc::Service::MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DomainRange(context, request, response); })); + } + ~WithRawCallbackMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainRange( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template class WithStreamedUnaryMethod_Version : public BaseClass { @@ -947,12 +1492,66 @@ class KV final { virtual ::grpc::Status StreamedSnapshots(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::SnapshotsRequest,::remote::SnapshotsReply>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Range() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::RangeReq, ::remote::Pairs>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::RangeReq, ::remote::Pairs>* streamer) { + return this->StreamedRange(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::RangeReq,::remote::Pairs>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DomainGet() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::DomainGetReq, ::remote::DomainGetReply>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::DomainGetReq, ::remote::DomainGetReply>* streamer) { + return this->StreamedDomainGet(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDomainGet(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::DomainGetReq,::remote::DomainGetReply>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_HistoryGet() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::remote::HistoryGetReq, ::remote::HistoryGetReply>( [this](::grpc::ServerContext* context, @@ -973,63 +1572,117 @@ class KV final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedHistoryGet(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::HistoryGetReq,::remote::HistoryGetReply>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Version > > StreamedUnaryService; template - class WithSplitStreamingMethod_StateChanges : public BaseClass { + class WithStreamedUnaryMethod_IndexRange : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithSplitStreamingMethod_StateChanges() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::SplitServerStreamingHandler< - ::remote::StateChangeRequest, ::remote::StateChangeBatch>( + WithStreamedUnaryMethod_IndexRange() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::IndexRangeReq, ::remote::IndexRangeReply>( [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::remote::StateChangeRequest, ::remote::StateChangeBatch>* streamer) { - return this->StreamedStateChanges(context, + ::grpc::ServerUnaryStreamer< + ::remote::IndexRangeReq, ::remote::IndexRangeReply>* streamer) { + return this->StreamedIndexRange(context, streamer); })); } - ~WithSplitStreamingMethod_StateChanges() override { + ~WithStreamedUnaryMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status StateChanges(::grpc::ServerContext* /*context*/, const ::remote::StateChangeRequest* /*request*/, ::grpc::ServerWriter< ::remote::StateChangeBatch>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedStateChanges(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::StateChangeRequest,::remote::StateChangeBatch>* server_split_streamer) = 0; + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedIndexRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::IndexRangeReq,::remote::IndexRangeReply>* server_unary_streamer) = 0; }; template - class WithSplitStreamingMethod_IndexRange : public BaseClass { + class WithStreamedUnaryMethod_HistoryRange : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithSplitStreamingMethod_IndexRange() { - ::grpc::Service::MarkMethodStreamed(5, + WithStreamedUnaryMethod_HistoryRange() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::HistoryRangeReq, ::remote::Pairs>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::HistoryRangeReq, ::remote::Pairs>* streamer) { + return this->StreamedHistoryRange(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedHistoryRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::HistoryRangeReq,::remote::Pairs>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DomainRange() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::DomainRangeReq, ::remote::Pairs>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::DomainRangeReq, ::remote::Pairs>* streamer) { + return this->StreamedDomainRange(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDomainRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::DomainRangeReq,::remote::Pairs>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Version > > > > > > > StreamedUnaryService; + template + class WithSplitStreamingMethod_StateChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_StateChanges() { + ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::SplitServerStreamingHandler< - ::remote::IndexRangeReq, ::remote::IndexRangeReply>( + ::remote::StateChangeRequest, ::remote::StateChangeBatch>( [this](::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< - ::remote::IndexRangeReq, ::remote::IndexRangeReply>* streamer) { - return this->StreamedIndexRange(context, + ::remote::StateChangeRequest, ::remote::StateChangeBatch>* streamer) { + return this->StreamedStateChanges(context, streamer); })); } - ~WithSplitStreamingMethod_IndexRange() override { + ~WithSplitStreamingMethod_StateChanges() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status StateChanges(::grpc::ServerContext* /*context*/, const ::remote::StateChangeRequest* /*request*/, ::grpc::ServerWriter< ::remote::StateChangeBatch>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with split streamed - virtual ::grpc::Status StreamedIndexRange(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::IndexRangeReq,::remote::IndexRangeReply>* server_split_streamer) = 0; + virtual ::grpc::Status StreamedStateChanges(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::StateChangeRequest,::remote::StateChangeBatch>* server_split_streamer) = 0; }; - typedef WithSplitStreamingMethod_StateChanges > SplitStreamedService; - typedef WithStreamedUnaryMethod_Version > > > > StreamedService; + typedef WithSplitStreamingMethod_StateChanges SplitStreamedService; + typedef WithStreamedUnaryMethod_Version > > > > > > > > StreamedService; }; } // namespace remote diff --git a/silkworm/interfaces/3.14.0/remote/kv.pb.cc b/silkworm/interfaces/3.14.0/remote/kv.pb.cc index 61e3854dc0..9c22848ed1 100644 --- a/silkworm/interfaces/3.14.0/remote/kv.pb.cc +++ b/silkworm/interfaces/3.14.0/remote/kv.pb.cc @@ -56,6 +56,18 @@ class SnapshotsReplyDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _SnapshotsReply_default_instance_; +class RangeReqDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _RangeReq_default_instance_; +class DomainGetReqDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DomainGetReq_default_instance_; +class DomainGetReplyDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DomainGetReply_default_instance_; class HistoryGetReqDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -72,6 +84,26 @@ class IndexRangeReplyDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _IndexRangeReply_default_instance_; +class HistoryRangeReqDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _HistoryRangeReq_default_instance_; +class DomainRangeReqDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DomainRangeReq_default_instance_; +class PairsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Pairs_default_instance_; +class ParisPaginationDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ParisPagination_default_instance_; +class IndexPaginationDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _IndexPagination_default_instance_; } // namespace remote static void InitDefaultsscc_info_AccountChange_remote_2fkv_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -101,6 +133,45 @@ static void InitDefaultsscc_info_Cursor_remote_2fkv_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Cursor_remote_2fkv_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Cursor_remote_2fkv_2eproto}, {}}; +static void InitDefaultsscc_info_DomainGetReply_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_DomainGetReply_default_instance_; + new (ptr) ::remote::DomainGetReply(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DomainGetReply_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DomainGetReply_remote_2fkv_2eproto}, {}}; + +static void InitDefaultsscc_info_DomainGetReq_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_DomainGetReq_default_instance_; + new (ptr) ::remote::DomainGetReq(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DomainGetReq_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DomainGetReq_remote_2fkv_2eproto}, {}}; + +static void InitDefaultsscc_info_DomainRangeReq_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_DomainRangeReq_default_instance_; + new (ptr) ::remote::DomainRangeReq(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DomainRangeReq_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DomainRangeReq_remote_2fkv_2eproto}, {}}; + static void InitDefaultsscc_info_HistoryGetReply_remote_2fkv_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -127,6 +198,32 @@ static void InitDefaultsscc_info_HistoryGetReq_remote_2fkv_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HistoryGetReq_remote_2fkv_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_HistoryGetReq_remote_2fkv_2eproto}, {}}; +static void InitDefaultsscc_info_HistoryRangeReq_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_HistoryRangeReq_default_instance_; + new (ptr) ::remote::HistoryRangeReq(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_HistoryRangeReq_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_HistoryRangeReq_remote_2fkv_2eproto}, {}}; + +static void InitDefaultsscc_info_IndexPagination_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_IndexPagination_default_instance_; + new (ptr) ::remote::IndexPagination(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_IndexPagination_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_IndexPagination_remote_2fkv_2eproto}, {}}; + static void InitDefaultsscc_info_IndexRangeReply_remote_2fkv_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -166,6 +263,45 @@ static void InitDefaultsscc_info_Pair_remote_2fkv_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pair_remote_2fkv_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Pair_remote_2fkv_2eproto}, {}}; +static void InitDefaultsscc_info_Pairs_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_Pairs_default_instance_; + new (ptr) ::remote::Pairs(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Pairs_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Pairs_remote_2fkv_2eproto}, {}}; + +static void InitDefaultsscc_info_ParisPagination_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_ParisPagination_default_instance_; + new (ptr) ::remote::ParisPagination(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ParisPagination_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ParisPagination_remote_2fkv_2eproto}, {}}; + +static void InitDefaultsscc_info_RangeReq_remote_2fkv_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::remote::_RangeReq_default_instance_; + new (ptr) ::remote::RangeReq(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RangeReq_remote_2fkv_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RangeReq_remote_2fkv_2eproto}, {}}; + static void InitDefaultsscc_info_SnapshotsReply_remote_2fkv_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -248,7 +384,7 @@ ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StorageChange_remote_2fkv {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_StorageChange_remote_2fkv_2eproto}, { &scc_info_H256_types_2ftypes_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_remote_2fkv_2eproto[13]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_remote_2fkv_2eproto[21]; static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_remote_2fkv_2eproto[3]; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_remote_2fkv_2eproto = nullptr; @@ -327,14 +463,46 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_remote_2fkv_2eproto::offsets[] ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::remote::SnapshotsReply, files_), + PROTOBUF_FIELD_OFFSET(::remote::SnapshotsReply, blocks_files_), + PROTOBUF_FIELD_OFFSET(::remote::SnapshotsReply, history_files_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, table_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, from_prefix_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, to_prefix_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, limit_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, page_size_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, table_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, k_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, ts_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, k2_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, latest_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReply, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReply, v_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReply, ok_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, txid_), - PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, name_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, table_), PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, k_), PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, ts_), ~0u, // no _has_bits_ @@ -349,17 +517,72 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_remote_2fkv_2eproto::offsets[] ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, txid_), - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, name_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, table_), PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, k_), - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, fromts_), - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, tots_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, from_ts_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, to_ts_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, limit_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, page_size_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, page_token_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReply, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReply, timestamps_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReply, next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, table_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, from_ts_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, to_ts_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, limit_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, page_size_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, table_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, from_key_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, to_key_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, ts_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, latest_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, limit_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, page_size_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::Pairs, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::Pairs, keys_), + PROTOBUF_FIELD_OFFSET(::remote::Pairs, values_), + PROTOBUF_FIELD_OFFSET(::remote::Pairs, next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::ParisPagination, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::ParisPagination, next_key_), + PROTOBUF_FIELD_OFFSET(::remote::ParisPagination, limit_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::IndexPagination, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::remote::IndexPagination, next_time_stamp_), + PROTOBUF_FIELD_OFFSET(::remote::IndexPagination, limit_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::remote::Cursor)}, @@ -371,10 +594,18 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 57, -1, sizeof(::remote::StateChangeRequest)}, { 64, -1, sizeof(::remote::SnapshotsRequest)}, { 69, -1, sizeof(::remote::SnapshotsReply)}, - { 75, -1, sizeof(::remote::HistoryGetReq)}, - { 84, -1, sizeof(::remote::HistoryGetReply)}, - { 91, -1, sizeof(::remote::IndexRangeReq)}, - { 101, -1, sizeof(::remote::IndexRangeReply)}, + { 76, -1, sizeof(::remote::RangeReq)}, + { 89, -1, sizeof(::remote::DomainGetReq)}, + { 100, -1, sizeof(::remote::DomainGetReply)}, + { 107, -1, sizeof(::remote::HistoryGetReq)}, + { 116, -1, sizeof(::remote::HistoryGetReply)}, + { 123, -1, sizeof(::remote::IndexRangeReq)}, + { 137, -1, sizeof(::remote::IndexRangeReply)}, + { 144, -1, sizeof(::remote::HistoryRangeReq)}, + { 157, -1, sizeof(::remote::DomainRangeReq)}, + { 172, -1, sizeof(::remote::Pairs)}, + { 180, -1, sizeof(::remote::ParisPagination)}, + { 187, -1, sizeof(::remote::IndexPagination)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -387,10 +618,18 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::remote::_StateChangeRequest_default_instance_), reinterpret_cast(&::remote::_SnapshotsRequest_default_instance_), reinterpret_cast(&::remote::_SnapshotsReply_default_instance_), + reinterpret_cast(&::remote::_RangeReq_default_instance_), + reinterpret_cast(&::remote::_DomainGetReq_default_instance_), + reinterpret_cast(&::remote::_DomainGetReply_default_instance_), reinterpret_cast(&::remote::_HistoryGetReq_default_instance_), reinterpret_cast(&::remote::_HistoryGetReply_default_instance_), reinterpret_cast(&::remote::_IndexRangeReq_default_instance_), reinterpret_cast(&::remote::_IndexRangeReply_default_instance_), + reinterpret_cast(&::remote::_HistoryRangeReq_default_instance_), + reinterpret_cast(&::remote::_DomainRangeReq_default_instance_), + reinterpret_cast(&::remote::_Pairs_default_instance_), + reinterpret_cast(&::remote::_ParisPagination_default_instance_), + reinterpret_cast(&::remote::_IndexPagination_default_instance_), }; const char descriptor_table_protodef_remote_2fkv_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -415,46 +654,83 @@ const char descriptor_table_protodef_remote_2fkv_2eproto[] PROTOBUF_SECTION_VARI "es.H256\022&\n\007changes\030\004 \003(\0132\025.remote.Accoun" "tChange\022\013\n\003txs\030\005 \003(\014\"C\n\022StateChangeReque" "st\022\023\n\013withStorage\030\001 \001(\010\022\030\n\020withTransacti" - "ons\030\002 \001(\010\"\022\n\020SnapshotsRequest\"\037\n\016Snapsho" - "tsReply\022\r\n\005files\030\001 \003(\t\"B\n\rHistoryGetReq\022" - "\014\n\004txID\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022\t\n\001k\030\003 \001(\014\022\n" - "\n\002ts\030\004 \001(\004\"(\n\017HistoryGetReply\022\t\n\001v\030\001 \001(\014" - "\022\n\n\002ok\030\002 \001(\010\"T\n\rIndexRangeReq\022\014\n\004txID\030\001 " - "\001(\004\022\014\n\004name\030\002 \001(\t\022\t\n\001k\030\003 \001(\014\022\016\n\006fromTs\030\004" - " \001(\004\022\014\n\004toTs\030\005 \001(\004\"%\n\017IndexRangeReply\022\022\n" - "\ntimestamps\030\001 \003(\004*\206\002\n\002Op\022\t\n\005FIRST\020\000\022\r\n\tF" - "IRST_DUP\020\001\022\010\n\004SEEK\020\002\022\r\n\tSEEK_BOTH\020\003\022\013\n\007C" - "URRENT\020\004\022\010\n\004LAST\020\006\022\014\n\010LAST_DUP\020\007\022\010\n\004NEXT" - "\020\010\022\014\n\010NEXT_DUP\020\t\022\017\n\013NEXT_NO_DUP\020\013\022\010\n\004PRE" - "V\020\014\022\014\n\010PREV_DUP\020\r\022\017\n\013PREV_NO_DUP\020\016\022\016\n\nSE" - "EK_EXACT\020\017\022\023\n\017SEEK_BOTH_EXACT\020\020\022\010\n\004OPEN\020" - "\036\022\t\n\005CLOSE\020\037\022\021\n\rOPEN_DUP_SORT\020 \022\t\n\005COUNT" - "\020!*H\n\006Action\022\013\n\007STORAGE\020\000\022\n\n\006UPSERT\020\001\022\010\n" - "\004CODE\020\002\022\017\n\013UPSERT_CODE\020\003\022\n\n\006REMOVE\020\004*$\n\t" - "Direction\022\013\n\007FORWARD\020\000\022\n\n\006UNWIND\020\0012\351\002\n\002K" - "V\0226\n\007Version\022\026.google.protobuf.Empty\032\023.t" - "ypes.VersionReply\022&\n\002Tx\022\016.remote.Cursor\032" - "\014.remote.Pair(\0010\001\022F\n\014StateChanges\022\032.remo" - "te.StateChangeRequest\032\030.remote.StateChan" - "geBatch0\001\022=\n\tSnapshots\022\030.remote.Snapshot" - "sRequest\032\026.remote.SnapshotsReply\022<\n\nHist" - "oryGet\022\025.remote.HistoryGetReq\032\027.remote.H" - "istoryGetReply\022>\n\nIndexRange\022\025.remote.In" - "dexRangeReq\032\027.remote.IndexRangeReply0\001B\021" - "Z\017./remote;remoteb\006proto3" + "ons\030\002 \001(\010\"\022\n\020SnapshotsRequest\"=\n\016Snapsho" + "tsReply\022\024\n\014blocks_files\030\001 \003(\t\022\025\n\rhistory" + "_files\030\002 \003(\t\"\234\001\n\010RangeReq\022\r\n\005tx_id\030\001 \001(\004" + "\022\r\n\005table\030\002 \001(\t\022\023\n\013from_prefix\030\003 \001(\014\022\021\n\t" + "to_prefix\030\004 \001(\014\022\024\n\014order_ascend\030\005 \001(\010\022\r\n" + "\005limit\030\006 \001(\022\022\021\n\tpage_size\030\007 \001(\005\022\022\n\npage_" + "token\030\010 \001(\t\"_\n\014DomainGetReq\022\r\n\005tx_id\030\001 \001" + "(\004\022\r\n\005table\030\002 \001(\t\022\t\n\001k\030\003 \001(\014\022\n\n\002ts\030\004 \001(\004" + "\022\n\n\002k2\030\005 \001(\014\022\016\n\006latest\030\006 \001(\010\"\'\n\016DomainGe" + "tReply\022\t\n\001v\030\001 \001(\014\022\n\n\002ok\030\002 \001(\010\"D\n\rHistory" + "GetReq\022\r\n\005tx_id\030\001 \001(\004\022\r\n\005table\030\002 \001(\t\022\t\n\001" + "k\030\003 \001(\014\022\n\n\002ts\030\004 \001(\004\"(\n\017HistoryGetReply\022\t" + "\n\001v\030\001 \001(\014\022\n\n\002ok\030\002 \001(\010\"\244\001\n\rIndexRangeReq\022" + "\r\n\005tx_id\030\001 \001(\004\022\r\n\005table\030\002 \001(\t\022\t\n\001k\030\003 \001(\014" + "\022\017\n\007from_ts\030\004 \001(\022\022\r\n\005to_ts\030\005 \001(\022\022\024\n\014orde" + "r_ascend\030\006 \001(\010\022\r\n\005limit\030\007 \001(\022\022\021\n\tpage_si" + "ze\030\010 \001(\005\022\022\n\npage_token\030\t \001(\t\">\n\017IndexRan" + "geReply\022\022\n\ntimestamps\030\001 \003(\004\022\027\n\017next_page" + "_token\030\002 \001(\t\"\233\001\n\017HistoryRangeReq\022\r\n\005tx_i" + "d\030\001 \001(\004\022\r\n\005table\030\002 \001(\t\022\017\n\007from_ts\030\004 \001(\022\022" + "\r\n\005to_ts\030\005 \001(\022\022\024\n\014order_ascend\030\006 \001(\010\022\r\n\005" + "limit\030\007 \001(\022\022\021\n\tpage_size\030\010 \001(\005\022\022\n\npage_t" + "oken\030\t \001(\t\"\270\001\n\016DomainRangeReq\022\r\n\005tx_id\030\001" + " \001(\004\022\r\n\005table\030\002 \001(\t\022\020\n\010from_key\030\003 \001(\014\022\016\n" + "\006to_key\030\004 \001(\014\022\n\n\002ts\030\005 \001(\004\022\016\n\006latest\030\006 \001(" + "\010\022\024\n\014order_ascend\030\007 \001(\010\022\r\n\005limit\030\010 \001(\022\022\021" + "\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t\">\n" + "\005Pairs\022\014\n\004keys\030\001 \003(\014\022\016\n\006values\030\002 \003(\014\022\027\n\017" + "next_page_token\030\003 \001(\t\"2\n\017ParisPagination" + "\022\020\n\010next_key\030\001 \001(\014\022\r\n\005limit\030\002 \001(\022\"9\n\017Ind" + "exPagination\022\027\n\017next_time_stamp\030\001 \001(\022\022\r\n" + "\005limit\030\002 \001(\022*\206\002\n\002Op\022\t\n\005FIRST\020\000\022\r\n\tFIRST_" + "DUP\020\001\022\010\n\004SEEK\020\002\022\r\n\tSEEK_BOTH\020\003\022\013\n\007CURREN" + "T\020\004\022\010\n\004LAST\020\006\022\014\n\010LAST_DUP\020\007\022\010\n\004NEXT\020\010\022\014\n" + "\010NEXT_DUP\020\t\022\017\n\013NEXT_NO_DUP\020\013\022\010\n\004PREV\020\014\022\014" + "\n\010PREV_DUP\020\r\022\017\n\013PREV_NO_DUP\020\016\022\016\n\nSEEK_EX" + "ACT\020\017\022\023\n\017SEEK_BOTH_EXACT\020\020\022\010\n\004OPEN\020\036\022\t\n\005" + "CLOSE\020\037\022\021\n\rOPEN_DUP_SORT\020 \022\t\n\005COUNT\020!*H\n" + "\006Action\022\013\n\007STORAGE\020\000\022\n\n\006UPSERT\020\001\022\010\n\004CODE" + "\020\002\022\017\n\013UPSERT_CODE\020\003\022\n\n\006REMOVE\020\004*$\n\tDirec" + "tion\022\013\n\007FORWARD\020\000\022\n\n\006UNWIND\020\0012\272\004\n\002KV\0226\n\007" + "Version\022\026.google.protobuf.Empty\032\023.types." + "VersionReply\022&\n\002Tx\022\016.remote.Cursor\032\014.rem" + "ote.Pair(\0010\001\022F\n\014StateChanges\022\032.remote.St" + "ateChangeRequest\032\030.remote.StateChangeBat" + "ch0\001\022=\n\tSnapshots\022\030.remote.SnapshotsRequ" + "est\032\026.remote.SnapshotsReply\022(\n\005Range\022\020.r" + "emote.RangeReq\032\r.remote.Pairs\0229\n\tDomainG" + "et\022\024.remote.DomainGetReq\032\026.remote.Domain" + "GetReply\022<\n\nHistoryGet\022\025.remote.HistoryG" + "etReq\032\027.remote.HistoryGetReply\022<\n\nIndexR" + "ange\022\025.remote.IndexRangeReq\032\027.remote.Ind" + "exRangeReply\0226\n\014HistoryRange\022\027.remote.Hi" + "storyRangeReq\032\r.remote.Pairs\0224\n\013DomainRa" + "nge\022\026.remote.DomainRangeReq\032\r.remote.Pai" + "rsB\021Z\017./remote;remoteb\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_remote_2fkv_2eproto_deps[2] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, &::descriptor_table_types_2ftypes_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_remote_2fkv_2eproto_sccs[13] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_remote_2fkv_2eproto_sccs[21] = { &scc_info_AccountChange_remote_2fkv_2eproto.base, &scc_info_Cursor_remote_2fkv_2eproto.base, + &scc_info_DomainGetReply_remote_2fkv_2eproto.base, + &scc_info_DomainGetReq_remote_2fkv_2eproto.base, + &scc_info_DomainRangeReq_remote_2fkv_2eproto.base, &scc_info_HistoryGetReply_remote_2fkv_2eproto.base, &scc_info_HistoryGetReq_remote_2fkv_2eproto.base, + &scc_info_HistoryRangeReq_remote_2fkv_2eproto.base, + &scc_info_IndexPagination_remote_2fkv_2eproto.base, &scc_info_IndexRangeReply_remote_2fkv_2eproto.base, &scc_info_IndexRangeReq_remote_2fkv_2eproto.base, &scc_info_Pair_remote_2fkv_2eproto.base, + &scc_info_Pairs_remote_2fkv_2eproto.base, + &scc_info_ParisPagination_remote_2fkv_2eproto.base, + &scc_info_RangeReq_remote_2fkv_2eproto.base, &scc_info_SnapshotsReply_remote_2fkv_2eproto.base, &scc_info_SnapshotsRequest_remote_2fkv_2eproto.base, &scc_info_StateChange_remote_2fkv_2eproto.base, @@ -464,10 +740,10 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_rem }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_remote_2fkv_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_remote_2fkv_2eproto = { - false, false, descriptor_table_protodef_remote_2fkv_2eproto, "remote/kv.proto", 1905, - &descriptor_table_remote_2fkv_2eproto_once, descriptor_table_remote_2fkv_2eproto_sccs, descriptor_table_remote_2fkv_2eproto_deps, 13, 2, + false, false, descriptor_table_protodef_remote_2fkv_2eproto, "remote/kv.proto", 3069, + &descriptor_table_remote_2fkv_2eproto_once, descriptor_table_remote_2fkv_2eproto_sccs, descriptor_table_remote_2fkv_2eproto_deps, 21, 2, schemas, file_default_instances, TableStruct_remote_2fkv_2eproto::offsets, - file_level_metadata_remote_2fkv_2eproto, 13, file_level_enum_descriptors_remote_2fkv_2eproto, file_level_service_descriptors_remote_2fkv_2eproto, + file_level_metadata_remote_2fkv_2eproto, 21, file_level_enum_descriptors_remote_2fkv_2eproto, file_level_service_descriptors_remote_2fkv_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -2835,14 +3111,16 @@ class SnapshotsReply::_Internal { SnapshotsReply::SnapshotsReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), - files_(arena) { + blocks_files_(arena), + history_files_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:remote.SnapshotsReply) } SnapshotsReply::SnapshotsReply(const SnapshotsReply& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - files_(from.files_) { + blocks_files_(from.blocks_files_), + history_files_(from.history_files_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:remote.SnapshotsReply) } @@ -2882,7 +3160,8 @@ void SnapshotsReply::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - files_.Clear(); + blocks_files_.Clear(); + history_files_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2893,20 +3172,34 @@ const char* SnapshotsReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // repeated string files = 1; + // repeated string blocks_files = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; - auto str = _internal_add_files(); + auto str = _internal_add_blocks_files(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.SnapshotsReply.files")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.SnapshotsReply.blocks_files")); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; + // repeated string history_files = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_history_files(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.SnapshotsReply.history_files")); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -2935,16 +3228,26 @@ ::PROTOBUF_NAMESPACE_ID::uint8* SnapshotsReply::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated string files = 1; - for (int i = 0, n = this->_internal_files_size(); i < n; i++) { - const auto& s = this->_internal_files(i); + // repeated string blocks_files = 1; + for (int i = 0, n = this->_internal_blocks_files_size(); i < n; i++) { + const auto& s = this->_internal_blocks_files(i); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "remote.SnapshotsReply.files"); + "remote.SnapshotsReply.blocks_files"); target = stream->WriteString(1, s, target); } + // repeated string history_files = 2; + for (int i = 0, n = this->_internal_history_files_size(); i < n; i++) { + const auto& s = this->_internal_history_files(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.SnapshotsReply.history_files"); + target = stream->WriteString(2, s, target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -2961,12 +3264,20 @@ size_t SnapshotsReply::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated string files = 1; + // repeated string blocks_files = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(files_.size()); - for (int i = 0, n = files_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blocks_files_.size()); + for (int i = 0, n = blocks_files_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - files_.Get(i)); + blocks_files_.Get(i)); + } + + // repeated string history_files = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(history_files_.size()); + for (int i = 0, n = history_files_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + history_files_.Get(i)); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3000,7 +3311,8 @@ void SnapshotsReply::MergeFrom(const SnapshotsReply& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - files_.MergeFrom(from.files_); + blocks_files_.MergeFrom(from.blocks_files_); + history_files_.MergeFrom(from.history_files_); } void SnapshotsReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -3024,7 +3336,8 @@ bool SnapshotsReply::IsInitialized() const { void SnapshotsReply::InternalSwap(SnapshotsReply* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - files_.InternalSwap(&other->files_); + blocks_files_.InternalSwap(&other->blocks_files_); + history_files_.InternalSwap(&other->history_files_); } ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotsReply::GetMetadata() const { @@ -3034,121 +3347,168 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotsReply::GetMetadata() const { // =================================================================== -class HistoryGetReq::_Internal { +class RangeReq::_Internal { public: }; -HistoryGetReq::HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) +RangeReq::RangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReq) + // @@protoc_insertion_point(arena_constructor:remote.RangeReq) } -HistoryGetReq::HistoryGetReq(const HistoryGetReq& from) +RangeReq::RangeReq(const RangeReq& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_name().empty()) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_table().empty()) { + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_table(), GetArena()); } - k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_k().empty()) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_k(), + from_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_from_prefix().empty()) { + from_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_from_prefix(), GetArena()); } - ::memcpy(&txid_, &from.txid_, - static_cast(reinterpret_cast(&ts_) - - reinterpret_cast(&txid_)) + sizeof(ts_)); - // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReq) + to_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_to_prefix().empty()) { + to_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_to_prefix(), + GetArena()); + } + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_page_token().empty()) { + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_page_token(), + GetArena()); + } + ::memcpy(&tx_id_, &from.tx_id_, + static_cast(reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); + // @@protoc_insertion_point(copy_constructor:remote.RangeReq) } -void HistoryGetReq::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HistoryGetReq_remote_2fkv_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +void RangeReq::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RangeReq_remote_2fkv_2eproto.base); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + from_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + to_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&txid_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&ts_) - - reinterpret_cast(&txid_)) + sizeof(ts_)); + reinterpret_cast(&tx_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); } -HistoryGetReq::~HistoryGetReq() { - // @@protoc_insertion_point(destructor:remote.HistoryGetReq) +RangeReq::~RangeReq() { + // @@protoc_insertion_point(destructor:remote.RangeReq) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HistoryGetReq::SharedDtor() { +void RangeReq::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - k_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + from_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + to_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void HistoryGetReq::ArenaDtor(void* object) { - HistoryGetReq* _this = reinterpret_cast< HistoryGetReq* >(object); +void RangeReq::ArenaDtor(void* object) { + RangeReq* _this = reinterpret_cast< RangeReq* >(object); (void)_this; } -void HistoryGetReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void RangeReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void HistoryGetReq::SetCachedSize(int size) const { +void RangeReq::SetCachedSize(int size) const { _cached_size_.Set(size); } -const HistoryGetReq& HistoryGetReq::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HistoryGetReq_remote_2fkv_2eproto.base); +const RangeReq& RangeReq::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RangeReq_remote_2fkv_2eproto.base); return *internal_default_instance(); } -void HistoryGetReq::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReq) +void RangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.RangeReq) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - name_.ClearToEmpty(); - k_.ClearToEmpty(); - ::memset(&txid_, 0, static_cast( - reinterpret_cast(&ts_) - - reinterpret_cast(&txid_)) + sizeof(ts_)); + table_.ClearToEmpty(); + from_prefix_.ClearToEmpty(); + to_prefix_.ClearToEmpty(); + page_token_.ClearToEmpty(); + ::memset(&tx_id_, 0, static_cast( + reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HistoryGetReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RangeReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 txID = 1; + // uint64 tx_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - txid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string name = 2; + // string table = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_name(); + auto str = _internal_mutable_table(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.HistoryGetReq.name")); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.RangeReq.table")); CHK_(ptr); } else goto handle_unusual; continue; - // bytes k = 3; + // bytes from_prefix = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_k(); + auto str = _internal_mutable_from_prefix(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 ts = 4; + // bytes to_prefix = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_to_prefix(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool order_ascend = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 limit = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 page_size = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string page_token = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + auto str = _internal_mutable_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.RangeReq.page_token")); CHK_(ptr); } else goto handle_unusual; continue; @@ -3174,82 +3534,136 @@ const char* HistoryGetReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HistoryGetReq::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* RangeReq::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReq) + // @@protoc_insertion_point(serialize_to_array_start:remote.RangeReq) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 txID = 1; - if (this->txid() != 0) { + // uint64 tx_id = 1; + if (this->tx_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_txid(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); } - // string name = 2; - if (this->name().size() > 0) { + // string table = 2; + if (this->table().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), + this->_internal_table().data(), static_cast(this->_internal_table().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "remote.HistoryGetReq.name"); + "remote.RangeReq.table"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); + 2, this->_internal_table(), target); } - // bytes k = 3; - if (this->k().size() > 0) { + // bytes from_prefix = 3; + if (this->from_prefix().size() > 0) { target = stream->WriteBytesMaybeAliased( - 3, this->_internal_k(), target); + 3, this->_internal_from_prefix(), target); } - // uint64 ts = 4; - if (this->ts() != 0) { + // bytes to_prefix = 4; + if (this->to_prefix().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_to_prefix(), target); + } + + // bool order_ascend = 5; + if (this->order_ascend() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_ts(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_order_ascend(), target); + } + + // sint64 limit = 6; + if (this->limit() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(6, this->_internal_limit(), target); + } + + // int32 page_size = 7; + if (this->page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_page_size(), target); + } + + // string page_token = 8; + if (this->page_token().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.RangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReq) + // @@protoc_insertion_point(serialize_to_array_end:remote.RangeReq) return target; } -size_t HistoryGetReq::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReq) +size_t RangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.RangeReq) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string name = 2; - if (this->name().size() > 0) { + // string table = 2; + if (this->table().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); + this->_internal_table()); } - // bytes k = 3; - if (this->k().size() > 0) { + // bytes from_prefix = 3; + if (this->from_prefix().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_k()); + this->_internal_from_prefix()); } - // uint64 txID = 1; - if (this->txid() != 0) { + // bytes to_prefix = 4; + if (this->to_prefix().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_txid()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_to_prefix()); } - // uint64 ts = 4; - if (this->ts() != 0) { + // string page_token = 8; + if (this->page_token().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_ts()); + this->_internal_tx_id()); + } + + // sint64 limit = 6; + if (this->limit() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_limit()); + } + + // bool order_ascend = 5; + if (this->order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 7; + if (this->page_size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_page_size()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3261,164 +3675,232 @@ size_t HistoryGetReq::ByteSizeLong() const { return total_size; } -void HistoryGetReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.HistoryGetReq) +void RangeReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.RangeReq) GOOGLE_DCHECK_NE(&from, this); - const HistoryGetReq* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const RangeReq* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.HistoryGetReq) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.RangeReq) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.HistoryGetReq) + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.RangeReq) MergeFrom(*source); } } -void HistoryGetReq::MergeFrom(const HistoryGetReq& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReq) +void RangeReq::MergeFrom(const RangeReq& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.RangeReq) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.name().size() > 0) { - _internal_set_name(from._internal_name()); + if (from.table().size() > 0) { + _internal_set_table(from._internal_table()); } - if (from.k().size() > 0) { - _internal_set_k(from._internal_k()); + if (from.from_prefix().size() > 0) { + _internal_set_from_prefix(from._internal_from_prefix()); } - if (from.txid() != 0) { - _internal_set_txid(from._internal_txid()); + if (from.to_prefix().size() > 0) { + _internal_set_to_prefix(from._internal_to_prefix()); } - if (from.ts() != 0) { - _internal_set_ts(from._internal_ts()); + if (from.page_token().size() > 0) { + _internal_set_page_token(from._internal_page_token()); + } + if (from.tx_id() != 0) { + _internal_set_tx_id(from._internal_tx_id()); + } + if (from.limit() != 0) { + _internal_set_limit(from._internal_limit()); + } + if (from.order_ascend() != 0) { + _internal_set_order_ascend(from._internal_order_ascend()); + } + if (from.page_size() != 0) { + _internal_set_page_size(from._internal_page_size()); } } -void HistoryGetReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.HistoryGetReq) +void RangeReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.RangeReq) if (&from == this) return; Clear(); MergeFrom(from); } -void HistoryGetReq::CopyFrom(const HistoryGetReq& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReq) +void RangeReq::CopyFrom(const RangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.RangeReq) if (&from == this) return; Clear(); MergeFrom(from); } -bool HistoryGetReq::IsInitialized() const { +bool RangeReq::IsInitialized() const { return true; } -void HistoryGetReq::InternalSwap(HistoryGetReq* other) { +void RangeReq::InternalSwap(RangeReq* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - k_.Swap(&other->k_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + table_.Swap(&other->table_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + from_prefix_.Swap(&other->from_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + to_prefix_.Swap(&other->to_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + page_token_.Swap(&other->page_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(HistoryGetReq, ts_) - + sizeof(HistoryGetReq::ts_) - - PROTOBUF_FIELD_OFFSET(HistoryGetReq, txid_)>( - reinterpret_cast(&txid_), - reinterpret_cast(&other->txid_)); + PROTOBUF_FIELD_OFFSET(RangeReq, page_size_) + + sizeof(RangeReq::page_size_) + - PROTOBUF_FIELD_OFFSET(RangeReq, tx_id_)>( + reinterpret_cast(&tx_id_), + reinterpret_cast(&other->tx_id_)); } -::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReq::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RangeReq::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class HistoryGetReply::_Internal { +class DomainGetReq::_Internal { public: }; -HistoryGetReply::HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) +DomainGetReq::DomainGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReply) + // @@protoc_insertion_point(arena_constructor:remote.DomainGetReq) } -HistoryGetReply::HistoryGetReply(const HistoryGetReply& from) +DomainGetReq::DomainGetReq(const DomainGetReq& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - v_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_v().empty()) { - v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_v(), + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_table().empty()) { + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_table(), GetArena()); } - ok_ = from.ok_; - // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReply) + k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_k().empty()) { + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_k(), + GetArena()); + } + k2_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_k2().empty()) { + k2_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_k2(), + GetArena()); + } + ::memcpy(&tx_id_, &from.tx_id_, + static_cast(reinterpret_cast(&latest_) - + reinterpret_cast(&tx_id_)) + sizeof(latest_)); + // @@protoc_insertion_point(copy_constructor:remote.DomainGetReq) } -void HistoryGetReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HistoryGetReply_remote_2fkv_2eproto.base); - v_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ok_ = false; +void DomainGetReq::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DomainGetReq_remote_2fkv_2eproto.base); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k2_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&tx_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&latest_) - + reinterpret_cast(&tx_id_)) + sizeof(latest_)); } -HistoryGetReply::~HistoryGetReply() { - // @@protoc_insertion_point(destructor:remote.HistoryGetReply) +DomainGetReq::~DomainGetReq() { + // @@protoc_insertion_point(destructor:remote.DomainGetReq) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HistoryGetReply::SharedDtor() { +void DomainGetReq::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - v_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k2_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void HistoryGetReply::ArenaDtor(void* object) { - HistoryGetReply* _this = reinterpret_cast< HistoryGetReply* >(object); +void DomainGetReq::ArenaDtor(void* object) { + DomainGetReq* _this = reinterpret_cast< DomainGetReq* >(object); (void)_this; } -void HistoryGetReply::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void DomainGetReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void HistoryGetReply::SetCachedSize(int size) const { +void DomainGetReq::SetCachedSize(int size) const { _cached_size_.Set(size); } -const HistoryGetReply& HistoryGetReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HistoryGetReply_remote_2fkv_2eproto.base); +const DomainGetReq& DomainGetReq::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DomainGetReq_remote_2fkv_2eproto.base); return *internal_default_instance(); } -void HistoryGetReply::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReply) +void DomainGetReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.DomainGetReq) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - v_.ClearToEmpty(); - ok_ = false; + table_.ClearToEmpty(); + k_.ClearToEmpty(); + k2_.ClearToEmpty(); + ::memset(&tx_id_, 0, static_cast( + reinterpret_cast(&latest_) - + reinterpret_cast(&tx_id_)) + sizeof(latest_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HistoryGetReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DomainGetReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // bytes v = 1; + // uint64 tx_id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_v(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // bool ok = 2; + // string table = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ok_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.DomainGetReq.table")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes k = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_k(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes k2 = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_k2(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool latest = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + latest_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -3444,50 +3926,2678 @@ const char* HistoryGetReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HistoryGetReply::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* DomainGetReq::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReply) + // @@protoc_insertion_point(serialize_to_array_start:remote.DomainGetReq) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // bytes v = 1; - if (this->v().size() > 0) { + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (this->table().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.DomainGetReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes k = 3; + if (this->k().size() > 0) { target = stream->WriteBytesMaybeAliased( - 1, this->_internal_v(), target); + 3, this->_internal_k(), target); } - // bool ok = 2; - if (this->ok() != 0) { + // uint64 ts = 4; + if (this->ts() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_ok(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_ts(), target); + } + + // bytes k2 = 5; + if (this->k2().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 5, this->_internal_k2(), target); + } + + // bool latest = 6; + if (this->latest() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_latest(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.DomainGetReq) + return target; +} + +size_t DomainGetReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.DomainGetReq) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (this->table().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes k = 3; + if (this->k().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k()); + } + + // bytes k2 = 5; + if (this->k2().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k2()); + } + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_tx_id()); + } + + // uint64 ts = 4; + if (this->ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_ts()); + } + + // bool latest = 6; + if (this->latest() != 0) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DomainGetReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.DomainGetReq) + GOOGLE_DCHECK_NE(&from, this); + const DomainGetReq* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.DomainGetReq) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.DomainGetReq) + MergeFrom(*source); + } +} + +void DomainGetReq::MergeFrom(const DomainGetReq& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.DomainGetReq) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.table().size() > 0) { + _internal_set_table(from._internal_table()); + } + if (from.k().size() > 0) { + _internal_set_k(from._internal_k()); + } + if (from.k2().size() > 0) { + _internal_set_k2(from._internal_k2()); + } + if (from.tx_id() != 0) { + _internal_set_tx_id(from._internal_tx_id()); + } + if (from.ts() != 0) { + _internal_set_ts(from._internal_ts()); + } + if (from.latest() != 0) { + _internal_set_latest(from._internal_latest()); + } +} + +void DomainGetReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.DomainGetReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DomainGetReq::CopyFrom(const DomainGetReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.DomainGetReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DomainGetReq::IsInitialized() const { + return true; +} + +void DomainGetReq::InternalSwap(DomainGetReq* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + table_.Swap(&other->table_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + k_.Swap(&other->k_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + k2_.Swap(&other->k2_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DomainGetReq, latest_) + + sizeof(DomainGetReq::latest_) + - PROTOBUF_FIELD_OFFSET(DomainGetReq, tx_id_)>( + reinterpret_cast(&tx_id_), + reinterpret_cast(&other->tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DomainGetReq::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class DomainGetReply::_Internal { + public: +}; + +DomainGetReply::DomainGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.DomainGetReply) +} +DomainGetReply::DomainGetReply(const DomainGetReply& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + v_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_v().empty()) { + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_v(), + GetArena()); + } + ok_ = from.ok_; + // @@protoc_insertion_point(copy_constructor:remote.DomainGetReply) +} + +void DomainGetReply::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DomainGetReply_remote_2fkv_2eproto.base); + v_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ok_ = false; +} + +DomainGetReply::~DomainGetReply() { + // @@protoc_insertion_point(destructor:remote.DomainGetReply) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void DomainGetReply::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + v_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void DomainGetReply::ArenaDtor(void* object) { + DomainGetReply* _this = reinterpret_cast< DomainGetReply* >(object); + (void)_this; +} +void DomainGetReply::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DomainGetReply::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DomainGetReply& DomainGetReply::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DomainGetReply_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void DomainGetReply::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.DomainGetReply) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + v_.ClearToEmpty(); + ok_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DomainGetReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // bytes v = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_v(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool ok = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ok_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DomainGetReply::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.DomainGetReply) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes v = 1; + if (this->v().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_v(), target); + } + + // bool ok = 2; + if (this->ok() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_ok(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.DomainGetReply) + return target; +} + +size_t DomainGetReply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.DomainGetReply) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes v = 1; + if (this->v().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_v()); + } + + // bool ok = 2; + if (this->ok() != 0) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DomainGetReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.DomainGetReply) + GOOGLE_DCHECK_NE(&from, this); + const DomainGetReply* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.DomainGetReply) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.DomainGetReply) + MergeFrom(*source); + } +} + +void DomainGetReply::MergeFrom(const DomainGetReply& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.DomainGetReply) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.v().size() > 0) { + _internal_set_v(from._internal_v()); + } + if (from.ok() != 0) { + _internal_set_ok(from._internal_ok()); + } +} + +void DomainGetReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.DomainGetReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DomainGetReply::CopyFrom(const DomainGetReply& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.DomainGetReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DomainGetReply::IsInitialized() const { + return true; +} + +void DomainGetReply::InternalSwap(DomainGetReply* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + v_.Swap(&other->v_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(ok_, other->ok_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DomainGetReply::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class HistoryGetReq::_Internal { + public: +}; + +HistoryGetReq::HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReq) +} +HistoryGetReq::HistoryGetReq(const HistoryGetReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_table().empty()) { + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_table(), + GetArena()); + } + k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_k().empty()) { + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_k(), + GetArena()); + } + ::memcpy(&tx_id_, &from.tx_id_, + static_cast(reinterpret_cast(&ts_) - + reinterpret_cast(&tx_id_)) + sizeof(ts_)); + // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReq) +} + +void HistoryGetReq::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HistoryGetReq_remote_2fkv_2eproto.base); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&tx_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&ts_) - + reinterpret_cast(&tx_id_)) + sizeof(ts_)); +} + +HistoryGetReq::~HistoryGetReq() { + // @@protoc_insertion_point(destructor:remote.HistoryGetReq) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void HistoryGetReq::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + table_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void HistoryGetReq::ArenaDtor(void* object) { + HistoryGetReq* _this = reinterpret_cast< HistoryGetReq* >(object); + (void)_this; +} +void HistoryGetReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void HistoryGetReq::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HistoryGetReq& HistoryGetReq::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HistoryGetReq_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void HistoryGetReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + table_.ClearToEmpty(); + k_.ClearToEmpty(); + ::memset(&tx_id_, 0, static_cast( + reinterpret_cast(&ts_) - + reinterpret_cast(&tx_id_)) + sizeof(ts_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HistoryGetReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.HistoryGetReq.table")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes k = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_k(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* HistoryGetReq::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (this->table().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.HistoryGetReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes k = 3; + if (this->k().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_k(), target); + } + + // uint64 ts = 4; + if (this->ts() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_ts(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReq) + return target; +} + +size_t HistoryGetReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReq) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (this->table().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes k = 3; + if (this->k().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k()); + } + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_tx_id()); + } + + // uint64 ts = 4; + if (this->ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_ts()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HistoryGetReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.HistoryGetReq) + GOOGLE_DCHECK_NE(&from, this); + const HistoryGetReq* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.HistoryGetReq) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.HistoryGetReq) + MergeFrom(*source); + } +} + +void HistoryGetReq::MergeFrom(const HistoryGetReq& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReq) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.table().size() > 0) { + _internal_set_table(from._internal_table()); + } + if (from.k().size() > 0) { + _internal_set_k(from._internal_k()); + } + if (from.tx_id() != 0) { + _internal_set_tx_id(from._internal_tx_id()); + } + if (from.ts() != 0) { + _internal_set_ts(from._internal_ts()); + } +} + +void HistoryGetReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.HistoryGetReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HistoryGetReq::CopyFrom(const HistoryGetReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HistoryGetReq::IsInitialized() const { + return true; +} + +void HistoryGetReq::InternalSwap(HistoryGetReq* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + table_.Swap(&other->table_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + k_.Swap(&other->k_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(HistoryGetReq, ts_) + + sizeof(HistoryGetReq::ts_) + - PROTOBUF_FIELD_OFFSET(HistoryGetReq, tx_id_)>( + reinterpret_cast(&tx_id_), + reinterpret_cast(&other->tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReq::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class HistoryGetReply::_Internal { + public: +}; + +HistoryGetReply::HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReply) +} +HistoryGetReply::HistoryGetReply(const HistoryGetReply& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + v_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_v().empty()) { + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_v(), + GetArena()); + } + ok_ = from.ok_; + // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReply) +} + +void HistoryGetReply::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HistoryGetReply_remote_2fkv_2eproto.base); + v_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ok_ = false; +} + +HistoryGetReply::~HistoryGetReply() { + // @@protoc_insertion_point(destructor:remote.HistoryGetReply) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void HistoryGetReply::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + v_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void HistoryGetReply::ArenaDtor(void* object) { + HistoryGetReply* _this = reinterpret_cast< HistoryGetReply* >(object); + (void)_this; +} +void HistoryGetReply::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void HistoryGetReply::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HistoryGetReply& HistoryGetReply::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HistoryGetReply_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void HistoryGetReply::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReply) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + v_.ClearToEmpty(); + ok_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HistoryGetReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // bytes v = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_v(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool ok = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ok_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* HistoryGetReply::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReply) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes v = 1; + if (this->v().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_v(), target); + } + + // bool ok = 2; + if (this->ok() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_ok(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReply) + return target; +} + +size_t HistoryGetReply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReply) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes v = 1; + if (this->v().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_v()); + } + + // bool ok = 2; + if (this->ok() != 0) { + total_size += 1 + 1; + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HistoryGetReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.HistoryGetReply) + GOOGLE_DCHECK_NE(&from, this); + const HistoryGetReply* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.HistoryGetReply) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.HistoryGetReply) + MergeFrom(*source); + } +} + +void HistoryGetReply::MergeFrom(const HistoryGetReply& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReply) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.v().size() > 0) { + _internal_set_v(from._internal_v()); + } + if (from.ok() != 0) { + _internal_set_ok(from._internal_ok()); + } +} + +void HistoryGetReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.HistoryGetReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HistoryGetReply::CopyFrom(const HistoryGetReply& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HistoryGetReply::IsInitialized() const { + return true; +} + +void HistoryGetReply::InternalSwap(HistoryGetReply* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + v_.Swap(&other->v_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(ok_, other->ok_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReply::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class IndexRangeReq::_Internal { + public: +}; + +IndexRangeReq::IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReq) +} +IndexRangeReq::IndexRangeReq(const IndexRangeReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_table().empty()) { + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_table(), + GetArena()); + } + k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_k().empty()) { + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_k(), + GetArena()); + } + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_page_token().empty()) { + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_page_token(), + GetArena()); + } + ::memcpy(&tx_id_, &from.tx_id_, + static_cast(reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); + // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReq) +} + +void IndexRangeReq::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexRangeReq_remote_2fkv_2eproto.base); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&tx_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); +} + +IndexRangeReq::~IndexRangeReq() { + // @@protoc_insertion_point(destructor:remote.IndexRangeReq) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void IndexRangeReq::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + table_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + k_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void IndexRangeReq::ArenaDtor(void* object) { + IndexRangeReq* _this = reinterpret_cast< IndexRangeReq* >(object); + (void)_this; +} +void IndexRangeReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void IndexRangeReq::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IndexRangeReq& IndexRangeReq::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexRangeReq_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void IndexRangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + table_.ClearToEmpty(); + k_.ClearToEmpty(); + page_token_.ClearToEmpty(); + ::memset(&tx_id_, 0, static_cast( + reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IndexRangeReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.IndexRangeReq.table")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes k = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_k(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 from_ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + from_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 to_ts = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + to_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool order_ascend = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 limit = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 page_size = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string page_token = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + auto str = _internal_mutable_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.IndexRangeReq.page_token")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* IndexRangeReq::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (this->table().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.IndexRangeReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes k = 3; + if (this->k().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_k(), target); + } + + // sint64 from_ts = 4; + if (this->from_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(4, this->_internal_from_ts(), target); + } + + // sint64 to_ts = 5; + if (this->to_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(5, this->_internal_to_ts(), target); + } + + // bool order_ascend = 6; + if (this->order_ascend() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_order_ascend(), target); + } + + // sint64 limit = 7; + if (this->limit() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(7, this->_internal_limit(), target); + } + + // int32 page_size = 8; + if (this->page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_page_size(), target); + } + + // string page_token = 9; + if (this->page_token().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.IndexRangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReq) + return target; +} + +size_t IndexRangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReq) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (this->table().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes k = 3; + if (this->k().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k()); + } + + // string page_token = 9; + if (this->page_token().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_tx_id()); + } + + // sint64 from_ts = 4; + if (this->from_ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_from_ts()); + } + + // sint64 to_ts = 5; + if (this->to_ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_to_ts()); + } + + // sint64 limit = 7; + if (this->limit() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_limit()); + } + + // bool order_ascend = 6; + if (this->order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 8; + if (this->page_size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_page_size()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IndexRangeReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.IndexRangeReq) + GOOGLE_DCHECK_NE(&from, this); + const IndexRangeReq* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.IndexRangeReq) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.IndexRangeReq) + MergeFrom(*source); + } +} + +void IndexRangeReq::MergeFrom(const IndexRangeReq& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReq) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.table().size() > 0) { + _internal_set_table(from._internal_table()); + } + if (from.k().size() > 0) { + _internal_set_k(from._internal_k()); + } + if (from.page_token().size() > 0) { + _internal_set_page_token(from._internal_page_token()); + } + if (from.tx_id() != 0) { + _internal_set_tx_id(from._internal_tx_id()); + } + if (from.from_ts() != 0) { + _internal_set_from_ts(from._internal_from_ts()); + } + if (from.to_ts() != 0) { + _internal_set_to_ts(from._internal_to_ts()); + } + if (from.limit() != 0) { + _internal_set_limit(from._internal_limit()); + } + if (from.order_ascend() != 0) { + _internal_set_order_ascend(from._internal_order_ascend()); + } + if (from.page_size() != 0) { + _internal_set_page_size(from._internal_page_size()); + } +} + +void IndexRangeReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.IndexRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IndexRangeReq::CopyFrom(const IndexRangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexRangeReq::IsInitialized() const { + return true; +} + +void IndexRangeReq::InternalSwap(IndexRangeReq* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + table_.Swap(&other->table_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + k_.Swap(&other->k_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + page_token_.Swap(&other->page_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IndexRangeReq, page_size_) + + sizeof(IndexRangeReq::page_size_) + - PROTOBUF_FIELD_OFFSET(IndexRangeReq, tx_id_)>( + reinterpret_cast(&tx_id_), + reinterpret_cast(&other->tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReq::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class IndexRangeReply::_Internal { + public: +}; + +IndexRangeReply::IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + timestamps_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReply) +} +IndexRangeReply::IndexRangeReply(const IndexRangeReply& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + timestamps_(from.timestamps_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_next_page_token().empty()) { + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_next_page_token(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReply) +} + +void IndexRangeReply::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexRangeReply_remote_2fkv_2eproto.base); + next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +IndexRangeReply::~IndexRangeReply() { + // @@protoc_insertion_point(destructor:remote.IndexRangeReply) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void IndexRangeReply::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + next_page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void IndexRangeReply::ArenaDtor(void* object) { + IndexRangeReply* _this = reinterpret_cast< IndexRangeReply* >(object); + (void)_this; +} +void IndexRangeReply::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void IndexRangeReply::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IndexRangeReply& IndexRangeReply::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexRangeReply_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void IndexRangeReply::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReply) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + timestamps_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IndexRangeReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated uint64 timestamps = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_timestamps(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { + _internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string next_page_token = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.IndexRangeReply.next_page_token")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* IndexRangeReply::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReply) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint64 timestamps = 1; + { + int byte_size = _timestamps_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt64Packed( + 1, _internal_timestamps(), byte_size, target); + } + } + + // string next_page_token = 2; + if (this->next_page_token().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.IndexRangeReply.next_page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_next_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReply) + return target; +} + +size_t IndexRangeReply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReply) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated uint64 timestamps = 1; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + UInt64Size(this->timestamps_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _timestamps_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string next_page_token = 2; + if (this->next_page_token().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IndexRangeReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.IndexRangeReply) + GOOGLE_DCHECK_NE(&from, this); + const IndexRangeReply* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.IndexRangeReply) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.IndexRangeReply) + MergeFrom(*source); + } +} + +void IndexRangeReply::MergeFrom(const IndexRangeReply& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReply) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + timestamps_.MergeFrom(from.timestamps_); + if (from.next_page_token().size() > 0) { + _internal_set_next_page_token(from._internal_next_page_token()); + } +} + +void IndexRangeReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.IndexRangeReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IndexRangeReply::CopyFrom(const IndexRangeReply& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexRangeReply::IsInitialized() const { + return true; +} + +void IndexRangeReply::InternalSwap(IndexRangeReply* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + timestamps_.InternalSwap(&other->timestamps_); + next_page_token_.Swap(&other->next_page_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReply::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class HistoryRangeReq::_Internal { + public: +}; + +HistoryRangeReq::HistoryRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.HistoryRangeReq) +} +HistoryRangeReq::HistoryRangeReq(const HistoryRangeReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_table().empty()) { + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_table(), + GetArena()); + } + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_page_token().empty()) { + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_page_token(), + GetArena()); + } + ::memcpy(&tx_id_, &from.tx_id_, + static_cast(reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); + // @@protoc_insertion_point(copy_constructor:remote.HistoryRangeReq) +} + +void HistoryRangeReq::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_HistoryRangeReq_remote_2fkv_2eproto.base); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&tx_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); +} + +HistoryRangeReq::~HistoryRangeReq() { + // @@protoc_insertion_point(destructor:remote.HistoryRangeReq) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void HistoryRangeReq::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + table_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void HistoryRangeReq::ArenaDtor(void* object) { + HistoryRangeReq* _this = reinterpret_cast< HistoryRangeReq* >(object); + (void)_this; +} +void HistoryRangeReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void HistoryRangeReq::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HistoryRangeReq& HistoryRangeReq::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_HistoryRangeReq_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void HistoryRangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.HistoryRangeReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + table_.ClearToEmpty(); + page_token_.ClearToEmpty(); + ::memset(&tx_id_, 0, static_cast( + reinterpret_cast(&page_size_) - + reinterpret_cast(&tx_id_)) + sizeof(page_size_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HistoryRangeReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.HistoryRangeReq.table")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 from_ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + from_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 to_ts = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + to_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool order_ascend = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 limit = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 page_size = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string page_token = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + auto str = _internal_mutable_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.HistoryRangeReq.page_token")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* HistoryRangeReq::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryRangeReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (this->table().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.HistoryRangeReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // sint64 from_ts = 4; + if (this->from_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(4, this->_internal_from_ts(), target); + } + + // sint64 to_ts = 5; + if (this->to_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(5, this->_internal_to_ts(), target); + } + + // bool order_ascend = 6; + if (this->order_ascend() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_order_ascend(), target); + } + + // sint64 limit = 7; + if (this->limit() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(7, this->_internal_limit(), target); + } + + // int32 page_size = 8; + if (this->page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_page_size(), target); + } + + // string page_token = 9; + if (this->page_token().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.HistoryRangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryRangeReq) + return target; +} + +size_t HistoryRangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.HistoryRangeReq) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (this->table().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // string page_token = 9; + if (this->page_token().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_tx_id()); + } + + // sint64 from_ts = 4; + if (this->from_ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_from_ts()); + } + + // sint64 to_ts = 5; + if (this->to_ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_to_ts()); + } + + // sint64 limit = 7; + if (this->limit() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_limit()); + } + + // bool order_ascend = 6; + if (this->order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 8; + if (this->page_size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_page_size()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HistoryRangeReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.HistoryRangeReq) + GOOGLE_DCHECK_NE(&from, this); + const HistoryRangeReq* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.HistoryRangeReq) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.HistoryRangeReq) + MergeFrom(*source); + } +} + +void HistoryRangeReq::MergeFrom(const HistoryRangeReq& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryRangeReq) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.table().size() > 0) { + _internal_set_table(from._internal_table()); + } + if (from.page_token().size() > 0) { + _internal_set_page_token(from._internal_page_token()); + } + if (from.tx_id() != 0) { + _internal_set_tx_id(from._internal_tx_id()); + } + if (from.from_ts() != 0) { + _internal_set_from_ts(from._internal_from_ts()); + } + if (from.to_ts() != 0) { + _internal_set_to_ts(from._internal_to_ts()); + } + if (from.limit() != 0) { + _internal_set_limit(from._internal_limit()); + } + if (from.order_ascend() != 0) { + _internal_set_order_ascend(from._internal_order_ascend()); + } + if (from.page_size() != 0) { + _internal_set_page_size(from._internal_page_size()); + } +} + +void HistoryRangeReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.HistoryRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HistoryRangeReq::CopyFrom(const HistoryRangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HistoryRangeReq::IsInitialized() const { + return true; +} + +void HistoryRangeReq::InternalSwap(HistoryRangeReq* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + table_.Swap(&other->table_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + page_token_.Swap(&other->page_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(HistoryRangeReq, page_size_) + + sizeof(HistoryRangeReq::page_size_) + - PROTOBUF_FIELD_OFFSET(HistoryRangeReq, tx_id_)>( + reinterpret_cast(&tx_id_), + reinterpret_cast(&other->tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HistoryRangeReq::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class DomainRangeReq::_Internal { + public: +}; + +DomainRangeReq::DomainRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.DomainRangeReq) +} +DomainRangeReq::DomainRangeReq(const DomainRangeReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_table().empty()) { + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_table(), + GetArena()); + } + from_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_from_key().empty()) { + from_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_from_key(), + GetArena()); + } + to_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_to_key().empty()) { + to_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_to_key(), + GetArena()); + } + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_page_token().empty()) { + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_page_token(), + GetArena()); + } + ::memcpy(&tx_id_, &from.tx_id_, + static_cast(reinterpret_cast(&limit_) - + reinterpret_cast(&tx_id_)) + sizeof(limit_)); + // @@protoc_insertion_point(copy_constructor:remote.DomainRangeReq) +} + +void DomainRangeReq::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DomainRangeReq_remote_2fkv_2eproto.base); + table_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + from_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + to_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&tx_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&limit_) - + reinterpret_cast(&tx_id_)) + sizeof(limit_)); +} + +DomainRangeReq::~DomainRangeReq() { + // @@protoc_insertion_point(destructor:remote.DomainRangeReq) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void DomainRangeReq::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + table_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + from_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + to_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void DomainRangeReq::ArenaDtor(void* object) { + DomainRangeReq* _this = reinterpret_cast< DomainRangeReq* >(object); + (void)_this; +} +void DomainRangeReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void DomainRangeReq::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DomainRangeReq& DomainRangeReq::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DomainRangeReq_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void DomainRangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.DomainRangeReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + table_.ClearToEmpty(); + from_key_.ClearToEmpty(); + to_key_.ClearToEmpty(); + page_token_.ClearToEmpty(); + ::memset(&tx_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&tx_id_)) + sizeof(limit_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DomainRangeReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.DomainRangeReq.table")); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes from_key = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_from_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bytes to_key = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_to_key(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 ts = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool latest = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + latest_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // bool order_ascend = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // sint64 limit = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 page_size = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string page_token = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + auto str = _internal_mutable_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.DomainRangeReq.page_token")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* DomainRangeReq::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.DomainRangeReq) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (this->table().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.DomainRangeReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes from_key = 3; + if (this->from_key().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_from_key(), target); + } + + // bytes to_key = 4; + if (this->to_key().size() > 0) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_to_key(), target); + } + + // uint64 ts = 5; + if (this->ts() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_ts(), target); + } + + // bool latest = 6; + if (this->latest() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_latest(), target); + } + + // bool order_ascend = 7; + if (this->order_ascend() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_order_ascend(), target); + } + + // sint64 limit = 8; + if (this->limit() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(8, this->_internal_limit(), target); + } + + // int32 page_size = 9; + if (this->page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_page_size(), target); + } + + // string page_token = 10; + if (this->page_token().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.DomainRangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.DomainRangeReq) + return target; +} + +size_t DomainRangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.DomainRangeReq) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (this->table().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes from_key = 3; + if (this->from_key().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_from_key()); + } + + // bytes to_key = 4; + if (this->to_key().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_to_key()); + } + + // string page_token = 10; + if (this->page_token().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->tx_id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_tx_id()); + } + + // uint64 ts = 5; + if (this->ts() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_ts()); + } + + // bool latest = 6; + if (this->latest() != 0) { + total_size += 1 + 1; + } + + // bool order_ascend = 7; + if (this->order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 9; + if (this->page_size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_page_size()); + } + + // sint64 limit = 8; + if (this->limit() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_limit()); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DomainRangeReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.DomainRangeReq) + GOOGLE_DCHECK_NE(&from, this); + const DomainRangeReq* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.DomainRangeReq) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.DomainRangeReq) + MergeFrom(*source); + } +} + +void DomainRangeReq::MergeFrom(const DomainRangeReq& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.DomainRangeReq) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.table().size() > 0) { + _internal_set_table(from._internal_table()); + } + if (from.from_key().size() > 0) { + _internal_set_from_key(from._internal_from_key()); + } + if (from.to_key().size() > 0) { + _internal_set_to_key(from._internal_to_key()); + } + if (from.page_token().size() > 0) { + _internal_set_page_token(from._internal_page_token()); + } + if (from.tx_id() != 0) { + _internal_set_tx_id(from._internal_tx_id()); + } + if (from.ts() != 0) { + _internal_set_ts(from._internal_ts()); + } + if (from.latest() != 0) { + _internal_set_latest(from._internal_latest()); + } + if (from.order_ascend() != 0) { + _internal_set_order_ascend(from._internal_order_ascend()); + } + if (from.page_size() != 0) { + _internal_set_page_size(from._internal_page_size()); + } + if (from.limit() != 0) { + _internal_set_limit(from._internal_limit()); + } +} + +void DomainRangeReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.DomainRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DomainRangeReq::CopyFrom(const DomainRangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.DomainRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DomainRangeReq::IsInitialized() const { + return true; +} + +void DomainRangeReq::InternalSwap(DomainRangeReq* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + table_.Swap(&other->table_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + from_key_.Swap(&other->from_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + to_key_.Swap(&other->to_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + page_token_.Swap(&other->page_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DomainRangeReq, limit_) + + sizeof(DomainRangeReq::limit_) + - PROTOBUF_FIELD_OFFSET(DomainRangeReq, tx_id_)>( + reinterpret_cast(&tx_id_), + reinterpret_cast(&other->tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DomainRangeReq::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Pairs::_Internal { + public: +}; + +Pairs::Pairs(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + keys_(arena), + values_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:remote.Pairs) +} +Pairs::Pairs(const Pairs& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + keys_(from.keys_), + values_(from.values_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_next_page_token().empty()) { + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_next_page_token(), + GetArena()); + } + // @@protoc_insertion_point(copy_constructor:remote.Pairs) +} + +void Pairs::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Pairs_remote_2fkv_2eproto.base); + next_page_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +Pairs::~Pairs() { + // @@protoc_insertion_point(destructor:remote.Pairs) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Pairs::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + next_page_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void Pairs::ArenaDtor(void* object) { + Pairs* _this = reinterpret_cast< Pairs* >(object); + (void)_this; +} +void Pairs::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Pairs::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Pairs& Pairs::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Pairs_remote_2fkv_2eproto.base); + return *internal_default_instance(); +} + + +void Pairs::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.Pairs) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + keys_.Clear(); + values_.Clear(); + next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Pairs::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated bytes keys = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_keys(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + // repeated bytes values = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_values(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; + // string next_page_token = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Pairs.next_page_token")); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* Pairs::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.Pairs) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes keys = 1; + for (int i = 0, n = this->_internal_keys_size(); i < n; i++) { + const auto& s = this->_internal_keys(i); + target = stream->WriteBytes(1, s, target); + } + + // repeated bytes values = 2; + for (int i = 0, n = this->_internal_values_size(); i < n; i++) { + const auto& s = this->_internal_values(i); + target = stream->WriteBytes(2, s, target); + } + + // string next_page_token = 3; + if (this->next_page_token().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.Pairs.next_page_token"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_next_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReply) + // @@protoc_insertion_point(serialize_to_array_end:remote.Pairs) return target; } -size_t HistoryGetReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReply) +size_t Pairs::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.Pairs) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // bytes v = 1; - if (this->v().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_v()); + // repeated bytes keys = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(keys_.size()); + for (int i = 0, n = keys_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + keys_.Get(i)); } - // bool ok = 2; - if (this->ok() != 0) { - total_size += 1 + 1; + // repeated bytes values = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(values_.size()); + for (int i = 0, n = values_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + values_.Get(i)); + } + + // string next_page_token = 3; + if (this->next_page_token().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3499,190 +6609,152 @@ size_t HistoryGetReply::ByteSizeLong() const { return total_size; } -void HistoryGetReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.HistoryGetReply) +void Pairs::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.Pairs) GOOGLE_DCHECK_NE(&from, this); - const HistoryGetReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Pairs* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.HistoryGetReply) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.Pairs) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.HistoryGetReply) + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.Pairs) MergeFrom(*source); } } -void HistoryGetReply::MergeFrom(const HistoryGetReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReply) +void Pairs::MergeFrom(const Pairs& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.Pairs) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.v().size() > 0) { - _internal_set_v(from._internal_v()); - } - if (from.ok() != 0) { - _internal_set_ok(from._internal_ok()); + keys_.MergeFrom(from.keys_); + values_.MergeFrom(from.values_); + if (from.next_page_token().size() > 0) { + _internal_set_next_page_token(from._internal_next_page_token()); } } -void HistoryGetReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.HistoryGetReply) +void Pairs::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.Pairs) if (&from == this) return; Clear(); MergeFrom(from); } -void HistoryGetReply::CopyFrom(const HistoryGetReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReply) +void Pairs::CopyFrom(const Pairs& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.Pairs) if (&from == this) return; Clear(); MergeFrom(from); } -bool HistoryGetReply::IsInitialized() const { +bool Pairs::IsInitialized() const { return true; } -void HistoryGetReply::InternalSwap(HistoryGetReply* other) { +void Pairs::InternalSwap(Pairs* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - v_.Swap(&other->v_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(ok_, other->ok_); + keys_.InternalSwap(&other->keys_); + values_.InternalSwap(&other->values_); + next_page_token_.Swap(&other->next_page_token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReply::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Pairs::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class IndexRangeReq::_Internal { +class ParisPagination::_Internal { public: }; -IndexRangeReq::IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena) +ParisPagination::ParisPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReq) + // @@protoc_insertion_point(arena_constructor:remote.ParisPagination) } -IndexRangeReq::IndexRangeReq(const IndexRangeReq& from) +ParisPagination::ParisPagination(const ParisPagination& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_name().empty()) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), + next_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from._internal_next_key().empty()) { + next_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_next_key(), GetArena()); } - k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_k().empty()) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_k(), - GetArena()); - } - ::memcpy(&txid_, &from.txid_, - static_cast(reinterpret_cast(&tots_) - - reinterpret_cast(&txid_)) + sizeof(tots_)); - // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReq) + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:remote.ParisPagination) } -void IndexRangeReq::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexRangeReq_remote_2fkv_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - k_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&txid_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&tots_) - - reinterpret_cast(&txid_)) + sizeof(tots_)); +void ParisPagination::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ParisPagination_remote_2fkv_2eproto.base); + next_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + limit_ = PROTOBUF_LONGLONG(0); } -IndexRangeReq::~IndexRangeReq() { - // @@protoc_insertion_point(destructor:remote.IndexRangeReq) +ParisPagination::~ParisPagination() { + // @@protoc_insertion_point(destructor:remote.ParisPagination) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void IndexRangeReq::SharedDtor() { +void ParisPagination::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - k_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + next_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void IndexRangeReq::ArenaDtor(void* object) { - IndexRangeReq* _this = reinterpret_cast< IndexRangeReq* >(object); +void ParisPagination::ArenaDtor(void* object) { + ParisPagination* _this = reinterpret_cast< ParisPagination* >(object); (void)_this; } -void IndexRangeReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void ParisPagination::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void IndexRangeReq::SetCachedSize(int size) const { +void ParisPagination::SetCachedSize(int size) const { _cached_size_.Set(size); } -const IndexRangeReq& IndexRangeReq::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexRangeReq_remote_2fkv_2eproto.base); +const ParisPagination& ParisPagination::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ParisPagination_remote_2fkv_2eproto.base); return *internal_default_instance(); } -void IndexRangeReq::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReq) +void ParisPagination::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.ParisPagination) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - name_.ClearToEmpty(); - k_.ClearToEmpty(); - ::memset(&txid_, 0, static_cast( - reinterpret_cast(&tots_) - - reinterpret_cast(&txid_)) + sizeof(tots_)); + next_key_.ClearToEmpty(); + limit_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* IndexRangeReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ParisPagination::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // uint64 txID = 1; + // bytes next_key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - txid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // string name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.IndexRangeReq.name")); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes k = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_k(); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_next_key(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 fromTs = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - fromts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 toTs = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - tots_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + // sint64 limit = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -3708,95 +6780,52 @@ const char* IndexRangeReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* IndexRangeReq::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* ParisPagination::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReq) + // @@protoc_insertion_point(serialize_to_array_start:remote.ParisPagination) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // uint64 txID = 1; - if (this->txid() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_txid(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "remote.IndexRangeReq.name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); - } - - // bytes k = 3; - if (this->k().size() > 0) { + // bytes next_key = 1; + if (this->next_key().size() > 0) { target = stream->WriteBytesMaybeAliased( - 3, this->_internal_k(), target); - } - - // uint64 fromTs = 4; - if (this->fromts() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_fromts(), target); + 1, this->_internal_next_key(), target); } - // uint64 toTs = 5; - if (this->tots() != 0) { + // sint64 limit = 2; + if (this->limit() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_tots(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(2, this->_internal_limit(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReq) + // @@protoc_insertion_point(serialize_to_array_end:remote.ParisPagination) return target; } -size_t IndexRangeReq::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReq) +size_t ParisPagination::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.ParisPagination) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // bytes k = 3; - if (this->k().size() > 0) { + // bytes next_key = 1; + if (this->next_key().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_k()); - } - - // uint64 txID = 1; - if (this->txid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_txid()); - } - - // uint64 fromTs = 4; - if (this->fromts() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_fromts()); + this->_internal_next_key()); } - // uint64 toTs = 5; - if (this->tots() != 0) { + // sint64 limit = 2; + if (this->limit() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_tots()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_limit()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3808,153 +6837,149 @@ size_t IndexRangeReq::ByteSizeLong() const { return total_size; } -void IndexRangeReq::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.IndexRangeReq) +void ParisPagination::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.ParisPagination) GOOGLE_DCHECK_NE(&from, this); - const IndexRangeReq* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const ParisPagination* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.IndexRangeReq) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.ParisPagination) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.IndexRangeReq) + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.ParisPagination) MergeFrom(*source); } } -void IndexRangeReq::MergeFrom(const IndexRangeReq& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReq) +void ParisPagination::MergeFrom(const ParisPagination& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.ParisPagination) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from.name().size() > 0) { - _internal_set_name(from._internal_name()); - } - if (from.k().size() > 0) { - _internal_set_k(from._internal_k()); - } - if (from.txid() != 0) { - _internal_set_txid(from._internal_txid()); - } - if (from.fromts() != 0) { - _internal_set_fromts(from._internal_fromts()); + if (from.next_key().size() > 0) { + _internal_set_next_key(from._internal_next_key()); } - if (from.tots() != 0) { - _internal_set_tots(from._internal_tots()); + if (from.limit() != 0) { + _internal_set_limit(from._internal_limit()); } } -void IndexRangeReq::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.IndexRangeReq) +void ParisPagination::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.ParisPagination) if (&from == this) return; Clear(); MergeFrom(from); } -void IndexRangeReq::CopyFrom(const IndexRangeReq& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReq) +void ParisPagination::CopyFrom(const ParisPagination& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.ParisPagination) if (&from == this) return; Clear(); MergeFrom(from); } -bool IndexRangeReq::IsInitialized() const { +bool ParisPagination::IsInitialized() const { return true; } -void IndexRangeReq::InternalSwap(IndexRangeReq* other) { +void ParisPagination::InternalSwap(ParisPagination* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - k_.Swap(&other->k_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(IndexRangeReq, tots_) - + sizeof(IndexRangeReq::tots_) - - PROTOBUF_FIELD_OFFSET(IndexRangeReq, txid_)>( - reinterpret_cast(&txid_), - reinterpret_cast(&other->txid_)); + next_key_.Swap(&other->next_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(limit_, other->limit_); } -::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReq::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ParisPagination::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -class IndexRangeReply::_Internal { +class IndexPagination::_Internal { public: }; -IndexRangeReply::IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - timestamps_(arena) { +IndexPagination::IndexPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReply) + // @@protoc_insertion_point(arena_constructor:remote.IndexPagination) } -IndexRangeReply::IndexRangeReply(const IndexRangeReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - timestamps_(from.timestamps_) { +IndexPagination::IndexPagination(const IndexPagination& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReply) + ::memcpy(&next_time_stamp_, &from.next_time_stamp_, + static_cast(reinterpret_cast(&limit_) - + reinterpret_cast(&next_time_stamp_)) + sizeof(limit_)); + // @@protoc_insertion_point(copy_constructor:remote.IndexPagination) } -void IndexRangeReply::SharedCtor() { +void IndexPagination::SharedCtor() { + ::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&next_time_stamp_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&limit_) - + reinterpret_cast(&next_time_stamp_)) + sizeof(limit_)); } -IndexRangeReply::~IndexRangeReply() { - // @@protoc_insertion_point(destructor:remote.IndexRangeReply) +IndexPagination::~IndexPagination() { + // @@protoc_insertion_point(destructor:remote.IndexPagination) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void IndexRangeReply::SharedDtor() { +void IndexPagination::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } -void IndexRangeReply::ArenaDtor(void* object) { - IndexRangeReply* _this = reinterpret_cast< IndexRangeReply* >(object); +void IndexPagination::ArenaDtor(void* object) { + IndexPagination* _this = reinterpret_cast< IndexPagination* >(object); (void)_this; } -void IndexRangeReply::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void IndexPagination::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void IndexRangeReply::SetCachedSize(int size) const { +void IndexPagination::SetCachedSize(int size) const { _cached_size_.Set(size); } -const IndexRangeReply& IndexRangeReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexRangeReply_remote_2fkv_2eproto.base); +const IndexPagination& IndexPagination::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexPagination_remote_2fkv_2eproto.base); return *internal_default_instance(); } -void IndexRangeReply::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReply) +void IndexPagination::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.IndexPagination) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - timestamps_.Clear(); + ::memset(&next_time_stamp_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&next_time_stamp_)) + sizeof(limit_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* IndexRangeReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* IndexPagination::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // repeated uint64 timestamps = 1; + // sint64 next_time_stamp = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_timestamps(), ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + next_time_stamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8) { - _internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + } else goto handle_unusual; + continue; + // sint64 limit = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -3980,50 +7005,52 @@ const char* IndexRangeReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* IndexRangeReply::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* IndexPagination::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReply) + // @@protoc_insertion_point(serialize_to_array_start:remote.IndexPagination) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated uint64 timestamps = 1; - { - int byte_size = _timestamps_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteUInt64Packed( - 1, _internal_timestamps(), byte_size, target); - } + // sint64 next_time_stamp = 1; + if (this->next_time_stamp() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(1, this->_internal_next_time_stamp(), target); + } + + // sint64 limit = 2; + if (this->limit() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt64ToArray(2, this->_internal_limit(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReply) + // @@protoc_insertion_point(serialize_to_array_end:remote.IndexPagination) return target; } -size_t IndexRangeReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReply) +size_t IndexPagination::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.IndexPagination) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated uint64 timestamps = 1; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - UInt64Size(this->timestamps_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _timestamps_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; + // sint64 next_time_stamp = 1; + if (this->next_time_stamp() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_next_time_stamp()); + } + + // sint64 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt64Size( + this->_internal_limit()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4035,56 +7062,66 @@ size_t IndexRangeReply::ByteSizeLong() const { return total_size; } -void IndexRangeReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:remote.IndexRangeReply) +void IndexPagination::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:remote.IndexPagination) GOOGLE_DCHECK_NE(&from, this); - const IndexRangeReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const IndexPagination* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.IndexRangeReply) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:remote.IndexPagination) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.IndexRangeReply) + // @@protoc_insertion_point(generalized_merge_from_cast_success:remote.IndexPagination) MergeFrom(*source); } } -void IndexRangeReply::MergeFrom(const IndexRangeReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReply) +void IndexPagination::MergeFrom(const IndexPagination& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexPagination) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - timestamps_.MergeFrom(from.timestamps_); + if (from.next_time_stamp() != 0) { + _internal_set_next_time_stamp(from._internal_next_time_stamp()); + } + if (from.limit() != 0) { + _internal_set_limit(from._internal_limit()); + } } -void IndexRangeReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:remote.IndexRangeReply) +void IndexPagination::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:remote.IndexPagination) if (&from == this) return; Clear(); MergeFrom(from); } -void IndexRangeReply::CopyFrom(const IndexRangeReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReply) +void IndexPagination::CopyFrom(const IndexPagination& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexPagination) if (&from == this) return; Clear(); MergeFrom(from); } -bool IndexRangeReply::IsInitialized() const { +bool IndexPagination::IsInitialized() const { return true; } -void IndexRangeReply::InternalSwap(IndexRangeReply* other) { +void IndexPagination::InternalSwap(IndexPagination* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - timestamps_.InternalSwap(&other->timestamps_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IndexPagination, limit_) + + sizeof(IndexPagination::limit_) + - PROTOBUF_FIELD_OFFSET(IndexPagination, next_time_stamp_)>( + reinterpret_cast(&next_time_stamp_), + reinterpret_cast(&other->next_time_stamp_)); } -::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReply::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IndexPagination::GetMetadata() const { return GetMetadataStatic(); } @@ -4119,6 +7156,15 @@ template<> PROTOBUF_NOINLINE ::remote::SnapshotsRequest* Arena::CreateMaybeMessa template<> PROTOBUF_NOINLINE ::remote::SnapshotsReply* Arena::CreateMaybeMessage< ::remote::SnapshotsReply >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SnapshotsReply >(arena); } +template<> PROTOBUF_NOINLINE ::remote::RangeReq* Arena::CreateMaybeMessage< ::remote::RangeReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::RangeReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::DomainGetReq* Arena::CreateMaybeMessage< ::remote::DomainGetReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::DomainGetReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::DomainGetReply* Arena::CreateMaybeMessage< ::remote::DomainGetReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::DomainGetReply >(arena); +} template<> PROTOBUF_NOINLINE ::remote::HistoryGetReq* Arena::CreateMaybeMessage< ::remote::HistoryGetReq >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::HistoryGetReq >(arena); } @@ -4131,6 +7177,21 @@ template<> PROTOBUF_NOINLINE ::remote::IndexRangeReq* Arena::CreateMaybeMessage< template<> PROTOBUF_NOINLINE ::remote::IndexRangeReply* Arena::CreateMaybeMessage< ::remote::IndexRangeReply >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::IndexRangeReply >(arena); } +template<> PROTOBUF_NOINLINE ::remote::HistoryRangeReq* Arena::CreateMaybeMessage< ::remote::HistoryRangeReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::HistoryRangeReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::DomainRangeReq* Arena::CreateMaybeMessage< ::remote::DomainRangeReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::DomainRangeReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::Pairs* Arena::CreateMaybeMessage< ::remote::Pairs >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::Pairs >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::ParisPagination* Arena::CreateMaybeMessage< ::remote::ParisPagination >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::ParisPagination >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::IndexPagination* Arena::CreateMaybeMessage< ::remote::IndexPagination >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::IndexPagination >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/silkworm/interfaces/3.14.0/remote/kv.pb.h b/silkworm/interfaces/3.14.0/remote/kv.pb.h index 41298148d2..c21efdde50 100644 --- a/silkworm/interfaces/3.14.0/remote/kv.pb.h +++ b/silkworm/interfaces/3.14.0/remote/kv.pb.h @@ -49,7 +49,7 @@ struct TableStruct_remote_2fkv_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[13] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[21] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -63,12 +63,27 @@ extern AccountChangeDefaultTypeInternal _AccountChange_default_instance_; class Cursor; class CursorDefaultTypeInternal; extern CursorDefaultTypeInternal _Cursor_default_instance_; +class DomainGetReply; +class DomainGetReplyDefaultTypeInternal; +extern DomainGetReplyDefaultTypeInternal _DomainGetReply_default_instance_; +class DomainGetReq; +class DomainGetReqDefaultTypeInternal; +extern DomainGetReqDefaultTypeInternal _DomainGetReq_default_instance_; +class DomainRangeReq; +class DomainRangeReqDefaultTypeInternal; +extern DomainRangeReqDefaultTypeInternal _DomainRangeReq_default_instance_; class HistoryGetReply; class HistoryGetReplyDefaultTypeInternal; extern HistoryGetReplyDefaultTypeInternal _HistoryGetReply_default_instance_; class HistoryGetReq; class HistoryGetReqDefaultTypeInternal; extern HistoryGetReqDefaultTypeInternal _HistoryGetReq_default_instance_; +class HistoryRangeReq; +class HistoryRangeReqDefaultTypeInternal; +extern HistoryRangeReqDefaultTypeInternal _HistoryRangeReq_default_instance_; +class IndexPagination; +class IndexPaginationDefaultTypeInternal; +extern IndexPaginationDefaultTypeInternal _IndexPagination_default_instance_; class IndexRangeReply; class IndexRangeReplyDefaultTypeInternal; extern IndexRangeReplyDefaultTypeInternal _IndexRangeReply_default_instance_; @@ -78,6 +93,15 @@ extern IndexRangeReqDefaultTypeInternal _IndexRangeReq_default_instance_; class Pair; class PairDefaultTypeInternal; extern PairDefaultTypeInternal _Pair_default_instance_; +class Pairs; +class PairsDefaultTypeInternal; +extern PairsDefaultTypeInternal _Pairs_default_instance_; +class ParisPagination; +class ParisPaginationDefaultTypeInternal; +extern ParisPaginationDefaultTypeInternal _ParisPagination_default_instance_; +class RangeReq; +class RangeReqDefaultTypeInternal; +extern RangeReqDefaultTypeInternal _RangeReq_default_instance_; class SnapshotsReply; class SnapshotsReplyDefaultTypeInternal; extern SnapshotsReplyDefaultTypeInternal _SnapshotsReply_default_instance_; @@ -100,11 +124,19 @@ extern StorageChangeDefaultTypeInternal _StorageChange_default_instance_; PROTOBUF_NAMESPACE_OPEN template<> ::remote::AccountChange* Arena::CreateMaybeMessage<::remote::AccountChange>(Arena*); template<> ::remote::Cursor* Arena::CreateMaybeMessage<::remote::Cursor>(Arena*); +template<> ::remote::DomainGetReply* Arena::CreateMaybeMessage<::remote::DomainGetReply>(Arena*); +template<> ::remote::DomainGetReq* Arena::CreateMaybeMessage<::remote::DomainGetReq>(Arena*); +template<> ::remote::DomainRangeReq* Arena::CreateMaybeMessage<::remote::DomainRangeReq>(Arena*); template<> ::remote::HistoryGetReply* Arena::CreateMaybeMessage<::remote::HistoryGetReply>(Arena*); template<> ::remote::HistoryGetReq* Arena::CreateMaybeMessage<::remote::HistoryGetReq>(Arena*); +template<> ::remote::HistoryRangeReq* Arena::CreateMaybeMessage<::remote::HistoryRangeReq>(Arena*); +template<> ::remote::IndexPagination* Arena::CreateMaybeMessage<::remote::IndexPagination>(Arena*); template<> ::remote::IndexRangeReply* Arena::CreateMaybeMessage<::remote::IndexRangeReply>(Arena*); template<> ::remote::IndexRangeReq* Arena::CreateMaybeMessage<::remote::IndexRangeReq>(Arena*); template<> ::remote::Pair* Arena::CreateMaybeMessage<::remote::Pair>(Arena*); +template<> ::remote::Pairs* Arena::CreateMaybeMessage<::remote::Pairs>(Arena*); +template<> ::remote::ParisPagination* Arena::CreateMaybeMessage<::remote::ParisPagination>(Arena*); +template<> ::remote::RangeReq* Arena::CreateMaybeMessage<::remote::RangeReq>(Arena*); template<> ::remote::SnapshotsReply* Arena::CreateMaybeMessage<::remote::SnapshotsReply>(Arena*); template<> ::remote::SnapshotsRequest* Arena::CreateMaybeMessage<::remote::SnapshotsRequest>(Arena*); template<> ::remote::StateChange* Arena::CreateMaybeMessage<::remote::StateChange>(Arena*); @@ -1765,30 +1797,55 @@ class SnapshotsReply PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kFilesFieldNumber = 1, + kBlocksFilesFieldNumber = 1, + kHistoryFilesFieldNumber = 2, }; - // repeated string files = 1; - int files_size() const; - private: - int _internal_files_size() const; - public: - void clear_files(); - const std::string& files(int index) const; - std::string* mutable_files(int index); - void set_files(int index, const std::string& value); - void set_files(int index, std::string&& value); - void set_files(int index, const char* value); - void set_files(int index, const char* value, size_t size); - std::string* add_files(); - void add_files(const std::string& value); - void add_files(std::string&& value); - void add_files(const char* value); - void add_files(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& files() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_files(); - private: - const std::string& _internal_files(int index) const; - std::string* _internal_add_files(); + // repeated string blocks_files = 1; + int blocks_files_size() const; + private: + int _internal_blocks_files_size() const; + public: + void clear_blocks_files(); + const std::string& blocks_files(int index) const; + std::string* mutable_blocks_files(int index); + void set_blocks_files(int index, const std::string& value); + void set_blocks_files(int index, std::string&& value); + void set_blocks_files(int index, const char* value); + void set_blocks_files(int index, const char* value, size_t size); + std::string* add_blocks_files(); + void add_blocks_files(const std::string& value); + void add_blocks_files(std::string&& value); + void add_blocks_files(const char* value); + void add_blocks_files(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& blocks_files() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_blocks_files(); + private: + const std::string& _internal_blocks_files(int index) const; + std::string* _internal_add_blocks_files(); + public: + + // repeated string history_files = 2; + int history_files_size() const; + private: + int _internal_history_files_size() const; + public: + void clear_history_files(); + const std::string& history_files(int index) const; + std::string* mutable_history_files(int index); + void set_history_files(int index, const std::string& value); + void set_history_files(int index, std::string&& value); + void set_history_files(int index, const char* value); + void set_history_files(int index, const char* value, size_t size); + std::string* add_history_files(); + void add_history_files(const std::string& value); + void add_history_files(std::string&& value); + void add_history_files(const char* value); + void add_history_files(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& history_files() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_history_files(); + private: + const std::string& _internal_history_files(int index) const; + std::string* _internal_add_history_files(); public: // @@protoc_insertion_point(class_scope:remote.SnapshotsReply) @@ -1798,29 +1855,30 @@ class SnapshotsReply PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField files_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blocks_files_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField history_files_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fkv_2eproto; }; // ------------------------------------------------------------------- -class HistoryGetReq PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReq) */ { +class RangeReq PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.RangeReq) */ { public: - inline HistoryGetReq() : HistoryGetReq(nullptr) {} - virtual ~HistoryGetReq(); + inline RangeReq() : RangeReq(nullptr) {} + virtual ~RangeReq(); - HistoryGetReq(const HistoryGetReq& from); - HistoryGetReq(HistoryGetReq&& from) noexcept - : HistoryGetReq() { + RangeReq(const RangeReq& from); + RangeReq(RangeReq&& from) noexcept + : RangeReq() { *this = ::std::move(from); } - inline HistoryGetReq& operator=(const HistoryGetReq& from) { + inline RangeReq& operator=(const RangeReq& from) { CopyFrom(from); return *this; } - inline HistoryGetReq& operator=(HistoryGetReq&& from) noexcept { + inline RangeReq& operator=(RangeReq&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1838,19 +1896,19 @@ class HistoryGetReq PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const HistoryGetReq& default_instance(); + static const RangeReq& default_instance(); - static inline const HistoryGetReq* internal_default_instance() { - return reinterpret_cast( - &_HistoryGetReq_default_instance_); + static inline const RangeReq* internal_default_instance() { + return reinterpret_cast( + &_RangeReq_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(HistoryGetReq& a, HistoryGetReq& b) { + friend void swap(RangeReq& a, RangeReq& b) { a.Swap(&b); } - inline void Swap(HistoryGetReq* other) { + inline void Swap(RangeReq* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1858,7 +1916,7 @@ class HistoryGetReq PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HistoryGetReq* other) { + void UnsafeArenaSwap(RangeReq* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1866,17 +1924,17 @@ class HistoryGetReq PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline HistoryGetReq* New() const final { - return CreateMaybeMessage(nullptr); + inline RangeReq* New() const final { + return CreateMaybeMessage(nullptr); } - HistoryGetReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + RangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const HistoryGetReq& from); - void MergeFrom(const HistoryGetReq& from); + void CopyFrom(const RangeReq& from); + void MergeFrom(const RangeReq& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1890,13 +1948,254 @@ class HistoryGetReq PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(HistoryGetReq* other); + void InternalSwap(RangeReq* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.HistoryGetReq"; + return "remote.RangeReq"; } protected: - explicit HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableFieldNumber = 2, + kFromPrefixFieldNumber = 3, + kToPrefixFieldNumber = 4, + kPageTokenFieldNumber = 8, + kTxIdFieldNumber = 1, + kLimitFieldNumber = 6, + kOrderAscendFieldNumber = 5, + kPageSizeFieldNumber = 7, + }; + // string table = 2; + void clear_table(); + const std::string& table() const; + void set_table(const std::string& value); + void set_table(std::string&& value); + void set_table(const char* value); + void set_table(const char* value, size_t size); + std::string* mutable_table(); + std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: + + // bytes from_prefix = 3; + void clear_from_prefix(); + const std::string& from_prefix() const; + void set_from_prefix(const std::string& value); + void set_from_prefix(std::string&& value); + void set_from_prefix(const char* value); + void set_from_prefix(const void* value, size_t size); + std::string* mutable_from_prefix(); + std::string* release_from_prefix(); + void set_allocated_from_prefix(std::string* from_prefix); + private: + const std::string& _internal_from_prefix() const; + void _internal_set_from_prefix(const std::string& value); + std::string* _internal_mutable_from_prefix(); + public: + + // bytes to_prefix = 4; + void clear_to_prefix(); + const std::string& to_prefix() const; + void set_to_prefix(const std::string& value); + void set_to_prefix(std::string&& value); + void set_to_prefix(const char* value); + void set_to_prefix(const void* value, size_t size); + std::string* mutable_to_prefix(); + std::string* release_to_prefix(); + void set_allocated_to_prefix(std::string* to_prefix); + private: + const std::string& _internal_to_prefix() const; + void _internal_set_to_prefix(const std::string& value); + std::string* _internal_mutable_to_prefix(); + public: + + // string page_token = 8; + void clear_page_token(); + const std::string& page_token() const; + void set_page_token(const std::string& value); + void set_page_token(std::string&& value); + void set_page_token(const char* value); + void set_page_token(const char* value, size_t size); + std::string* mutable_page_token(); + std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id() const; + void set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_id() const; + void _internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // sint64 limit = 6; + void clear_limit(); + ::PROTOBUF_NAMESPACE_ID::int64 limit() const; + void set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_limit() const; + void _internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // bool order_ascend = 5; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 7; + void clear_page_size(); + ::PROTOBUF_NAMESPACE_ID::int32 page_size() const; + void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const; + void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // @@protoc_insertion_point(class_scope:remote.RangeReq) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr from_prefix_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr to_prefix_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id_; + ::PROTOBUF_NAMESPACE_ID::int64 limit_; + bool order_ascend_; + ::PROTOBUF_NAMESPACE_ID::int32 page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class DomainGetReq PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.DomainGetReq) */ { + public: + inline DomainGetReq() : DomainGetReq(nullptr) {} + virtual ~DomainGetReq(); + + DomainGetReq(const DomainGetReq& from); + DomainGetReq(DomainGetReq&& from) noexcept + : DomainGetReq() { + *this = ::std::move(from); + } + + inline DomainGetReq& operator=(const DomainGetReq& from) { + CopyFrom(from); + return *this; + } + inline DomainGetReq& operator=(DomainGetReq&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DomainGetReq& default_instance(); + + static inline const DomainGetReq* internal_default_instance() { + return reinterpret_cast( + &_DomainGetReq_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(DomainGetReq& a, DomainGetReq& b) { + a.Swap(&b); + } + inline void Swap(DomainGetReq* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DomainGetReq* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DomainGetReq* New() const final { + return CreateMaybeMessage(nullptr); + } + + DomainGetReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DomainGetReq& from); + void MergeFrom(const DomainGetReq& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DomainGetReq* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.DomainGetReq"; + } + protected: + explicit DomainGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1916,25 +2215,27 @@ class HistoryGetReq PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 2, + kTableFieldNumber = 2, kKFieldNumber = 3, - kTxIDFieldNumber = 1, + kK2FieldNumber = 5, + kTxIdFieldNumber = 1, kTsFieldNumber = 4, + kLatestFieldNumber = 6, }; - // string name = 2; - void clear_name(); - const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); + // string table = 2; + void clear_table(); + const std::string& table() const; + void set_table(const std::string& value); + void set_table(std::string&& value); + void set_table(const char* value); + void set_table(const char* value, size_t size); + std::string* mutable_table(); + std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); public: // bytes k = 3; @@ -1953,13 +2254,29 @@ class HistoryGetReq PROTOBUF_FINAL : std::string* _internal_mutable_k(); public: - // uint64 txID = 1; - void clear_txid(); - ::PROTOBUF_NAMESPACE_ID::uint64 txid() const; - void set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value); + // bytes k2 = 5; + void clear_k2(); + const std::string& k2() const; + void set_k2(const std::string& value); + void set_k2(std::string&& value); + void set_k2(const char* value); + void set_k2(const void* value, size_t size); + std::string* mutable_k2(); + std::string* release_k2(); + void set_allocated_k2(std::string* k2); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_txid() const; - void _internal_set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value); + const std::string& _internal_k2() const; + void _internal_set_k2(const std::string& value); + std::string* _internal_mutable_k2(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id() const; + void set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_id() const; + void _internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // uint64 ts = 4; @@ -1971,39 +2288,50 @@ class HistoryGetReq PROTOBUF_FINAL : void _internal_set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // @@protoc_insertion_point(class_scope:remote.HistoryGetReq) + // bool latest = 6; + void clear_latest(); + bool latest() const; + void set_latest(bool value); + private: + bool _internal_latest() const; + void _internal_set_latest(bool value); + public: + + // @@protoc_insertion_point(class_scope:remote.DomainGetReq) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; - ::PROTOBUF_NAMESPACE_ID::uint64 txid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k2_; + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id_; ::PROTOBUF_NAMESPACE_ID::uint64 ts_; + bool latest_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fkv_2eproto; }; // ------------------------------------------------------------------- -class HistoryGetReply PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReply) */ { +class DomainGetReply PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.DomainGetReply) */ { public: - inline HistoryGetReply() : HistoryGetReply(nullptr) {} - virtual ~HistoryGetReply(); + inline DomainGetReply() : DomainGetReply(nullptr) {} + virtual ~DomainGetReply(); - HistoryGetReply(const HistoryGetReply& from); - HistoryGetReply(HistoryGetReply&& from) noexcept - : HistoryGetReply() { + DomainGetReply(const DomainGetReply& from); + DomainGetReply(DomainGetReply&& from) noexcept + : DomainGetReply() { *this = ::std::move(from); } - inline HistoryGetReply& operator=(const HistoryGetReply& from) { + inline DomainGetReply& operator=(const DomainGetReply& from) { CopyFrom(from); return *this; } - inline HistoryGetReply& operator=(HistoryGetReply&& from) noexcept { + inline DomainGetReply& operator=(DomainGetReply&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2021,19 +2349,19 @@ class HistoryGetReply PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const HistoryGetReply& default_instance(); + static const DomainGetReply& default_instance(); - static inline const HistoryGetReply* internal_default_instance() { - return reinterpret_cast( - &_HistoryGetReply_default_instance_); + static inline const DomainGetReply* internal_default_instance() { + return reinterpret_cast( + &_DomainGetReply_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; - friend void swap(HistoryGetReply& a, HistoryGetReply& b) { + friend void swap(DomainGetReply& a, DomainGetReply& b) { a.Swap(&b); } - inline void Swap(HistoryGetReply* other) { + inline void Swap(DomainGetReply* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2041,7 +2369,7 @@ class HistoryGetReply PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HistoryGetReply* other) { + void UnsafeArenaSwap(DomainGetReply* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2049,17 +2377,17 @@ class HistoryGetReply PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline HistoryGetReply* New() const final { - return CreateMaybeMessage(nullptr); + inline DomainGetReply* New() const final { + return CreateMaybeMessage(nullptr); } - HistoryGetReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + DomainGetReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const HistoryGetReply& from); - void MergeFrom(const HistoryGetReply& from); + void CopyFrom(const DomainGetReply& from); + void MergeFrom(const DomainGetReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2073,13 +2401,13 @@ class HistoryGetReply PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(HistoryGetReply* other); + void InternalSwap(DomainGetReply* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.HistoryGetReply"; + return "remote.DomainGetReply"; } protected: - explicit HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DomainGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2127,7 +2455,7 @@ class HistoryGetReply PROTOBUF_FINAL : void _internal_set_ok(bool value); public: - // @@protoc_insertion_point(class_scope:remote.HistoryGetReply) + // @@protoc_insertion_point(class_scope:remote.DomainGetReply) private: class _Internal; @@ -2141,23 +2469,23 @@ class HistoryGetReply PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class IndexRangeReq PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReq) */ { +class HistoryGetReq PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReq) */ { public: - inline IndexRangeReq() : IndexRangeReq(nullptr) {} - virtual ~IndexRangeReq(); + inline HistoryGetReq() : HistoryGetReq(nullptr) {} + virtual ~HistoryGetReq(); - IndexRangeReq(const IndexRangeReq& from); - IndexRangeReq(IndexRangeReq&& from) noexcept - : IndexRangeReq() { + HistoryGetReq(const HistoryGetReq& from); + HistoryGetReq(HistoryGetReq&& from) noexcept + : HistoryGetReq() { *this = ::std::move(from); } - inline IndexRangeReq& operator=(const IndexRangeReq& from) { + inline HistoryGetReq& operator=(const HistoryGetReq& from) { CopyFrom(from); return *this; } - inline IndexRangeReq& operator=(IndexRangeReq&& from) noexcept { + inline HistoryGetReq& operator=(HistoryGetReq&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2175,19 +2503,19 @@ class IndexRangeReq PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const IndexRangeReq& default_instance(); + static const HistoryGetReq& default_instance(); - static inline const IndexRangeReq* internal_default_instance() { - return reinterpret_cast( - &_IndexRangeReq_default_instance_); + static inline const HistoryGetReq* internal_default_instance() { + return reinterpret_cast( + &_HistoryGetReq_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; - friend void swap(IndexRangeReq& a, IndexRangeReq& b) { + friend void swap(HistoryGetReq& a, HistoryGetReq& b) { a.Swap(&b); } - inline void Swap(IndexRangeReq* other) { + inline void Swap(HistoryGetReq* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2195,7 +2523,7 @@ class IndexRangeReq PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IndexRangeReq* other) { + void UnsafeArenaSwap(HistoryGetReq* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2203,17 +2531,17 @@ class IndexRangeReq PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline IndexRangeReq* New() const final { - return CreateMaybeMessage(nullptr); + inline HistoryGetReq* New() const final { + return CreateMaybeMessage(nullptr); } - IndexRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + HistoryGetReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const IndexRangeReq& from); - void MergeFrom(const IndexRangeReq& from); + void CopyFrom(const HistoryGetReq& from); + void MergeFrom(const HistoryGetReq& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2227,13 +2555,13 @@ class IndexRangeReq PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IndexRangeReq* other); + void InternalSwap(HistoryGetReq* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.IndexRangeReq"; + return "remote.HistoryGetReq"; } protected: - explicit IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2253,26 +2581,25 @@ class IndexRangeReq PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 2, + kTableFieldNumber = 2, kKFieldNumber = 3, - kTxIDFieldNumber = 1, - kFromTsFieldNumber = 4, - kToTsFieldNumber = 5, + kTxIdFieldNumber = 1, + kTsFieldNumber = 4, }; - // string name = 2; - void clear_name(); - const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); - std::string* mutable_name(); - std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); + // string table = 2; + void clear_table(); + const std::string& table() const; + void set_table(const std::string& value); + void set_table(std::string&& value); + void set_table(const char* value); + void set_table(const char* value, size_t size); + std::string* mutable_table(); + std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); public: // bytes k = 3; @@ -2291,67 +2618,57 @@ class IndexRangeReq PROTOBUF_FINAL : std::string* _internal_mutable_k(); public: - // uint64 txID = 1; - void clear_txid(); - ::PROTOBUF_NAMESPACE_ID::uint64 txid() const; - void set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_txid() const; - void _internal_set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: - - // uint64 fromTs = 4; - void clear_fromts(); - ::PROTOBUF_NAMESPACE_ID::uint64 fromts() const; - void set_fromts(::PROTOBUF_NAMESPACE_ID::uint64 value); + // uint64 tx_id = 1; + void clear_tx_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id() const; + void set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_fromts() const; - void _internal_set_fromts(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_id() const; + void _internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 toTs = 5; - void clear_tots(); - ::PROTOBUF_NAMESPACE_ID::uint64 tots() const; - void set_tots(::PROTOBUF_NAMESPACE_ID::uint64 value); + // uint64 ts = 4; + void clear_ts(); + ::PROTOBUF_NAMESPACE_ID::uint64 ts() const; + void set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tots() const; - void _internal_set_tots(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_ts() const; + void _internal_set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // @@protoc_insertion_point(class_scope:remote.IndexRangeReq) + // @@protoc_insertion_point(class_scope:remote.HistoryGetReq) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; - ::PROTOBUF_NAMESPACE_ID::uint64 txid_; - ::PROTOBUF_NAMESPACE_ID::uint64 fromts_; - ::PROTOBUF_NAMESPACE_ID::uint64 tots_; + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 ts_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fkv_2eproto; }; // ------------------------------------------------------------------- -class IndexRangeReply PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReply) */ { +class HistoryGetReply PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReply) */ { public: - inline IndexRangeReply() : IndexRangeReply(nullptr) {} - virtual ~IndexRangeReply(); + inline HistoryGetReply() : HistoryGetReply(nullptr) {} + virtual ~HistoryGetReply(); - IndexRangeReply(const IndexRangeReply& from); - IndexRangeReply(IndexRangeReply&& from) noexcept - : IndexRangeReply() { + HistoryGetReply(const HistoryGetReply& from); + HistoryGetReply(HistoryGetReply&& from) noexcept + : HistoryGetReply() { *this = ::std::move(from); } - inline IndexRangeReply& operator=(const IndexRangeReply& from) { + inline HistoryGetReply& operator=(const HistoryGetReply& from) { CopyFrom(from); return *this; } - inline IndexRangeReply& operator=(IndexRangeReply&& from) noexcept { + inline HistoryGetReply& operator=(HistoryGetReply&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -2369,19 +2686,19 @@ class IndexRangeReply PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const IndexRangeReply& default_instance(); + static const HistoryGetReply& default_instance(); - static inline const IndexRangeReply* internal_default_instance() { - return reinterpret_cast( - &_IndexRangeReply_default_instance_); + static inline const HistoryGetReply* internal_default_instance() { + return reinterpret_cast( + &_HistoryGetReply_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; - friend void swap(IndexRangeReply& a, IndexRangeReply& b) { + friend void swap(HistoryGetReply& a, HistoryGetReply& b) { a.Swap(&b); } - inline void Swap(IndexRangeReply* other) { + inline void Swap(HistoryGetReply* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -2389,7 +2706,7 @@ class IndexRangeReply PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IndexRangeReply* other) { + void UnsafeArenaSwap(HistoryGetReply* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2397,17 +2714,17 @@ class IndexRangeReply PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline IndexRangeReply* New() const final { - return CreateMaybeMessage(nullptr); + inline HistoryGetReply* New() const final { + return CreateMaybeMessage(nullptr); } - IndexRangeReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + HistoryGetReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const IndexRangeReply& from); - void MergeFrom(const IndexRangeReply& from); + void CopyFrom(const HistoryGetReply& from); + void MergeFrom(const HistoryGetReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2421,13 +2738,13 @@ class IndexRangeReply PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IndexRangeReply* other); + void InternalSwap(HistoryGetReply* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.IndexRangeReply"; + return "remote.HistoryGetReply"; } protected: - explicit IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -2447,331 +2764,3290 @@ class IndexRangeReply PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kTimestampsFieldNumber = 1, + kVFieldNumber = 1, + kOkFieldNumber = 2, }; - // repeated uint64 timestamps = 1; - int timestamps_size() const; + // bytes v = 1; + void clear_v(); + const std::string& v() const; + void set_v(const std::string& value); + void set_v(std::string&& value); + void set_v(const char* value); + void set_v(const void* value, size_t size); + std::string* mutable_v(); + std::string* release_v(); + void set_allocated_v(std::string* v); private: - int _internal_timestamps_size() const; + const std::string& _internal_v() const; + void _internal_set_v(const std::string& value); + std::string* _internal_mutable_v(); public: - void clear_timestamps(); + + // bool ok = 2; + void clear_ok(); + bool ok() const; + void set_ok(bool value); private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_timestamps(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& - _internal_timestamps() const; - void _internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* - _internal_mutable_timestamps(); + bool _internal_ok() const; + void _internal_set_ok(bool value); public: - ::PROTOBUF_NAMESPACE_ID::uint64 timestamps(int index) const; - void set_timestamps(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value); - void add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& - timestamps() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* - mutable_timestamps(); - // @@protoc_insertion_point(class_scope:remote.IndexRangeReply) + // @@protoc_insertion_point(class_scope:remote.HistoryGetReply) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 > timestamps_; - mutable std::atomic _timestamps_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr v_; + bool ok_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_remote_2fkv_2eproto; }; -// =================================================================== - +// ------------------------------------------------------------------- -// =================================================================== +class IndexRangeReq PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReq) */ { + public: + inline IndexRangeReq() : IndexRangeReq(nullptr) {} + virtual ~IndexRangeReq(); -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Cursor + IndexRangeReq(const IndexRangeReq& from); + IndexRangeReq(IndexRangeReq&& from) noexcept + : IndexRangeReq() { + *this = ::std::move(from); + } -// .remote.Op op = 1; -inline void Cursor::clear_op() { - op_ = 0; -} -inline ::remote::Op Cursor::_internal_op() const { - return static_cast< ::remote::Op >(op_); -} -inline ::remote::Op Cursor::op() const { - // @@protoc_insertion_point(field_get:remote.Cursor.op) - return _internal_op(); -} -inline void Cursor::_internal_set_op(::remote::Op value) { - - op_ = value; -} -inline void Cursor::set_op(::remote::Op value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:remote.Cursor.op) -} + inline IndexRangeReq& operator=(const IndexRangeReq& from) { + CopyFrom(from); + return *this; + } + inline IndexRangeReq& operator=(IndexRangeReq&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// string bucketName = 2; -inline void Cursor::clear_bucketname() { - bucketname_.ClearToEmpty(); -} -inline const std::string& Cursor::bucketname() const { - // @@protoc_insertion_point(field_get:remote.Cursor.bucketName) - return _internal_bucketname(); -} -inline void Cursor::set_bucketname(const std::string& value) { - _internal_set_bucketname(value); - // @@protoc_insertion_point(field_set:remote.Cursor.bucketName) -} -inline std::string* Cursor::mutable_bucketname() { - // @@protoc_insertion_point(field_mutable:remote.Cursor.bucketName) - return _internal_mutable_bucketname(); -} -inline const std::string& Cursor::_internal_bucketname() const { - return bucketname_.Get(); -} -inline void Cursor::_internal_set_bucketname(const std::string& value) { - - bucketname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); -} -inline void Cursor::set_bucketname(std::string&& value) { - - bucketname_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.Cursor.bucketName) -} -inline void Cursor::set_bucketname(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - bucketname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.Cursor.bucketName) -} -inline void Cursor::set_bucketname(const char* value, - size_t size) { - - bucketname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.Cursor.bucketName) -} -inline std::string* Cursor::_internal_mutable_bucketname() { - - return bucketname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); -} -inline std::string* Cursor::release_bucketname() { - // @@protoc_insertion_point(field_release:remote.Cursor.bucketName) - return bucketname_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void Cursor::set_allocated_bucketname(std::string* bucketname) { - if (bucketname != nullptr) { - - } else { - + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - bucketname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bucketname, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.Cursor.bucketName) -} + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const IndexRangeReq& default_instance(); -// uint32 cursor = 3; -inline void Cursor::clear_cursor() { - cursor_ = 0u; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Cursor::_internal_cursor() const { - return cursor_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 Cursor::cursor() const { - // @@protoc_insertion_point(field_get:remote.Cursor.cursor) - return _internal_cursor(); -} -inline void Cursor::_internal_set_cursor(::PROTOBUF_NAMESPACE_ID::uint32 value) { - - cursor_ = value; -} -inline void Cursor::set_cursor(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_cursor(value); - // @@protoc_insertion_point(field_set:remote.Cursor.cursor) -} + static inline const IndexRangeReq* internal_default_instance() { + return reinterpret_cast( + &_IndexRangeReq_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; -// bytes k = 4; + friend void swap(IndexRangeReq& a, IndexRangeReq& b) { + a.Swap(&b); + } + inline void Swap(IndexRangeReq* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IndexRangeReq* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexRangeReq* New() const final { + return CreateMaybeMessage(nullptr); + } + + IndexRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IndexRangeReq& from); + void MergeFrom(const IndexRangeReq& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexRangeReq* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.IndexRangeReq"; + } + protected: + explicit IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableFieldNumber = 2, + kKFieldNumber = 3, + kPageTokenFieldNumber = 9, + kTxIdFieldNumber = 1, + kFromTsFieldNumber = 4, + kToTsFieldNumber = 5, + kLimitFieldNumber = 7, + kOrderAscendFieldNumber = 6, + kPageSizeFieldNumber = 8, + }; + // string table = 2; + void clear_table(); + const std::string& table() const; + void set_table(const std::string& value); + void set_table(std::string&& value); + void set_table(const char* value); + void set_table(const char* value, size_t size); + std::string* mutable_table(); + std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: + + // bytes k = 3; + void clear_k(); + const std::string& k() const; + void set_k(const std::string& value); + void set_k(std::string&& value); + void set_k(const char* value); + void set_k(const void* value, size_t size); + std::string* mutable_k(); + std::string* release_k(); + void set_allocated_k(std::string* k); + private: + const std::string& _internal_k() const; + void _internal_set_k(const std::string& value); + std::string* _internal_mutable_k(); + public: + + // string page_token = 9; + void clear_page_token(); + const std::string& page_token() const; + void set_page_token(const std::string& value); + void set_page_token(std::string&& value); + void set_page_token(const char* value); + void set_page_token(const char* value, size_t size); + std::string* mutable_page_token(); + std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id() const; + void set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_id() const; + void _internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // sint64 from_ts = 4; + void clear_from_ts(); + ::PROTOBUF_NAMESPACE_ID::int64 from_ts() const; + void set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_from_ts() const; + void _internal_set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // sint64 to_ts = 5; + void clear_to_ts(); + ::PROTOBUF_NAMESPACE_ID::int64 to_ts() const; + void set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_to_ts() const; + void _internal_set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // sint64 limit = 7; + void clear_limit(); + ::PROTOBUF_NAMESPACE_ID::int64 limit() const; + void set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_limit() const; + void _internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // bool order_ascend = 6; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 8; + void clear_page_size(); + ::PROTOBUF_NAMESPACE_ID::int32 page_size() const; + void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const; + void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // @@protoc_insertion_point(class_scope:remote.IndexRangeReq) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id_; + ::PROTOBUF_NAMESPACE_ID::int64 from_ts_; + ::PROTOBUF_NAMESPACE_ID::int64 to_ts_; + ::PROTOBUF_NAMESPACE_ID::int64 limit_; + bool order_ascend_; + ::PROTOBUF_NAMESPACE_ID::int32 page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexRangeReply PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReply) */ { + public: + inline IndexRangeReply() : IndexRangeReply(nullptr) {} + virtual ~IndexRangeReply(); + + IndexRangeReply(const IndexRangeReply& from); + IndexRangeReply(IndexRangeReply&& from) noexcept + : IndexRangeReply() { + *this = ::std::move(from); + } + + inline IndexRangeReply& operator=(const IndexRangeReply& from) { + CopyFrom(from); + return *this; + } + inline IndexRangeReply& operator=(IndexRangeReply&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const IndexRangeReply& default_instance(); + + static inline const IndexRangeReply* internal_default_instance() { + return reinterpret_cast( + &_IndexRangeReply_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(IndexRangeReply& a, IndexRangeReply& b) { + a.Swap(&b); + } + inline void Swap(IndexRangeReply* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IndexRangeReply* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexRangeReply* New() const final { + return CreateMaybeMessage(nullptr); + } + + IndexRangeReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IndexRangeReply& from); + void MergeFrom(const IndexRangeReply& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexRangeReply* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.IndexRangeReply"; + } + protected: + explicit IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTimestampsFieldNumber = 1, + kNextPageTokenFieldNumber = 2, + }; + // repeated uint64 timestamps = 1; + int timestamps_size() const; + private: + int _internal_timestamps_size() const; + public: + void clear_timestamps(); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_timestamps(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& + _internal_timestamps() const; + void _internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* + _internal_mutable_timestamps(); + public: + ::PROTOBUF_NAMESPACE_ID::uint64 timestamps(int index) const; + void set_timestamps(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value); + void add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& + timestamps() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* + mutable_timestamps(); + + // string next_page_token = 2; + void clear_next_page_token(); + const std::string& next_page_token() const; + void set_next_page_token(const std::string& value); + void set_next_page_token(std::string&& value); + void set_next_page_token(const char* value); + void set_next_page_token(const char* value, size_t size); + std::string* mutable_next_page_token(); + std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:remote.IndexRangeReply) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 > timestamps_; + mutable std::atomic _timestamps_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class HistoryRangeReq PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryRangeReq) */ { + public: + inline HistoryRangeReq() : HistoryRangeReq(nullptr) {} + virtual ~HistoryRangeReq(); + + HistoryRangeReq(const HistoryRangeReq& from); + HistoryRangeReq(HistoryRangeReq&& from) noexcept + : HistoryRangeReq() { + *this = ::std::move(from); + } + + inline HistoryRangeReq& operator=(const HistoryRangeReq& from) { + CopyFrom(from); + return *this; + } + inline HistoryRangeReq& operator=(HistoryRangeReq&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HistoryRangeReq& default_instance(); + + static inline const HistoryRangeReq* internal_default_instance() { + return reinterpret_cast( + &_HistoryRangeReq_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(HistoryRangeReq& a, HistoryRangeReq& b) { + a.Swap(&b); + } + inline void Swap(HistoryRangeReq* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HistoryRangeReq* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HistoryRangeReq* New() const final { + return CreateMaybeMessage(nullptr); + } + + HistoryRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HistoryRangeReq& from); + void MergeFrom(const HistoryRangeReq& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HistoryRangeReq* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.HistoryRangeReq"; + } + protected: + explicit HistoryRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableFieldNumber = 2, + kPageTokenFieldNumber = 9, + kTxIdFieldNumber = 1, + kFromTsFieldNumber = 4, + kToTsFieldNumber = 5, + kLimitFieldNumber = 7, + kOrderAscendFieldNumber = 6, + kPageSizeFieldNumber = 8, + }; + // string table = 2; + void clear_table(); + const std::string& table() const; + void set_table(const std::string& value); + void set_table(std::string&& value); + void set_table(const char* value); + void set_table(const char* value, size_t size); + std::string* mutable_table(); + std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: + + // string page_token = 9; + void clear_page_token(); + const std::string& page_token() const; + void set_page_token(const std::string& value); + void set_page_token(std::string&& value); + void set_page_token(const char* value); + void set_page_token(const char* value, size_t size); + std::string* mutable_page_token(); + std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id() const; + void set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_id() const; + void _internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // sint64 from_ts = 4; + void clear_from_ts(); + ::PROTOBUF_NAMESPACE_ID::int64 from_ts() const; + void set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_from_ts() const; + void _internal_set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // sint64 to_ts = 5; + void clear_to_ts(); + ::PROTOBUF_NAMESPACE_ID::int64 to_ts() const; + void set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_to_ts() const; + void _internal_set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // sint64 limit = 7; + void clear_limit(); + ::PROTOBUF_NAMESPACE_ID::int64 limit() const; + void set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_limit() const; + void _internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // bool order_ascend = 6; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 8; + void clear_page_size(); + ::PROTOBUF_NAMESPACE_ID::int32 page_size() const; + void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const; + void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // @@protoc_insertion_point(class_scope:remote.HistoryRangeReq) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id_; + ::PROTOBUF_NAMESPACE_ID::int64 from_ts_; + ::PROTOBUF_NAMESPACE_ID::int64 to_ts_; + ::PROTOBUF_NAMESPACE_ID::int64 limit_; + bool order_ascend_; + ::PROTOBUF_NAMESPACE_ID::int32 page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class DomainRangeReq PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.DomainRangeReq) */ { + public: + inline DomainRangeReq() : DomainRangeReq(nullptr) {} + virtual ~DomainRangeReq(); + + DomainRangeReq(const DomainRangeReq& from); + DomainRangeReq(DomainRangeReq&& from) noexcept + : DomainRangeReq() { + *this = ::std::move(from); + } + + inline DomainRangeReq& operator=(const DomainRangeReq& from) { + CopyFrom(from); + return *this; + } + inline DomainRangeReq& operator=(DomainRangeReq&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DomainRangeReq& default_instance(); + + static inline const DomainRangeReq* internal_default_instance() { + return reinterpret_cast( + &_DomainRangeReq_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(DomainRangeReq& a, DomainRangeReq& b) { + a.Swap(&b); + } + inline void Swap(DomainRangeReq* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DomainRangeReq* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DomainRangeReq* New() const final { + return CreateMaybeMessage(nullptr); + } + + DomainRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DomainRangeReq& from); + void MergeFrom(const DomainRangeReq& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DomainRangeReq* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.DomainRangeReq"; + } + protected: + explicit DomainRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableFieldNumber = 2, + kFromKeyFieldNumber = 3, + kToKeyFieldNumber = 4, + kPageTokenFieldNumber = 10, + kTxIdFieldNumber = 1, + kTsFieldNumber = 5, + kLatestFieldNumber = 6, + kOrderAscendFieldNumber = 7, + kPageSizeFieldNumber = 9, + kLimitFieldNumber = 8, + }; + // string table = 2; + void clear_table(); + const std::string& table() const; + void set_table(const std::string& value); + void set_table(std::string&& value); + void set_table(const char* value); + void set_table(const char* value, size_t size); + std::string* mutable_table(); + std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: + + // bytes from_key = 3; + void clear_from_key(); + const std::string& from_key() const; + void set_from_key(const std::string& value); + void set_from_key(std::string&& value); + void set_from_key(const char* value); + void set_from_key(const void* value, size_t size); + std::string* mutable_from_key(); + std::string* release_from_key(); + void set_allocated_from_key(std::string* from_key); + private: + const std::string& _internal_from_key() const; + void _internal_set_from_key(const std::string& value); + std::string* _internal_mutable_from_key(); + public: + + // bytes to_key = 4; + void clear_to_key(); + const std::string& to_key() const; + void set_to_key(const std::string& value); + void set_to_key(std::string&& value); + void set_to_key(const char* value); + void set_to_key(const void* value, size_t size); + std::string* mutable_to_key(); + std::string* release_to_key(); + void set_allocated_to_key(std::string* to_key); + private: + const std::string& _internal_to_key() const; + void _internal_set_to_key(const std::string& value); + std::string* _internal_mutable_to_key(); + public: + + // string page_token = 10; + void clear_page_token(); + const std::string& page_token() const; + void set_page_token(const std::string& value); + void set_page_token(std::string&& value); + void set_page_token(const char* value); + void set_page_token(const char* value, size_t size); + std::string* mutable_page_token(); + std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id() const; + void set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_tx_id() const; + void _internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // uint64 ts = 5; + void clear_ts(); + ::PROTOBUF_NAMESPACE_ID::uint64 ts() const; + void set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_ts() const; + void _internal_set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // bool latest = 6; + void clear_latest(); + bool latest() const; + void set_latest(bool value); + private: + bool _internal_latest() const; + void _internal_set_latest(bool value); + public: + + // bool order_ascend = 7; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 9; + void clear_page_size(); + ::PROTOBUF_NAMESPACE_ID::int32 page_size() const; + void set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_page_size() const; + void _internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // sint64 limit = 8; + void clear_limit(); + ::PROTOBUF_NAMESPACE_ID::int64 limit() const; + void set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_limit() const; + void _internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:remote.DomainRangeReq) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr from_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr to_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + ::PROTOBUF_NAMESPACE_ID::uint64 tx_id_; + ::PROTOBUF_NAMESPACE_ID::uint64 ts_; + bool latest_; + bool order_ascend_; + ::PROTOBUF_NAMESPACE_ID::int32 page_size_; + ::PROTOBUF_NAMESPACE_ID::int64 limit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class Pairs PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.Pairs) */ { + public: + inline Pairs() : Pairs(nullptr) {} + virtual ~Pairs(); + + Pairs(const Pairs& from); + Pairs(Pairs&& from) noexcept + : Pairs() { + *this = ::std::move(from); + } + + inline Pairs& operator=(const Pairs& from) { + CopyFrom(from); + return *this; + } + inline Pairs& operator=(Pairs&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Pairs& default_instance(); + + static inline const Pairs* internal_default_instance() { + return reinterpret_cast( + &_Pairs_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(Pairs& a, Pairs& b) { + a.Swap(&b); + } + inline void Swap(Pairs* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Pairs* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Pairs* New() const final { + return CreateMaybeMessage(nullptr); + } + + Pairs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Pairs& from); + void MergeFrom(const Pairs& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Pairs* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.Pairs"; + } + protected: + explicit Pairs(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeysFieldNumber = 1, + kValuesFieldNumber = 2, + kNextPageTokenFieldNumber = 3, + }; + // repeated bytes keys = 1; + int keys_size() const; + private: + int _internal_keys_size() const; + public: + void clear_keys(); + const std::string& keys(int index) const; + std::string* mutable_keys(int index); + void set_keys(int index, const std::string& value); + void set_keys(int index, std::string&& value); + void set_keys(int index, const char* value); + void set_keys(int index, const void* value, size_t size); + std::string* add_keys(); + void add_keys(const std::string& value); + void add_keys(std::string&& value); + void add_keys(const char* value); + void add_keys(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& keys() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_keys(); + private: + const std::string& _internal_keys(int index) const; + std::string* _internal_add_keys(); + public: + + // repeated bytes values = 2; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + const std::string& values(int index) const; + std::string* mutable_values(int index); + void set_values(int index, const std::string& value); + void set_values(int index, std::string&& value); + void set_values(int index, const char* value); + void set_values(int index, const void* value, size_t size); + std::string* add_values(); + void add_values(const std::string& value); + void add_values(std::string&& value); + void add_values(const char* value); + void add_values(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& values() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_values(); + private: + const std::string& _internal_values(int index) const; + std::string* _internal_add_values(); + public: + + // string next_page_token = 3; + void clear_next_page_token(); + const std::string& next_page_token() const; + void set_next_page_token(const std::string& value); + void set_next_page_token(std::string&& value); + void set_next_page_token(const char* value); + void set_next_page_token(const char* value, size_t size); + std::string* mutable_next_page_token(); + std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:remote.Pairs) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField keys_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class ParisPagination PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.ParisPagination) */ { + public: + inline ParisPagination() : ParisPagination(nullptr) {} + virtual ~ParisPagination(); + + ParisPagination(const ParisPagination& from); + ParisPagination(ParisPagination&& from) noexcept + : ParisPagination() { + *this = ::std::move(from); + } + + inline ParisPagination& operator=(const ParisPagination& from) { + CopyFrom(from); + return *this; + } + inline ParisPagination& operator=(ParisPagination&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ParisPagination& default_instance(); + + static inline const ParisPagination* internal_default_instance() { + return reinterpret_cast( + &_ParisPagination_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(ParisPagination& a, ParisPagination& b) { + a.Swap(&b); + } + inline void Swap(ParisPagination* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ParisPagination* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ParisPagination* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParisPagination* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ParisPagination& from); + void MergeFrom(const ParisPagination& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParisPagination* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.ParisPagination"; + } + protected: + explicit ParisPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNextKeyFieldNumber = 1, + kLimitFieldNumber = 2, + }; + // bytes next_key = 1; + void clear_next_key(); + const std::string& next_key() const; + void set_next_key(const std::string& value); + void set_next_key(std::string&& value); + void set_next_key(const char* value); + void set_next_key(const void* value, size_t size); + std::string* mutable_next_key(); + std::string* release_next_key(); + void set_allocated_next_key(std::string* next_key); + private: + const std::string& _internal_next_key() const; + void _internal_set_next_key(const std::string& value); + std::string* _internal_mutable_next_key(); + public: + + // sint64 limit = 2; + void clear_limit(); + ::PROTOBUF_NAMESPACE_ID::int64 limit() const; + void set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_limit() const; + void _internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:remote.ParisPagination) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_key_; + ::PROTOBUF_NAMESPACE_ID::int64 limit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexPagination PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexPagination) */ { + public: + inline IndexPagination() : IndexPagination(nullptr) {} + virtual ~IndexPagination(); + + IndexPagination(const IndexPagination& from); + IndexPagination(IndexPagination&& from) noexcept + : IndexPagination() { + *this = ::std::move(from); + } + + inline IndexPagination& operator=(const IndexPagination& from) { + CopyFrom(from); + return *this; + } + inline IndexPagination& operator=(IndexPagination&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const IndexPagination& default_instance(); + + static inline const IndexPagination* internal_default_instance() { + return reinterpret_cast( + &_IndexPagination_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(IndexPagination& a, IndexPagination& b) { + a.Swap(&b); + } + inline void Swap(IndexPagination* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IndexPagination* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexPagination* New() const final { + return CreateMaybeMessage(nullptr); + } + + IndexPagination* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IndexPagination& from); + void MergeFrom(const IndexPagination& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexPagination* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.IndexPagination"; + } + protected: + explicit IndexPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_remote_2fkv_2eproto); + return ::descriptor_table_remote_2fkv_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNextTimeStampFieldNumber = 1, + kLimitFieldNumber = 2, + }; + // sint64 next_time_stamp = 1; + void clear_next_time_stamp(); + ::PROTOBUF_NAMESPACE_ID::int64 next_time_stamp() const; + void set_next_time_stamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_next_time_stamp() const; + void _internal_set_next_time_stamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // sint64 limit = 2; + void clear_limit(); + ::PROTOBUF_NAMESPACE_ID::int64 limit() const; + void set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_limit() const; + void _internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:remote.IndexPagination) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::int64 next_time_stamp_; + ::PROTOBUF_NAMESPACE_ID::int64 limit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Cursor + +// .remote.Op op = 1; +inline void Cursor::clear_op() { + op_ = 0; +} +inline ::remote::Op Cursor::_internal_op() const { + return static_cast< ::remote::Op >(op_); +} +inline ::remote::Op Cursor::op() const { + // @@protoc_insertion_point(field_get:remote.Cursor.op) + return _internal_op(); +} +inline void Cursor::_internal_set_op(::remote::Op value) { + + op_ = value; +} +inline void Cursor::set_op(::remote::Op value) { + _internal_set_op(value); + // @@protoc_insertion_point(field_set:remote.Cursor.op) +} + +// string bucketName = 2; +inline void Cursor::clear_bucketname() { + bucketname_.ClearToEmpty(); +} +inline const std::string& Cursor::bucketname() const { + // @@protoc_insertion_point(field_get:remote.Cursor.bucketName) + return _internal_bucketname(); +} +inline void Cursor::set_bucketname(const std::string& value) { + _internal_set_bucketname(value); + // @@protoc_insertion_point(field_set:remote.Cursor.bucketName) +} +inline std::string* Cursor::mutable_bucketname() { + // @@protoc_insertion_point(field_mutable:remote.Cursor.bucketName) + return _internal_mutable_bucketname(); +} +inline const std::string& Cursor::_internal_bucketname() const { + return bucketname_.Get(); +} +inline void Cursor::_internal_set_bucketname(const std::string& value) { + + bucketname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Cursor::set_bucketname(std::string&& value) { + + bucketname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.Cursor.bucketName) +} +inline void Cursor::set_bucketname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + bucketname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.Cursor.bucketName) +} +inline void Cursor::set_bucketname(const char* value, + size_t size) { + + bucketname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.Cursor.bucketName) +} +inline std::string* Cursor::_internal_mutable_bucketname() { + + return bucketname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Cursor::release_bucketname() { + // @@protoc_insertion_point(field_release:remote.Cursor.bucketName) + return bucketname_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Cursor::set_allocated_bucketname(std::string* bucketname) { + if (bucketname != nullptr) { + + } else { + + } + bucketname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bucketname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.Cursor.bucketName) +} + +// uint32 cursor = 3; +inline void Cursor::clear_cursor() { + cursor_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Cursor::_internal_cursor() const { + return cursor_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Cursor::cursor() const { + // @@protoc_insertion_point(field_get:remote.Cursor.cursor) + return _internal_cursor(); +} +inline void Cursor::_internal_set_cursor(::PROTOBUF_NAMESPACE_ID::uint32 value) { + + cursor_ = value; +} +inline void Cursor::set_cursor(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_cursor(value); + // @@protoc_insertion_point(field_set:remote.Cursor.cursor) +} + +// bytes k = 4; inline void Cursor::clear_k() { k_.ClearToEmpty(); } -inline const std::string& Cursor::k() const { - // @@protoc_insertion_point(field_get:remote.Cursor.k) - return _internal_k(); +inline const std::string& Cursor::k() const { + // @@protoc_insertion_point(field_get:remote.Cursor.k) + return _internal_k(); +} +inline void Cursor::set_k(const std::string& value) { + _internal_set_k(value); + // @@protoc_insertion_point(field_set:remote.Cursor.k) +} +inline std::string* Cursor::mutable_k() { + // @@protoc_insertion_point(field_mutable:remote.Cursor.k) + return _internal_mutable_k(); +} +inline const std::string& Cursor::_internal_k() const { + return k_.Get(); +} +inline void Cursor::_internal_set_k(const std::string& value) { + + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Cursor::set_k(std::string&& value) { + + k_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.Cursor.k) +} +inline void Cursor::set_k(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.Cursor.k) +} +inline void Cursor::set_k(const void* value, + size_t size) { + + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.Cursor.k) +} +inline std::string* Cursor::_internal_mutable_k() { + + return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Cursor::release_k() { + // @@protoc_insertion_point(field_release:remote.Cursor.k) + return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Cursor::set_allocated_k(std::string* k) { + if (k != nullptr) { + + } else { + + } + k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.Cursor.k) +} + +// bytes v = 5; +inline void Cursor::clear_v() { + v_.ClearToEmpty(); +} +inline const std::string& Cursor::v() const { + // @@protoc_insertion_point(field_get:remote.Cursor.v) + return _internal_v(); +} +inline void Cursor::set_v(const std::string& value) { + _internal_set_v(value); + // @@protoc_insertion_point(field_set:remote.Cursor.v) +} +inline std::string* Cursor::mutable_v() { + // @@protoc_insertion_point(field_mutable:remote.Cursor.v) + return _internal_mutable_v(); +} +inline const std::string& Cursor::_internal_v() const { + return v_.Get(); +} +inline void Cursor::_internal_set_v(const std::string& value) { + + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Cursor::set_v(std::string&& value) { + + v_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.Cursor.v) +} +inline void Cursor::set_v(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.Cursor.v) +} +inline void Cursor::set_v(const void* value, + size_t size) { + + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.Cursor.v) +} +inline std::string* Cursor::_internal_mutable_v() { + + return v_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Cursor::release_v() { + // @@protoc_insertion_point(field_release:remote.Cursor.v) + return v_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Cursor::set_allocated_v(std::string* v) { + if (v != nullptr) { + + } else { + + } + v_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), v, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.Cursor.v) +} + +// ------------------------------------------------------------------- + +// Pair + +// bytes k = 1; +inline void Pair::clear_k() { + k_.ClearToEmpty(); +} +inline const std::string& Pair::k() const { + // @@protoc_insertion_point(field_get:remote.Pair.k) + return _internal_k(); +} +inline void Pair::set_k(const std::string& value) { + _internal_set_k(value); + // @@protoc_insertion_point(field_set:remote.Pair.k) +} +inline std::string* Pair::mutable_k() { + // @@protoc_insertion_point(field_mutable:remote.Pair.k) + return _internal_mutable_k(); +} +inline const std::string& Pair::_internal_k() const { + return k_.Get(); +} +inline void Pair::_internal_set_k(const std::string& value) { + + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Pair::set_k(std::string&& value) { + + k_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.Pair.k) +} +inline void Pair::set_k(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.Pair.k) +} +inline void Pair::set_k(const void* value, + size_t size) { + + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.Pair.k) +} +inline std::string* Pair::_internal_mutable_k() { + + return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Pair::release_k() { + // @@protoc_insertion_point(field_release:remote.Pair.k) + return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Pair::set_allocated_k(std::string* k) { + if (k != nullptr) { + + } else { + + } + k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.Pair.k) +} + +// bytes v = 2; +inline void Pair::clear_v() { + v_.ClearToEmpty(); +} +inline const std::string& Pair::v() const { + // @@protoc_insertion_point(field_get:remote.Pair.v) + return _internal_v(); +} +inline void Pair::set_v(const std::string& value) { + _internal_set_v(value); + // @@protoc_insertion_point(field_set:remote.Pair.v) +} +inline std::string* Pair::mutable_v() { + // @@protoc_insertion_point(field_mutable:remote.Pair.v) + return _internal_mutable_v(); +} +inline const std::string& Pair::_internal_v() const { + return v_.Get(); +} +inline void Pair::_internal_set_v(const std::string& value) { + + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Pair::set_v(std::string&& value) { + + v_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.Pair.v) +} +inline void Pair::set_v(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.Pair.v) +} +inline void Pair::set_v(const void* value, + size_t size) { + + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.Pair.v) +} +inline std::string* Pair::_internal_mutable_v() { + + return v_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Pair::release_v() { + // @@protoc_insertion_point(field_release:remote.Pair.v) + return v_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Pair::set_allocated_v(std::string* v) { + if (v != nullptr) { + + } else { + + } + v_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), v, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.Pair.v) +} + +// uint32 cursorID = 3; +inline void Pair::clear_cursorid() { + cursorid_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Pair::_internal_cursorid() const { + return cursorid_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 Pair::cursorid() const { + // @@protoc_insertion_point(field_get:remote.Pair.cursorID) + return _internal_cursorid(); +} +inline void Pair::_internal_set_cursorid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + + cursorid_ = value; +} +inline void Pair::set_cursorid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_cursorid(value); + // @@protoc_insertion_point(field_set:remote.Pair.cursorID) +} + +// uint64 viewID = 4; +inline void Pair::clear_viewid() { + viewid_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::_internal_viewid() const { + return viewid_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::viewid() const { + // @@protoc_insertion_point(field_get:remote.Pair.viewID) + return _internal_viewid(); +} +inline void Pair::_internal_set_viewid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + viewid_ = value; +} +inline void Pair::set_viewid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_viewid(value); + // @@protoc_insertion_point(field_set:remote.Pair.viewID) +} + +// uint64 txID = 5; +inline void Pair::clear_txid() { + txid_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::_internal_txid() const { + return txid_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::txid() const { + // @@protoc_insertion_point(field_get:remote.Pair.txID) + return _internal_txid(); +} +inline void Pair::_internal_set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + txid_ = value; +} +inline void Pair::set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_txid(value); + // @@protoc_insertion_point(field_set:remote.Pair.txID) +} + +// ------------------------------------------------------------------- + +// StorageChange + +// .types.H256 location = 1; +inline bool StorageChange::_internal_has_location() const { + return this != internal_default_instance() && location_ != nullptr; +} +inline bool StorageChange::has_location() const { + return _internal_has_location(); +} +inline const ::types::H256& StorageChange::_internal_location() const { + const ::types::H256* p = location_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& StorageChange::location() const { + // @@protoc_insertion_point(field_get:remote.StorageChange.location) + return _internal_location(); +} +inline void StorageChange::unsafe_arena_set_allocated_location( + ::types::H256* location) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); + } + location_ = location; + if (location) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StorageChange.location) +} +inline ::types::H256* StorageChange::release_location() { + + ::types::H256* temp = location_; + location_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::types::H256* StorageChange::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:remote.StorageChange.location) + + ::types::H256* temp = location_; + location_ = nullptr; + return temp; +} +inline ::types::H256* StorageChange::_internal_mutable_location() { + + if (location_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArena()); + location_ = p; + } + return location_; +} +inline ::types::H256* StorageChange::mutable_location() { + // @@protoc_insertion_point(field_mutable:remote.StorageChange.location) + return _internal_mutable_location(); +} +inline void StorageChange::set_allocated_location(::types::H256* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); + } + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)->GetArena(); + if (message_arena != submessage_arena) { + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); + } + + } else { + + } + location_ = location; + // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.location) +} + +// bytes data = 2; +inline void StorageChange::clear_data() { + data_.ClearToEmpty(); +} +inline const std::string& StorageChange::data() const { + // @@protoc_insertion_point(field_get:remote.StorageChange.data) + return _internal_data(); +} +inline void StorageChange::set_data(const std::string& value) { + _internal_set_data(value); + // @@protoc_insertion_point(field_set:remote.StorageChange.data) +} +inline std::string* StorageChange::mutable_data() { + // @@protoc_insertion_point(field_mutable:remote.StorageChange.data) + return _internal_mutable_data(); +} +inline const std::string& StorageChange::_internal_data() const { + return data_.Get(); +} +inline void StorageChange::_internal_set_data(const std::string& value) { + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StorageChange::set_data(std::string&& value) { + + data_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.StorageChange.data) +} +inline void StorageChange::set_data(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.StorageChange.data) +} +inline void StorageChange::set_data(const void* value, + size_t size) { + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.StorageChange.data) +} +inline std::string* StorageChange::_internal_mutable_data() { + + return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StorageChange::release_data() { + // @@protoc_insertion_point(field_release:remote.StorageChange.data) + return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StorageChange::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.data) +} + +// ------------------------------------------------------------------- + +// AccountChange + +// .types.H160 address = 1; +inline bool AccountChange::_internal_has_address() const { + return this != internal_default_instance() && address_ != nullptr; +} +inline bool AccountChange::has_address() const { + return _internal_has_address(); +} +inline const ::types::H160& AccountChange::_internal_address() const { + const ::types::H160* p = address_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H160_default_instance_); +} +inline const ::types::H160& AccountChange::address() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.address) + return _internal_address(); +} +inline void AccountChange::unsafe_arena_set_allocated_address( + ::types::H160* address) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address_); + } + address_ = address; + if (address) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.AccountChange.address) +} +inline ::types::H160* AccountChange::release_address() { + + ::types::H160* temp = address_; + address_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::types::H160* AccountChange::unsafe_arena_release_address() { + // @@protoc_insertion_point(field_release:remote.AccountChange.address) + + ::types::H160* temp = address_; + address_ = nullptr; + return temp; +} +inline ::types::H160* AccountChange::_internal_mutable_address() { + + if (address_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H160>(GetArena()); + address_ = p; + } + return address_; +} +inline ::types::H160* AccountChange::mutable_address() { + // @@protoc_insertion_point(field_mutable:remote.AccountChange.address) + return _internal_mutable_address(); +} +inline void AccountChange::set_allocated_address(::types::H160* address) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(address_); + } + if (address) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address)->GetArena(); + if (message_arena != submessage_arena) { + address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, address, submessage_arena); + } + + } else { + + } + address_ = address; + // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.address) +} + +// uint64 incarnation = 2; +inline void AccountChange::clear_incarnation() { + incarnation_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 AccountChange::_internal_incarnation() const { + return incarnation_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 AccountChange::incarnation() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.incarnation) + return _internal_incarnation(); +} +inline void AccountChange::_internal_set_incarnation(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + incarnation_ = value; +} +inline void AccountChange::set_incarnation(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_incarnation(value); + // @@protoc_insertion_point(field_set:remote.AccountChange.incarnation) +} + +// .remote.Action action = 3; +inline void AccountChange::clear_action() { + action_ = 0; +} +inline ::remote::Action AccountChange::_internal_action() const { + return static_cast< ::remote::Action >(action_); +} +inline ::remote::Action AccountChange::action() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.action) + return _internal_action(); +} +inline void AccountChange::_internal_set_action(::remote::Action value) { + + action_ = value; +} +inline void AccountChange::set_action(::remote::Action value) { + _internal_set_action(value); + // @@protoc_insertion_point(field_set:remote.AccountChange.action) +} + +// bytes data = 4; +inline void AccountChange::clear_data() { + data_.ClearToEmpty(); +} +inline const std::string& AccountChange::data() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.data) + return _internal_data(); +} +inline void AccountChange::set_data(const std::string& value) { + _internal_set_data(value); + // @@protoc_insertion_point(field_set:remote.AccountChange.data) +} +inline std::string* AccountChange::mutable_data() { + // @@protoc_insertion_point(field_mutable:remote.AccountChange.data) + return _internal_mutable_data(); +} +inline const std::string& AccountChange::_internal_data() const { + return data_.Get(); +} +inline void AccountChange::_internal_set_data(const std::string& value) { + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AccountChange::set_data(std::string&& value) { + + data_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.AccountChange.data) +} +inline void AccountChange::set_data(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.AccountChange.data) +} +inline void AccountChange::set_data(const void* value, + size_t size) { + + data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.AccountChange.data) +} +inline std::string* AccountChange::_internal_mutable_data() { + + return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AccountChange::release_data() { + // @@protoc_insertion_point(field_release:remote.AccountChange.data) + return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AccountChange::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.data) +} + +// bytes code = 5; +inline void AccountChange::clear_code() { + code_.ClearToEmpty(); +} +inline const std::string& AccountChange::code() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.code) + return _internal_code(); +} +inline void AccountChange::set_code(const std::string& value) { + _internal_set_code(value); + // @@protoc_insertion_point(field_set:remote.AccountChange.code) +} +inline std::string* AccountChange::mutable_code() { + // @@protoc_insertion_point(field_mutable:remote.AccountChange.code) + return _internal_mutable_code(); +} +inline const std::string& AccountChange::_internal_code() const { + return code_.Get(); +} +inline void AccountChange::_internal_set_code(const std::string& value) { + + code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AccountChange::set_code(std::string&& value) { + + code_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.AccountChange.code) +} +inline void AccountChange::set_code(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.AccountChange.code) +} +inline void AccountChange::set_code(const void* value, + size_t size) { + + code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.AccountChange.code) +} +inline std::string* AccountChange::_internal_mutable_code() { + + return code_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AccountChange::release_code() { + // @@protoc_insertion_point(field_release:remote.AccountChange.code) + return code_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AccountChange::set_allocated_code(std::string* code) { + if (code != nullptr) { + + } else { + + } + code_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), code, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.code) +} + +// repeated .remote.StorageChange storageChanges = 6; +inline int AccountChange::_internal_storagechanges_size() const { + return storagechanges_.size(); +} +inline int AccountChange::storagechanges_size() const { + return _internal_storagechanges_size(); +} +inline void AccountChange::clear_storagechanges() { + storagechanges_.Clear(); +} +inline ::remote::StorageChange* AccountChange::mutable_storagechanges(int index) { + // @@protoc_insertion_point(field_mutable:remote.AccountChange.storageChanges) + return storagechanges_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >* +AccountChange::mutable_storagechanges() { + // @@protoc_insertion_point(field_mutable_list:remote.AccountChange.storageChanges) + return &storagechanges_; +} +inline const ::remote::StorageChange& AccountChange::_internal_storagechanges(int index) const { + return storagechanges_.Get(index); +} +inline const ::remote::StorageChange& AccountChange::storagechanges(int index) const { + // @@protoc_insertion_point(field_get:remote.AccountChange.storageChanges) + return _internal_storagechanges(index); +} +inline ::remote::StorageChange* AccountChange::_internal_add_storagechanges() { + return storagechanges_.Add(); +} +inline ::remote::StorageChange* AccountChange::add_storagechanges() { + // @@protoc_insertion_point(field_add:remote.AccountChange.storageChanges) + return _internal_add_storagechanges(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >& +AccountChange::storagechanges() const { + // @@protoc_insertion_point(field_list:remote.AccountChange.storageChanges) + return storagechanges_; +} + +// ------------------------------------------------------------------- + +// StateChangeBatch + +// uint64 stateVersionID = 1; +inline void StateChangeBatch::clear_stateversionid() { + stateversionid_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::_internal_stateversionid() const { + return stateversionid_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::stateversionid() const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.stateVersionID) + return _internal_stateversionid(); +} +inline void StateChangeBatch::_internal_set_stateversionid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + stateversionid_ = value; +} +inline void StateChangeBatch::set_stateversionid(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_stateversionid(value); + // @@protoc_insertion_point(field_set:remote.StateChangeBatch.stateVersionID) +} + +// repeated .remote.StateChange changeBatch = 2; +inline int StateChangeBatch::_internal_changebatch_size() const { + return changebatch_.size(); +} +inline int StateChangeBatch::changebatch_size() const { + return _internal_changebatch_size(); +} +inline void StateChangeBatch::clear_changebatch() { + changebatch_.Clear(); +} +inline ::remote::StateChange* StateChangeBatch::mutable_changebatch(int index) { + // @@protoc_insertion_point(field_mutable:remote.StateChangeBatch.changeBatch) + return changebatch_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >* +StateChangeBatch::mutable_changebatch() { + // @@protoc_insertion_point(field_mutable_list:remote.StateChangeBatch.changeBatch) + return &changebatch_; +} +inline const ::remote::StateChange& StateChangeBatch::_internal_changebatch(int index) const { + return changebatch_.Get(index); +} +inline const ::remote::StateChange& StateChangeBatch::changebatch(int index) const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.changeBatch) + return _internal_changebatch(index); +} +inline ::remote::StateChange* StateChangeBatch::_internal_add_changebatch() { + return changebatch_.Add(); +} +inline ::remote::StateChange* StateChangeBatch::add_changebatch() { + // @@protoc_insertion_point(field_add:remote.StateChangeBatch.changeBatch) + return _internal_add_changebatch(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >& +StateChangeBatch::changebatch() const { + // @@protoc_insertion_point(field_list:remote.StateChangeBatch.changeBatch) + return changebatch_; +} + +// uint64 pendingBlockBaseFee = 3; +inline void StateChangeBatch::clear_pendingblockbasefee() { + pendingblockbasefee_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::_internal_pendingblockbasefee() const { + return pendingblockbasefee_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::pendingblockbasefee() const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.pendingBlockBaseFee) + return _internal_pendingblockbasefee(); +} +inline void StateChangeBatch::_internal_set_pendingblockbasefee(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + pendingblockbasefee_ = value; +} +inline void StateChangeBatch::set_pendingblockbasefee(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_pendingblockbasefee(value); + // @@protoc_insertion_point(field_set:remote.StateChangeBatch.pendingBlockBaseFee) +} + +// uint64 blockGasLimit = 4; +inline void StateChangeBatch::clear_blockgaslimit() { + blockgaslimit_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::_internal_blockgaslimit() const { + return blockgaslimit_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::blockgaslimit() const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.blockGasLimit) + return _internal_blockgaslimit(); +} +inline void StateChangeBatch::_internal_set_blockgaslimit(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + blockgaslimit_ = value; +} +inline void StateChangeBatch::set_blockgaslimit(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_blockgaslimit(value); + // @@protoc_insertion_point(field_set:remote.StateChangeBatch.blockGasLimit) +} + +// ------------------------------------------------------------------- + +// StateChange + +// .remote.Direction direction = 1; +inline void StateChange::clear_direction() { + direction_ = 0; +} +inline ::remote::Direction StateChange::_internal_direction() const { + return static_cast< ::remote::Direction >(direction_); +} +inline ::remote::Direction StateChange::direction() const { + // @@protoc_insertion_point(field_get:remote.StateChange.direction) + return _internal_direction(); +} +inline void StateChange::_internal_set_direction(::remote::Direction value) { + + direction_ = value; +} +inline void StateChange::set_direction(::remote::Direction value) { + _internal_set_direction(value); + // @@protoc_insertion_point(field_set:remote.StateChange.direction) +} + +// uint64 blockHeight = 2; +inline void StateChange::clear_blockheight() { + blockheight_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChange::_internal_blockheight() const { + return blockheight_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChange::blockheight() const { + // @@protoc_insertion_point(field_get:remote.StateChange.blockHeight) + return _internal_blockheight(); +} +inline void StateChange::_internal_set_blockheight(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + blockheight_ = value; +} +inline void StateChange::set_blockheight(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_blockheight(value); + // @@protoc_insertion_point(field_set:remote.StateChange.blockHeight) +} + +// .types.H256 blockHash = 3; +inline bool StateChange::_internal_has_blockhash() const { + return this != internal_default_instance() && blockhash_ != nullptr; +} +inline bool StateChange::has_blockhash() const { + return _internal_has_blockhash(); +} +inline const ::types::H256& StateChange::_internal_blockhash() const { + const ::types::H256* p = blockhash_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& StateChange::blockhash() const { + // @@protoc_insertion_point(field_get:remote.StateChange.blockHash) + return _internal_blockhash(); +} +inline void StateChange::unsafe_arena_set_allocated_blockhash( + ::types::H256* blockhash) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash_); + } + blockhash_ = blockhash; + if (blockhash) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StateChange.blockHash) +} +inline ::types::H256* StateChange::release_blockhash() { + + ::types::H256* temp = blockhash_; + blockhash_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::types::H256* StateChange::unsafe_arena_release_blockhash() { + // @@protoc_insertion_point(field_release:remote.StateChange.blockHash) + + ::types::H256* temp = blockhash_; + blockhash_ = nullptr; + return temp; +} +inline ::types::H256* StateChange::_internal_mutable_blockhash() { + + if (blockhash_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArena()); + blockhash_ = p; + } + return blockhash_; +} +inline ::types::H256* StateChange::mutable_blockhash() { + // @@protoc_insertion_point(field_mutable:remote.StateChange.blockHash) + return _internal_mutable_blockhash(); +} +inline void StateChange::set_allocated_blockhash(::types::H256* blockhash) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash_); + } + if (blockhash) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash)->GetArena(); + if (message_arena != submessage_arena) { + blockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, blockhash, submessage_arena); + } + + } else { + + } + blockhash_ = blockhash; + // @@protoc_insertion_point(field_set_allocated:remote.StateChange.blockHash) +} + +// repeated .remote.AccountChange changes = 4; +inline int StateChange::_internal_changes_size() const { + return changes_.size(); +} +inline int StateChange::changes_size() const { + return _internal_changes_size(); +} +inline void StateChange::clear_changes() { + changes_.Clear(); +} +inline ::remote::AccountChange* StateChange::mutable_changes(int index) { + // @@protoc_insertion_point(field_mutable:remote.StateChange.changes) + return changes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >* +StateChange::mutable_changes() { + // @@protoc_insertion_point(field_mutable_list:remote.StateChange.changes) + return &changes_; +} +inline const ::remote::AccountChange& StateChange::_internal_changes(int index) const { + return changes_.Get(index); +} +inline const ::remote::AccountChange& StateChange::changes(int index) const { + // @@protoc_insertion_point(field_get:remote.StateChange.changes) + return _internal_changes(index); +} +inline ::remote::AccountChange* StateChange::_internal_add_changes() { + return changes_.Add(); +} +inline ::remote::AccountChange* StateChange::add_changes() { + // @@protoc_insertion_point(field_add:remote.StateChange.changes) + return _internal_add_changes(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >& +StateChange::changes() const { + // @@protoc_insertion_point(field_list:remote.StateChange.changes) + return changes_; +} + +// repeated bytes txs = 5; +inline int StateChange::_internal_txs_size() const { + return txs_.size(); +} +inline int StateChange::txs_size() const { + return _internal_txs_size(); +} +inline void StateChange::clear_txs() { + txs_.Clear(); +} +inline std::string* StateChange::add_txs() { + // @@protoc_insertion_point(field_add_mutable:remote.StateChange.txs) + return _internal_add_txs(); +} +inline const std::string& StateChange::_internal_txs(int index) const { + return txs_.Get(index); +} +inline const std::string& StateChange::txs(int index) const { + // @@protoc_insertion_point(field_get:remote.StateChange.txs) + return _internal_txs(index); +} +inline std::string* StateChange::mutable_txs(int index) { + // @@protoc_insertion_point(field_mutable:remote.StateChange.txs) + return txs_.Mutable(index); +} +inline void StateChange::set_txs(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:remote.StateChange.txs) + txs_.Mutable(index)->assign(value); +} +inline void StateChange::set_txs(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:remote.StateChange.txs) + txs_.Mutable(index)->assign(std::move(value)); +} +inline void StateChange::set_txs(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + txs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.StateChange.txs) +} +inline void StateChange::set_txs(int index, const void* value, size_t size) { + txs_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.StateChange.txs) +} +inline std::string* StateChange::_internal_add_txs() { + return txs_.Add(); +} +inline void StateChange::add_txs(const std::string& value) { + txs_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.StateChange.txs) +} +inline void StateChange::add_txs(std::string&& value) { + txs_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.StateChange.txs) +} +inline void StateChange::add_txs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + txs_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.StateChange.txs) +} +inline void StateChange::add_txs(const void* value, size_t size) { + txs_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.StateChange.txs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StateChange::txs() const { + // @@protoc_insertion_point(field_list:remote.StateChange.txs) + return txs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StateChange::mutable_txs() { + // @@protoc_insertion_point(field_mutable_list:remote.StateChange.txs) + return &txs_; +} + +// ------------------------------------------------------------------- + +// StateChangeRequest + +// bool withStorage = 1; +inline void StateChangeRequest::clear_withstorage() { + withstorage_ = false; +} +inline bool StateChangeRequest::_internal_withstorage() const { + return withstorage_; +} +inline bool StateChangeRequest::withstorage() const { + // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withStorage) + return _internal_withstorage(); +} +inline void StateChangeRequest::_internal_set_withstorage(bool value) { + + withstorage_ = value; +} +inline void StateChangeRequest::set_withstorage(bool value) { + _internal_set_withstorage(value); + // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withStorage) +} + +// bool withTransactions = 2; +inline void StateChangeRequest::clear_withtransactions() { + withtransactions_ = false; +} +inline bool StateChangeRequest::_internal_withtransactions() const { + return withtransactions_; +} +inline bool StateChangeRequest::withtransactions() const { + // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withTransactions) + return _internal_withtransactions(); +} +inline void StateChangeRequest::_internal_set_withtransactions(bool value) { + + withtransactions_ = value; } -inline void Cursor::set_k(const std::string& value) { - _internal_set_k(value); - // @@protoc_insertion_point(field_set:remote.Cursor.k) +inline void StateChangeRequest::set_withtransactions(bool value) { + _internal_set_withtransactions(value); + // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withTransactions) } -inline std::string* Cursor::mutable_k() { - // @@protoc_insertion_point(field_mutable:remote.Cursor.k) - return _internal_mutable_k(); + +// ------------------------------------------------------------------- + +// SnapshotsRequest + +// ------------------------------------------------------------------- + +// SnapshotsReply + +// repeated string blocks_files = 1; +inline int SnapshotsReply::_internal_blocks_files_size() const { + return blocks_files_.size(); } -inline const std::string& Cursor::_internal_k() const { - return k_.Get(); +inline int SnapshotsReply::blocks_files_size() const { + return _internal_blocks_files_size(); } -inline void Cursor::_internal_set_k(const std::string& value) { +inline void SnapshotsReply::clear_blocks_files() { + blocks_files_.Clear(); +} +inline std::string* SnapshotsReply::add_blocks_files() { + // @@protoc_insertion_point(field_add_mutable:remote.SnapshotsReply.blocks_files) + return _internal_add_blocks_files(); +} +inline const std::string& SnapshotsReply::_internal_blocks_files(int index) const { + return blocks_files_.Get(index); +} +inline const std::string& SnapshotsReply::blocks_files(int index) const { + // @@protoc_insertion_point(field_get:remote.SnapshotsReply.blocks_files) + return _internal_blocks_files(index); +} +inline std::string* SnapshotsReply::mutable_blocks_files(int index) { + // @@protoc_insertion_point(field_mutable:remote.SnapshotsReply.blocks_files) + return blocks_files_.Mutable(index); +} +inline void SnapshotsReply::set_blocks_files(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.blocks_files) + blocks_files_.Mutable(index)->assign(value); +} +inline void SnapshotsReply::set_blocks_files(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.blocks_files) + blocks_files_.Mutable(index)->assign(std::move(value)); +} +inline void SnapshotsReply::set_blocks_files(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + blocks_files_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::set_blocks_files(int index, const char* value, size_t size) { + blocks_files_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.SnapshotsReply.blocks_files) +} +inline std::string* SnapshotsReply::_internal_add_blocks_files() { + return blocks_files_.Add(); +} +inline void SnapshotsReply::add_blocks_files(const std::string& value) { + blocks_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::add_blocks_files(std::string&& value) { + blocks_files_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::add_blocks_files(const char* value) { + GOOGLE_DCHECK(value != nullptr); + blocks_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::add_blocks_files(const char* value, size_t size) { + blocks_files_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.SnapshotsReply.blocks_files) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +SnapshotsReply::blocks_files() const { + // @@protoc_insertion_point(field_list:remote.SnapshotsReply.blocks_files) + return blocks_files_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +SnapshotsReply::mutable_blocks_files() { + // @@protoc_insertion_point(field_mutable_list:remote.SnapshotsReply.blocks_files) + return &blocks_files_; +} + +// repeated string history_files = 2; +inline int SnapshotsReply::_internal_history_files_size() const { + return history_files_.size(); +} +inline int SnapshotsReply::history_files_size() const { + return _internal_history_files_size(); +} +inline void SnapshotsReply::clear_history_files() { + history_files_.Clear(); +} +inline std::string* SnapshotsReply::add_history_files() { + // @@protoc_insertion_point(field_add_mutable:remote.SnapshotsReply.history_files) + return _internal_add_history_files(); +} +inline const std::string& SnapshotsReply::_internal_history_files(int index) const { + return history_files_.Get(index); +} +inline const std::string& SnapshotsReply::history_files(int index) const { + // @@protoc_insertion_point(field_get:remote.SnapshotsReply.history_files) + return _internal_history_files(index); +} +inline std::string* SnapshotsReply::mutable_history_files(int index) { + // @@protoc_insertion_point(field_mutable:remote.SnapshotsReply.history_files) + return history_files_.Mutable(index); +} +inline void SnapshotsReply::set_history_files(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.history_files) + history_files_.Mutable(index)->assign(value); +} +inline void SnapshotsReply::set_history_files(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.history_files) + history_files_.Mutable(index)->assign(std::move(value)); +} +inline void SnapshotsReply::set_history_files(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + history_files_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::set_history_files(int index, const char* value, size_t size) { + history_files_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.SnapshotsReply.history_files) +} +inline std::string* SnapshotsReply::_internal_add_history_files() { + return history_files_.Add(); +} +inline void SnapshotsReply::add_history_files(const std::string& value) { + history_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::add_history_files(std::string&& value) { + history_files_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::add_history_files(const char* value) { + GOOGLE_DCHECK(value != nullptr); + history_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::add_history_files(const char* value, size_t size) { + history_files_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.SnapshotsReply.history_files) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +SnapshotsReply::history_files() const { + // @@protoc_insertion_point(field_list:remote.SnapshotsReply.history_files) + return history_files_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +SnapshotsReply::mutable_history_files() { + // @@protoc_insertion_point(field_mutable_list:remote.SnapshotsReply.history_files) + return &history_files_; +} + +// ------------------------------------------------------------------- + +// RangeReq + +// uint64 tx_id = 1; +inline void RangeReq::clear_tx_id() { + tx_id_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 RangeReq::_internal_tx_id() const { + return tx_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 RangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.tx_id) + return _internal_tx_id(); +} +inline void RangeReq::_internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + tx_id_ = value; } -inline void Cursor::set_k(std::string&& value) { +inline void RangeReq::set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.tx_id) +} + +// string table = 2; +inline void RangeReq::clear_table() { + table_.ClearToEmpty(); +} +inline const std::string& RangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.table) + return _internal_table(); +} +inline void RangeReq::set_table(const std::string& value) { + _internal_set_table(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.table) +} +inline std::string* RangeReq::mutable_table() { + // @@protoc_insertion_point(field_mutable:remote.RangeReq.table) + return _internal_mutable_table(); +} +inline const std::string& RangeReq::_internal_table() const { + return table_.Get(); +} +inline void RangeReq::_internal_set_table(const std::string& value) { - k_.Set( + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RangeReq::set_table(std::string&& value) { + + table_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.Cursor.k) + // @@protoc_insertion_point(field_set_rvalue:remote.RangeReq.table) } -inline void Cursor::set_k(const char* value) { +inline void RangeReq::set_table(const char* value) { GOOGLE_DCHECK(value != nullptr); - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.Cursor.k) + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.RangeReq.table) } -inline void Cursor::set_k(const void* value, +inline void RangeReq::set_table(const char* value, size_t size) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.Cursor.k) + // @@protoc_insertion_point(field_set_pointer:remote.RangeReq.table) } -inline std::string* Cursor::_internal_mutable_k() { +inline std::string* RangeReq::_internal_mutable_table() { - return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return table_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Cursor::release_k() { - // @@protoc_insertion_point(field_release:remote.Cursor.k) - return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* RangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.RangeReq.table) + return table_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Cursor::set_allocated_k(std::string* k) { - if (k != nullptr) { +inline void RangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { } else { } - k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, + table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.Cursor.k) + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.table) } -// bytes v = 5; -inline void Cursor::clear_v() { - v_.ClearToEmpty(); +// bytes from_prefix = 3; +inline void RangeReq::clear_from_prefix() { + from_prefix_.ClearToEmpty(); } -inline const std::string& Cursor::v() const { - // @@protoc_insertion_point(field_get:remote.Cursor.v) - return _internal_v(); +inline const std::string& RangeReq::from_prefix() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.from_prefix) + return _internal_from_prefix(); } -inline void Cursor::set_v(const std::string& value) { - _internal_set_v(value); - // @@protoc_insertion_point(field_set:remote.Cursor.v) +inline void RangeReq::set_from_prefix(const std::string& value) { + _internal_set_from_prefix(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.from_prefix) } -inline std::string* Cursor::mutable_v() { - // @@protoc_insertion_point(field_mutable:remote.Cursor.v) - return _internal_mutable_v(); +inline std::string* RangeReq::mutable_from_prefix() { + // @@protoc_insertion_point(field_mutable:remote.RangeReq.from_prefix) + return _internal_mutable_from_prefix(); } -inline const std::string& Cursor::_internal_v() const { - return v_.Get(); +inline const std::string& RangeReq::_internal_from_prefix() const { + return from_prefix_.Get(); } -inline void Cursor::_internal_set_v(const std::string& value) { +inline void RangeReq::_internal_set_from_prefix(const std::string& value) { - v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + from_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Cursor::set_v(std::string&& value) { +inline void RangeReq::set_from_prefix(std::string&& value) { - v_.Set( + from_prefix_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.Cursor.v) + // @@protoc_insertion_point(field_set_rvalue:remote.RangeReq.from_prefix) } -inline void Cursor::set_v(const char* value) { +inline void RangeReq::set_from_prefix(const char* value) { GOOGLE_DCHECK(value != nullptr); - v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.Cursor.v) + from_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.RangeReq.from_prefix) } -inline void Cursor::set_v(const void* value, +inline void RangeReq::set_from_prefix(const void* value, size_t size) { - v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + from_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.Cursor.v) + // @@protoc_insertion_point(field_set_pointer:remote.RangeReq.from_prefix) } -inline std::string* Cursor::_internal_mutable_v() { +inline std::string* RangeReq::_internal_mutable_from_prefix() { - return v_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return from_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Cursor::release_v() { - // @@protoc_insertion_point(field_release:remote.Cursor.v) - return v_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* RangeReq::release_from_prefix() { + // @@protoc_insertion_point(field_release:remote.RangeReq.from_prefix) + return from_prefix_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Cursor::set_allocated_v(std::string* v) { - if (v != nullptr) { +inline void RangeReq::set_allocated_from_prefix(std::string* from_prefix) { + if (from_prefix != nullptr) { } else { } - v_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), v, + from_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from_prefix, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.Cursor.v) + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.from_prefix) +} + +// bytes to_prefix = 4; +inline void RangeReq::clear_to_prefix() { + to_prefix_.ClearToEmpty(); +} +inline const std::string& RangeReq::to_prefix() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.to_prefix) + return _internal_to_prefix(); +} +inline void RangeReq::set_to_prefix(const std::string& value) { + _internal_set_to_prefix(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.to_prefix) +} +inline std::string* RangeReq::mutable_to_prefix() { + // @@protoc_insertion_point(field_mutable:remote.RangeReq.to_prefix) + return _internal_mutable_to_prefix(); +} +inline const std::string& RangeReq::_internal_to_prefix() const { + return to_prefix_.Get(); +} +inline void RangeReq::_internal_set_to_prefix(const std::string& value) { + + to_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RangeReq::set_to_prefix(std::string&& value) { + + to_prefix_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.RangeReq.to_prefix) +} +inline void RangeReq::set_to_prefix(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + to_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.RangeReq.to_prefix) +} +inline void RangeReq::set_to_prefix(const void* value, + size_t size) { + + to_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.RangeReq.to_prefix) +} +inline std::string* RangeReq::_internal_mutable_to_prefix() { + + return to_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RangeReq::release_to_prefix() { + // @@protoc_insertion_point(field_release:remote.RangeReq.to_prefix) + return to_prefix_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RangeReq::set_allocated_to_prefix(std::string* to_prefix) { + if (to_prefix != nullptr) { + + } else { + + } + to_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), to_prefix, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.to_prefix) +} + +// bool order_ascend = 5; +inline void RangeReq::clear_order_ascend() { + order_ascend_ = false; +} +inline bool RangeReq::_internal_order_ascend() const { + return order_ascend_; +} +inline bool RangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.order_ascend) + return _internal_order_ascend(); +} +inline void RangeReq::_internal_set_order_ascend(bool value) { + + order_ascend_ = value; +} +inline void RangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.order_ascend) +} + +// sint64 limit = 6; +inline void RangeReq::clear_limit() { + limit_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 RangeReq::_internal_limit() const { + return limit_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 RangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.limit) + return _internal_limit(); +} +inline void RangeReq::_internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + + limit_ = value; +} +inline void RangeReq::set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.limit) +} + +// int32 page_size = 7; +inline void RangeReq::clear_page_size() { + page_size_ = 0; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 RangeReq::_internal_page_size() const { + return page_size_; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 RangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.page_size) + return _internal_page_size(); +} +inline void RangeReq::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + + page_size_ = value; +} +inline void RangeReq::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.page_size) +} + +// string page_token = 8; +inline void RangeReq::clear_page_token() { + page_token_.ClearToEmpty(); +} +inline const std::string& RangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.page_token) + return _internal_page_token(); +} +inline void RangeReq::set_page_token(const std::string& value) { + _internal_set_page_token(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.page_token) +} +inline std::string* RangeReq::mutable_page_token() { + // @@protoc_insertion_point(field_mutable:remote.RangeReq.page_token) + return _internal_mutable_page_token(); +} +inline const std::string& RangeReq::_internal_page_token() const { + return page_token_.Get(); +} +inline void RangeReq::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RangeReq::set_page_token(std::string&& value) { + + page_token_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.RangeReq.page_token) +} +inline void RangeReq::set_page_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.RangeReq.page_token) +} +inline void RangeReq::set_page_token(const char* value, + size_t size) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.RangeReq.page_token) +} +inline std::string* RangeReq::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.RangeReq.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.page_token) } // ------------------------------------------------------------------- -// Pair +// DomainGetReq -// bytes k = 1; -inline void Pair::clear_k() { +// uint64 tx_id = 1; +inline void DomainGetReq::clear_tx_id() { + tx_id_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainGetReq::_internal_tx_id() const { + return tx_id_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainGetReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.tx_id) + return _internal_tx_id(); +} +inline void DomainGetReq::_internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + tx_id_ = value; +} +inline void DomainGetReq::set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.tx_id) +} + +// string table = 2; +inline void DomainGetReq::clear_table() { + table_.ClearToEmpty(); +} +inline const std::string& DomainGetReq::table() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.table) + return _internal_table(); +} +inline void DomainGetReq::set_table(const std::string& value) { + _internal_set_table(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.table) +} +inline std::string* DomainGetReq::mutable_table() { + // @@protoc_insertion_point(field_mutable:remote.DomainGetReq.table) + return _internal_mutable_table(); +} +inline const std::string& DomainGetReq::_internal_table() const { + return table_.Get(); +} +inline void DomainGetReq::_internal_set_table(const std::string& value) { + + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DomainGetReq::set_table(std::string&& value) { + + table_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.DomainGetReq.table) +} +inline void DomainGetReq::set_table(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.DomainGetReq.table) +} +inline void DomainGetReq::set_table(const char* value, + size_t size) { + + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.DomainGetReq.table) +} +inline std::string* DomainGetReq::_internal_mutable_table() { + + return table_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DomainGetReq::release_table() { + // @@protoc_insertion_point(field_release:remote.DomainGetReq.table) + return table_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DomainGetReq::set_allocated_table(std::string* table) { + if (table != nullptr) { + + } else { + + } + table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReq.table) +} + +// bytes k = 3; +inline void DomainGetReq::clear_k() { k_.ClearToEmpty(); } -inline const std::string& Pair::k() const { - // @@protoc_insertion_point(field_get:remote.Pair.k) +inline const std::string& DomainGetReq::k() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.k) return _internal_k(); } -inline void Pair::set_k(const std::string& value) { +inline void DomainGetReq::set_k(const std::string& value) { _internal_set_k(value); - // @@protoc_insertion_point(field_set:remote.Pair.k) + // @@protoc_insertion_point(field_set:remote.DomainGetReq.k) } -inline std::string* Pair::mutable_k() { - // @@protoc_insertion_point(field_mutable:remote.Pair.k) +inline std::string* DomainGetReq::mutable_k() { + // @@protoc_insertion_point(field_mutable:remote.DomainGetReq.k) return _internal_mutable_k(); } -inline const std::string& Pair::_internal_k() const { +inline const std::string& DomainGetReq::_internal_k() const { return k_.Get(); } -inline void Pair::_internal_set_k(const std::string& value) { +inline void DomainGetReq::_internal_set_k(const std::string& value) { k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Pair::set_k(std::string&& value) { +inline void DomainGetReq::set_k(std::string&& value) { k_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.Pair.k) + // @@protoc_insertion_point(field_set_rvalue:remote.DomainGetReq.k) } -inline void Pair::set_k(const char* value) { +inline void DomainGetReq::set_k(const char* value) { GOOGLE_DCHECK(value != nullptr); k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.Pair.k) + // @@protoc_insertion_point(field_set_char:remote.DomainGetReq.k) } -inline void Pair::set_k(const void* value, +inline void DomainGetReq::set_k(const void* value, size_t size) { k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.Pair.k) + // @@protoc_insertion_point(field_set_pointer:remote.DomainGetReq.k) } -inline std::string* Pair::_internal_mutable_k() { +inline std::string* DomainGetReq::_internal_mutable_k() { return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Pair::release_k() { - // @@protoc_insertion_point(field_release:remote.Pair.k) +inline std::string* DomainGetReq::release_k() { + // @@protoc_insertion_point(field_release:remote.DomainGetReq.k) return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Pair::set_allocated_k(std::string* k) { +inline void DomainGetReq::set_allocated_k(std::string* k) { if (k != nullptr) { } else { @@ -2779,60 +6055,165 @@ inline void Pair::set_allocated_k(std::string* k) { } k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.Pair.k) + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReq.k) } -// bytes v = 2; -inline void Pair::clear_v() { +// uint64 ts = 4; +inline void DomainGetReq::clear_ts() { + ts_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainGetReq::_internal_ts() const { + return ts_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainGetReq::ts() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.ts) + return _internal_ts(); +} +inline void DomainGetReq::_internal_set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + ts_ = value; +} +inline void DomainGetReq::set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_ts(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.ts) +} + +// bytes k2 = 5; +inline void DomainGetReq::clear_k2() { + k2_.ClearToEmpty(); +} +inline const std::string& DomainGetReq::k2() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.k2) + return _internal_k2(); +} +inline void DomainGetReq::set_k2(const std::string& value) { + _internal_set_k2(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.k2) +} +inline std::string* DomainGetReq::mutable_k2() { + // @@protoc_insertion_point(field_mutable:remote.DomainGetReq.k2) + return _internal_mutable_k2(); +} +inline const std::string& DomainGetReq::_internal_k2() const { + return k2_.Get(); +} +inline void DomainGetReq::_internal_set_k2(const std::string& value) { + + k2_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DomainGetReq::set_k2(std::string&& value) { + + k2_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.DomainGetReq.k2) +} +inline void DomainGetReq::set_k2(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + k2_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.DomainGetReq.k2) +} +inline void DomainGetReq::set_k2(const void* value, + size_t size) { + + k2_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.DomainGetReq.k2) +} +inline std::string* DomainGetReq::_internal_mutable_k2() { + + return k2_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DomainGetReq::release_k2() { + // @@protoc_insertion_point(field_release:remote.DomainGetReq.k2) + return k2_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DomainGetReq::set_allocated_k2(std::string* k2) { + if (k2 != nullptr) { + + } else { + + } + k2_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k2, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReq.k2) +} + +// bool latest = 6; +inline void DomainGetReq::clear_latest() { + latest_ = false; +} +inline bool DomainGetReq::_internal_latest() const { + return latest_; +} +inline bool DomainGetReq::latest() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.latest) + return _internal_latest(); +} +inline void DomainGetReq::_internal_set_latest(bool value) { + + latest_ = value; +} +inline void DomainGetReq::set_latest(bool value) { + _internal_set_latest(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.latest) +} + +// ------------------------------------------------------------------- + +// DomainGetReply + +// bytes v = 1; +inline void DomainGetReply::clear_v() { v_.ClearToEmpty(); } -inline const std::string& Pair::v() const { - // @@protoc_insertion_point(field_get:remote.Pair.v) +inline const std::string& DomainGetReply::v() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReply.v) return _internal_v(); } -inline void Pair::set_v(const std::string& value) { +inline void DomainGetReply::set_v(const std::string& value) { _internal_set_v(value); - // @@protoc_insertion_point(field_set:remote.Pair.v) + // @@protoc_insertion_point(field_set:remote.DomainGetReply.v) } -inline std::string* Pair::mutable_v() { - // @@protoc_insertion_point(field_mutable:remote.Pair.v) +inline std::string* DomainGetReply::mutable_v() { + // @@protoc_insertion_point(field_mutable:remote.DomainGetReply.v) return _internal_mutable_v(); } -inline const std::string& Pair::_internal_v() const { +inline const std::string& DomainGetReply::_internal_v() const { return v_.Get(); } -inline void Pair::_internal_set_v(const std::string& value) { +inline void DomainGetReply::_internal_set_v(const std::string& value) { v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void Pair::set_v(std::string&& value) { +inline void DomainGetReply::set_v(std::string&& value) { v_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.Pair.v) + // @@protoc_insertion_point(field_set_rvalue:remote.DomainGetReply.v) } -inline void Pair::set_v(const char* value) { +inline void DomainGetReply::set_v(const char* value) { GOOGLE_DCHECK(value != nullptr); v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.Pair.v) + // @@protoc_insertion_point(field_set_char:remote.DomainGetReply.v) } -inline void Pair::set_v(const void* value, +inline void DomainGetReply::set_v(const void* value, size_t size) { v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.Pair.v) + // @@protoc_insertion_point(field_set_pointer:remote.DomainGetReply.v) } -inline std::string* Pair::_internal_mutable_v() { +inline std::string* DomainGetReply::_internal_mutable_v() { return v_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* Pair::release_v() { - // @@protoc_insertion_point(field_release:remote.Pair.v) +inline std::string* DomainGetReply::release_v() { + // @@protoc_insertion_point(field_release:remote.DomainGetReply.v) return v_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void Pair::set_allocated_v(std::string* v) { +inline void DomainGetReply::set_allocated_v(std::string* v) { if (v != nullptr) { } else { @@ -2840,1442 +6221,1653 @@ inline void Pair::set_allocated_v(std::string* v) { } v_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), v, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.Pair.v) + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReply.v) } -// uint32 cursorID = 3; -inline void Pair::clear_cursorid() { - cursorid_ = 0u; +// bool ok = 2; +inline void DomainGetReply::clear_ok() { + ok_ = false; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Pair::_internal_cursorid() const { - return cursorid_; +inline bool DomainGetReply::_internal_ok() const { + return ok_; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 Pair::cursorid() const { - // @@protoc_insertion_point(field_get:remote.Pair.cursorID) - return _internal_cursorid(); +inline bool DomainGetReply::ok() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReply.ok) + return _internal_ok(); } -inline void Pair::_internal_set_cursorid(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void DomainGetReply::_internal_set_ok(bool value) { - cursorid_ = value; + ok_ = value; } -inline void Pair::set_cursorid(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_cursorid(value); - // @@protoc_insertion_point(field_set:remote.Pair.cursorID) +inline void DomainGetReply::set_ok(bool value) { + _internal_set_ok(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReply.ok) } -// uint64 viewID = 4; -inline void Pair::clear_viewid() { - viewid_ = PROTOBUF_ULONGLONG(0); +// ------------------------------------------------------------------- + +// HistoryGetReq + +// uint64 tx_id = 1; +inline void HistoryGetReq::clear_tx_id() { + tx_id_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::_internal_viewid() const { - return viewid_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::_internal_tx_id() const { + return tx_id_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::viewid() const { - // @@protoc_insertion_point(field_get:remote.Pair.viewID) - return _internal_viewid(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.tx_id) + return _internal_tx_id(); } -inline void Pair::_internal_set_viewid(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void HistoryGetReq::_internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - viewid_ = value; + tx_id_ = value; } -inline void Pair::set_viewid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_viewid(value); - // @@protoc_insertion_point(field_set:remote.Pair.viewID) +inline void HistoryGetReq::set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.tx_id) } -// uint64 txID = 5; -inline void Pair::clear_txid() { - txid_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::_internal_txid() const { - return txid_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 Pair::txid() const { - // @@protoc_insertion_point(field_get:remote.Pair.txID) - return _internal_txid(); -} -inline void Pair::_internal_set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - txid_ = value; +// string table = 2; +inline void HistoryGetReq::clear_table() { + table_.ClearToEmpty(); } -inline void Pair::set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_txid(value); - // @@protoc_insertion_point(field_set:remote.Pair.txID) +inline const std::string& HistoryGetReq::table() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.table) + return _internal_table(); } - -// ------------------------------------------------------------------- - -// StorageChange - -// .types.H256 location = 1; -inline bool StorageChange::_internal_has_location() const { - return this != internal_default_instance() && location_ != nullptr; +inline void HistoryGetReq::set_table(const std::string& value) { + _internal_set_table(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.table) } -inline bool StorageChange::has_location() const { - return _internal_has_location(); +inline std::string* HistoryGetReq::mutable_table() { + // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.table) + return _internal_mutable_table(); } -inline const ::types::H256& StorageChange::_internal_location() const { - const ::types::H256* p = location_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H256_default_instance_); +inline const std::string& HistoryGetReq::_internal_table() const { + return table_.Get(); } -inline const ::types::H256& StorageChange::location() const { - // @@protoc_insertion_point(field_get:remote.StorageChange.location) - return _internal_location(); +inline void HistoryGetReq::_internal_set_table(const std::string& value) { + + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void StorageChange::unsafe_arena_set_allocated_location( - ::types::H256* location) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); - } - location_ = location; - if (location) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StorageChange.location) +inline void HistoryGetReq::set_table(std::string&& value) { + + table_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.HistoryGetReq.table) } -inline ::types::H256* StorageChange::release_location() { +inline void HistoryGetReq::set_table(const char* value) { + GOOGLE_DCHECK(value != nullptr); - ::types::H256* temp = location_; - location_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.HistoryGetReq.table) } -inline ::types::H256* StorageChange::unsafe_arena_release_location() { - // @@protoc_insertion_point(field_release:remote.StorageChange.location) +inline void HistoryGetReq::set_table(const char* value, + size_t size) { - ::types::H256* temp = location_; - location_ = nullptr; - return temp; + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.HistoryGetReq.table) } -inline ::types::H256* StorageChange::_internal_mutable_location() { +inline std::string* HistoryGetReq::_internal_mutable_table() { - if (location_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H256>(GetArena()); - location_ = p; - } - return location_; + return table_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::types::H256* StorageChange::mutable_location() { - // @@protoc_insertion_point(field_mutable:remote.StorageChange.location) - return _internal_mutable_location(); +inline std::string* HistoryGetReq::release_table() { + // @@protoc_insertion_point(field_release:remote.HistoryGetReq.table) + return table_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void StorageChange::set_allocated_location(::types::H256* location) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_); - } - if (location) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)->GetArena(); - if (message_arena != submessage_arena) { - location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, location, submessage_arena); - } +inline void HistoryGetReq::set_allocated_table(std::string* table) { + if (table != nullptr) { } else { } - location_ = location; - // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.location) + table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.table) } -// bytes data = 2; -inline void StorageChange::clear_data() { - data_.ClearToEmpty(); +// bytes k = 3; +inline void HistoryGetReq::clear_k() { + k_.ClearToEmpty(); } -inline const std::string& StorageChange::data() const { - // @@protoc_insertion_point(field_get:remote.StorageChange.data) - return _internal_data(); +inline const std::string& HistoryGetReq::k() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.k) + return _internal_k(); } -inline void StorageChange::set_data(const std::string& value) { - _internal_set_data(value); - // @@protoc_insertion_point(field_set:remote.StorageChange.data) +inline void HistoryGetReq::set_k(const std::string& value) { + _internal_set_k(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.k) } -inline std::string* StorageChange::mutable_data() { - // @@protoc_insertion_point(field_mutable:remote.StorageChange.data) - return _internal_mutable_data(); +inline std::string* HistoryGetReq::mutable_k() { + // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.k) + return _internal_mutable_k(); } -inline const std::string& StorageChange::_internal_data() const { - return data_.Get(); +inline const std::string& HistoryGetReq::_internal_k() const { + return k_.Get(); } -inline void StorageChange::_internal_set_data(const std::string& value) { +inline void HistoryGetReq::_internal_set_k(const std::string& value) { - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void StorageChange::set_data(std::string&& value) { +inline void HistoryGetReq::set_k(std::string&& value) { - data_.Set( + k_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.StorageChange.data) + // @@protoc_insertion_point(field_set_rvalue:remote.HistoryGetReq.k) } -inline void StorageChange::set_data(const char* value) { +inline void HistoryGetReq::set_k(const char* value) { GOOGLE_DCHECK(value != nullptr); - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.StorageChange.data) + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.HistoryGetReq.k) } -inline void StorageChange::set_data(const void* value, +inline void HistoryGetReq::set_k(const void* value, size_t size) { - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.StorageChange.data) + // @@protoc_insertion_point(field_set_pointer:remote.HistoryGetReq.k) } -inline std::string* StorageChange::_internal_mutable_data() { +inline std::string* HistoryGetReq::_internal_mutable_k() { - return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* StorageChange::release_data() { - // @@protoc_insertion_point(field_release:remote.StorageChange.data) - return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* HistoryGetReq::release_k() { + // @@protoc_insertion_point(field_release:remote.HistoryGetReq.k) + return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void StorageChange::set_allocated_data(std::string* data) { - if (data != nullptr) { +inline void HistoryGetReq::set_allocated_k(std::string* k) { + if (k != nullptr) { } else { } - data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, + k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.data) + // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.k) +} + +// uint64 ts = 4; +inline void HistoryGetReq::clear_ts() { + ts_ = PROTOBUF_ULONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::_internal_ts() const { + return ts_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::ts() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.ts) + return _internal_ts(); +} +inline void HistoryGetReq::_internal_set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + ts_ = value; +} +inline void HistoryGetReq::set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_ts(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.ts) } // ------------------------------------------------------------------- -// AccountChange +// HistoryGetReply -// .types.H160 address = 1; -inline bool AccountChange::_internal_has_address() const { - return this != internal_default_instance() && address_ != nullptr; +// bytes v = 1; +inline void HistoryGetReply::clear_v() { + v_.ClearToEmpty(); } -inline bool AccountChange::has_address() const { - return _internal_has_address(); +inline const std::string& HistoryGetReply::v() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReply.v) + return _internal_v(); } -inline const ::types::H160& AccountChange::_internal_address() const { - const ::types::H160* p = address_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H160_default_instance_); +inline void HistoryGetReply::set_v(const std::string& value) { + _internal_set_v(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReply.v) } -inline const ::types::H160& AccountChange::address() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.address) - return _internal_address(); +inline std::string* HistoryGetReply::mutable_v() { + // @@protoc_insertion_point(field_mutable:remote.HistoryGetReply.v) + return _internal_mutable_v(); } -inline void AccountChange::unsafe_arena_set_allocated_address( - ::types::H160* address) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address_); - } - address_ = address; - if (address) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.AccountChange.address) +inline const std::string& HistoryGetReply::_internal_v() const { + return v_.Get(); } -inline ::types::H160* AccountChange::release_address() { +inline void HistoryGetReply::_internal_set_v(const std::string& value) { - ::types::H160* temp = address_; - address_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::types::H160* AccountChange::unsafe_arena_release_address() { - // @@protoc_insertion_point(field_release:remote.AccountChange.address) +inline void HistoryGetReply::set_v(std::string&& value) { - ::types::H160* temp = address_; - address_ = nullptr; - return temp; + v_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.HistoryGetReply.v) } -inline ::types::H160* AccountChange::_internal_mutable_address() { +inline void HistoryGetReply::set_v(const char* value) { + GOOGLE_DCHECK(value != nullptr); - if (address_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H160>(GetArena()); - address_ = p; - } - return address_; + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.HistoryGetReply.v) } -inline ::types::H160* AccountChange::mutable_address() { - // @@protoc_insertion_point(field_mutable:remote.AccountChange.address) - return _internal_mutable_address(); +inline void HistoryGetReply::set_v(const void* value, + size_t size) { + + v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.HistoryGetReply.v) } -inline void AccountChange::set_allocated_address(::types::H160* address) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(address_); - } - if (address) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address)->GetArena(); - if (message_arena != submessage_arena) { - address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, address, submessage_arena); - } +inline std::string* HistoryGetReply::_internal_mutable_v() { + + return v_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HistoryGetReply::release_v() { + // @@protoc_insertion_point(field_release:remote.HistoryGetReply.v) + return v_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HistoryGetReply::set_allocated_v(std::string* v) { + if (v != nullptr) { } else { } - address_ = address; - // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.address) + v_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), v, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReply.v) } -// uint64 incarnation = 2; -inline void AccountChange::clear_incarnation() { - incarnation_ = PROTOBUF_ULONGLONG(0); +// bool ok = 2; +inline void HistoryGetReply::clear_ok() { + ok_ = false; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 AccountChange::_internal_incarnation() const { - return incarnation_; +inline bool HistoryGetReply::_internal_ok() const { + return ok_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 AccountChange::incarnation() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.incarnation) - return _internal_incarnation(); +inline bool HistoryGetReply::ok() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReply.ok) + return _internal_ok(); } -inline void AccountChange::_internal_set_incarnation(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void HistoryGetReply::_internal_set_ok(bool value) { - incarnation_ = value; + ok_ = value; } -inline void AccountChange::set_incarnation(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_incarnation(value); - // @@protoc_insertion_point(field_set:remote.AccountChange.incarnation) +inline void HistoryGetReply::set_ok(bool value) { + _internal_set_ok(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReply.ok) } -// .remote.Action action = 3; -inline void AccountChange::clear_action() { - action_ = 0; +// ------------------------------------------------------------------- + +// IndexRangeReq + +// uint64 tx_id = 1; +inline void IndexRangeReq::clear_tx_id() { + tx_id_ = PROTOBUF_ULONGLONG(0); } -inline ::remote::Action AccountChange::_internal_action() const { - return static_cast< ::remote::Action >(action_); +inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::_internal_tx_id() const { + return tx_id_; } -inline ::remote::Action AccountChange::action() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.action) - return _internal_action(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.tx_id) + return _internal_tx_id(); } -inline void AccountChange::_internal_set_action(::remote::Action value) { +inline void IndexRangeReq::_internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - action_ = value; + tx_id_ = value; } -inline void AccountChange::set_action(::remote::Action value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:remote.AccountChange.action) +inline void IndexRangeReq::set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.tx_id) } -// bytes data = 4; -inline void AccountChange::clear_data() { - data_.ClearToEmpty(); +// string table = 2; +inline void IndexRangeReq::clear_table() { + table_.ClearToEmpty(); } -inline const std::string& AccountChange::data() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.data) - return _internal_data(); +inline const std::string& IndexRangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.table) + return _internal_table(); } -inline void AccountChange::set_data(const std::string& value) { - _internal_set_data(value); - // @@protoc_insertion_point(field_set:remote.AccountChange.data) +inline void IndexRangeReq::set_table(const std::string& value) { + _internal_set_table(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.table) } -inline std::string* AccountChange::mutable_data() { - // @@protoc_insertion_point(field_mutable:remote.AccountChange.data) - return _internal_mutable_data(); +inline std::string* IndexRangeReq::mutable_table() { + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.table) + return _internal_mutable_table(); } -inline const std::string& AccountChange::_internal_data() const { - return data_.Get(); +inline const std::string& IndexRangeReq::_internal_table() const { + return table_.Get(); } -inline void AccountChange::_internal_set_data(const std::string& value) { +inline void IndexRangeReq::_internal_set_table(const std::string& value) { - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void AccountChange::set_data(std::string&& value) { +inline void IndexRangeReq::set_table(std::string&& value) { - data_.Set( + table_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.AccountChange.data) + // @@protoc_insertion_point(field_set_rvalue:remote.IndexRangeReq.table) } -inline void AccountChange::set_data(const char* value) { +inline void IndexRangeReq::set_table(const char* value) { GOOGLE_DCHECK(value != nullptr); - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.AccountChange.data) + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.IndexRangeReq.table) } -inline void AccountChange::set_data(const void* value, +inline void IndexRangeReq::set_table(const char* value, size_t size) { - data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.AccountChange.data) + // @@protoc_insertion_point(field_set_pointer:remote.IndexRangeReq.table) } -inline std::string* AccountChange::_internal_mutable_data() { +inline std::string* IndexRangeReq::_internal_mutable_table() { - return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return table_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* AccountChange::release_data() { - // @@protoc_insertion_point(field_release:remote.AccountChange.data) - return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* IndexRangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReq.table) + return table_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void AccountChange::set_allocated_data(std::string* data) { - if (data != nullptr) { +inline void IndexRangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { } else { } - data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data, + table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.data) + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.table) } -// bytes code = 5; -inline void AccountChange::clear_code() { - code_.ClearToEmpty(); -} -inline const std::string& AccountChange::code() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.code) - return _internal_code(); +// bytes k = 3; +inline void IndexRangeReq::clear_k() { + k_.ClearToEmpty(); } -inline void AccountChange::set_code(const std::string& value) { - _internal_set_code(value); - // @@protoc_insertion_point(field_set:remote.AccountChange.code) +inline const std::string& IndexRangeReq::k() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.k) + return _internal_k(); } -inline std::string* AccountChange::mutable_code() { - // @@protoc_insertion_point(field_mutable:remote.AccountChange.code) - return _internal_mutable_code(); +inline void IndexRangeReq::set_k(const std::string& value) { + _internal_set_k(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.k) } -inline const std::string& AccountChange::_internal_code() const { - return code_.Get(); +inline std::string* IndexRangeReq::mutable_k() { + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.k) + return _internal_mutable_k(); } -inline void AccountChange::_internal_set_code(const std::string& value) { +inline const std::string& IndexRangeReq::_internal_k() const { + return k_.Get(); +} +inline void IndexRangeReq::_internal_set_k(const std::string& value) { - code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void AccountChange::set_code(std::string&& value) { +inline void IndexRangeReq::set_k(std::string&& value) { - code_.Set( + k_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.AccountChange.code) + // @@protoc_insertion_point(field_set_rvalue:remote.IndexRangeReq.k) } -inline void AccountChange::set_code(const char* value) { +inline void IndexRangeReq::set_k(const char* value) { GOOGLE_DCHECK(value != nullptr); - code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.AccountChange.code) + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.IndexRangeReq.k) } -inline void AccountChange::set_code(const void* value, +inline void IndexRangeReq::set_k(const void* value, size_t size) { - code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.AccountChange.code) + // @@protoc_insertion_point(field_set_pointer:remote.IndexRangeReq.k) } -inline std::string* AccountChange::_internal_mutable_code() { +inline std::string* IndexRangeReq::_internal_mutable_k() { - return code_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* AccountChange::release_code() { - // @@protoc_insertion_point(field_release:remote.AccountChange.code) - return code_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* IndexRangeReq::release_k() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReq.k) + return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void AccountChange::set_allocated_code(std::string* code) { - if (code != nullptr) { +inline void IndexRangeReq::set_allocated_k(std::string* k) { + if (k != nullptr) { } else { } - code_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), code, + k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.code) + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.k) } -// repeated .remote.StorageChange storageChanges = 6; -inline int AccountChange::_internal_storagechanges_size() const { - return storagechanges_.size(); +// sint64 from_ts = 4; +inline void IndexRangeReq::clear_from_ts() { + from_ts_ = PROTOBUF_LONGLONG(0); } -inline int AccountChange::storagechanges_size() const { - return _internal_storagechanges_size(); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexRangeReq::_internal_from_ts() const { + return from_ts_; } -inline void AccountChange::clear_storagechanges() { - storagechanges_.Clear(); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexRangeReq::from_ts() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.from_ts) + return _internal_from_ts(); } -inline ::remote::StorageChange* AccountChange::mutable_storagechanges(int index) { - // @@protoc_insertion_point(field_mutable:remote.AccountChange.storageChanges) - return storagechanges_.Mutable(index); +inline void IndexRangeReq::_internal_set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + + from_ts_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >* -AccountChange::mutable_storagechanges() { - // @@protoc_insertion_point(field_mutable_list:remote.AccountChange.storageChanges) - return &storagechanges_; +inline void IndexRangeReq::set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_from_ts(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.from_ts) } -inline const ::remote::StorageChange& AccountChange::_internal_storagechanges(int index) const { - return storagechanges_.Get(index); + +// sint64 to_ts = 5; +inline void IndexRangeReq::clear_to_ts() { + to_ts_ = PROTOBUF_LONGLONG(0); } -inline const ::remote::StorageChange& AccountChange::storagechanges(int index) const { - // @@protoc_insertion_point(field_get:remote.AccountChange.storageChanges) - return _internal_storagechanges(index); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexRangeReq::_internal_to_ts() const { + return to_ts_; } -inline ::remote::StorageChange* AccountChange::_internal_add_storagechanges() { - return storagechanges_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexRangeReq::to_ts() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.to_ts) + return _internal_to_ts(); } -inline ::remote::StorageChange* AccountChange::add_storagechanges() { - // @@protoc_insertion_point(field_add:remote.AccountChange.storageChanges) - return _internal_add_storagechanges(); +inline void IndexRangeReq::_internal_set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + + to_ts_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >& -AccountChange::storagechanges() const { - // @@protoc_insertion_point(field_list:remote.AccountChange.storageChanges) - return storagechanges_; +inline void IndexRangeReq::set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_to_ts(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.to_ts) } -// ------------------------------------------------------------------- - -// StateChangeBatch - -// uint64 stateVersionID = 1; -inline void StateChangeBatch::clear_stateversionid() { - stateversionid_ = PROTOBUF_ULONGLONG(0); +// bool order_ascend = 6; +inline void IndexRangeReq::clear_order_ascend() { + order_ascend_ = false; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::_internal_stateversionid() const { - return stateversionid_; +inline bool IndexRangeReq::_internal_order_ascend() const { + return order_ascend_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::stateversionid() const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.stateVersionID) - return _internal_stateversionid(); +inline bool IndexRangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.order_ascend) + return _internal_order_ascend(); } -inline void StateChangeBatch::_internal_set_stateversionid(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void IndexRangeReq::_internal_set_order_ascend(bool value) { - stateversionid_ = value; + order_ascend_ = value; } -inline void StateChangeBatch::set_stateversionid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_stateversionid(value); - // @@protoc_insertion_point(field_set:remote.StateChangeBatch.stateVersionID) +inline void IndexRangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.order_ascend) } -// repeated .remote.StateChange changeBatch = 2; -inline int StateChangeBatch::_internal_changebatch_size() const { - return changebatch_.size(); +// sint64 limit = 7; +inline void IndexRangeReq::clear_limit() { + limit_ = PROTOBUF_LONGLONG(0); } -inline int StateChangeBatch::changebatch_size() const { - return _internal_changebatch_size(); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexRangeReq::_internal_limit() const { + return limit_; } -inline void StateChangeBatch::clear_changebatch() { - changebatch_.Clear(); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexRangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.limit) + return _internal_limit(); } -inline ::remote::StateChange* StateChangeBatch::mutable_changebatch(int index) { - // @@protoc_insertion_point(field_mutable:remote.StateChangeBatch.changeBatch) - return changebatch_.Mutable(index); +inline void IndexRangeReq::_internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + + limit_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >* -StateChangeBatch::mutable_changebatch() { - // @@protoc_insertion_point(field_mutable_list:remote.StateChangeBatch.changeBatch) - return &changebatch_; +inline void IndexRangeReq::set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.limit) } -inline const ::remote::StateChange& StateChangeBatch::_internal_changebatch(int index) const { - return changebatch_.Get(index); + +// int32 page_size = 8; +inline void IndexRangeReq::clear_page_size() { + page_size_ = 0; } -inline const ::remote::StateChange& StateChangeBatch::changebatch(int index) const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.changeBatch) - return _internal_changebatch(index); +inline ::PROTOBUF_NAMESPACE_ID::int32 IndexRangeReq::_internal_page_size() const { + return page_size_; } -inline ::remote::StateChange* StateChangeBatch::_internal_add_changebatch() { - return changebatch_.Add(); +inline ::PROTOBUF_NAMESPACE_ID::int32 IndexRangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.page_size) + return _internal_page_size(); } -inline ::remote::StateChange* StateChangeBatch::add_changebatch() { - // @@protoc_insertion_point(field_add:remote.StateChangeBatch.changeBatch) - return _internal_add_changebatch(); +inline void IndexRangeReq::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + + page_size_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >& -StateChangeBatch::changebatch() const { - // @@protoc_insertion_point(field_list:remote.StateChangeBatch.changeBatch) - return changebatch_; +inline void IndexRangeReq::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.page_size) } -// uint64 pendingBlockBaseFee = 3; -inline void StateChangeBatch::clear_pendingblockbasefee() { - pendingblockbasefee_ = PROTOBUF_ULONGLONG(0); +// string page_token = 9; +inline void IndexRangeReq::clear_page_token() { + page_token_.ClearToEmpty(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::_internal_pendingblockbasefee() const { - return pendingblockbasefee_; +inline const std::string& IndexRangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.page_token) + return _internal_page_token(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::pendingblockbasefee() const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.pendingBlockBaseFee) - return _internal_pendingblockbasefee(); +inline void IndexRangeReq::set_page_token(const std::string& value) { + _internal_set_page_token(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.page_token) } -inline void StateChangeBatch::_internal_set_pendingblockbasefee(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - pendingblockbasefee_ = value; +inline std::string* IndexRangeReq::mutable_page_token() { + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.page_token) + return _internal_mutable_page_token(); } -inline void StateChangeBatch::set_pendingblockbasefee(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_pendingblockbasefee(value); - // @@protoc_insertion_point(field_set:remote.StateChangeBatch.pendingBlockBaseFee) +inline const std::string& IndexRangeReq::_internal_page_token() const { + return page_token_.Get(); } - -// uint64 blockGasLimit = 4; -inline void StateChangeBatch::clear_blockgaslimit() { - blockgaslimit_ = PROTOBUF_ULONGLONG(0); +inline void IndexRangeReq::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::_internal_blockgaslimit() const { - return blockgaslimit_; +inline void IndexRangeReq::set_page_token(std::string&& value) { + + page_token_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.IndexRangeReq.page_token) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChangeBatch::blockgaslimit() const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.blockGasLimit) - return _internal_blockgaslimit(); +inline void IndexRangeReq::set_page_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.IndexRangeReq.page_token) } -inline void StateChangeBatch::_internal_set_blockgaslimit(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void IndexRangeReq::set_page_token(const char* value, + size_t size) { - blockgaslimit_ = value; + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.IndexRangeReq.page_token) } -inline void StateChangeBatch::set_blockgaslimit(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_blockgaslimit(value); - // @@protoc_insertion_point(field_set:remote.StateChangeBatch.blockGasLimit) +inline std::string* IndexRangeReq::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* IndexRangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReq.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void IndexRangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.page_token) } // ------------------------------------------------------------------- -// StateChange +// IndexRangeReply -// .remote.Direction direction = 1; -inline void StateChange::clear_direction() { - direction_ = 0; +// repeated uint64 timestamps = 1; +inline int IndexRangeReply::_internal_timestamps_size() const { + return timestamps_.size(); } -inline ::remote::Direction StateChange::_internal_direction() const { - return static_cast< ::remote::Direction >(direction_); +inline int IndexRangeReply::timestamps_size() const { + return _internal_timestamps_size(); } -inline ::remote::Direction StateChange::direction() const { - // @@protoc_insertion_point(field_get:remote.StateChange.direction) - return _internal_direction(); +inline void IndexRangeReply::clear_timestamps() { + timestamps_.Clear(); } -inline void StateChange::_internal_set_direction(::remote::Direction value) { - - direction_ = value; +inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReply::_internal_timestamps(int index) const { + return timestamps_.Get(index); } -inline void StateChange::set_direction(::remote::Direction value) { - _internal_set_direction(value); - // @@protoc_insertion_point(field_set:remote.StateChange.direction) +inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReply::timestamps(int index) const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReply.timestamps) + return _internal_timestamps(index); } - -// uint64 blockHeight = 2; -inline void StateChange::clear_blockheight() { - blockheight_ = PROTOBUF_ULONGLONG(0); +inline void IndexRangeReply::set_timestamps(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value) { + timestamps_.Set(index, value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReply.timestamps) } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChange::_internal_blockheight() const { - return blockheight_; +inline void IndexRangeReply::_internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value) { + timestamps_.Add(value); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 StateChange::blockheight() const { - // @@protoc_insertion_point(field_get:remote.StateChange.blockHeight) - return _internal_blockheight(); +inline void IndexRangeReply::add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_add_timestamps(value); + // @@protoc_insertion_point(field_add:remote.IndexRangeReply.timestamps) } -inline void StateChange::_internal_set_blockheight(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - blockheight_ = value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& +IndexRangeReply::_internal_timestamps() const { + return timestamps_; } -inline void StateChange::set_blockheight(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_blockheight(value); - // @@protoc_insertion_point(field_set:remote.StateChange.blockHeight) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& +IndexRangeReply::timestamps() const { + // @@protoc_insertion_point(field_list:remote.IndexRangeReply.timestamps) + return _internal_timestamps(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* +IndexRangeReply::_internal_mutable_timestamps() { + return ×tamps_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* +IndexRangeReply::mutable_timestamps() { + // @@protoc_insertion_point(field_mutable_list:remote.IndexRangeReply.timestamps) + return _internal_mutable_timestamps(); } -// .types.H256 blockHash = 3; -inline bool StateChange::_internal_has_blockhash() const { - return this != internal_default_instance() && blockhash_ != nullptr; +// string next_page_token = 2; +inline void IndexRangeReply::clear_next_page_token() { + next_page_token_.ClearToEmpty(); } -inline bool StateChange::has_blockhash() const { - return _internal_has_blockhash(); +inline const std::string& IndexRangeReply::next_page_token() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReply.next_page_token) + return _internal_next_page_token(); } -inline const ::types::H256& StateChange::_internal_blockhash() const { - const ::types::H256* p = blockhash_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H256_default_instance_); +inline void IndexRangeReply::set_next_page_token(const std::string& value) { + _internal_set_next_page_token(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReply.next_page_token) } -inline const ::types::H256& StateChange::blockhash() const { - // @@protoc_insertion_point(field_get:remote.StateChange.blockHash) - return _internal_blockhash(); +inline std::string* IndexRangeReply::mutable_next_page_token() { + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReply.next_page_token) + return _internal_mutable_next_page_token(); } -inline void StateChange::unsafe_arena_set_allocated_blockhash( - ::types::H256* blockhash) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash_); - } - blockhash_ = blockhash; - if (blockhash) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StateChange.blockHash) +inline const std::string& IndexRangeReply::_internal_next_page_token() const { + return next_page_token_.Get(); } -inline ::types::H256* StateChange::release_blockhash() { +inline void IndexRangeReply::_internal_set_next_page_token(const std::string& value) { - ::types::H256* temp = blockhash_; - blockhash_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline ::types::H256* StateChange::unsafe_arena_release_blockhash() { - // @@protoc_insertion_point(field_release:remote.StateChange.blockHash) +inline void IndexRangeReply::set_next_page_token(std::string&& value) { - ::types::H256* temp = blockhash_; - blockhash_ = nullptr; - return temp; + next_page_token_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.IndexRangeReply.next_page_token) } -inline ::types::H256* StateChange::_internal_mutable_blockhash() { +inline void IndexRangeReply::set_next_page_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); - if (blockhash_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H256>(GetArena()); - blockhash_ = p; - } - return blockhash_; + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.IndexRangeReply.next_page_token) } -inline ::types::H256* StateChange::mutable_blockhash() { - // @@protoc_insertion_point(field_mutable:remote.StateChange.blockHash) - return _internal_mutable_blockhash(); +inline void IndexRangeReply::set_next_page_token(const char* value, + size_t size) { + + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.IndexRangeReply.next_page_token) } -inline void StateChange::set_allocated_blockhash(::types::H256* blockhash) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash_); - } - if (blockhash) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash)->GetArena(); - if (message_arena != submessage_arena) { - blockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, blockhash, submessage_arena); - } +inline std::string* IndexRangeReply::_internal_mutable_next_page_token() { + + return next_page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* IndexRangeReply::release_next_page_token() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReply.next_page_token) + return next_page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void IndexRangeReply::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { } else { } - blockhash_ = blockhash; - // @@protoc_insertion_point(field_set_allocated:remote.StateChange.blockHash) + next_page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReply.next_page_token) } -// repeated .remote.AccountChange changes = 4; -inline int StateChange::_internal_changes_size() const { - return changes_.size(); -} -inline int StateChange::changes_size() const { - return _internal_changes_size(); +// ------------------------------------------------------------------- + +// HistoryRangeReq + +// uint64 tx_id = 1; +inline void HistoryRangeReq::clear_tx_id() { + tx_id_ = PROTOBUF_ULONGLONG(0); } -inline void StateChange::clear_changes() { - changes_.Clear(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryRangeReq::_internal_tx_id() const { + return tx_id_; } -inline ::remote::AccountChange* StateChange::mutable_changes(int index) { - // @@protoc_insertion_point(field_mutable:remote.StateChange.changes) - return changes_.Mutable(index); +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryRangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.tx_id) + return _internal_tx_id(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >* -StateChange::mutable_changes() { - // @@protoc_insertion_point(field_mutable_list:remote.StateChange.changes) - return &changes_; +inline void HistoryRangeReq::_internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + tx_id_ = value; } -inline const ::remote::AccountChange& StateChange::_internal_changes(int index) const { - return changes_.Get(index); +inline void HistoryRangeReq::set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.tx_id) } -inline const ::remote::AccountChange& StateChange::changes(int index) const { - // @@protoc_insertion_point(field_get:remote.StateChange.changes) - return _internal_changes(index); + +// string table = 2; +inline void HistoryRangeReq::clear_table() { + table_.ClearToEmpty(); } -inline ::remote::AccountChange* StateChange::_internal_add_changes() { - return changes_.Add(); +inline const std::string& HistoryRangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.table) + return _internal_table(); } -inline ::remote::AccountChange* StateChange::add_changes() { - // @@protoc_insertion_point(field_add:remote.StateChange.changes) - return _internal_add_changes(); +inline void HistoryRangeReq::set_table(const std::string& value) { + _internal_set_table(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.table) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >& -StateChange::changes() const { - // @@protoc_insertion_point(field_list:remote.StateChange.changes) - return changes_; +inline std::string* HistoryRangeReq::mutable_table() { + // @@protoc_insertion_point(field_mutable:remote.HistoryRangeReq.table) + return _internal_mutable_table(); } - -// repeated bytes txs = 5; -inline int StateChange::_internal_txs_size() const { - return txs_.size(); +inline const std::string& HistoryRangeReq::_internal_table() const { + return table_.Get(); } -inline int StateChange::txs_size() const { - return _internal_txs_size(); +inline void HistoryRangeReq::_internal_set_table(const std::string& value) { + + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void StateChange::clear_txs() { - txs_.Clear(); +inline void HistoryRangeReq::set_table(std::string&& value) { + + table_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.HistoryRangeReq.table) } -inline std::string* StateChange::add_txs() { - // @@protoc_insertion_point(field_add_mutable:remote.StateChange.txs) - return _internal_add_txs(); +inline void HistoryRangeReq::set_table(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.HistoryRangeReq.table) } -inline const std::string& StateChange::_internal_txs(int index) const { - return txs_.Get(index); +inline void HistoryRangeReq::set_table(const char* value, + size_t size) { + + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.HistoryRangeReq.table) } -inline const std::string& StateChange::txs(int index) const { - // @@protoc_insertion_point(field_get:remote.StateChange.txs) - return _internal_txs(index); +inline std::string* HistoryRangeReq::_internal_mutable_table() { + + return table_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* StateChange::mutable_txs(int index) { - // @@protoc_insertion_point(field_mutable:remote.StateChange.txs) - return txs_.Mutable(index); +inline std::string* HistoryRangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.HistoryRangeReq.table) + return table_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void StateChange::set_txs(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:remote.StateChange.txs) - txs_.Mutable(index)->assign(value); +inline void HistoryRangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { + + } else { + + } + table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.HistoryRangeReq.table) } -inline void StateChange::set_txs(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:remote.StateChange.txs) - txs_.Mutable(index)->assign(std::move(value)); + +// sint64 from_ts = 4; +inline void HistoryRangeReq::clear_from_ts() { + from_ts_ = PROTOBUF_LONGLONG(0); } -inline void StateChange::set_txs(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - txs_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:remote.StateChange.txs) +inline ::PROTOBUF_NAMESPACE_ID::int64 HistoryRangeReq::_internal_from_ts() const { + return from_ts_; } -inline void StateChange::set_txs(int index, const void* value, size_t size) { - txs_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:remote.StateChange.txs) +inline ::PROTOBUF_NAMESPACE_ID::int64 HistoryRangeReq::from_ts() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.from_ts) + return _internal_from_ts(); } -inline std::string* StateChange::_internal_add_txs() { - return txs_.Add(); +inline void HistoryRangeReq::_internal_set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + + from_ts_ = value; } -inline void StateChange::add_txs(const std::string& value) { - txs_.Add()->assign(value); - // @@protoc_insertion_point(field_add:remote.StateChange.txs) +inline void HistoryRangeReq::set_from_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_from_ts(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.from_ts) } -inline void StateChange::add_txs(std::string&& value) { - txs_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:remote.StateChange.txs) + +// sint64 to_ts = 5; +inline void HistoryRangeReq::clear_to_ts() { + to_ts_ = PROTOBUF_LONGLONG(0); } -inline void StateChange::add_txs(const char* value) { - GOOGLE_DCHECK(value != nullptr); - txs_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:remote.StateChange.txs) +inline ::PROTOBUF_NAMESPACE_ID::int64 HistoryRangeReq::_internal_to_ts() const { + return to_ts_; } -inline void StateChange::add_txs(const void* value, size_t size) { - txs_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:remote.StateChange.txs) +inline ::PROTOBUF_NAMESPACE_ID::int64 HistoryRangeReq::to_ts() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.to_ts) + return _internal_to_ts(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -StateChange::txs() const { - // @@protoc_insertion_point(field_list:remote.StateChange.txs) - return txs_; +inline void HistoryRangeReq::_internal_set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + + to_ts_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -StateChange::mutable_txs() { - // @@protoc_insertion_point(field_mutable_list:remote.StateChange.txs) - return &txs_; +inline void HistoryRangeReq::set_to_ts(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_to_ts(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.to_ts) } -// ------------------------------------------------------------------- - -// StateChangeRequest - -// bool withStorage = 1; -inline void StateChangeRequest::clear_withstorage() { - withstorage_ = false; +// bool order_ascend = 6; +inline void HistoryRangeReq::clear_order_ascend() { + order_ascend_ = false; } -inline bool StateChangeRequest::_internal_withstorage() const { - return withstorage_; +inline bool HistoryRangeReq::_internal_order_ascend() const { + return order_ascend_; } -inline bool StateChangeRequest::withstorage() const { - // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withStorage) - return _internal_withstorage(); +inline bool HistoryRangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.order_ascend) + return _internal_order_ascend(); } -inline void StateChangeRequest::_internal_set_withstorage(bool value) { +inline void HistoryRangeReq::_internal_set_order_ascend(bool value) { - withstorage_ = value; + order_ascend_ = value; } -inline void StateChangeRequest::set_withstorage(bool value) { - _internal_set_withstorage(value); - // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withStorage) +inline void HistoryRangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.order_ascend) } -// bool withTransactions = 2; -inline void StateChangeRequest::clear_withtransactions() { - withtransactions_ = false; +// sint64 limit = 7; +inline void HistoryRangeReq::clear_limit() { + limit_ = PROTOBUF_LONGLONG(0); } -inline bool StateChangeRequest::_internal_withtransactions() const { - return withtransactions_; +inline ::PROTOBUF_NAMESPACE_ID::int64 HistoryRangeReq::_internal_limit() const { + return limit_; } -inline bool StateChangeRequest::withtransactions() const { - // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withTransactions) - return _internal_withtransactions(); +inline ::PROTOBUF_NAMESPACE_ID::int64 HistoryRangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.limit) + return _internal_limit(); } -inline void StateChangeRequest::_internal_set_withtransactions(bool value) { +inline void HistoryRangeReq::_internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { - withtransactions_ = value; + limit_ = value; } -inline void StateChangeRequest::set_withtransactions(bool value) { - _internal_set_withtransactions(value); - // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withTransactions) +inline void HistoryRangeReq::set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.limit) } -// ------------------------------------------------------------------- - -// SnapshotsRequest - -// ------------------------------------------------------------------- - -// SnapshotsReply - -// repeated string files = 1; -inline int SnapshotsReply::_internal_files_size() const { - return files_.size(); -} -inline int SnapshotsReply::files_size() const { - return _internal_files_size(); -} -inline void SnapshotsReply::clear_files() { - files_.Clear(); +// int32 page_size = 8; +inline void HistoryRangeReq::clear_page_size() { + page_size_ = 0; } -inline std::string* SnapshotsReply::add_files() { - // @@protoc_insertion_point(field_add_mutable:remote.SnapshotsReply.files) - return _internal_add_files(); +inline ::PROTOBUF_NAMESPACE_ID::int32 HistoryRangeReq::_internal_page_size() const { + return page_size_; } -inline const std::string& SnapshotsReply::_internal_files(int index) const { - return files_.Get(index); +inline ::PROTOBUF_NAMESPACE_ID::int32 HistoryRangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.page_size) + return _internal_page_size(); } -inline const std::string& SnapshotsReply::files(int index) const { - // @@protoc_insertion_point(field_get:remote.SnapshotsReply.files) - return _internal_files(index); +inline void HistoryRangeReq::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + + page_size_ = value; } -inline std::string* SnapshotsReply::mutable_files(int index) { - // @@protoc_insertion_point(field_mutable:remote.SnapshotsReply.files) - return files_.Mutable(index); +inline void HistoryRangeReq::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.page_size) } -inline void SnapshotsReply::set_files(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:remote.SnapshotsReply.files) - files_.Mutable(index)->assign(value); + +// string page_token = 9; +inline void HistoryRangeReq::clear_page_token() { + page_token_.ClearToEmpty(); } -inline void SnapshotsReply::set_files(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:remote.SnapshotsReply.files) - files_.Mutable(index)->assign(std::move(value)); +inline const std::string& HistoryRangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.page_token) + return _internal_page_token(); } -inline void SnapshotsReply::set_files(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - files_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:remote.SnapshotsReply.files) +inline void HistoryRangeReq::set_page_token(const std::string& value) { + _internal_set_page_token(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.page_token) } -inline void SnapshotsReply::set_files(int index, const char* value, size_t size) { - files_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:remote.SnapshotsReply.files) +inline std::string* HistoryRangeReq::mutable_page_token() { + // @@protoc_insertion_point(field_mutable:remote.HistoryRangeReq.page_token) + return _internal_mutable_page_token(); } -inline std::string* SnapshotsReply::_internal_add_files() { - return files_.Add(); +inline const std::string& HistoryRangeReq::_internal_page_token() const { + return page_token_.Get(); } -inline void SnapshotsReply::add_files(const std::string& value) { - files_.Add()->assign(value); - // @@protoc_insertion_point(field_add:remote.SnapshotsReply.files) +inline void HistoryRangeReq::_internal_set_page_token(const std::string& value) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void SnapshotsReply::add_files(std::string&& value) { - files_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:remote.SnapshotsReply.files) +inline void HistoryRangeReq::set_page_token(std::string&& value) { + + page_token_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.HistoryRangeReq.page_token) } -inline void SnapshotsReply::add_files(const char* value) { +inline void HistoryRangeReq::set_page_token(const char* value) { GOOGLE_DCHECK(value != nullptr); - files_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:remote.SnapshotsReply.files) + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.HistoryRangeReq.page_token) } -inline void SnapshotsReply::add_files(const char* value, size_t size) { - files_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:remote.SnapshotsReply.files) +inline void HistoryRangeReq::set_page_token(const char* value, + size_t size) { + + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.HistoryRangeReq.page_token) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SnapshotsReply::files() const { - // @@protoc_insertion_point(field_list:remote.SnapshotsReply.files) - return files_; +inline std::string* HistoryRangeReq::_internal_mutable_page_token() { + + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SnapshotsReply::mutable_files() { - // @@protoc_insertion_point(field_mutable_list:remote.SnapshotsReply.files) - return &files_; +inline std::string* HistoryRangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.HistoryRangeReq.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HistoryRangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.HistoryRangeReq.page_token) } // ------------------------------------------------------------------- -// HistoryGetReq +// DomainRangeReq -// uint64 txID = 1; -inline void HistoryGetReq::clear_txid() { - txid_ = PROTOBUF_ULONGLONG(0); +// uint64 tx_id = 1; +inline void DomainRangeReq::clear_tx_id() { + tx_id_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::_internal_txid() const { - return txid_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainRangeReq::_internal_tx_id() const { + return tx_id_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::txid() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.txID) - return _internal_txid(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainRangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.tx_id) + return _internal_tx_id(); } -inline void HistoryGetReq::_internal_set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void DomainRangeReq::_internal_set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { - txid_ = value; + tx_id_ = value; } -inline void HistoryGetReq::set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_txid(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.txID) +inline void DomainRangeReq::set_tx_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.tx_id) } -// string name = 2; -inline void HistoryGetReq::clear_name() { - name_.ClearToEmpty(); +// string table = 2; +inline void DomainRangeReq::clear_table() { + table_.ClearToEmpty(); } -inline const std::string& HistoryGetReq::name() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.name) - return _internal_name(); +inline const std::string& DomainRangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.table) + return _internal_table(); } -inline void HistoryGetReq::set_name(const std::string& value) { - _internal_set_name(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.name) +inline void DomainRangeReq::set_table(const std::string& value) { + _internal_set_table(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.table) } -inline std::string* HistoryGetReq::mutable_name() { - // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.name) - return _internal_mutable_name(); +inline std::string* DomainRangeReq::mutable_table() { + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.table) + return _internal_mutable_table(); } -inline const std::string& HistoryGetReq::_internal_name() const { - return name_.Get(); +inline const std::string& DomainRangeReq::_internal_table() const { + return table_.Get(); } -inline void HistoryGetReq::_internal_set_name(const std::string& value) { +inline void DomainRangeReq::_internal_set_table(const std::string& value) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void HistoryGetReq::set_name(std::string&& value) { +inline void DomainRangeReq::set_table(std::string&& value) { - name_.Set( + table_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.HistoryGetReq.name) + // @@protoc_insertion_point(field_set_rvalue:remote.DomainRangeReq.table) } -inline void HistoryGetReq::set_name(const char* value) { +inline void DomainRangeReq::set_table(const char* value) { GOOGLE_DCHECK(value != nullptr); - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.HistoryGetReq.name) + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.DomainRangeReq.table) } -inline void HistoryGetReq::set_name(const char* value, +inline void DomainRangeReq::set_table(const char* value, size_t size) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + table_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.HistoryGetReq.name) + // @@protoc_insertion_point(field_set_pointer:remote.DomainRangeReq.table) } -inline std::string* HistoryGetReq::_internal_mutable_name() { +inline std::string* DomainRangeReq::_internal_mutable_table() { - return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return table_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* HistoryGetReq::release_name() { - // @@protoc_insertion_point(field_release:remote.HistoryGetReq.name) - return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* DomainRangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.table) + return table_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void HistoryGetReq::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void DomainRangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { } else { } - name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + table_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.name) + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.table) } -// bytes k = 3; -inline void HistoryGetReq::clear_k() { - k_.ClearToEmpty(); +// bytes from_key = 3; +inline void DomainRangeReq::clear_from_key() { + from_key_.ClearToEmpty(); } -inline const std::string& HistoryGetReq::k() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.k) - return _internal_k(); +inline const std::string& DomainRangeReq::from_key() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.from_key) + return _internal_from_key(); } -inline void HistoryGetReq::set_k(const std::string& value) { - _internal_set_k(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.k) +inline void DomainRangeReq::set_from_key(const std::string& value) { + _internal_set_from_key(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.from_key) } -inline std::string* HistoryGetReq::mutable_k() { - // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.k) - return _internal_mutable_k(); +inline std::string* DomainRangeReq::mutable_from_key() { + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.from_key) + return _internal_mutable_from_key(); +} +inline const std::string& DomainRangeReq::_internal_from_key() const { + return from_key_.Get(); +} +inline void DomainRangeReq::_internal_set_from_key(const std::string& value) { + + from_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DomainRangeReq::set_from_key(std::string&& value) { + + from_key_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:remote.DomainRangeReq.from_key) +} +inline void DomainRangeReq::set_from_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + from_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.DomainRangeReq.from_key) +} +inline void DomainRangeReq::set_from_key(const void* value, + size_t size) { + + from_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:remote.DomainRangeReq.from_key) +} +inline std::string* DomainRangeReq::_internal_mutable_from_key() { + + return from_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DomainRangeReq::release_from_key() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.from_key) + return from_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DomainRangeReq::set_allocated_from_key(std::string* from_key) { + if (from_key != nullptr) { + + } else { + + } + from_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from_key, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.from_key) +} + +// bytes to_key = 4; +inline void DomainRangeReq::clear_to_key() { + to_key_.ClearToEmpty(); +} +inline const std::string& DomainRangeReq::to_key() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.to_key) + return _internal_to_key(); +} +inline void DomainRangeReq::set_to_key(const std::string& value) { + _internal_set_to_key(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.to_key) } -inline const std::string& HistoryGetReq::_internal_k() const { - return k_.Get(); +inline std::string* DomainRangeReq::mutable_to_key() { + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.to_key) + return _internal_mutable_to_key(); } -inline void HistoryGetReq::_internal_set_k(const std::string& value) { +inline const std::string& DomainRangeReq::_internal_to_key() const { + return to_key_.Get(); +} +inline void DomainRangeReq::_internal_set_to_key(const std::string& value) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + to_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void HistoryGetReq::set_k(std::string&& value) { +inline void DomainRangeReq::set_to_key(std::string&& value) { - k_.Set( + to_key_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.HistoryGetReq.k) + // @@protoc_insertion_point(field_set_rvalue:remote.DomainRangeReq.to_key) } -inline void HistoryGetReq::set_k(const char* value) { +inline void DomainRangeReq::set_to_key(const char* value) { GOOGLE_DCHECK(value != nullptr); - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.HistoryGetReq.k) + to_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.DomainRangeReq.to_key) } -inline void HistoryGetReq::set_k(const void* value, +inline void DomainRangeReq::set_to_key(const void* value, size_t size) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + to_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.HistoryGetReq.k) + // @@protoc_insertion_point(field_set_pointer:remote.DomainRangeReq.to_key) } -inline std::string* HistoryGetReq::_internal_mutable_k() { +inline std::string* DomainRangeReq::_internal_mutable_to_key() { - return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return to_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* HistoryGetReq::release_k() { - // @@protoc_insertion_point(field_release:remote.HistoryGetReq.k) - return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* DomainRangeReq::release_to_key() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.to_key) + return to_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void HistoryGetReq::set_allocated_k(std::string* k) { - if (k != nullptr) { +inline void DomainRangeReq::set_allocated_to_key(std::string* to_key) { + if (to_key != nullptr) { } else { } - k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, + to_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), to_key, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.k) + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.to_key) } -// uint64 ts = 4; -inline void HistoryGetReq::clear_ts() { +// uint64 ts = 5; +inline void DomainRangeReq::clear_ts() { ts_ = PROTOBUF_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::_internal_ts() const { +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainRangeReq::_internal_ts() const { return ts_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 HistoryGetReq::ts() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.ts) +inline ::PROTOBUF_NAMESPACE_ID::uint64 DomainRangeReq::ts() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.ts) return _internal_ts(); } -inline void HistoryGetReq::_internal_set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void DomainRangeReq::_internal_set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { ts_ = value; } -inline void HistoryGetReq::set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void DomainRangeReq::set_ts(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_ts(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.ts) + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.ts) } -// ------------------------------------------------------------------- +// bool latest = 6; +inline void DomainRangeReq::clear_latest() { + latest_ = false; +} +inline bool DomainRangeReq::_internal_latest() const { + return latest_; +} +inline bool DomainRangeReq::latest() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.latest) + return _internal_latest(); +} +inline void DomainRangeReq::_internal_set_latest(bool value) { + + latest_ = value; +} +inline void DomainRangeReq::set_latest(bool value) { + _internal_set_latest(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.latest) +} -// HistoryGetReply +// bool order_ascend = 7; +inline void DomainRangeReq::clear_order_ascend() { + order_ascend_ = false; +} +inline bool DomainRangeReq::_internal_order_ascend() const { + return order_ascend_; +} +inline bool DomainRangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.order_ascend) + return _internal_order_ascend(); +} +inline void DomainRangeReq::_internal_set_order_ascend(bool value) { + + order_ascend_ = value; +} +inline void DomainRangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.order_ascend) +} -// bytes v = 1; -inline void HistoryGetReply::clear_v() { - v_.ClearToEmpty(); +// sint64 limit = 8; +inline void DomainRangeReq::clear_limit() { + limit_ = PROTOBUF_LONGLONG(0); } -inline const std::string& HistoryGetReply::v() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReply.v) - return _internal_v(); +inline ::PROTOBUF_NAMESPACE_ID::int64 DomainRangeReq::_internal_limit() const { + return limit_; } -inline void HistoryGetReply::set_v(const std::string& value) { - _internal_set_v(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReply.v) +inline ::PROTOBUF_NAMESPACE_ID::int64 DomainRangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.limit) + return _internal_limit(); } -inline std::string* HistoryGetReply::mutable_v() { - // @@protoc_insertion_point(field_mutable:remote.HistoryGetReply.v) - return _internal_mutable_v(); +inline void DomainRangeReq::_internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + + limit_ = value; } -inline const std::string& HistoryGetReply::_internal_v() const { - return v_.Get(); +inline void DomainRangeReq::set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.limit) } -inline void HistoryGetReply::_internal_set_v(const std::string& value) { + +// int32 page_size = 9; +inline void DomainRangeReq::clear_page_size() { + page_size_ = 0; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 DomainRangeReq::_internal_page_size() const { + return page_size_; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 DomainRangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.page_size) + return _internal_page_size(); +} +inline void DomainRangeReq::_internal_set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { - v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + page_size_ = value; } -inline void HistoryGetReply::set_v(std::string&& value) { +inline void DomainRangeReq::set_page_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.page_size) +} + +// string page_token = 10; +inline void DomainRangeReq::clear_page_token() { + page_token_.ClearToEmpty(); +} +inline const std::string& DomainRangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.page_token) + return _internal_page_token(); +} +inline void DomainRangeReq::set_page_token(const std::string& value) { + _internal_set_page_token(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.page_token) +} +inline std::string* DomainRangeReq::mutable_page_token() { + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.page_token) + return _internal_mutable_page_token(); +} +inline const std::string& DomainRangeReq::_internal_page_token() const { + return page_token_.Get(); +} +inline void DomainRangeReq::_internal_set_page_token(const std::string& value) { - v_.Set( + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DomainRangeReq::set_page_token(std::string&& value) { + + page_token_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.HistoryGetReply.v) + // @@protoc_insertion_point(field_set_rvalue:remote.DomainRangeReq.page_token) } -inline void HistoryGetReply::set_v(const char* value) { +inline void DomainRangeReq::set_page_token(const char* value) { GOOGLE_DCHECK(value != nullptr); - v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.HistoryGetReply.v) + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.DomainRangeReq.page_token) } -inline void HistoryGetReply::set_v(const void* value, +inline void DomainRangeReq::set_page_token(const char* value, size_t size) { - v_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.HistoryGetReply.v) + // @@protoc_insertion_point(field_set_pointer:remote.DomainRangeReq.page_token) } -inline std::string* HistoryGetReply::_internal_mutable_v() { +inline std::string* DomainRangeReq::_internal_mutable_page_token() { - return v_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* HistoryGetReply::release_v() { - // @@protoc_insertion_point(field_release:remote.HistoryGetReply.v) - return v_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* DomainRangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.page_token) + return page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void HistoryGetReply::set_allocated_v(std::string* v) { - if (v != nullptr) { +inline void DomainRangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { } else { } - v_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), v, + page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), page_token, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReply.v) + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.page_token) } -// bool ok = 2; -inline void HistoryGetReply::clear_ok() { - ok_ = false; +// ------------------------------------------------------------------- + +// Pairs + +// repeated bytes keys = 1; +inline int Pairs::_internal_keys_size() const { + return keys_.size(); } -inline bool HistoryGetReply::_internal_ok() const { - return ok_; +inline int Pairs::keys_size() const { + return _internal_keys_size(); } -inline bool HistoryGetReply::ok() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReply.ok) - return _internal_ok(); +inline void Pairs::clear_keys() { + keys_.Clear(); } -inline void HistoryGetReply::_internal_set_ok(bool value) { - - ok_ = value; +inline std::string* Pairs::add_keys() { + // @@protoc_insertion_point(field_add_mutable:remote.Pairs.keys) + return _internal_add_keys(); } -inline void HistoryGetReply::set_ok(bool value) { - _internal_set_ok(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReply.ok) +inline const std::string& Pairs::_internal_keys(int index) const { + return keys_.Get(index); +} +inline const std::string& Pairs::keys(int index) const { + // @@protoc_insertion_point(field_get:remote.Pairs.keys) + return _internal_keys(index); +} +inline std::string* Pairs::mutable_keys(int index) { + // @@protoc_insertion_point(field_mutable:remote.Pairs.keys) + return keys_.Mutable(index); +} +inline void Pairs::set_keys(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:remote.Pairs.keys) + keys_.Mutable(index)->assign(value); +} +inline void Pairs::set_keys(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:remote.Pairs.keys) + keys_.Mutable(index)->assign(std::move(value)); +} +inline void Pairs::set_keys(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.Pairs.keys) +} +inline void Pairs::set_keys(int index, const void* value, size_t size) { + keys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.Pairs.keys) +} +inline std::string* Pairs::_internal_add_keys() { + return keys_.Add(); +} +inline void Pairs::add_keys(const std::string& value) { + keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.Pairs.keys) +} +inline void Pairs::add_keys(std::string&& value) { + keys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.Pairs.keys) +} +inline void Pairs::add_keys(const char* value) { + GOOGLE_DCHECK(value != nullptr); + keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.Pairs.keys) +} +inline void Pairs::add_keys(const void* value, size_t size) { + keys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.Pairs.keys) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Pairs::keys() const { + // @@protoc_insertion_point(field_list:remote.Pairs.keys) + return keys_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Pairs::mutable_keys() { + // @@protoc_insertion_point(field_mutable_list:remote.Pairs.keys) + return &keys_; } -// ------------------------------------------------------------------- - -// IndexRangeReq - -// uint64 txID = 1; -inline void IndexRangeReq::clear_txid() { - txid_ = PROTOBUF_ULONGLONG(0); +// repeated bytes values = 2; +inline int Pairs::_internal_values_size() const { + return values_.size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::_internal_txid() const { - return txid_; +inline int Pairs::values_size() const { + return _internal_values_size(); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::txid() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.txID) - return _internal_txid(); +inline void Pairs::clear_values() { + values_.Clear(); } -inline void IndexRangeReq::_internal_set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - txid_ = value; +inline std::string* Pairs::add_values() { + // @@protoc_insertion_point(field_add_mutable:remote.Pairs.values) + return _internal_add_values(); } -inline void IndexRangeReq::set_txid(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_txid(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.txID) +inline const std::string& Pairs::_internal_values(int index) const { + return values_.Get(index); +} +inline const std::string& Pairs::values(int index) const { + // @@protoc_insertion_point(field_get:remote.Pairs.values) + return _internal_values(index); +} +inline std::string* Pairs::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:remote.Pairs.values) + return values_.Mutable(index); +} +inline void Pairs::set_values(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:remote.Pairs.values) + values_.Mutable(index)->assign(value); +} +inline void Pairs::set_values(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:remote.Pairs.values) + values_.Mutable(index)->assign(std::move(value)); +} +inline void Pairs::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.Pairs.values) +} +inline void Pairs::set_values(int index, const void* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.Pairs.values) +} +inline std::string* Pairs::_internal_add_values() { + return values_.Add(); +} +inline void Pairs::add_values(const std::string& value) { + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.Pairs.values) +} +inline void Pairs::add_values(std::string&& value) { + values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.Pairs.values) +} +inline void Pairs::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.Pairs.values) +} +inline void Pairs::add_values(const void* value, size_t size) { + values_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.Pairs.values) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Pairs::values() const { + // @@protoc_insertion_point(field_list:remote.Pairs.values) + return values_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Pairs::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:remote.Pairs.values) + return &values_; } -// string name = 2; -inline void IndexRangeReq::clear_name() { - name_.ClearToEmpty(); +// string next_page_token = 3; +inline void Pairs::clear_next_page_token() { + next_page_token_.ClearToEmpty(); } -inline const std::string& IndexRangeReq::name() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.name) - return _internal_name(); +inline const std::string& Pairs::next_page_token() const { + // @@protoc_insertion_point(field_get:remote.Pairs.next_page_token) + return _internal_next_page_token(); } -inline void IndexRangeReq::set_name(const std::string& value) { - _internal_set_name(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.name) +inline void Pairs::set_next_page_token(const std::string& value) { + _internal_set_next_page_token(value); + // @@protoc_insertion_point(field_set:remote.Pairs.next_page_token) } -inline std::string* IndexRangeReq::mutable_name() { - // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.name) - return _internal_mutable_name(); +inline std::string* Pairs::mutable_next_page_token() { + // @@protoc_insertion_point(field_mutable:remote.Pairs.next_page_token) + return _internal_mutable_next_page_token(); } -inline const std::string& IndexRangeReq::_internal_name() const { - return name_.Get(); +inline const std::string& Pairs::_internal_next_page_token() const { + return next_page_token_.Get(); } -inline void IndexRangeReq::_internal_set_name(const std::string& value) { +inline void Pairs::_internal_set_next_page_token(const std::string& value) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void IndexRangeReq::set_name(std::string&& value) { +inline void Pairs::set_next_page_token(std::string&& value) { - name_.Set( + next_page_token_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.IndexRangeReq.name) + // @@protoc_insertion_point(field_set_rvalue:remote.Pairs.next_page_token) } -inline void IndexRangeReq::set_name(const char* value) { +inline void Pairs::set_next_page_token(const char* value) { GOOGLE_DCHECK(value != nullptr); - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.IndexRangeReq.name) + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.Pairs.next_page_token) } -inline void IndexRangeReq::set_name(const char* value, +inline void Pairs::set_next_page_token(const char* value, size_t size) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + next_page_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.IndexRangeReq.name) + // @@protoc_insertion_point(field_set_pointer:remote.Pairs.next_page_token) } -inline std::string* IndexRangeReq::_internal_mutable_name() { +inline std::string* Pairs::_internal_mutable_next_page_token() { - return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return next_page_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* IndexRangeReq::release_name() { - // @@protoc_insertion_point(field_release:remote.IndexRangeReq.name) - return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* Pairs::release_next_page_token() { + // @@protoc_insertion_point(field_release:remote.Pairs.next_page_token) + return next_page_token_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void IndexRangeReq::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Pairs::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { } else { } - name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + next_page_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_page_token, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.name) + // @@protoc_insertion_point(field_set_allocated:remote.Pairs.next_page_token) } -// bytes k = 3; -inline void IndexRangeReq::clear_k() { - k_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// ParisPagination + +// bytes next_key = 1; +inline void ParisPagination::clear_next_key() { + next_key_.ClearToEmpty(); } -inline const std::string& IndexRangeReq::k() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.k) - return _internal_k(); +inline const std::string& ParisPagination::next_key() const { + // @@protoc_insertion_point(field_get:remote.ParisPagination.next_key) + return _internal_next_key(); } -inline void IndexRangeReq::set_k(const std::string& value) { - _internal_set_k(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.k) +inline void ParisPagination::set_next_key(const std::string& value) { + _internal_set_next_key(value); + // @@protoc_insertion_point(field_set:remote.ParisPagination.next_key) } -inline std::string* IndexRangeReq::mutable_k() { - // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.k) - return _internal_mutable_k(); +inline std::string* ParisPagination::mutable_next_key() { + // @@protoc_insertion_point(field_mutable:remote.ParisPagination.next_key) + return _internal_mutable_next_key(); } -inline const std::string& IndexRangeReq::_internal_k() const { - return k_.Get(); +inline const std::string& ParisPagination::_internal_next_key() const { + return next_key_.Get(); } -inline void IndexRangeReq::_internal_set_k(const std::string& value) { +inline void ParisPagination::_internal_set_next_key(const std::string& value) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); + next_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); } -inline void IndexRangeReq::set_k(std::string&& value) { +inline void ParisPagination::set_next_key(std::string&& value) { - k_.Set( + next_key_.Set( ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:remote.IndexRangeReq.k) + // @@protoc_insertion_point(field_set_rvalue:remote.ParisPagination.next_key) } -inline void IndexRangeReq::set_k(const char* value) { +inline void ParisPagination::set_next_key(const char* value) { GOOGLE_DCHECK(value != nullptr); - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:remote.IndexRangeReq.k) + next_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:remote.ParisPagination.next_key) } -inline void IndexRangeReq::set_k(const void* value, +inline void ParisPagination::set_next_key(const void* value, size_t size) { - k_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + next_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:remote.IndexRangeReq.k) + // @@protoc_insertion_point(field_set_pointer:remote.ParisPagination.next_key) } -inline std::string* IndexRangeReq::_internal_mutable_k() { +inline std::string* ParisPagination::_internal_mutable_next_key() { - return k_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return next_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); } -inline std::string* IndexRangeReq::release_k() { - // @@protoc_insertion_point(field_release:remote.IndexRangeReq.k) - return k_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +inline std::string* ParisPagination::release_next_key() { + // @@protoc_insertion_point(field_release:remote.ParisPagination.next_key) + return next_key_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } -inline void IndexRangeReq::set_allocated_k(std::string* k) { - if (k != nullptr) { +inline void ParisPagination::set_allocated_next_key(std::string* next_key) { + if (next_key != nullptr) { } else { } - k_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), k, + next_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_key, GetArena()); - // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.k) -} - -// uint64 fromTs = 4; -inline void IndexRangeReq::clear_fromts() { - fromts_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::_internal_fromts() const { - return fromts_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::fromts() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.fromTs) - return _internal_fromts(); -} -inline void IndexRangeReq::_internal_set_fromts(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - fromts_ = value; -} -inline void IndexRangeReq::set_fromts(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_fromts(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.fromTs) + // @@protoc_insertion_point(field_set_allocated:remote.ParisPagination.next_key) } -// uint64 toTs = 5; -inline void IndexRangeReq::clear_tots() { - tots_ = PROTOBUF_ULONGLONG(0); +// sint64 limit = 2; +inline void ParisPagination::clear_limit() { + limit_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::_internal_tots() const { - return tots_; +inline ::PROTOBUF_NAMESPACE_ID::int64 ParisPagination::_internal_limit() const { + return limit_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReq::tots() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.toTs) - return _internal_tots(); +inline ::PROTOBUF_NAMESPACE_ID::int64 ParisPagination::limit() const { + // @@protoc_insertion_point(field_get:remote.ParisPagination.limit) + return _internal_limit(); } -inline void IndexRangeReq::_internal_set_tots(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void ParisPagination::_internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { - tots_ = value; + limit_ = value; } -inline void IndexRangeReq::set_tots(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_tots(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.toTs) +inline void ParisPagination::set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.ParisPagination.limit) } // ------------------------------------------------------------------- -// IndexRangeReply +// IndexPagination -// repeated uint64 timestamps = 1; -inline int IndexRangeReply::_internal_timestamps_size() const { - return timestamps_.size(); -} -inline int IndexRangeReply::timestamps_size() const { - return _internal_timestamps_size(); -} -inline void IndexRangeReply::clear_timestamps() { - timestamps_.Clear(); +// sint64 next_time_stamp = 1; +inline void IndexPagination::clear_next_time_stamp() { + next_time_stamp_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReply::_internal_timestamps(int index) const { - return timestamps_.Get(index); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexPagination::_internal_next_time_stamp() const { + return next_time_stamp_; } -inline ::PROTOBUF_NAMESPACE_ID::uint64 IndexRangeReply::timestamps(int index) const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReply.timestamps) - return _internal_timestamps(index); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexPagination::next_time_stamp() const { + // @@protoc_insertion_point(field_get:remote.IndexPagination.next_time_stamp) + return _internal_next_time_stamp(); } -inline void IndexRangeReply::set_timestamps(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value) { - timestamps_.Set(index, value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReply.timestamps) +inline void IndexPagination::_internal_set_next_time_stamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + + next_time_stamp_ = value; } -inline void IndexRangeReply::_internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value) { - timestamps_.Add(value); +inline void IndexPagination::set_next_time_stamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_next_time_stamp(value); + // @@protoc_insertion_point(field_set:remote.IndexPagination.next_time_stamp) } -inline void IndexRangeReply::add_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_add_timestamps(value); - // @@protoc_insertion_point(field_add:remote.IndexRangeReply.timestamps) + +// sint64 limit = 2; +inline void IndexPagination::clear_limit() { + limit_ = PROTOBUF_LONGLONG(0); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& -IndexRangeReply::_internal_timestamps() const { - return timestamps_; +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexPagination::_internal_limit() const { + return limit_; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& -IndexRangeReply::timestamps() const { - // @@protoc_insertion_point(field_list:remote.IndexRangeReply.timestamps) - return _internal_timestamps(); +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexPagination::limit() const { + // @@protoc_insertion_point(field_get:remote.IndexPagination.limit) + return _internal_limit(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* -IndexRangeReply::_internal_mutable_timestamps() { - return ×tamps_; +inline void IndexPagination::_internal_set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + + limit_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* -IndexRangeReply::mutable_timestamps() { - // @@protoc_insertion_point(field_mutable_list:remote.IndexRangeReply.timestamps) - return _internal_mutable_timestamps(); +inline void IndexPagination::set_limit(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.IndexPagination.limit) } #ifdef __GNUC__ @@ -4305,6 +7897,22 @@ IndexRangeReply::mutable_timestamps() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/silkworm/interfaces/3.14.0/remote/kv_mock.grpc.pb.h b/silkworm/interfaces/3.14.0/remote/kv_mock.grpc.pb.h index 19b7f0ffa9..15009f09b0 100644 --- a/silkworm/interfaces/3.14.0/remote/kv_mock.grpc.pb.h +++ b/silkworm/interfaces/3.14.0/remote/kv_mock.grpc.pb.h @@ -24,12 +24,24 @@ class MockKVStub : public KV::StubInterface { MOCK_METHOD3(Snapshots, ::grpc::Status(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::remote::SnapshotsReply* response)); MOCK_METHOD3(AsyncSnapshotsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>*(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncSnapshotsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>*(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(Range, ::grpc::Status(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response)); + MOCK_METHOD3(AsyncRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(DomainGet, ::grpc::Status(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response)); + MOCK_METHOD3(AsyncDomainGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>*(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncDomainGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>*(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(HistoryGet, ::grpc::Status(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response)); MOCK_METHOD3(AsyncHistoryGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>*(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncHistoryGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>*(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD2(IndexRangeRaw, ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request)); - MOCK_METHOD4(AsyncIndexRangeRaw, ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag)); - MOCK_METHOD3(PrepareAsyncIndexRangeRaw, ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(IndexRange, ::grpc::Status(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response)); + MOCK_METHOD3(AsyncIndexRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncIndexRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(HistoryRange, ::grpc::Status(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response)); + MOCK_METHOD3(AsyncHistoryRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncHistoryRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(DomainRange, ::grpc::Status(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response)); + MOCK_METHOD3(AsyncDomainRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncDomainRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq)); }; } // namespace remote diff --git a/silkworm/interfaces/3.14.0/types/types.pb.cc b/silkworm/interfaces/3.14.0/types/types.pb.cc index e4120aec77..382c693b9a 100644 --- a/silkworm/interfaces/3.14.0/types/types.pb.cc +++ b/silkworm/interfaces/3.14.0/types/types.pb.cc @@ -14,7 +14,6 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_ExecutionPayload_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H1024_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_H128_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H160_types_2ftypes_2eproto; @@ -22,7 +21,7 @@ extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::i extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H256_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_H512_types_2ftypes_2eproto; extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NodeInfoPorts_types_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Withdrawal_types_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_types_2ftypes_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Withdrawal_types_2ftypes_2eproto; namespace types { class H128DefaultTypeInternal { public: @@ -60,10 +59,10 @@ class WithdrawalDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Withdrawal_default_instance_; -class ExecutionPayloadV2DefaultTypeInternal { +class BlobsBundleV1DefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ExecutionPayloadV2_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BlobsBundleV1_default_instance_; class NodeInfoPortsDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -76,7 +75,25 @@ class PeerInfoDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PeerInfo_default_instance_; +class ExecutionPayloadBodyV1DefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ExecutionPayloadBodyV1_default_instance_; } // namespace types +static void InitDefaultsscc_info_BlobsBundleV1_types_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::types::_BlobsBundleV1_default_instance_; + new (ptr) ::types::BlobsBundleV1(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BlobsBundleV1_types_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_BlobsBundleV1_types_2ftypes_2eproto}, { + &scc_info_H256_types_2ftypes_2eproto.base,}}; + static void InitDefaultsscc_info_ExecutionPayload_types_2ftypes_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -87,25 +104,25 @@ static void InitDefaultsscc_info_ExecutionPayload_types_2ftypes_2eproto() { } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_ExecutionPayload_types_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_ExecutionPayload_types_2ftypes_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_ExecutionPayload_types_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_ExecutionPayload_types_2ftypes_2eproto}, { &scc_info_H256_types_2ftypes_2eproto.base, &scc_info_H160_types_2ftypes_2eproto.base, - &scc_info_H2048_types_2ftypes_2eproto.base,}}; + &scc_info_H2048_types_2ftypes_2eproto.base, + &scc_info_Withdrawal_types_2ftypes_2eproto.base,}}; -static void InitDefaultsscc_info_ExecutionPayloadV2_types_2ftypes_2eproto() { +static void InitDefaultsscc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::types::_ExecutionPayloadV2_default_instance_; - new (ptr) ::types::ExecutionPayloadV2(); + void* ptr = &::types::_ExecutionPayloadBodyV1_default_instance_; + new (ptr) ::types::ExecutionPayloadBodyV1(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ExecutionPayloadV2_types_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ExecutionPayloadV2_types_2ftypes_2eproto}, { - &scc_info_ExecutionPayload_types_2ftypes_2eproto.base, +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto}, { &scc_info_Withdrawal_types_2ftypes_2eproto.base,}}; static void InitDefaultsscc_info_H1024_types_2ftypes_2eproto() { @@ -254,12 +271,11 @@ static void InitDefaultsscc_info_Withdrawal_types_2ftypes_2eproto() { } } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Withdrawal_types_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Withdrawal_types_2ftypes_2eproto}, { - &scc_info_H160_types_2ftypes_2eproto.base, - &scc_info_H256_types_2ftypes_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Withdrawal_types_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Withdrawal_types_2ftypes_2eproto}, { + &scc_info_H160_types_2ftypes_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_types_2ftypes_2eproto[13]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_types_2ftypes_2eproto[14]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_types_2ftypes_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_types_2ftypes_2eproto = nullptr; @@ -319,6 +335,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_types_2ftypes_2eproto::offsets ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, version_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, parenthash_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, coinbase_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, stateroot_), @@ -333,6 +350,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_types_2ftypes_2eproto::offsets PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, basefeepergas_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, blockhash_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, transactions_), + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, withdrawals_), + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, excessdatagas_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::types::Withdrawal, _internal_metadata_), ~0u, // no _extensions_ @@ -343,12 +362,13 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_types_2ftypes_2eproto::offsets PROTOBUF_FIELD_OFFSET(::types::Withdrawal, address_), PROTOBUF_FIELD_OFFSET(::types::Withdrawal, amount_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadV2, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadV2, payload_), - PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadV2, withdrawals_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, blockhash_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, kzgs_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, blobs_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::types::NodeInfoPorts, _internal_metadata_), ~0u, // no _extensions_ @@ -383,6 +403,13 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_types_2ftypes_2eproto::offsets PROTOBUF_FIELD_OFFSET(::types::PeerInfo, connisinbound_), PROTOBUF_FIELD_OFFSET(::types::PeerInfo, connistrusted_), PROTOBUF_FIELD_OFFSET(::types::PeerInfo, connisstatic_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadBodyV1, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadBodyV1, transactions_), + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadBodyV1, withdrawals_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::types::H128)}, @@ -393,11 +420,12 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 35, -1, sizeof(::types::H2048)}, { 42, -1, sizeof(::types::VersionReply)}, { 50, -1, sizeof(::types::ExecutionPayload)}, - { 69, -1, sizeof(::types::Withdrawal)}, - { 78, -1, sizeof(::types::ExecutionPayloadV2)}, - { 85, -1, sizeof(::types::NodeInfoPorts)}, - { 92, -1, sizeof(::types::NodeInfoReply)}, - { 104, -1, sizeof(::types::PeerInfo)}, + { 72, -1, sizeof(::types::Withdrawal)}, + { 81, -1, sizeof(::types::BlobsBundleV1)}, + { 89, -1, sizeof(::types::NodeInfoPorts)}, + { 96, -1, sizeof(::types::NodeInfoReply)}, + { 108, -1, sizeof(::types::PeerInfo)}, + { 123, -1, sizeof(::types::ExecutionPayloadBodyV1)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -410,10 +438,11 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::types::_VersionReply_default_instance_), reinterpret_cast(&::types::_ExecutionPayload_default_instance_), reinterpret_cast(&::types::_Withdrawal_default_instance_), - reinterpret_cast(&::types::_ExecutionPayloadV2_default_instance_), + reinterpret_cast(&::types::_BlobsBundleV1_default_instance_), reinterpret_cast(&::types::_NodeInfoPorts_default_instance_), reinterpret_cast(&::types::_NodeInfoReply_default_instance_), reinterpret_cast(&::types::_PeerInfo_default_instance_), + reinterpret_cast(&::types::_ExecutionPayloadBodyV1_default_instance_), }; const char descriptor_table_protodef_types_2ftypes_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -427,45 +456,50 @@ const char descriptor_table_protodef_types_2ftypes_2eproto[] PROTOBUF_SECTION_VA "es.H512\022\027\n\002lo\030\002 \001(\0132\013.types.H512\";\n\005H204" "8\022\030\n\002hi\030\001 \001(\0132\014.types.H1024\022\030\n\002lo\030\002 \001(\0132" "\014.types.H1024\";\n\014VersionReply\022\r\n\005major\030\001" - " \001(\r\022\r\n\005minor\030\002 \001(\r\022\r\n\005patch\030\003 \001(\r\"\216\003\n\020E" - "xecutionPayload\022\037\n\nparentHash\030\001 \001(\0132\013.ty" - "pes.H256\022\035\n\010coinbase\030\002 \001(\0132\013.types.H160\022" - "\036\n\tstateRoot\030\003 \001(\0132\013.types.H256\022 \n\013recei" - "ptRoot\030\004 \001(\0132\013.types.H256\022\037\n\tlogsBloom\030\005" - " \001(\0132\014.types.H2048\022\037\n\nprevRandao\030\006 \001(\0132\013" - ".types.H256\022\023\n\013blockNumber\030\007 \001(\004\022\020\n\010gasL" - "imit\030\010 \001(\004\022\017\n\007gasUsed\030\t \001(\004\022\021\n\ttimestamp" - "\030\n \001(\004\022\021\n\textraData\030\013 \001(\014\022\"\n\rbaseFeePerG" - "as\030\014 \001(\0132\013.types.H256\022\036\n\tblockHash\030\r \001(\013" - "2\013.types.H256\022\024\n\014transactions\030\016 \003(\014\"n\n\nW" - "ithdrawal\022\r\n\005index\030\001 \001(\004\022\026\n\016validatorInd" - "ex\030\002 \001(\004\022\034\n\007address\030\003 \001(\0132\013.types.H160\022\033" - "\n\006amount\030\004 \001(\0132\013.types.H256\"f\n\022Execution" - "PayloadV2\022(\n\007payload\030\001 \001(\0132\027.types.Execu" - "tionPayload\022&\n\013withdrawals\030\002 \003(\0132\021.types" - ".Withdrawal\"4\n\rNodeInfoPorts\022\021\n\tdiscover" - "y\030\001 \001(\r\022\020\n\010listener\030\002 \001(\r\"\223\001\n\rNodeInfoRe" - "ply\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005enode\030\003" - " \001(\t\022\013\n\003enr\030\004 \001(\t\022#\n\005ports\030\005 \001(\0132\024.types" - ".NodeInfoPorts\022\024\n\014listenerAddr\030\006 \001(\t\022\021\n\t" - "protocols\030\007 \001(\014\"\301\001\n\010PeerInfo\022\n\n\002id\030\001 \001(\t" - "\022\014\n\004name\030\002 \001(\t\022\r\n\005enode\030\003 \001(\t\022\013\n\003enr\030\004 \001" - "(\t\022\014\n\004caps\030\005 \003(\t\022\025\n\rconnLocalAddr\030\006 \001(\t\022" - "\026\n\016connRemoteAddr\030\007 \001(\t\022\025\n\rconnIsInbound" - "\030\010 \001(\010\022\025\n\rconnIsTrusted\030\t \001(\010\022\024\n\014connIsS" - "tatic\030\n \001(\010:=\n\025service_major_version\022\034.g" - "oogle.protobuf.FileOptions\030\321\206\003 \001(\r:=\n\025se" - "rvice_minor_version\022\034.google.protobuf.Fi" - "leOptions\030\322\206\003 \001(\r:=\n\025service_patch_versi" - "on\022\034.google.protobuf.FileOptions\030\323\206\003 \001(\r" - "B\017Z\r./types;typesb\006proto3" + " \001(\r\022\r\n\005minor\030\002 \001(\r\022\r\n\005patch\030\003 \001(\r\"\353\003\n\020E" + "xecutionPayload\022\017\n\007version\030\001 \001(\r\022\037\n\npare" + "ntHash\030\002 \001(\0132\013.types.H256\022\035\n\010coinbase\030\003 " + "\001(\0132\013.types.H160\022\036\n\tstateRoot\030\004 \001(\0132\013.ty" + "pes.H256\022 \n\013receiptRoot\030\005 \001(\0132\013.types.H2" + "56\022\037\n\tlogsBloom\030\006 \001(\0132\014.types.H2048\022\037\n\np" + "revRandao\030\007 \001(\0132\013.types.H256\022\023\n\013blockNum" + "ber\030\010 \001(\004\022\020\n\010gasLimit\030\t \001(\004\022\017\n\007gasUsed\030\n" + " \001(\004\022\021\n\ttimestamp\030\013 \001(\004\022\021\n\textraData\030\014 \001" + "(\014\022\"\n\rbaseFeePerGas\030\r \001(\0132\013.types.H256\022\036" + "\n\tblockHash\030\016 \001(\0132\013.types.H256\022\024\n\014transa" + "ctions\030\017 \003(\014\022&\n\013withdrawals\030\020 \003(\0132\021.type" + "s.Withdrawal\022\"\n\rexcessDataGas\030\021 \001(\0132\013.ty" + "pes.H256\"a\n\nWithdrawal\022\r\n\005index\030\001 \001(\004\022\026\n" + "\016validatorIndex\030\002 \001(\004\022\034\n\007address\030\003 \001(\0132\013" + ".types.H160\022\016\n\006amount\030\004 \001(\004\"L\n\rBlobsBund" + "leV1\022\036\n\tblockHash\030\001 \001(\0132\013.types.H256\022\014\n\004" + "kzgs\030\002 \003(\014\022\r\n\005blobs\030\003 \003(\014\"4\n\rNodeInfoPor" + "ts\022\021\n\tdiscovery\030\001 \001(\r\022\020\n\010listener\030\002 \001(\r\"" + "\223\001\n\rNodeInfoReply\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 " + "\001(\t\022\r\n\005enode\030\003 \001(\t\022\013\n\003enr\030\004 \001(\t\022#\n\005ports" + "\030\005 \001(\0132\024.types.NodeInfoPorts\022\024\n\014listener" + "Addr\030\006 \001(\t\022\021\n\tprotocols\030\007 \001(\014\"\301\001\n\010PeerIn" + "fo\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005enode\030\003 " + "\001(\t\022\013\n\003enr\030\004 \001(\t\022\014\n\004caps\030\005 \003(\t\022\025\n\rconnLo" + "calAddr\030\006 \001(\t\022\026\n\016connRemoteAddr\030\007 \001(\t\022\025\n" + "\rconnIsInbound\030\010 \001(\010\022\025\n\rconnIsTrusted\030\t " + "\001(\010\022\024\n\014connIsStatic\030\n \001(\010\"V\n\026ExecutionPa" + "yloadBodyV1\022\024\n\014transactions\030\001 \003(\014\022&\n\013wit" + "hdrawals\030\002 \003(\0132\021.types.Withdrawal:=\n\025ser" + "vice_major_version\022\034.google.protobuf.Fil" + "eOptions\030\321\206\003 \001(\r:=\n\025service_minor_versio" + "n\022\034.google.protobuf.FileOptions\030\322\206\003 \001(\r:" + "=\n\025service_patch_version\022\034.google.protob" + "uf.FileOptions\030\323\206\003 \001(\rB\017Z\r./types;typesb" + "\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_types_2ftypes_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_types_2ftypes_2eproto_sccs[13] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_types_2ftypes_2eproto_sccs[14] = { + &scc_info_BlobsBundleV1_types_2ftypes_2eproto.base, &scc_info_ExecutionPayload_types_2ftypes_2eproto.base, - &scc_info_ExecutionPayloadV2_types_2ftypes_2eproto.base, + &scc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto.base, &scc_info_H1024_types_2ftypes_2eproto.base, &scc_info_H128_types_2ftypes_2eproto.base, &scc_info_H160_types_2ftypes_2eproto.base, @@ -480,10 +514,10 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_typ }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_types_2ftypes_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_types_2ftypes_2eproto = { - false, false, descriptor_table_protodef_types_2ftypes_2eproto, "types/types.proto", 1665, - &descriptor_table_types_2ftypes_2eproto_once, descriptor_table_types_2ftypes_2eproto_sccs, descriptor_table_types_2ftypes_2eproto_deps, 13, 1, + false, false, descriptor_table_protodef_types_2ftypes_2eproto, "types/types.proto", 1807, + &descriptor_table_types_2ftypes_2eproto_once, descriptor_table_types_2ftypes_2eproto_sccs, descriptor_table_types_2ftypes_2eproto_deps, 14, 1, schemas, file_default_instances, TableStruct_types_2ftypes_2eproto::offsets, - file_level_metadata_types_2ftypes_2eproto, 13, file_level_enum_descriptors_types_2ftypes_2eproto, file_level_service_descriptors_types_2ftypes_2eproto, + file_level_metadata_types_2ftypes_2eproto, 14, file_level_enum_descriptors_types_2ftypes_2eproto, file_level_service_descriptors_types_2ftypes_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -2258,6 +2292,7 @@ class ExecutionPayload::_Internal { static const ::types::H256& prevrandao(const ExecutionPayload* msg); static const ::types::H256& basefeepergas(const ExecutionPayload* msg); static const ::types::H256& blockhash(const ExecutionPayload* msg); + static const ::types::H256& excessdatagas(const ExecutionPayload* msg); }; const ::types::H256& @@ -2292,16 +2327,22 @@ const ::types::H256& ExecutionPayload::_Internal::blockhash(const ExecutionPayload* msg) { return *msg->blockhash_; } +const ::types::H256& +ExecutionPayload::_Internal::excessdatagas(const ExecutionPayload* msg) { + return *msg->excessdatagas_; +} ExecutionPayload::ExecutionPayload(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), - transactions_(arena) { + transactions_(arena), + withdrawals_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:types.ExecutionPayload) } ExecutionPayload::ExecutionPayload(const ExecutionPayload& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - transactions_(from.transactions_) { + transactions_(from.transactions_), + withdrawals_(from.withdrawals_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); extradata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_extradata().empty()) { @@ -2348,9 +2389,14 @@ ExecutionPayload::ExecutionPayload(const ExecutionPayload& from) } else { blockhash_ = nullptr; } + if (from._internal_has_excessdatagas()) { + excessdatagas_ = new ::types::H256(*from.excessdatagas_); + } else { + excessdatagas_ = nullptr; + } ::memcpy(&blocknumber_, &from.blocknumber_, - static_cast(reinterpret_cast(×tamp_) - - reinterpret_cast(&blocknumber_)) + sizeof(timestamp_)); + static_cast(reinterpret_cast(&version_) - + reinterpret_cast(&blocknumber_)) + sizeof(version_)); // @@protoc_insertion_point(copy_constructor:types.ExecutionPayload) } @@ -2359,8 +2405,8 @@ void ExecutionPayload::SharedCtor() { extradata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&parenthash_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(×tamp_) - - reinterpret_cast(&parenthash_)) + sizeof(timestamp_)); + 0, static_cast(reinterpret_cast(&version_) - + reinterpret_cast(&parenthash_)) + sizeof(version_)); } ExecutionPayload::~ExecutionPayload() { @@ -2380,6 +2426,7 @@ void ExecutionPayload::SharedDtor() { if (this != internal_default_instance()) delete prevrandao_; if (this != internal_default_instance()) delete basefeepergas_; if (this != internal_default_instance()) delete blockhash_; + if (this != internal_default_instance()) delete excessdatagas_; } void ExecutionPayload::ArenaDtor(void* object) { @@ -2404,6 +2451,7 @@ void ExecutionPayload::Clear() { (void) cached_has_bits; transactions_.Clear(); + withdrawals_.Clear(); extradata_.ClearToEmpty(); if (GetArena() == nullptr && parenthash_ != nullptr) { delete parenthash_; @@ -2437,9 +2485,13 @@ void ExecutionPayload::Clear() { delete blockhash_; } blockhash_ = nullptr; + if (GetArena() == nullptr && excessdatagas_ != nullptr) { + delete excessdatagas_; + } + excessdatagas_ = nullptr; ::memset(&blocknumber_, 0, static_cast( - reinterpret_cast(×tamp_) - - reinterpret_cast(&blocknumber_)) + sizeof(timestamp_)); + reinterpret_cast(&version_) - + reinterpret_cast(&blocknumber_)) + sizeof(version_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2450,101 +2502,108 @@ const char* ExecutionPayload::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .types.H256 parentHash = 1; + // uint32 version = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_parenthash(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H160 coinbase = 2; + // .types.H256 parentHash = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_coinbase(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_parenthash(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 stateRoot = 3; + // .types.H160 coinbase = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_stateroot(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_coinbase(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 receiptRoot = 4; + // .types.H256 stateRoot = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_receiptroot(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_stateroot(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H2048 logsBloom = 5; + // .types.H256 receiptRoot = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_logsbloom(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_receiptroot(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 prevRandao = 6; + // .types.H2048 logsBloom = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_logsbloom(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 blockNumber = 7; + // .types.H256 prevRandao = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - blocknumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 gasLimit = 8; + // uint64 blockNumber = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { - gaslimit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + blocknumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 gasUsed = 9; + // uint64 gasLimit = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - gasused_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + gaslimit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 timestamp = 10; + // uint64 gasUsed = 10; case 10: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + gasused_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // bytes extraData = 11; + // uint64 timestamp = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { - auto str = _internal_mutable_extradata(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 baseFeePerGas = 12; + // bytes extraData = 12; case 12: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_basefeepergas(), ptr); + auto str = _internal_mutable_extradata(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 blockHash = 13; + // .types.H256 baseFeePerGas = 13; case 13: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { - ptr = ctx->ParseMessage(_internal_mutable_blockhash(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_basefeepergas(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // repeated bytes transactions = 14; + // .types.H256 blockHash = 14; case 14: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_blockhash(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated bytes transactions = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { ptr -= 1; do { ptr += 1; @@ -2552,7 +2611,26 @@ const char* ExecutionPayload::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr)); + } else goto handle_unusual; + continue; + // repeated .types.Withdrawal withdrawals = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<130>(ptr)); + } else goto handle_unusual; + continue; + // .types.H256 excessDataGas = 17; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + ptr = ctx->ParseMessage(_internal_mutable_excessdatagas(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; default: { @@ -2583,104 +2661,126 @@ ::PROTOBUF_NAMESPACE_ID::uint8* ExecutionPayload::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .types.H256 parentHash = 1; + // uint32 version = 1; + if (this->version() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_version(), target); + } + + // .types.H256 parentHash = 2; if (this->has_parenthash()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 1, _Internal::parenthash(this), target, stream); + 2, _Internal::parenthash(this), target, stream); } - // .types.H160 coinbase = 2; + // .types.H160 coinbase = 3; if (this->has_coinbase()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 2, _Internal::coinbase(this), target, stream); + 3, _Internal::coinbase(this), target, stream); } - // .types.H256 stateRoot = 3; + // .types.H256 stateRoot = 4; if (this->has_stateroot()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 3, _Internal::stateroot(this), target, stream); + 4, _Internal::stateroot(this), target, stream); } - // .types.H256 receiptRoot = 4; + // .types.H256 receiptRoot = 5; if (this->has_receiptroot()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 4, _Internal::receiptroot(this), target, stream); + 5, _Internal::receiptroot(this), target, stream); } - // .types.H2048 logsBloom = 5; + // .types.H2048 logsBloom = 6; if (this->has_logsbloom()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 5, _Internal::logsbloom(this), target, stream); + 6, _Internal::logsbloom(this), target, stream); } - // .types.H256 prevRandao = 6; + // .types.H256 prevRandao = 7; if (this->has_prevrandao()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 6, _Internal::prevrandao(this), target, stream); + 7, _Internal::prevrandao(this), target, stream); } - // uint64 blockNumber = 7; + // uint64 blockNumber = 8; if (this->blocknumber() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(7, this->_internal_blocknumber(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(8, this->_internal_blocknumber(), target); } - // uint64 gasLimit = 8; + // uint64 gasLimit = 9; if (this->gaslimit() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(8, this->_internal_gaslimit(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_gaslimit(), target); } - // uint64 gasUsed = 9; + // uint64 gasUsed = 10; if (this->gasused() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_gasused(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(10, this->_internal_gasused(), target); } - // uint64 timestamp = 10; + // uint64 timestamp = 11; if (this->timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(10, this->_internal_timestamp(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(11, this->_internal_timestamp(), target); } - // bytes extraData = 11; + // bytes extraData = 12; if (this->extradata().size() > 0) { target = stream->WriteBytesMaybeAliased( - 11, this->_internal_extradata(), target); + 12, this->_internal_extradata(), target); } - // .types.H256 baseFeePerGas = 12; + // .types.H256 baseFeePerGas = 13; if (this->has_basefeepergas()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 12, _Internal::basefeepergas(this), target, stream); + 13, _Internal::basefeepergas(this), target, stream); } - // .types.H256 blockHash = 13; + // .types.H256 blockHash = 14; if (this->has_blockhash()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 13, _Internal::blockhash(this), target, stream); + 14, _Internal::blockhash(this), target, stream); } - // repeated bytes transactions = 14; + // repeated bytes transactions = 15; for (int i = 0, n = this->_internal_transactions_size(); i < n; i++) { const auto& s = this->_internal_transactions(i); - target = stream->WriteBytes(14, s, target); + target = stream->WriteBytes(15, s, target); + } + + // repeated .types.Withdrawal withdrawals = 16; + for (unsigned int i = 0, + n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(16, this->_internal_withdrawals(i), target, stream); + } + + // .types.H256 excessDataGas = 17; + if (this->has_excessdatagas()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 17, _Internal::excessdatagas(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2699,7 +2799,7 @@ size_t ExecutionPayload::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated bytes transactions = 14; + // repeated bytes transactions = 15; total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(transactions_.size()); for (int i = 0, n = transactions_.size(); i < n; i++) { @@ -2707,97 +2807,118 @@ size_t ExecutionPayload::ByteSizeLong() const { transactions_.Get(i)); } - // bytes extraData = 11; + // repeated .types.Withdrawal withdrawals = 16; + total_size += 2UL * this->_internal_withdrawals_size(); + for (const auto& msg : this->withdrawals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // bytes extraData = 12; if (this->extradata().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_extradata()); } - // .types.H256 parentHash = 1; + // .types.H256 parentHash = 2; if (this->has_parenthash()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *parenthash_); } - // .types.H160 coinbase = 2; + // .types.H160 coinbase = 3; if (this->has_coinbase()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *coinbase_); } - // .types.H256 stateRoot = 3; + // .types.H256 stateRoot = 4; if (this->has_stateroot()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *stateroot_); } - // .types.H256 receiptRoot = 4; + // .types.H256 receiptRoot = 5; if (this->has_receiptroot()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *receiptroot_); } - // .types.H2048 logsBloom = 5; + // .types.H2048 logsBloom = 6; if (this->has_logsbloom()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *logsbloom_); } - // .types.H256 prevRandao = 6; + // .types.H256 prevRandao = 7; if (this->has_prevrandao()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *prevrandao_); } - // .types.H256 baseFeePerGas = 12; + // .types.H256 baseFeePerGas = 13; if (this->has_basefeepergas()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *basefeepergas_); } - // .types.H256 blockHash = 13; + // .types.H256 blockHash = 14; if (this->has_blockhash()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *blockhash_); } - // uint64 blockNumber = 7; + // .types.H256 excessDataGas = 17; + if (this->has_excessdatagas()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *excessdatagas_); + } + + // uint64 blockNumber = 8; if (this->blocknumber() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_blocknumber()); } - // uint64 gasLimit = 8; + // uint64 gasLimit = 9; if (this->gaslimit() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_gaslimit()); } - // uint64 gasUsed = 9; + // uint64 gasUsed = 10; if (this->gasused() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_gasused()); } - // uint64 timestamp = 10; + // uint64 timestamp = 11; if (this->timestamp() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_timestamp()); } + // uint32 version = 1; + if (this->version() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_version()); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -2830,6 +2951,7 @@ void ExecutionPayload::MergeFrom(const ExecutionPayload& from) { (void) cached_has_bits; transactions_.MergeFrom(from.transactions_); + withdrawals_.MergeFrom(from.withdrawals_); if (from.extradata().size() > 0) { _internal_set_extradata(from._internal_extradata()); } @@ -2857,6 +2979,9 @@ void ExecutionPayload::MergeFrom(const ExecutionPayload& from) { if (from.has_blockhash()) { _internal_mutable_blockhash()->::types::H256::MergeFrom(from._internal_blockhash()); } + if (from.has_excessdatagas()) { + _internal_mutable_excessdatagas()->::types::H256::MergeFrom(from._internal_excessdatagas()); + } if (from.blocknumber() != 0) { _internal_set_blocknumber(from._internal_blocknumber()); } @@ -2869,6 +2994,9 @@ void ExecutionPayload::MergeFrom(const ExecutionPayload& from) { if (from.timestamp() != 0) { _internal_set_timestamp(from._internal_timestamp()); } + if (from.version() != 0) { + _internal_set_version(from._internal_version()); + } } void ExecutionPayload::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -2893,10 +3021,11 @@ void ExecutionPayload::InternalSwap(ExecutionPayload* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); transactions_.InternalSwap(&other->transactions_); + withdrawals_.InternalSwap(&other->withdrawals_); extradata_.Swap(&other->extradata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ExecutionPayload, timestamp_) - + sizeof(ExecutionPayload::timestamp_) + PROTOBUF_FIELD_OFFSET(ExecutionPayload, version_) + + sizeof(ExecutionPayload::version_) - PROTOBUF_FIELD_OFFSET(ExecutionPayload, parenthash_)>( reinterpret_cast(&parenthash_), reinterpret_cast(&other->parenthash_)); @@ -2912,17 +3041,12 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ExecutionPayload::GetMetadata() const { class Withdrawal::_Internal { public: static const ::types::H160& address(const Withdrawal* msg); - static const ::types::H256& amount(const Withdrawal* msg); }; const ::types::H160& Withdrawal::_Internal::address(const Withdrawal* msg) { return *msg->address_; } -const ::types::H256& -Withdrawal::_Internal::amount(const Withdrawal* msg) { - return *msg->amount_; -} Withdrawal::Withdrawal(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -2937,14 +3061,9 @@ Withdrawal::Withdrawal(const Withdrawal& from) } else { address_ = nullptr; } - if (from._internal_has_amount()) { - amount_ = new ::types::H256(*from.amount_); - } else { - amount_ = nullptr; - } ::memcpy(&index_, &from.index_, - static_cast(reinterpret_cast(&validatorindex_) - - reinterpret_cast(&index_)) + sizeof(validatorindex_)); + static_cast(reinterpret_cast(&amount_) - + reinterpret_cast(&index_)) + sizeof(amount_)); // @@protoc_insertion_point(copy_constructor:types.Withdrawal) } @@ -2952,8 +3071,8 @@ void Withdrawal::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Withdrawal_types_2ftypes_2eproto.base); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&address_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&validatorindex_) - - reinterpret_cast(&address_)) + sizeof(validatorindex_)); + 0, static_cast(reinterpret_cast(&amount_) - + reinterpret_cast(&address_)) + sizeof(amount_)); } Withdrawal::~Withdrawal() { @@ -2965,7 +3084,6 @@ Withdrawal::~Withdrawal() { void Withdrawal::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete address_; - if (this != internal_default_instance()) delete amount_; } void Withdrawal::ArenaDtor(void* object) { @@ -2993,13 +3111,9 @@ void Withdrawal::Clear() { delete address_; } address_ = nullptr; - if (GetArena() == nullptr && amount_ != nullptr) { - delete amount_; - } - amount_ = nullptr; ::memset(&index_, 0, static_cast( - reinterpret_cast(&validatorindex_) - - reinterpret_cast(&index_)) + sizeof(validatorindex_)); + reinterpret_cast(&amount_) - + reinterpret_cast(&index_)) + sizeof(amount_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3031,10 +3145,10 @@ const char* Withdrawal::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 amount = 4; + // uint64 amount = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_amount(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -3086,12 +3200,10 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Withdrawal::_InternalSerialize( 3, _Internal::address(this), target, stream); } - // .types.H256 amount = 4; - if (this->has_amount()) { + // uint64 amount = 4; + if (this->amount() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::amount(this), target, stream); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_amount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3117,13 +3229,6 @@ size_t Withdrawal::ByteSizeLong() const { *address_); } - // .types.H256 amount = 4; - if (this->has_amount()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *amount_); - } - // uint64 index = 1; if (this->index() != 0) { total_size += 1 + @@ -3138,6 +3243,13 @@ size_t Withdrawal::ByteSizeLong() const { this->_internal_validatorindex()); } + // uint64 amount = 4; + if (this->amount() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_amount()); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); @@ -3172,15 +3284,15 @@ void Withdrawal::MergeFrom(const Withdrawal& from) { if (from.has_address()) { _internal_mutable_address()->::types::H160::MergeFrom(from._internal_address()); } - if (from.has_amount()) { - _internal_mutable_amount()->::types::H256::MergeFrom(from._internal_amount()); - } if (from.index() != 0) { _internal_set_index(from._internal_index()); } if (from.validatorindex() != 0) { _internal_set_validatorindex(from._internal_validatorindex()); } + if (from.amount() != 0) { + _internal_set_amount(from._internal_amount()); + } } void Withdrawal::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { @@ -3205,8 +3317,8 @@ void Withdrawal::InternalSwap(Withdrawal* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Withdrawal, validatorindex_) - + sizeof(Withdrawal::validatorindex_) + PROTOBUF_FIELD_OFFSET(Withdrawal, amount_) + + sizeof(Withdrawal::amount_) - PROTOBUF_FIELD_OFFSET(Withdrawal, address_)>( reinterpret_cast(&address_), reinterpret_cast(&other->address_)); @@ -3219,105 +3331,122 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Withdrawal::GetMetadata() const { // =================================================================== -class ExecutionPayloadV2::_Internal { +class BlobsBundleV1::_Internal { public: - static const ::types::ExecutionPayload& payload(const ExecutionPayloadV2* msg); + static const ::types::H256& blockhash(const BlobsBundleV1* msg); }; -const ::types::ExecutionPayload& -ExecutionPayloadV2::_Internal::payload(const ExecutionPayloadV2* msg) { - return *msg->payload_; +const ::types::H256& +BlobsBundleV1::_Internal::blockhash(const BlobsBundleV1* msg) { + return *msg->blockhash_; } -ExecutionPayloadV2::ExecutionPayloadV2(::PROTOBUF_NAMESPACE_ID::Arena* arena) +BlobsBundleV1::BlobsBundleV1(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), - withdrawals_(arena) { + kzgs_(arena), + blobs_(arena) { SharedCtor(); RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:types.ExecutionPayloadV2) + // @@protoc_insertion_point(arena_constructor:types.BlobsBundleV1) } -ExecutionPayloadV2::ExecutionPayloadV2(const ExecutionPayloadV2& from) +BlobsBundleV1::BlobsBundleV1(const BlobsBundleV1& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - withdrawals_(from.withdrawals_) { + kzgs_(from.kzgs_), + blobs_(from.blobs_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_payload()) { - payload_ = new ::types::ExecutionPayload(*from.payload_); + if (from._internal_has_blockhash()) { + blockhash_ = new ::types::H256(*from.blockhash_); } else { - payload_ = nullptr; + blockhash_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:types.ExecutionPayloadV2) + // @@protoc_insertion_point(copy_constructor:types.BlobsBundleV1) } -void ExecutionPayloadV2::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExecutionPayloadV2_types_2ftypes_2eproto.base); - payload_ = nullptr; +void BlobsBundleV1::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BlobsBundleV1_types_2ftypes_2eproto.base); + blockhash_ = nullptr; } -ExecutionPayloadV2::~ExecutionPayloadV2() { - // @@protoc_insertion_point(destructor:types.ExecutionPayloadV2) +BlobsBundleV1::~BlobsBundleV1() { + // @@protoc_insertion_point(destructor:types.BlobsBundleV1) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ExecutionPayloadV2::SharedDtor() { +void BlobsBundleV1::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete payload_; + if (this != internal_default_instance()) delete blockhash_; } -void ExecutionPayloadV2::ArenaDtor(void* object) { - ExecutionPayloadV2* _this = reinterpret_cast< ExecutionPayloadV2* >(object); +void BlobsBundleV1::ArenaDtor(void* object) { + BlobsBundleV1* _this = reinterpret_cast< BlobsBundleV1* >(object); (void)_this; } -void ExecutionPayloadV2::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +void BlobsBundleV1::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void ExecutionPayloadV2::SetCachedSize(int size) const { +void BlobsBundleV1::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ExecutionPayloadV2& ExecutionPayloadV2::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExecutionPayloadV2_types_2ftypes_2eproto.base); +const BlobsBundleV1& BlobsBundleV1::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BlobsBundleV1_types_2ftypes_2eproto.base); return *internal_default_instance(); } -void ExecutionPayloadV2::Clear() { -// @@protoc_insertion_point(message_clear_start:types.ExecutionPayloadV2) +void BlobsBundleV1::Clear() { +// @@protoc_insertion_point(message_clear_start:types.BlobsBundleV1) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - withdrawals_.Clear(); - if (GetArena() == nullptr && payload_ != nullptr) { - delete payload_; + kzgs_.Clear(); + blobs_.Clear(); + if (GetArena() == nullptr && blockhash_ != nullptr) { + delete blockhash_; } - payload_ = nullptr; + blockhash_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ExecutionPayloadV2::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* BlobsBundleV1::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .types.ExecutionPayload payload = 1; + // .types.H256 blockHash = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_payload(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_blockhash(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // repeated .types.Withdrawal withdrawals = 2; + // repeated bytes kzgs = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + auto str = _internal_add_kzgs(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; + // repeated bytes blobs = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_blobs(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -3340,56 +3469,69 @@ const char* ExecutionPayloadV2::_InternalParse(const char* ptr, ::PROTOBUF_NAMES #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ExecutionPayloadV2::_InternalSerialize( +::PROTOBUF_NAMESPACE_ID::uint8* BlobsBundleV1::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:types.ExecutionPayloadV2) + // @@protoc_insertion_point(serialize_to_array_start:types.BlobsBundleV1) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .types.ExecutionPayload payload = 1; - if (this->has_payload()) { + // .types.H256 blockHash = 1; + if (this->has_blockhash()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( - 1, _Internal::payload(this), target, stream); + 1, _Internal::blockhash(this), target, stream); } - // repeated .types.Withdrawal withdrawals = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_withdrawals(i), target, stream); + // repeated bytes kzgs = 2; + for (int i = 0, n = this->_internal_kzgs_size(); i < n; i++) { + const auto& s = this->_internal_kzgs(i); + target = stream->WriteBytes(2, s, target); + } + + // repeated bytes blobs = 3; + for (int i = 0, n = this->_internal_blobs_size(); i < n; i++) { + const auto& s = this->_internal_blobs(i); + target = stream->WriteBytes(3, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:types.ExecutionPayloadV2) + // @@protoc_insertion_point(serialize_to_array_end:types.BlobsBundleV1) return target; } -size_t ExecutionPayloadV2::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:types.ExecutionPayloadV2) +size_t BlobsBundleV1::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:types.BlobsBundleV1) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .types.Withdrawal withdrawals = 2; - total_size += 1UL * this->_internal_withdrawals_size(); - for (const auto& msg : this->withdrawals_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // repeated bytes kzgs = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(kzgs_.size()); + for (int i = 0, n = kzgs_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + kzgs_.Get(i)); } - // .types.ExecutionPayload payload = 1; - if (this->has_payload()) { + // repeated bytes blobs = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(blobs_.size()); + for (int i = 0, n = blobs_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + blobs_.Get(i)); + } + + // .types.H256 blockHash = 1; + if (this->has_blockhash()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payload_); + *blockhash_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -3401,60 +3543,62 @@ size_t ExecutionPayloadV2::ByteSizeLong() const { return total_size; } -void ExecutionPayloadV2::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:types.ExecutionPayloadV2) +void BlobsBundleV1::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:types.BlobsBundleV1) GOOGLE_DCHECK_NE(&from, this); - const ExecutionPayloadV2* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const BlobsBundleV1* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:types.ExecutionPayloadV2) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:types.BlobsBundleV1) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:types.ExecutionPayloadV2) + // @@protoc_insertion_point(generalized_merge_from_cast_success:types.BlobsBundleV1) MergeFrom(*source); } } -void ExecutionPayloadV2::MergeFrom(const ExecutionPayloadV2& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:types.ExecutionPayloadV2) +void BlobsBundleV1::MergeFrom(const BlobsBundleV1& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:types.BlobsBundleV1) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - withdrawals_.MergeFrom(from.withdrawals_); - if (from.has_payload()) { - _internal_mutable_payload()->::types::ExecutionPayload::MergeFrom(from._internal_payload()); + kzgs_.MergeFrom(from.kzgs_); + blobs_.MergeFrom(from.blobs_); + if (from.has_blockhash()) { + _internal_mutable_blockhash()->::types::H256::MergeFrom(from._internal_blockhash()); } } -void ExecutionPayloadV2::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:types.ExecutionPayloadV2) +void BlobsBundleV1::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:types.BlobsBundleV1) if (&from == this) return; Clear(); MergeFrom(from); } -void ExecutionPayloadV2::CopyFrom(const ExecutionPayloadV2& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:types.ExecutionPayloadV2) +void BlobsBundleV1::CopyFrom(const BlobsBundleV1& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:types.BlobsBundleV1) if (&from == this) return; Clear(); MergeFrom(from); } -bool ExecutionPayloadV2::IsInitialized() const { +bool BlobsBundleV1::IsInitialized() const { return true; } -void ExecutionPayloadV2::InternalSwap(ExecutionPayloadV2* other) { +void BlobsBundleV1::InternalSwap(BlobsBundleV1* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - withdrawals_.InternalSwap(&other->withdrawals_); - swap(payload_, other->payload_); + kzgs_.InternalSwap(&other->kzgs_); + blobs_.InternalSwap(&other->blobs_); + swap(blockhash_, other->blockhash_); } -::PROTOBUF_NAMESPACE_ID::Metadata ExecutionPayloadV2::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata BlobsBundleV1::GetMetadata() const { return GetMetadataStatic(); } @@ -4632,6 +4776,238 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PeerInfo::GetMetadata() const { return GetMetadataStatic(); } + +// =================================================================== + +class ExecutionPayloadBodyV1::_Internal { + public: +}; + +ExecutionPayloadBodyV1::ExecutionPayloadBodyV1(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + transactions_(arena), + withdrawals_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:types.ExecutionPayloadBodyV1) +} +ExecutionPayloadBodyV1::ExecutionPayloadBodyV1(const ExecutionPayloadBodyV1& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + transactions_(from.transactions_), + withdrawals_(from.withdrawals_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:types.ExecutionPayloadBodyV1) +} + +void ExecutionPayloadBodyV1::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto.base); +} + +ExecutionPayloadBodyV1::~ExecutionPayloadBodyV1() { + // @@protoc_insertion_point(destructor:types.ExecutionPayloadBodyV1) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ExecutionPayloadBodyV1::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void ExecutionPayloadBodyV1::ArenaDtor(void* object) { + ExecutionPayloadBodyV1* _this = reinterpret_cast< ExecutionPayloadBodyV1* >(object); + (void)_this; +} +void ExecutionPayloadBodyV1::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ExecutionPayloadBodyV1::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionPayloadBodyV1& ExecutionPayloadBodyV1::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExecutionPayloadBodyV1_types_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionPayloadBodyV1::Clear() { +// @@protoc_insertion_point(message_clear_start:types.ExecutionPayloadBodyV1) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + transactions_.Clear(); + withdrawals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ExecutionPayloadBodyV1::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated bytes transactions = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_transactions(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else goto handle_unusual; + continue; + // repeated .types.Withdrawal withdrawals = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* ExecutionPayloadBodyV1::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:types.ExecutionPayloadBodyV1) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes transactions = 1; + for (int i = 0, n = this->_internal_transactions_size(); i < n; i++) { + const auto& s = this->_internal_transactions(i); + target = stream->WriteBytes(1, s, target); + } + + // repeated .types.Withdrawal withdrawals = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_withdrawals(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:types.ExecutionPayloadBodyV1) + return target; +} + +size_t ExecutionPayloadBodyV1::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:types.ExecutionPayloadBodyV1) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bytes transactions = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(transactions_.size()); + for (int i = 0, n = transactions_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + transactions_.Get(i)); + } + + // repeated .types.Withdrawal withdrawals = 2; + total_size += 1UL * this->_internal_withdrawals_size(); + for (const auto& msg : this->withdrawals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionPayloadBodyV1::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:types.ExecutionPayloadBodyV1) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionPayloadBodyV1* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:types.ExecutionPayloadBodyV1) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:types.ExecutionPayloadBodyV1) + MergeFrom(*source); + } +} + +void ExecutionPayloadBodyV1::MergeFrom(const ExecutionPayloadBodyV1& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:types.ExecutionPayloadBodyV1) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + transactions_.MergeFrom(from.transactions_); + withdrawals_.MergeFrom(from.withdrawals_); +} + +void ExecutionPayloadBodyV1::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:types.ExecutionPayloadBodyV1) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionPayloadBodyV1::CopyFrom(const ExecutionPayloadBodyV1& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:types.ExecutionPayloadBodyV1) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionPayloadBodyV1::IsInitialized() const { + return true; +} + +void ExecutionPayloadBodyV1::InternalSwap(ExecutionPayloadBodyV1* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + transactions_.InternalSwap(&other->transactions_); + withdrawals_.InternalSwap(&other->withdrawals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ExecutionPayloadBodyV1::GetMetadata() const { + return GetMetadataStatic(); +} + ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FileOptions, ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< ::PROTOBUF_NAMESPACE_ID::uint32 >, 13, false > service_major_version(kServiceMajorVersionFieldNumber, 0u); @@ -4672,8 +5048,8 @@ template<> PROTOBUF_NOINLINE ::types::ExecutionPayload* Arena::CreateMaybeMessag template<> PROTOBUF_NOINLINE ::types::Withdrawal* Arena::CreateMaybeMessage< ::types::Withdrawal >(Arena* arena) { return Arena::CreateMessageInternal< ::types::Withdrawal >(arena); } -template<> PROTOBUF_NOINLINE ::types::ExecutionPayloadV2* Arena::CreateMaybeMessage< ::types::ExecutionPayloadV2 >(Arena* arena) { - return Arena::CreateMessageInternal< ::types::ExecutionPayloadV2 >(arena); +template<> PROTOBUF_NOINLINE ::types::BlobsBundleV1* Arena::CreateMaybeMessage< ::types::BlobsBundleV1 >(Arena* arena) { + return Arena::CreateMessageInternal< ::types::BlobsBundleV1 >(arena); } template<> PROTOBUF_NOINLINE ::types::NodeInfoPorts* Arena::CreateMaybeMessage< ::types::NodeInfoPorts >(Arena* arena) { return Arena::CreateMessageInternal< ::types::NodeInfoPorts >(arena); @@ -4684,6 +5060,9 @@ template<> PROTOBUF_NOINLINE ::types::NodeInfoReply* Arena::CreateMaybeMessage< template<> PROTOBUF_NOINLINE ::types::PeerInfo* Arena::CreateMaybeMessage< ::types::PeerInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::types::PeerInfo >(arena); } +template<> PROTOBUF_NOINLINE ::types::ExecutionPayloadBodyV1* Arena::CreateMaybeMessage< ::types::ExecutionPayloadBodyV1 >(Arena* arena) { + return Arena::CreateMessageInternal< ::types::ExecutionPayloadBodyV1 >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/silkworm/interfaces/3.14.0/types/types.pb.h b/silkworm/interfaces/3.14.0/types/types.pb.h index 8b1dc5d16a..d1fe5fce7b 100644 --- a/silkworm/interfaces/3.14.0/types/types.pb.h +++ b/silkworm/interfaces/3.14.0/types/types.pb.h @@ -47,7 +47,7 @@ struct TableStruct_types_2ftypes_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[13] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[14] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -55,12 +55,15 @@ struct TableStruct_types_2ftypes_2eproto { }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_types_2ftypes_2eproto; namespace types { +class BlobsBundleV1; +class BlobsBundleV1DefaultTypeInternal; +extern BlobsBundleV1DefaultTypeInternal _BlobsBundleV1_default_instance_; class ExecutionPayload; class ExecutionPayloadDefaultTypeInternal; extern ExecutionPayloadDefaultTypeInternal _ExecutionPayload_default_instance_; -class ExecutionPayloadV2; -class ExecutionPayloadV2DefaultTypeInternal; -extern ExecutionPayloadV2DefaultTypeInternal _ExecutionPayloadV2_default_instance_; +class ExecutionPayloadBodyV1; +class ExecutionPayloadBodyV1DefaultTypeInternal; +extern ExecutionPayloadBodyV1DefaultTypeInternal _ExecutionPayloadBodyV1_default_instance_; class H1024; class H1024DefaultTypeInternal; extern H1024DefaultTypeInternal _H1024_default_instance_; @@ -96,8 +99,9 @@ class WithdrawalDefaultTypeInternal; extern WithdrawalDefaultTypeInternal _Withdrawal_default_instance_; } // namespace types PROTOBUF_NAMESPACE_OPEN +template<> ::types::BlobsBundleV1* Arena::CreateMaybeMessage<::types::BlobsBundleV1>(Arena*); template<> ::types::ExecutionPayload* Arena::CreateMaybeMessage<::types::ExecutionPayload>(Arena*); -template<> ::types::ExecutionPayloadV2* Arena::CreateMaybeMessage<::types::ExecutionPayloadV2>(Arena*); +template<> ::types::ExecutionPayloadBodyV1* Arena::CreateMaybeMessage<::types::ExecutionPayloadBodyV1>(Arena*); template<> ::types::H1024* Arena::CreateMaybeMessage<::types::H1024>(Arena*); template<> ::types::H128* Arena::CreateMaybeMessage<::types::H128>(Arena*); template<> ::types::H160* Arena::CreateMaybeMessage<::types::H160>(Arena*); @@ -1347,22 +1351,25 @@ class ExecutionPayload PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kTransactionsFieldNumber = 14, - kExtraDataFieldNumber = 11, - kParentHashFieldNumber = 1, - kCoinbaseFieldNumber = 2, - kStateRootFieldNumber = 3, - kReceiptRootFieldNumber = 4, - kLogsBloomFieldNumber = 5, - kPrevRandaoFieldNumber = 6, - kBaseFeePerGasFieldNumber = 12, - kBlockHashFieldNumber = 13, - kBlockNumberFieldNumber = 7, - kGasLimitFieldNumber = 8, - kGasUsedFieldNumber = 9, - kTimestampFieldNumber = 10, + kTransactionsFieldNumber = 15, + kWithdrawalsFieldNumber = 16, + kExtraDataFieldNumber = 12, + kParentHashFieldNumber = 2, + kCoinbaseFieldNumber = 3, + kStateRootFieldNumber = 4, + kReceiptRootFieldNumber = 5, + kLogsBloomFieldNumber = 6, + kPrevRandaoFieldNumber = 7, + kBaseFeePerGasFieldNumber = 13, + kBlockHashFieldNumber = 14, + kExcessDataGasFieldNumber = 17, + kBlockNumberFieldNumber = 8, + kGasLimitFieldNumber = 9, + kGasUsedFieldNumber = 10, + kTimestampFieldNumber = 11, + kVersionFieldNumber = 1, }; - // repeated bytes transactions = 14; + // repeated bytes transactions = 15; int transactions_size() const; private: int _internal_transactions_size() const; @@ -1386,7 +1393,25 @@ class ExecutionPayload PROTOBUF_FINAL : std::string* _internal_add_transactions(); public: - // bytes extraData = 11; + // repeated .types.Withdrawal withdrawals = 16; + int withdrawals_size() const; + private: + int _internal_withdrawals_size() const; + public: + void clear_withdrawals(); + ::types::Withdrawal* mutable_withdrawals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* + mutable_withdrawals(); + private: + const ::types::Withdrawal& _internal_withdrawals(int index) const; + ::types::Withdrawal* _internal_add_withdrawals(); + public: + const ::types::Withdrawal& withdrawals(int index) const; + ::types::Withdrawal* add_withdrawals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& + withdrawals() const; + + // bytes extraData = 12; void clear_extradata(); const std::string& extradata() const; void set_extradata(const std::string& value); @@ -1402,7 +1427,7 @@ class ExecutionPayload PROTOBUF_FINAL : std::string* _internal_mutable_extradata(); public: - // .types.H256 parentHash = 1; + // .types.H256 parentHash = 2; bool has_parenthash() const; private: bool _internal_has_parenthash() const; @@ -1420,7 +1445,7 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H256* parenthash); ::types::H256* unsafe_arena_release_parenthash(); - // .types.H160 coinbase = 2; + // .types.H160 coinbase = 3; bool has_coinbase() const; private: bool _internal_has_coinbase() const; @@ -1438,7 +1463,7 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H160* coinbase); ::types::H160* unsafe_arena_release_coinbase(); - // .types.H256 stateRoot = 3; + // .types.H256 stateRoot = 4; bool has_stateroot() const; private: bool _internal_has_stateroot() const; @@ -1456,7 +1481,7 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H256* stateroot); ::types::H256* unsafe_arena_release_stateroot(); - // .types.H256 receiptRoot = 4; + // .types.H256 receiptRoot = 5; bool has_receiptroot() const; private: bool _internal_has_receiptroot() const; @@ -1474,7 +1499,7 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H256* receiptroot); ::types::H256* unsafe_arena_release_receiptroot(); - // .types.H2048 logsBloom = 5; + // .types.H2048 logsBloom = 6; bool has_logsbloom() const; private: bool _internal_has_logsbloom() const; @@ -1492,7 +1517,7 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H2048* logsbloom); ::types::H2048* unsafe_arena_release_logsbloom(); - // .types.H256 prevRandao = 6; + // .types.H256 prevRandao = 7; bool has_prevrandao() const; private: bool _internal_has_prevrandao() const; @@ -1510,7 +1535,7 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H256* prevrandao); ::types::H256* unsafe_arena_release_prevrandao(); - // .types.H256 baseFeePerGas = 12; + // .types.H256 baseFeePerGas = 13; bool has_basefeepergas() const; private: bool _internal_has_basefeepergas() const; @@ -1528,7 +1553,7 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H256* basefeepergas); ::types::H256* unsafe_arena_release_basefeepergas(); - // .types.H256 blockHash = 13; + // .types.H256 blockHash = 14; bool has_blockhash() const; private: bool _internal_has_blockhash() const; @@ -1546,7 +1571,25 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H256* blockhash); ::types::H256* unsafe_arena_release_blockhash(); - // uint64 blockNumber = 7; + // .types.H256 excessDataGas = 17; + bool has_excessdatagas() const; + private: + bool _internal_has_excessdatagas() const; + public: + void clear_excessdatagas(); + const ::types::H256& excessdatagas() const; + ::types::H256* release_excessdatagas(); + ::types::H256* mutable_excessdatagas(); + void set_allocated_excessdatagas(::types::H256* excessdatagas); + private: + const ::types::H256& _internal_excessdatagas() const; + ::types::H256* _internal_mutable_excessdatagas(); + public: + void unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas); + ::types::H256* unsafe_arena_release_excessdatagas(); + + // uint64 blockNumber = 8; void clear_blocknumber(); ::PROTOBUF_NAMESPACE_ID::uint64 blocknumber() const; void set_blocknumber(::PROTOBUF_NAMESPACE_ID::uint64 value); @@ -1555,7 +1598,7 @@ class ExecutionPayload PROTOBUF_FINAL : void _internal_set_blocknumber(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 gasLimit = 8; + // uint64 gasLimit = 9; void clear_gaslimit(); ::PROTOBUF_NAMESPACE_ID::uint64 gaslimit() const; void set_gaslimit(::PROTOBUF_NAMESPACE_ID::uint64 value); @@ -1564,7 +1607,7 @@ class ExecutionPayload PROTOBUF_FINAL : void _internal_set_gaslimit(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 gasUsed = 9; + // uint64 gasUsed = 10; void clear_gasused(); ::PROTOBUF_NAMESPACE_ID::uint64 gasused() const; void set_gasused(::PROTOBUF_NAMESPACE_ID::uint64 value); @@ -1573,7 +1616,7 @@ class ExecutionPayload PROTOBUF_FINAL : void _internal_set_gasused(::PROTOBUF_NAMESPACE_ID::uint64 value); public: - // uint64 timestamp = 10; + // uint64 timestamp = 11; void clear_timestamp(); ::PROTOBUF_NAMESPACE_ID::uint64 timestamp() const; void set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); @@ -1582,6 +1625,15 @@ class ExecutionPayload PROTOBUF_FINAL : void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); public: + // uint32 version = 1; + void clear_version(); + ::PROTOBUF_NAMESPACE_ID::uint32 version() const; + void set_version(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_version() const; + void _internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + // @@protoc_insertion_point(class_scope:types.ExecutionPayload) private: class _Internal; @@ -1590,6 +1642,7 @@ class ExecutionPayload PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField transactions_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extradata_; ::types::H256* parenthash_; ::types::H160* coinbase_; @@ -1599,10 +1652,12 @@ class ExecutionPayload PROTOBUF_FINAL : ::types::H256* prevrandao_; ::types::H256* basefeepergas_; ::types::H256* blockhash_; + ::types::H256* excessdatagas_; ::PROTOBUF_NAMESPACE_ID::uint64 blocknumber_; ::PROTOBUF_NAMESPACE_ID::uint64 gaslimit_; ::PROTOBUF_NAMESPACE_ID::uint64 gasused_; ::PROTOBUF_NAMESPACE_ID::uint64 timestamp_; + ::PROTOBUF_NAMESPACE_ID::uint32 version_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_types_2ftypes_2eproto; }; @@ -1721,9 +1776,9 @@ class Withdrawal PROTOBUF_FINAL : enum : int { kAddressFieldNumber = 3, - kAmountFieldNumber = 4, kIndexFieldNumber = 1, kValidatorIndexFieldNumber = 2, + kAmountFieldNumber = 4, }; // .types.H160 address = 3; bool has_address() const; @@ -1743,24 +1798,6 @@ class Withdrawal PROTOBUF_FINAL : ::types::H160* address); ::types::H160* unsafe_arena_release_address(); - // .types.H256 amount = 4; - bool has_amount() const; - private: - bool _internal_has_amount() const; - public: - void clear_amount(); - const ::types::H256& amount() const; - ::types::H256* release_amount(); - ::types::H256* mutable_amount(); - void set_allocated_amount(::types::H256* amount); - private: - const ::types::H256& _internal_amount() const; - ::types::H256* _internal_mutable_amount(); - public: - void unsafe_arena_set_allocated_amount( - ::types::H256* amount); - ::types::H256* unsafe_arena_release_amount(); - // uint64 index = 1; void clear_index(); ::PROTOBUF_NAMESPACE_ID::uint64 index() const; @@ -1779,6 +1816,15 @@ class Withdrawal PROTOBUF_FINAL : void _internal_set_validatorindex(::PROTOBUF_NAMESPACE_ID::uint64 value); public: + // uint64 amount = 4; + void clear_amount(); + ::PROTOBUF_NAMESPACE_ID::uint64 amount() const; + void set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount() const; + void _internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + // @@protoc_insertion_point(class_scope:types.Withdrawal) private: class _Internal; @@ -1787,31 +1833,31 @@ class Withdrawal PROTOBUF_FINAL : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::types::H160* address_; - ::types::H256* amount_; ::PROTOBUF_NAMESPACE_ID::uint64 index_; ::PROTOBUF_NAMESPACE_ID::uint64 validatorindex_; + ::PROTOBUF_NAMESPACE_ID::uint64 amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_types_2ftypes_2eproto; }; // ------------------------------------------------------------------- -class ExecutionPayloadV2 PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:types.ExecutionPayloadV2) */ { +class BlobsBundleV1 PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:types.BlobsBundleV1) */ { public: - inline ExecutionPayloadV2() : ExecutionPayloadV2(nullptr) {} - virtual ~ExecutionPayloadV2(); + inline BlobsBundleV1() : BlobsBundleV1(nullptr) {} + virtual ~BlobsBundleV1(); - ExecutionPayloadV2(const ExecutionPayloadV2& from); - ExecutionPayloadV2(ExecutionPayloadV2&& from) noexcept - : ExecutionPayloadV2() { + BlobsBundleV1(const BlobsBundleV1& from); + BlobsBundleV1(BlobsBundleV1&& from) noexcept + : BlobsBundleV1() { *this = ::std::move(from); } - inline ExecutionPayloadV2& operator=(const ExecutionPayloadV2& from) { + inline BlobsBundleV1& operator=(const BlobsBundleV1& from) { CopyFrom(from); return *this; } - inline ExecutionPayloadV2& operator=(ExecutionPayloadV2&& from) noexcept { + inline BlobsBundleV1& operator=(BlobsBundleV1&& from) noexcept { if (GetArena() == from.GetArena()) { if (this != &from) InternalSwap(&from); } else { @@ -1829,19 +1875,19 @@ class ExecutionPayloadV2 PROTOBUF_FINAL : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const ExecutionPayloadV2& default_instance(); + static const BlobsBundleV1& default_instance(); - static inline const ExecutionPayloadV2* internal_default_instance() { - return reinterpret_cast( - &_ExecutionPayloadV2_default_instance_); + static inline const BlobsBundleV1* internal_default_instance() { + return reinterpret_cast( + &_BlobsBundleV1_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(ExecutionPayloadV2& a, ExecutionPayloadV2& b) { + friend void swap(BlobsBundleV1& a, BlobsBundleV1& b) { a.Swap(&b); } - inline void Swap(ExecutionPayloadV2* other) { + inline void Swap(BlobsBundleV1* other) { if (other == this) return; if (GetArena() == other->GetArena()) { InternalSwap(other); @@ -1849,7 +1895,7 @@ class ExecutionPayloadV2 PROTOBUF_FINAL : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ExecutionPayloadV2* other) { + void UnsafeArenaSwap(BlobsBundleV1* other) { if (other == this) return; GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1857,17 +1903,17 @@ class ExecutionPayloadV2 PROTOBUF_FINAL : // implements Message ---------------------------------------------- - inline ExecutionPayloadV2* New() const final { - return CreateMaybeMessage(nullptr); + inline BlobsBundleV1* New() const final { + return CreateMaybeMessage(nullptr); } - ExecutionPayloadV2* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + BlobsBundleV1* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ExecutionPayloadV2& from); - void MergeFrom(const ExecutionPayloadV2& from); + void CopyFrom(const BlobsBundleV1& from); + void MergeFrom(const BlobsBundleV1& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1881,13 +1927,13 @@ class ExecutionPayloadV2 PROTOBUF_FINAL : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ExecutionPayloadV2* other); + void InternalSwap(BlobsBundleV1* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "types.ExecutionPayloadV2"; + return "types.BlobsBundleV1"; } protected: - explicit ExecutionPayloadV2(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit BlobsBundleV1(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); @@ -1907,54 +1953,86 @@ class ExecutionPayloadV2 PROTOBUF_FINAL : // accessors ------------------------------------------------------- enum : int { - kWithdrawalsFieldNumber = 2, - kPayloadFieldNumber = 1, + kKzgsFieldNumber = 2, + kBlobsFieldNumber = 3, + kBlockHashFieldNumber = 1, }; - // repeated .types.Withdrawal withdrawals = 2; - int withdrawals_size() const; + // repeated bytes kzgs = 2; + int kzgs_size() const; private: - int _internal_withdrawals_size() const; + int _internal_kzgs_size() const; public: - void clear_withdrawals(); - ::types::Withdrawal* mutable_withdrawals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* - mutable_withdrawals(); + void clear_kzgs(); + const std::string& kzgs(int index) const; + std::string* mutable_kzgs(int index); + void set_kzgs(int index, const std::string& value); + void set_kzgs(int index, std::string&& value); + void set_kzgs(int index, const char* value); + void set_kzgs(int index, const void* value, size_t size); + std::string* add_kzgs(); + void add_kzgs(const std::string& value); + void add_kzgs(std::string&& value); + void add_kzgs(const char* value); + void add_kzgs(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& kzgs() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_kzgs(); private: - const ::types::Withdrawal& _internal_withdrawals(int index) const; - ::types::Withdrawal* _internal_add_withdrawals(); + const std::string& _internal_kzgs(int index) const; + std::string* _internal_add_kzgs(); public: - const ::types::Withdrawal& withdrawals(int index) const; - ::types::Withdrawal* add_withdrawals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& - withdrawals() const; - // .types.ExecutionPayload payload = 1; - bool has_payload() const; + // repeated bytes blobs = 3; + int blobs_size() const; private: - bool _internal_has_payload() const; + int _internal_blobs_size() const; public: - void clear_payload(); - const ::types::ExecutionPayload& payload() const; - ::types::ExecutionPayload* release_payload(); - ::types::ExecutionPayload* mutable_payload(); - void set_allocated_payload(::types::ExecutionPayload* payload); - private: - const ::types::ExecutionPayload& _internal_payload() const; - ::types::ExecutionPayload* _internal_mutable_payload(); + void clear_blobs(); + const std::string& blobs(int index) const; + std::string* mutable_blobs(int index); + void set_blobs(int index, const std::string& value); + void set_blobs(int index, std::string&& value); + void set_blobs(int index, const char* value); + void set_blobs(int index, const void* value, size_t size); + std::string* add_blobs(); + void add_blobs(const std::string& value); + void add_blobs(std::string&& value); + void add_blobs(const char* value); + void add_blobs(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& blobs() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_blobs(); + private: + const std::string& _internal_blobs(int index) const; + std::string* _internal_add_blobs(); public: - void unsafe_arena_set_allocated_payload( - ::types::ExecutionPayload* payload); - ::types::ExecutionPayload* unsafe_arena_release_payload(); - // @@protoc_insertion_point(class_scope:types.ExecutionPayloadV2) + // .types.H256 blockHash = 1; + bool has_blockhash() const; + private: + bool _internal_has_blockhash() const; + public: + void clear_blockhash(); + const ::types::H256& blockhash() const; + ::types::H256* release_blockhash(); + ::types::H256* mutable_blockhash(); + void set_allocated_blockhash(::types::H256* blockhash); + private: + const ::types::H256& _internal_blockhash() const; + ::types::H256* _internal_mutable_blockhash(); + public: + void unsafe_arena_set_allocated_blockhash( + ::types::H256* blockhash); + ::types::H256* unsafe_arena_release_blockhash(); + + // @@protoc_insertion_point(class_scope:types.BlobsBundleV1) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; - ::types::ExecutionPayload* payload_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField kzgs_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobs_; + ::types::H256* blockhash_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_types_2ftypes_2eproto; }; @@ -2650,6 +2728,177 @@ class PeerInfo PROTOBUF_FINAL : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_types_2ftypes_2eproto; }; +// ------------------------------------------------------------------- + +class ExecutionPayloadBodyV1 PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:types.ExecutionPayloadBodyV1) */ { + public: + inline ExecutionPayloadBodyV1() : ExecutionPayloadBodyV1(nullptr) {} + virtual ~ExecutionPayloadBodyV1(); + + ExecutionPayloadBodyV1(const ExecutionPayloadBodyV1& from); + ExecutionPayloadBodyV1(ExecutionPayloadBodyV1&& from) noexcept + : ExecutionPayloadBodyV1() { + *this = ::std::move(from); + } + + inline ExecutionPayloadBodyV1& operator=(const ExecutionPayloadBodyV1& from) { + CopyFrom(from); + return *this; + } + inline ExecutionPayloadBodyV1& operator=(ExecutionPayloadBodyV1&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ExecutionPayloadBodyV1& default_instance(); + + static inline const ExecutionPayloadBodyV1* internal_default_instance() { + return reinterpret_cast( + &_ExecutionPayloadBodyV1_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(ExecutionPayloadBodyV1& a, ExecutionPayloadBodyV1& b) { + a.Swap(&b); + } + inline void Swap(ExecutionPayloadBodyV1* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ExecutionPayloadBodyV1* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ExecutionPayloadBodyV1* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionPayloadBodyV1* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ExecutionPayloadBodyV1& from); + void MergeFrom(const ExecutionPayloadBodyV1& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionPayloadBodyV1* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "types.ExecutionPayloadBodyV1"; + } + protected: + explicit ExecutionPayloadBodyV1(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_types_2ftypes_2eproto); + return ::descriptor_table_types_2ftypes_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTransactionsFieldNumber = 1, + kWithdrawalsFieldNumber = 2, + }; + // repeated bytes transactions = 1; + int transactions_size() const; + private: + int _internal_transactions_size() const; + public: + void clear_transactions(); + const std::string& transactions(int index) const; + std::string* mutable_transactions(int index); + void set_transactions(int index, const std::string& value); + void set_transactions(int index, std::string&& value); + void set_transactions(int index, const char* value); + void set_transactions(int index, const void* value, size_t size); + std::string* add_transactions(); + void add_transactions(const std::string& value); + void add_transactions(std::string&& value); + void add_transactions(const char* value); + void add_transactions(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& transactions() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_transactions(); + private: + const std::string& _internal_transactions(int index) const; + std::string* _internal_add_transactions(); + public: + + // repeated .types.Withdrawal withdrawals = 2; + int withdrawals_size() const; + private: + int _internal_withdrawals_size() const; + public: + void clear_withdrawals(); + ::types::Withdrawal* mutable_withdrawals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* + mutable_withdrawals(); + private: + const ::types::Withdrawal& _internal_withdrawals(int index) const; + ::types::Withdrawal* _internal_add_withdrawals(); + public: + const ::types::Withdrawal& withdrawals(int index) const; + ::types::Withdrawal* add_withdrawals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& + withdrawals() const; + + // @@protoc_insertion_point(class_scope:types.ExecutionPayloadBodyV1) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField transactions_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_types_2ftypes_2eproto; +}; // =================================================================== static const int kServiceMajorVersionFieldNumber = 50001; @@ -3568,7 +3817,27 @@ inline void VersionReply::set_patch(::PROTOBUF_NAMESPACE_ID::uint32 value) { // ExecutionPayload -// .types.H256 parentHash = 1; +// uint32 version = 1; +inline void ExecutionPayload::clear_version() { + version_ = 0u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ExecutionPayload::_internal_version() const { + return version_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ExecutionPayload::version() const { + // @@protoc_insertion_point(field_get:types.ExecutionPayload.version) + return _internal_version(); +} +inline void ExecutionPayload::_internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) { + + version_ = value; +} +inline void ExecutionPayload::set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_version(value); + // @@protoc_insertion_point(field_set:types.ExecutionPayload.version) +} + +// .types.H256 parentHash = 2; inline bool ExecutionPayload::_internal_has_parenthash() const { return this != internal_default_instance() && parenthash_ != nullptr; } @@ -3651,7 +3920,7 @@ inline void ExecutionPayload::set_allocated_parenthash(::types::H256* parenthash // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.parentHash) } -// .types.H160 coinbase = 2; +// .types.H160 coinbase = 3; inline bool ExecutionPayload::_internal_has_coinbase() const { return this != internal_default_instance() && coinbase_ != nullptr; } @@ -3734,7 +4003,7 @@ inline void ExecutionPayload::set_allocated_coinbase(::types::H160* coinbase) { // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.coinbase) } -// .types.H256 stateRoot = 3; +// .types.H256 stateRoot = 4; inline bool ExecutionPayload::_internal_has_stateroot() const { return this != internal_default_instance() && stateroot_ != nullptr; } @@ -3817,7 +4086,7 @@ inline void ExecutionPayload::set_allocated_stateroot(::types::H256* stateroot) // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.stateRoot) } -// .types.H256 receiptRoot = 4; +// .types.H256 receiptRoot = 5; inline bool ExecutionPayload::_internal_has_receiptroot() const { return this != internal_default_instance() && receiptroot_ != nullptr; } @@ -3900,7 +4169,7 @@ inline void ExecutionPayload::set_allocated_receiptroot(::types::H256* receiptro // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.receiptRoot) } -// .types.H2048 logsBloom = 5; +// .types.H2048 logsBloom = 6; inline bool ExecutionPayload::_internal_has_logsbloom() const { return this != internal_default_instance() && logsbloom_ != nullptr; } @@ -3983,7 +4252,7 @@ inline void ExecutionPayload::set_allocated_logsbloom(::types::H2048* logsbloom) // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.logsBloom) } -// .types.H256 prevRandao = 6; +// .types.H256 prevRandao = 7; inline bool ExecutionPayload::_internal_has_prevrandao() const { return this != internal_default_instance() && prevrandao_ != nullptr; } @@ -4066,7 +4335,7 @@ inline void ExecutionPayload::set_allocated_prevrandao(::types::H256* prevrandao // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.prevRandao) } -// uint64 blockNumber = 7; +// uint64 blockNumber = 8; inline void ExecutionPayload::clear_blocknumber() { blocknumber_ = PROTOBUF_ULONGLONG(0); } @@ -4086,7 +4355,7 @@ inline void ExecutionPayload::set_blocknumber(::PROTOBUF_NAMESPACE_ID::uint64 va // @@protoc_insertion_point(field_set:types.ExecutionPayload.blockNumber) } -// uint64 gasLimit = 8; +// uint64 gasLimit = 9; inline void ExecutionPayload::clear_gaslimit() { gaslimit_ = PROTOBUF_ULONGLONG(0); } @@ -4106,7 +4375,7 @@ inline void ExecutionPayload::set_gaslimit(::PROTOBUF_NAMESPACE_ID::uint64 value // @@protoc_insertion_point(field_set:types.ExecutionPayload.gasLimit) } -// uint64 gasUsed = 9; +// uint64 gasUsed = 10; inline void ExecutionPayload::clear_gasused() { gasused_ = PROTOBUF_ULONGLONG(0); } @@ -4126,7 +4395,7 @@ inline void ExecutionPayload::set_gasused(::PROTOBUF_NAMESPACE_ID::uint64 value) // @@protoc_insertion_point(field_set:types.ExecutionPayload.gasUsed) } -// uint64 timestamp = 10; +// uint64 timestamp = 11; inline void ExecutionPayload::clear_timestamp() { timestamp_ = PROTOBUF_ULONGLONG(0); } @@ -4146,7 +4415,7 @@ inline void ExecutionPayload::set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 valu // @@protoc_insertion_point(field_set:types.ExecutionPayload.timestamp) } -// bytes extraData = 11; +// bytes extraData = 12; inline void ExecutionPayload::clear_extradata() { extradata_.ClearToEmpty(); } @@ -4207,7 +4476,7 @@ inline void ExecutionPayload::set_allocated_extradata(std::string* extradata) { // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.extraData) } -// .types.H256 baseFeePerGas = 12; +// .types.H256 baseFeePerGas = 13; inline bool ExecutionPayload::_internal_has_basefeepergas() const { return this != internal_default_instance() && basefeepergas_ != nullptr; } @@ -4290,7 +4559,7 @@ inline void ExecutionPayload::set_allocated_basefeepergas(::types::H256* basefee // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.baseFeePerGas) } -// .types.H256 blockHash = 13; +// .types.H256 blockHash = 14; inline bool ExecutionPayload::_internal_has_blockhash() const { return this != internal_default_instance() && blockhash_ != nullptr; } @@ -4373,7 +4642,7 @@ inline void ExecutionPayload::set_allocated_blockhash(::types::H256* blockhash) // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.blockHash) } -// repeated bytes transactions = 14; +// repeated bytes transactions = 15; inline int ExecutionPayload::_internal_transactions_size() const { return transactions_.size(); } @@ -4447,6 +4716,128 @@ ExecutionPayload::mutable_transactions() { return &transactions_; } +// repeated .types.Withdrawal withdrawals = 16; +inline int ExecutionPayload::_internal_withdrawals_size() const { + return withdrawals_.size(); +} +inline int ExecutionPayload::withdrawals_size() const { + return _internal_withdrawals_size(); +} +inline void ExecutionPayload::clear_withdrawals() { + withdrawals_.Clear(); +} +inline ::types::Withdrawal* ExecutionPayload::mutable_withdrawals(int index) { + // @@protoc_insertion_point(field_mutable:types.ExecutionPayload.withdrawals) + return withdrawals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* +ExecutionPayload::mutable_withdrawals() { + // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayload.withdrawals) + return &withdrawals_; +} +inline const ::types::Withdrawal& ExecutionPayload::_internal_withdrawals(int index) const { + return withdrawals_.Get(index); +} +inline const ::types::Withdrawal& ExecutionPayload::withdrawals(int index) const { + // @@protoc_insertion_point(field_get:types.ExecutionPayload.withdrawals) + return _internal_withdrawals(index); +} +inline ::types::Withdrawal* ExecutionPayload::_internal_add_withdrawals() { + return withdrawals_.Add(); +} +inline ::types::Withdrawal* ExecutionPayload::add_withdrawals() { + // @@protoc_insertion_point(field_add:types.ExecutionPayload.withdrawals) + return _internal_add_withdrawals(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& +ExecutionPayload::withdrawals() const { + // @@protoc_insertion_point(field_list:types.ExecutionPayload.withdrawals) + return withdrawals_; +} + +// .types.H256 excessDataGas = 17; +inline bool ExecutionPayload::_internal_has_excessdatagas() const { + return this != internal_default_instance() && excessdatagas_ != nullptr; +} +inline bool ExecutionPayload::has_excessdatagas() const { + return _internal_has_excessdatagas(); +} +inline void ExecutionPayload::clear_excessdatagas() { + if (GetArena() == nullptr && excessdatagas_ != nullptr) { + delete excessdatagas_; + } + excessdatagas_ = nullptr; +} +inline const ::types::H256& ExecutionPayload::_internal_excessdatagas() const { + const ::types::H256* p = excessdatagas_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& ExecutionPayload::excessdatagas() const { + // @@protoc_insertion_point(field_get:types.ExecutionPayload.excessDataGas) + return _internal_excessdatagas(); +} +inline void ExecutionPayload::unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(excessdatagas_); + } + excessdatagas_ = excessdatagas; + if (excessdatagas) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.ExecutionPayload.excessDataGas) +} +inline ::types::H256* ExecutionPayload::release_excessdatagas() { + + ::types::H256* temp = excessdatagas_; + excessdatagas_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::types::H256* ExecutionPayload::unsafe_arena_release_excessdatagas() { + // @@protoc_insertion_point(field_release:types.ExecutionPayload.excessDataGas) + + ::types::H256* temp = excessdatagas_; + excessdatagas_ = nullptr; + return temp; +} +inline ::types::H256* ExecutionPayload::_internal_mutable_excessdatagas() { + + if (excessdatagas_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArena()); + excessdatagas_ = p; + } + return excessdatagas_; +} +inline ::types::H256* ExecutionPayload::mutable_excessdatagas() { + // @@protoc_insertion_point(field_mutable:types.ExecutionPayload.excessDataGas) + return _internal_mutable_excessdatagas(); +} +inline void ExecutionPayload::set_allocated_excessdatagas(::types::H256* excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete excessdatagas_; + } + if (excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(excessdatagas); + if (message_arena != submessage_arena) { + excessdatagas = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, excessdatagas, submessage_arena); + } + + } else { + + } + excessdatagas_ = excessdatagas; + // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.excessDataGas) +} + // ------------------------------------------------------------------- // Withdrawal @@ -4574,213 +4965,259 @@ inline void Withdrawal::set_allocated_address(::types::H160* address) { // @@protoc_insertion_point(field_set_allocated:types.Withdrawal.address) } -// .types.H256 amount = 4; -inline bool Withdrawal::_internal_has_amount() const { - return this != internal_default_instance() && amount_ != nullptr; +// uint64 amount = 4; +inline void Withdrawal::clear_amount() { + amount_ = PROTOBUF_ULONGLONG(0); } -inline bool Withdrawal::has_amount() const { - return _internal_has_amount(); +inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::_internal_amount() const { + return amount_; } -inline void Withdrawal::clear_amount() { - if (GetArena() == nullptr && amount_ != nullptr) { - delete amount_; +inline ::PROTOBUF_NAMESPACE_ID::uint64 Withdrawal::amount() const { + // @@protoc_insertion_point(field_get:types.Withdrawal.amount) + return _internal_amount(); +} +inline void Withdrawal::_internal_set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + + amount_ = value; +} +inline void Withdrawal::set_amount(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:types.Withdrawal.amount) +} + +// ------------------------------------------------------------------- + +// BlobsBundleV1 + +// .types.H256 blockHash = 1; +inline bool BlobsBundleV1::_internal_has_blockhash() const { + return this != internal_default_instance() && blockhash_ != nullptr; +} +inline bool BlobsBundleV1::has_blockhash() const { + return _internal_has_blockhash(); +} +inline void BlobsBundleV1::clear_blockhash() { + if (GetArena() == nullptr && blockhash_ != nullptr) { + delete blockhash_; } - amount_ = nullptr; + blockhash_ = nullptr; } -inline const ::types::H256& Withdrawal::_internal_amount() const { - const ::types::H256* p = amount_; +inline const ::types::H256& BlobsBundleV1::_internal_blockhash() const { + const ::types::H256* p = blockhash_; return p != nullptr ? *p : reinterpret_cast( ::types::_H256_default_instance_); } -inline const ::types::H256& Withdrawal::amount() const { - // @@protoc_insertion_point(field_get:types.Withdrawal.amount) - return _internal_amount(); +inline const ::types::H256& BlobsBundleV1::blockhash() const { + // @@protoc_insertion_point(field_get:types.BlobsBundleV1.blockHash) + return _internal_blockhash(); } -inline void Withdrawal::unsafe_arena_set_allocated_amount( - ::types::H256* amount) { +inline void BlobsBundleV1::unsafe_arena_set_allocated_blockhash( + ::types::H256* blockhash) { if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amount_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash_); } - amount_ = amount; - if (amount) { + blockhash_ = blockhash; + if (blockhash) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.Withdrawal.amount) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.BlobsBundleV1.blockHash) } -inline ::types::H256* Withdrawal::release_amount() { +inline ::types::H256* BlobsBundleV1::release_blockhash() { - ::types::H256* temp = amount_; - amount_ = nullptr; + ::types::H256* temp = blockhash_; + blockhash_ = nullptr; if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } -inline ::types::H256* Withdrawal::unsafe_arena_release_amount() { - // @@protoc_insertion_point(field_release:types.Withdrawal.amount) +inline ::types::H256* BlobsBundleV1::unsafe_arena_release_blockhash() { + // @@protoc_insertion_point(field_release:types.BlobsBundleV1.blockHash) - ::types::H256* temp = amount_; - amount_ = nullptr; + ::types::H256* temp = blockhash_; + blockhash_ = nullptr; return temp; } -inline ::types::H256* Withdrawal::_internal_mutable_amount() { +inline ::types::H256* BlobsBundleV1::_internal_mutable_blockhash() { - if (amount_ == nullptr) { + if (blockhash_ == nullptr) { auto* p = CreateMaybeMessage<::types::H256>(GetArena()); - amount_ = p; + blockhash_ = p; } - return amount_; + return blockhash_; } -inline ::types::H256* Withdrawal::mutable_amount() { - // @@protoc_insertion_point(field_mutable:types.Withdrawal.amount) - return _internal_mutable_amount(); +inline ::types::H256* BlobsBundleV1::mutable_blockhash() { + // @@protoc_insertion_point(field_mutable:types.BlobsBundleV1.blockHash) + return _internal_mutable_blockhash(); } -inline void Withdrawal::set_allocated_amount(::types::H256* amount) { +inline void BlobsBundleV1::set_allocated_blockhash(::types::H256* blockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete amount_; + delete blockhash_; } - if (amount) { + if (blockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(amount); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(blockhash); if (message_arena != submessage_arena) { - amount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, amount, submessage_arena); + blockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, blockhash, submessage_arena); } } else { } - amount_ = amount; - // @@protoc_insertion_point(field_set_allocated:types.Withdrawal.amount) + blockhash_ = blockhash; + // @@protoc_insertion_point(field_set_allocated:types.BlobsBundleV1.blockHash) } -// ------------------------------------------------------------------- - -// ExecutionPayloadV2 - -// .types.ExecutionPayload payload = 1; -inline bool ExecutionPayloadV2::_internal_has_payload() const { - return this != internal_default_instance() && payload_ != nullptr; +// repeated bytes kzgs = 2; +inline int BlobsBundleV1::_internal_kzgs_size() const { + return kzgs_.size(); } -inline bool ExecutionPayloadV2::has_payload() const { - return _internal_has_payload(); +inline int BlobsBundleV1::kzgs_size() const { + return _internal_kzgs_size(); } -inline void ExecutionPayloadV2::clear_payload() { - if (GetArena() == nullptr && payload_ != nullptr) { - delete payload_; - } - payload_ = nullptr; +inline void BlobsBundleV1::clear_kzgs() { + kzgs_.Clear(); } -inline const ::types::ExecutionPayload& ExecutionPayloadV2::_internal_payload() const { - const ::types::ExecutionPayload* p = payload_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_ExecutionPayload_default_instance_); +inline std::string* BlobsBundleV1::add_kzgs() { + // @@protoc_insertion_point(field_add_mutable:types.BlobsBundleV1.kzgs) + return _internal_add_kzgs(); } -inline const ::types::ExecutionPayload& ExecutionPayloadV2::payload() const { - // @@protoc_insertion_point(field_get:types.ExecutionPayloadV2.payload) - return _internal_payload(); +inline const std::string& BlobsBundleV1::_internal_kzgs(int index) const { + return kzgs_.Get(index); } -inline void ExecutionPayloadV2::unsafe_arena_set_allocated_payload( - ::types::ExecutionPayload* payload) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload_); - } - payload_ = payload; - if (payload) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.ExecutionPayloadV2.payload) +inline const std::string& BlobsBundleV1::kzgs(int index) const { + // @@protoc_insertion_point(field_get:types.BlobsBundleV1.kzgs) + return _internal_kzgs(index); } -inline ::types::ExecutionPayload* ExecutionPayloadV2::release_payload() { - - ::types::ExecutionPayload* temp = payload_; - payload_ = nullptr; - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; +inline std::string* BlobsBundleV1::mutable_kzgs(int index) { + // @@protoc_insertion_point(field_mutable:types.BlobsBundleV1.kzgs) + return kzgs_.Mutable(index); } -inline ::types::ExecutionPayload* ExecutionPayloadV2::unsafe_arena_release_payload() { - // @@protoc_insertion_point(field_release:types.ExecutionPayloadV2.payload) - - ::types::ExecutionPayload* temp = payload_; - payload_ = nullptr; - return temp; +inline void BlobsBundleV1::set_kzgs(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.kzgs) + kzgs_.Mutable(index)->assign(value); } -inline ::types::ExecutionPayload* ExecutionPayloadV2::_internal_mutable_payload() { - - if (payload_ == nullptr) { - auto* p = CreateMaybeMessage<::types::ExecutionPayload>(GetArena()); - payload_ = p; - } - return payload_; +inline void BlobsBundleV1::set_kzgs(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.kzgs) + kzgs_.Mutable(index)->assign(std::move(value)); } -inline ::types::ExecutionPayload* ExecutionPayloadV2::mutable_payload() { - // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadV2.payload) - return _internal_mutable_payload(); +inline void BlobsBundleV1::set_kzgs(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + kzgs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:types.BlobsBundleV1.kzgs) } -inline void ExecutionPayloadV2::set_allocated_payload(::types::ExecutionPayload* payload) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete payload_; - } - if (payload) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(payload); - if (message_arena != submessage_arena) { - payload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload, submessage_arena); - } - - } else { - - } - payload_ = payload; - // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayloadV2.payload) +inline void BlobsBundleV1::set_kzgs(int index, const void* value, size_t size) { + kzgs_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:types.BlobsBundleV1.kzgs) +} +inline std::string* BlobsBundleV1::_internal_add_kzgs() { + return kzgs_.Add(); +} +inline void BlobsBundleV1::add_kzgs(const std::string& value) { + kzgs_.Add()->assign(value); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.kzgs) +} +inline void BlobsBundleV1::add_kzgs(std::string&& value) { + kzgs_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.kzgs) +} +inline void BlobsBundleV1::add_kzgs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + kzgs_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:types.BlobsBundleV1.kzgs) +} +inline void BlobsBundleV1::add_kzgs(const void* value, size_t size) { + kzgs_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:types.BlobsBundleV1.kzgs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BlobsBundleV1::kzgs() const { + // @@protoc_insertion_point(field_list:types.BlobsBundleV1.kzgs) + return kzgs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BlobsBundleV1::mutable_kzgs() { + // @@protoc_insertion_point(field_mutable_list:types.BlobsBundleV1.kzgs) + return &kzgs_; } -// repeated .types.Withdrawal withdrawals = 2; -inline int ExecutionPayloadV2::_internal_withdrawals_size() const { - return withdrawals_.size(); +// repeated bytes blobs = 3; +inline int BlobsBundleV1::_internal_blobs_size() const { + return blobs_.size(); } -inline int ExecutionPayloadV2::withdrawals_size() const { - return _internal_withdrawals_size(); +inline int BlobsBundleV1::blobs_size() const { + return _internal_blobs_size(); } -inline void ExecutionPayloadV2::clear_withdrawals() { - withdrawals_.Clear(); +inline void BlobsBundleV1::clear_blobs() { + blobs_.Clear(); } -inline ::types::Withdrawal* ExecutionPayloadV2::mutable_withdrawals(int index) { - // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadV2.withdrawals) - return withdrawals_.Mutable(index); +inline std::string* BlobsBundleV1::add_blobs() { + // @@protoc_insertion_point(field_add_mutable:types.BlobsBundleV1.blobs) + return _internal_add_blobs(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* -ExecutionPayloadV2::mutable_withdrawals() { - // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayloadV2.withdrawals) - return &withdrawals_; +inline const std::string& BlobsBundleV1::_internal_blobs(int index) const { + return blobs_.Get(index); } -inline const ::types::Withdrawal& ExecutionPayloadV2::_internal_withdrawals(int index) const { - return withdrawals_.Get(index); +inline const std::string& BlobsBundleV1::blobs(int index) const { + // @@protoc_insertion_point(field_get:types.BlobsBundleV1.blobs) + return _internal_blobs(index); } -inline const ::types::Withdrawal& ExecutionPayloadV2::withdrawals(int index) const { - // @@protoc_insertion_point(field_get:types.ExecutionPayloadV2.withdrawals) - return _internal_withdrawals(index); +inline std::string* BlobsBundleV1::mutable_blobs(int index) { + // @@protoc_insertion_point(field_mutable:types.BlobsBundleV1.blobs) + return blobs_.Mutable(index); } -inline ::types::Withdrawal* ExecutionPayloadV2::_internal_add_withdrawals() { - return withdrawals_.Add(); +inline void BlobsBundleV1::set_blobs(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.blobs) + blobs_.Mutable(index)->assign(value); } -inline ::types::Withdrawal* ExecutionPayloadV2::add_withdrawals() { - // @@protoc_insertion_point(field_add:types.ExecutionPayloadV2.withdrawals) - return _internal_add_withdrawals(); +inline void BlobsBundleV1::set_blobs(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.blobs) + blobs_.Mutable(index)->assign(std::move(value)); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& -ExecutionPayloadV2::withdrawals() const { - // @@protoc_insertion_point(field_list:types.ExecutionPayloadV2.withdrawals) - return withdrawals_; +inline void BlobsBundleV1::set_blobs(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + blobs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::set_blobs(int index, const void* value, size_t size) { + blobs_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:types.BlobsBundleV1.blobs) +} +inline std::string* BlobsBundleV1::_internal_add_blobs() { + return blobs_.Add(); +} +inline void BlobsBundleV1::add_blobs(const std::string& value) { + blobs_.Add()->assign(value); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::add_blobs(std::string&& value) { + blobs_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::add_blobs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + blobs_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::add_blobs(const void* value, size_t size) { + blobs_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:types.BlobsBundleV1.blobs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BlobsBundleV1::blobs() const { + // @@protoc_insertion_point(field_list:types.BlobsBundleV1.blobs) + return blobs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BlobsBundleV1::mutable_blobs() { + // @@protoc_insertion_point(field_mutable_list:types.BlobsBundleV1.blobs) + return &blobs_; } // ------------------------------------------------------------------- @@ -5784,6 +6221,123 @@ inline void PeerInfo::set_connisstatic(bool value) { // @@protoc_insertion_point(field_set:types.PeerInfo.connIsStatic) } +// ------------------------------------------------------------------- + +// ExecutionPayloadBodyV1 + +// repeated bytes transactions = 1; +inline int ExecutionPayloadBodyV1::_internal_transactions_size() const { + return transactions_.size(); +} +inline int ExecutionPayloadBodyV1::transactions_size() const { + return _internal_transactions_size(); +} +inline void ExecutionPayloadBodyV1::clear_transactions() { + transactions_.Clear(); +} +inline std::string* ExecutionPayloadBodyV1::add_transactions() { + // @@protoc_insertion_point(field_add_mutable:types.ExecutionPayloadBodyV1.transactions) + return _internal_add_transactions(); +} +inline const std::string& ExecutionPayloadBodyV1::_internal_transactions(int index) const { + return transactions_.Get(index); +} +inline const std::string& ExecutionPayloadBodyV1::transactions(int index) const { + // @@protoc_insertion_point(field_get:types.ExecutionPayloadBodyV1.transactions) + return _internal_transactions(index); +} +inline std::string* ExecutionPayloadBodyV1::mutable_transactions(int index) { + // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadBodyV1.transactions) + return transactions_.Mutable(index); +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:types.ExecutionPayloadBodyV1.transactions) + transactions_.Mutable(index)->assign(value); +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:types.ExecutionPayloadBodyV1.transactions) + transactions_.Mutable(index)->assign(std::move(value)); +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + transactions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, const void* value, size_t size) { + transactions_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:types.ExecutionPayloadBodyV1.transactions) +} +inline std::string* ExecutionPayloadBodyV1::_internal_add_transactions() { + return transactions_.Add(); +} +inline void ExecutionPayloadBodyV1::add_transactions(const std::string& value) { + transactions_.Add()->assign(value); + // @@protoc_insertion_point(field_add:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::add_transactions(std::string&& value) { + transactions_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::add_transactions(const char* value) { + GOOGLE_DCHECK(value != nullptr); + transactions_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::add_transactions(const void* value, size_t size) { + transactions_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:types.ExecutionPayloadBodyV1.transactions) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ExecutionPayloadBodyV1::transactions() const { + // @@protoc_insertion_point(field_list:types.ExecutionPayloadBodyV1.transactions) + return transactions_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ExecutionPayloadBodyV1::mutable_transactions() { + // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayloadBodyV1.transactions) + return &transactions_; +} + +// repeated .types.Withdrawal withdrawals = 2; +inline int ExecutionPayloadBodyV1::_internal_withdrawals_size() const { + return withdrawals_.size(); +} +inline int ExecutionPayloadBodyV1::withdrawals_size() const { + return _internal_withdrawals_size(); +} +inline void ExecutionPayloadBodyV1::clear_withdrawals() { + withdrawals_.Clear(); +} +inline ::types::Withdrawal* ExecutionPayloadBodyV1::mutable_withdrawals(int index) { + // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadBodyV1.withdrawals) + return withdrawals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* +ExecutionPayloadBodyV1::mutable_withdrawals() { + // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayloadBodyV1.withdrawals) + return &withdrawals_; +} +inline const ::types::Withdrawal& ExecutionPayloadBodyV1::_internal_withdrawals(int index) const { + return withdrawals_.Get(index); +} +inline const ::types::Withdrawal& ExecutionPayloadBodyV1::withdrawals(int index) const { + // @@protoc_insertion_point(field_get:types.ExecutionPayloadBodyV1.withdrawals) + return _internal_withdrawals(index); +} +inline ::types::Withdrawal* ExecutionPayloadBodyV1::_internal_add_withdrawals() { + return withdrawals_.Add(); +} +inline ::types::Withdrawal* ExecutionPayloadBodyV1::add_withdrawals() { + // @@protoc_insertion_point(field_add:types.ExecutionPayloadBodyV1.withdrawals) + return _internal_add_withdrawals(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& +ExecutionPayloadBodyV1::withdrawals() const { + // @@protoc_insertion_point(field_list:types.ExecutionPayloadBodyV1.withdrawals) + return withdrawals_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -5811,6 +6365,8 @@ inline void PeerInfo::set_connisstatic(bool value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/silkworm/interfaces/generate_grpc.cmake b/silkworm/interfaces/generate_grpc.cmake index 40c35600f0..8cff29fff8 100644 --- a/silkworm/interfaces/generate_grpc.cmake +++ b/silkworm/interfaces/generate_grpc.cmake @@ -92,7 +92,10 @@ add_custom_command( create_symlink_target(generate_types_proto_symlink "${OUT_PATH_SYMLINK}/types" "${OUT_PATH}/types") -add_custom_target(generate_types_proto DEPENDS "${TYPES_SOURCES_OUT}" generate_types_proto_symlink) +add_custom_command( + OUTPUT ${TYPES_SOURCES_SYMLINK} + DEPENDS ${TYPES_SOURCES_OUT} generate_types_proto_symlink +) # --------------------------------------------------------------------------------------------------------------------- # Execution @@ -119,8 +122,9 @@ add_custom_command( create_symlink_target(generate_execution_grpc_symlink "${OUT_PATH_SYMLINK}/execution" "${OUT_PATH}/execution") -add_custom_target( - generate_execution_grpc DEPENDS "${EXECUTION_SOURCES_OUT}" generate_types_proto generate_execution_grpc_symlink +add_custom_command( + OUTPUT ${EXECUTION_SOURCES_SYMLINK} + DEPENDS ${EXECUTION_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_execution_grpc_symlink ) # --------------------------------------------------------------------------------------------------------------------- @@ -156,8 +160,9 @@ add_custom_command( create_symlink_target(generate_sentry_grpc_symlink "${OUT_PATH_SYMLINK}/p2psentry" "${OUT_PATH}/p2psentry") -add_custom_target( - generate_sentry_grpc DEPENDS "${SENTRY_SOURCES_OUT}" generate_types_proto generate_sentry_grpc_symlink +add_custom_command( + OUTPUT ${SENTRY_SOURCES_SYMLINK} + DEPENDS ${SENTRY_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_sentry_grpc_symlink ) # --------------------------------------------------------------------------------------------------------------------- @@ -193,7 +198,10 @@ add_custom_command( create_symlink_target(generate_remote_grpc_symlink "${OUT_PATH_SYMLINK}/remote" "${OUT_PATH}/remote") -add_custom_target(generate_kv_grpc DEPENDS "${KV_SOURCES_OUT}" generate_types_proto generate_remote_grpc_symlink) +add_custom_command( + OUTPUT ${KV_SOURCES_SYMLINK} + DEPENDS ${KV_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_remote_grpc_symlink +) # --------------------------------------------------------------------------------------------------------------------- # ETHBACKEND @@ -226,8 +234,9 @@ add_custom_command( COMMENT "Running C++ gRPC compiler on ${ETHBACKEND_PROTO}" ) -add_custom_target( - generate_ethbackend_grpc DEPENDS "${ETHBACKEND_SOURCES_OUT}" generate_types_proto generate_remote_grpc_symlink +add_custom_command( + OUTPUT ${ETHBACKEND_SOURCES_SYMLINK} + DEPENDS ${ETHBACKEND_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_remote_grpc_symlink ) # --------------------------------------------------------------------------------------------------------------------- @@ -263,8 +272,9 @@ add_custom_command( create_symlink_target(generate_txpool_grpc_symlink "${OUT_PATH_SYMLINK}/txpool" "${OUT_PATH}/txpool") -add_custom_target( - generate_mining_grpc DEPENDS "${MINING_SOURCES_OUT}" generate_types_proto generate_txpool_grpc_symlink +add_custom_command( + OUTPUT ${MINING_SOURCES_SYMLINK} + DEPENDS ${MINING_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_txpool_grpc_symlink ) # --------------------------------------------------------------------------------------------------------------------- @@ -298,6 +308,7 @@ add_custom_command( COMMENT "Running C++ gRPC compiler on ${TXPOOL_PROTO}" ) -add_custom_target( - generate_txpool_grpc DEPENDS "${TXPOOL_SOURCES_OUT}" generate_types_proto generate_txpool_grpc_symlink +add_custom_command( + OUTPUT ${TXPOOL_SOURCES_SYMLINK} + DEPENDS ${TXPOOL_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_txpool_grpc_symlink ) diff --git a/silkworm/interfaces/proto b/silkworm/interfaces/proto index 123179dc16..6d05f5fed6 160000 --- a/silkworm/interfaces/proto +++ b/silkworm/interfaces/proto @@ -1 +1 @@ -Subproject commit 123179dc16ebabc0f368c568575774ebd1e91d10 +Subproject commit 6d05f5fed66ae2ce84d97c7440f32151e5b581a2 diff --git a/silkworm/node/stagedsync/remote_client.cpp b/silkworm/node/stagedsync/remote_client.cpp index e397a2cb22..ef61fc5b67 100644 --- a/silkworm/node/stagedsync/remote_client.cpp +++ b/silkworm/node/stagedsync/remote_client.cpp @@ -163,7 +163,7 @@ awaitable RemoteClient::get_body(BlockNum block_number, Hash block_ha .index = execution_withdrawal.index(), .validator_index = execution_withdrawal.validatorindex(), .address = rpc::address_from_H160(execution_withdrawal.address()), - .amount = uint64_t(rpc::uint256_from_H256(execution_withdrawal.amount())), + .amount = execution_withdrawal.amount(), }); } co_return body; @@ -200,7 +200,7 @@ awaitable RemoteClient::insert_bodies(const BlockVector& blocks) { w->set_index(withdrawal.index); w->set_validatorindex(withdrawal.validator_index); w->set_allocated_address(rpc::H160_from_address(withdrawal.address).release()); - w->set_allocated_amount(rpc::H256_from_uint256(withdrawal.amount).release()); + w->set_amount(withdrawal.amount); } } } diff --git a/silkworm/sentry/api/api_common/service.hpp b/silkworm/sentry/api/api_common/service.hpp index 4325e55eae..335650aa66 100644 --- a/silkworm/sentry/api/api_common/service.hpp +++ b/silkworm/sentry/api/api_common/service.hpp @@ -83,9 +83,6 @@ struct Service { // rpc PenalizePeer(PenalizePeerRequest) returns (google.protobuf.Empty); virtual boost::asio::awaitable penalize_peer(common::EccPublicKey public_key) = 0; - // rpc PeerUseless(PeerUselessRequest) returns (google.protobuf.Empty); - virtual boost::asio::awaitable peer_useless(common::EccPublicKey public_key) = 0; - // rpc PeerEvents(PeerEventsRequest) returns (stream PeerEvent); virtual boost::asio::awaitable peer_events(std::function(PeerEvent)> consumer) = 0; }; diff --git a/silkworm/sentry/api/router/direct_service.cpp b/silkworm/sentry/api/router/direct_service.cpp index b40b7aee68..d5dded0fdc 100644 --- a/silkworm/sentry/api/router/direct_service.cpp +++ b/silkworm/sentry/api/router/direct_service.cpp @@ -120,10 +120,6 @@ awaitable DirectService::penalize_peer(common::EccPublicKey public_key) { co_await router_.peer_penalize_calls_channel.send({std::move(public_key)}); } -awaitable DirectService::peer_useless(common::EccPublicKey public_key) { - co_await router_.peer_penalize_calls_channel.send({std::move(public_key)}); -} - awaitable DirectService::peer_events( std::function(api_common::PeerEvent)> consumer) { auto executor = co_await this_coro::executor; diff --git a/silkworm/sentry/api/router/direct_service.hpp b/silkworm/sentry/api/router/direct_service.hpp index 57c6c4f0b6..45f12db35c 100644 --- a/silkworm/sentry/api/router/direct_service.hpp +++ b/silkworm/sentry/api/router/direct_service.hpp @@ -45,7 +45,6 @@ class DirectService : api_common::Service { boost::asio::awaitable peer_count() override; boost::asio::awaitable> peer_by_id(common::EccPublicKey public_key) override; boost::asio::awaitable penalize_peer(common::EccPublicKey public_key) override; - boost::asio::awaitable peer_useless(common::EccPublicKey public_key) override; boost::asio::awaitable peer_events(std::function(api_common::PeerEvent)> consumer) override; private: diff --git a/silkworm/sentry/rpc/client/sentry_client.cpp b/silkworm/sentry/rpc/client/sentry_client.cpp index cb7524da9b..3c9976223d 100644 --- a/silkworm/sentry/rpc/client/sentry_client.cpp +++ b/silkworm/sentry/rpc/client/sentry_client.cpp @@ -194,13 +194,6 @@ class SentryClientImpl final : public api::api_common::Service { co_await sw_rpc::unary_rpc_with_retries(&Stub::AsyncPenalizePeer, stub_, std::move(request), grpc_context_, *channel_); } - // rpc PeerUseless(PeerUselessRequest) returns (google.protobuf.Empty); - awaitable peer_useless(common::EccPublicKey public_key) override { - proto::PeerUselessRequest request; - request.mutable_peer_id()->CopyFrom(interfaces::peer_id_from_public_key(public_key)); - co_await sw_rpc::unary_rpc_with_retries(&Stub::AsyncPeerUseless, stub_, std::move(request), grpc_context_, *channel_); - } - // rpc PeerEvents(PeerEventsRequest) returns (stream PeerEvent); awaitable peer_events( std::function(PeerEvent)> consumer) override { diff --git a/silkworm/sentry/rpc/server/server.cpp b/silkworm/sentry/rpc/server/server.cpp index aa2d043651..f33131bc31 100644 --- a/silkworm/sentry/rpc/server/server.cpp +++ b/silkworm/sentry/rpc/server/server.cpp @@ -105,7 +105,6 @@ void ServerImpl::register_request_calls(agrpc::GrpcContext* grpc_context) { request_repeatedly(&AsyncService::RequestPeerCount, grpc_context); request_repeatedly(&AsyncService::RequestPeerById, grpc_context); request_repeatedly(&AsyncService::RequestPenalizePeer, grpc_context); - request_repeatedly(&AsyncService::RequestPeerUseless, grpc_context); request_repeatedly(&AsyncService::RequestPeerEvents, grpc_context); } diff --git a/silkworm/sentry/rpc/server/server_calls.hpp b/silkworm/sentry/rpc/server/server_calls.hpp index dc95fd0305..add38b7503 100644 --- a/silkworm/sentry/rpc/server/server_calls.hpp +++ b/silkworm/sentry/rpc/server/server_calls.hpp @@ -289,20 +289,6 @@ class PenalizePeerCall : public sw_rpc::server::UnaryCall { - public: - using Base::UnaryCall; - - awaitable operator()(const ServiceRouter& router) { - auto peer_public_key = interfaces::peer_public_key_from_id(request_.peer_id()); - - co_await router.peer_penalize_calls_channel.send({peer_public_key}); - - co_await agrpc::finish(responder_, protobuf::Empty{}, grpc::Status::OK); - } -}; - // Subscribe to notifications about connected or lost peers. // rpc PeerEvents(PeerEventsRequest) returns (stream PeerEvent); class PeerEventsCall : public sw_rpc::server::ServerStreamingCall { From 4c5514d400d3d859e2be166fbed1735998121bf3 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 10 Apr 2023 11:41:54 +0200 Subject: [PATCH 03/21] Fix compilation --- .../silkrpc/ethbackend/remote_backend.cpp | 10 +++-- .../ethbackend/remote_backend_test.cpp | 42 ++++++++++--------- silkworm/silkrpc/types/execution_payload.hpp | 10 ++--- 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/silkworm/silkrpc/ethbackend/remote_backend.cpp b/silkworm/silkrpc/ethbackend/remote_backend.cpp index 8b7fa4a447..579cb07b42 100644 --- a/silkworm/silkrpc/ethbackend/remote_backend.cpp +++ b/silkworm/silkrpc/ethbackend/remote_backend.cpp @@ -119,18 +119,18 @@ boost::asio::awaitable> RemoteBackEnd::engine_node_info() boost::asio::awaitable RemoteBackEnd::engine_get_payload_v1(uint64_t payload_id) { const auto start_time = clock_time::now(); - UnaryRpc<&::remote::ETHBACKEND::StubInterface::AsyncEngineGetPayloadV1> npc_rpc{*stub_, grpc_context_}; + UnaryRpc<&::remote::ETHBACKEND::StubInterface::AsyncEngineGetPayload> npc_rpc{*stub_, grpc_context_}; ::remote::EngineGetPayloadRequest req; req.set_payloadid(payload_id); const auto reply = co_await npc_rpc.finish_on(executor_, req); - auto execution_payload{decode_execution_payload(reply)}; + auto execution_payload{decode_execution_payload(reply.executionpayload())}; SILKRPC_DEBUG << "RemoteBackEnd::engine_get_payload_v1 data=" << execution_payload << " t=" << clock_time::since(start_time) << "\n"; co_return execution_payload; } boost::asio::awaitable RemoteBackEnd::engine_new_payload_v1(ExecutionPayload payload) { const auto start_time = clock_time::now(); - UnaryRpc<&::remote::ETHBACKEND::StubInterface::AsyncEngineNewPayloadV1> npc_rpc{*stub_, grpc_context_}; + UnaryRpc<&::remote::ETHBACKEND::StubInterface::AsyncEngineNewPayload> npc_rpc{*stub_, grpc_context_}; auto req{encode_execution_payload(payload)}; const auto reply = co_await npc_rpc.finish_on(executor_, req); PayloadStatus payload_status = decode_payload_status(reply); @@ -141,7 +141,7 @@ boost::asio::awaitable RemoteBackEnd::engine_new_payload_v1(Execu boost::asio::awaitable RemoteBackEnd::engine_forkchoice_updated_v1( ForkChoiceUpdatedRequest forkchoice_updated_request) { const auto start_time = clock_time::now(); - UnaryRpc<&::remote::ETHBACKEND::StubInterface::AsyncEngineForkChoiceUpdatedV1> fcu_rpc{*stub_, grpc_context_}; + UnaryRpc<&::remote::ETHBACKEND::StubInterface::AsyncEngineForkChoiceUpdated> fcu_rpc{*stub_, grpc_context_}; const auto req{encode_forkchoice_updated_request(forkchoice_updated_request)}; const auto reply = co_await fcu_rpc.finish_on(executor_, req); PayloadStatus payload_status = decode_payload_status(reply.payloadstatus()); @@ -364,6 +364,8 @@ remote::EngineForkChoiceState* RemoteBackEnd::encode_forkchoice_state(const Fork remote::EnginePayloadAttributes* RemoteBackEnd::encode_payload_attributes(const PayloadAttributes& payload_attributes) { remote::EnginePayloadAttributes* payload_attributes_grpc = new remote::EnginePayloadAttributes(); + // TODO(yperbasis) support v2 (withdrawals) as well + payload_attributes_grpc->set_version(1); // Numerical parameters payload_attributes_grpc->set_timestamp(payload_attributes.timestamp); // 32-bytes parameters diff --git a/silkworm/silkrpc/ethbackend/remote_backend_test.cpp b/silkworm/silkrpc/ethbackend/remote_backend_test.cpp index 54b0d6c05c..e398d7bc6c 100644 --- a/silkworm/silkrpc/ethbackend/remote_backend_test.cpp +++ b/silkworm/silkrpc/ethbackend/remote_backend_test.cpp @@ -222,23 +222,23 @@ TEST_CASE_METHOD(EthBackendTest, "BackEnd::node_info", "[silkrpc][ethbackend][ba } TEST_CASE_METHOD(EthBackendTest, "BackEnd::engine_get_payload_v1", "[silkrpc][ethbackend][backend]") { - test::StrictMockAsyncResponseReader<::types::ExecutionPayload> reader; - EXPECT_CALL(*stub_, AsyncEngineGetPayloadV1Raw).WillOnce(testing::Return(&reader)); + test::StrictMockAsyncResponseReader<::remote::EngineGetPayloadResponse> reader; + EXPECT_CALL(*stub_, AsyncEngineGetPayloadRaw).WillOnce(testing::Return(&reader)); SECTION("call engine_get_payload_v1 and get payload") { - ::types::ExecutionPayload response; - response.set_allocated_coinbase(make_h160(0xa94f5374fce5edbc, 0x8e2a8697c1533167, 0x7e6ebf0b)); - response.set_allocated_blockhash(make_h256(0x3559e851470f6e7b, 0xbed1db474980683e, 0x8c315bfce99b2a6e, 0xf47c057c04de7858)); - response.set_allocated_basefeepergas(make_h256(0x0, 0x0, 0x0, 0x7)); - response.set_allocated_stateroot(make_h256(0xca3149fa9e37db08, 0xd1cd49c9061db100, 0x2ef1cd58db2210f2, 0x115c8c989b2bdf45)); - response.set_allocated_receiptroot(make_h256(0x56e81f171bcc55a6, 0xff8345e692c0f86e, 0x5b48e01b996cadc0, 0x01622fb5e363b421)); - response.set_allocated_parenthash(make_h256(0x3b8fb240d288781d, 0x4aac94d3fd16809e, 0xe413bc99294a0857, 0x98a589dae51ddd4a)); - response.set_allocated_prevrandao(make_h256(0x0, 0x0, 0x0, 0x1)); - response.set_blocknumber(0x1); - response.set_gaslimit(0x1c9c380); - response.set_timestamp(0x5); + const auto p{new ::types::ExecutionPayload}; + p->set_allocated_coinbase(make_h160(0xa94f5374fce5edbc, 0x8e2a8697c1533167, 0x7e6ebf0b)); + p->set_allocated_blockhash(make_h256(0x3559e851470f6e7b, 0xbed1db474980683e, 0x8c315bfce99b2a6e, 0xf47c057c04de7858)); + p->set_allocated_basefeepergas(make_h256(0x0, 0x0, 0x0, 0x7)); + p->set_allocated_stateroot(make_h256(0xca3149fa9e37db08, 0xd1cd49c9061db100, 0x2ef1cd58db2210f2, 0x115c8c989b2bdf45)); + p->set_allocated_receiptroot(make_h256(0x56e81f171bcc55a6, 0xff8345e692c0f86e, 0x5b48e01b996cadc0, 0x01622fb5e363b421)); + p->set_allocated_parenthash(make_h256(0x3b8fb240d288781d, 0x4aac94d3fd16809e, 0xe413bc99294a0857, 0x98a589dae51ddd4a)); + p->set_allocated_prevrandao(make_h256(0x0, 0x0, 0x0, 0x1)); + p->set_blocknumber(0x1); + p->set_gaslimit(0x1c9c380); + p->set_timestamp(0x5); const auto tx_bytes{*silkworm::from_hex("0xf92ebdeab45d368f6354e8c5a8ac586c")}; - response.add_transactions(tx_bytes.data(), tx_bytes.size()); + p->add_transactions(tx_bytes.data(), tx_bytes.size()); const auto hi_hi_hi_logsbloom{make_h256(0x1000000000000000, 0x0, 0x0, 0x0)}; const auto hi_hi_logsbloom{new ::types::H512()}; hi_hi_logsbloom->set_allocated_hi(hi_hi_hi_logsbloom); @@ -246,8 +246,12 @@ TEST_CASE_METHOD(EthBackendTest, "BackEnd::engine_get_payload_v1", "[silkrpc][et hi_logsbloom->set_allocated_hi(hi_hi_logsbloom); const auto logsbloom{new ::types::H2048()}; logsbloom->set_allocated_hi(hi_logsbloom); - response.set_allocated_logsbloom(logsbloom); + p->set_allocated_logsbloom(logsbloom); + + ::remote::EngineGetPayloadResponse response; + response.set_allocated_executionpayload(p); EXPECT_CALL(reader, Finish).WillOnce(test::finish_with(grpc_context_, std::move(response))); + const auto payload = run<ðbackend::RemoteBackEnd::engine_get_payload_v1>(0u); CHECK(payload.number == 0x1); CHECK(payload.gas_limit == 0x1c9c380); @@ -279,7 +283,7 @@ TEST_CASE_METHOD(EthBackendTest, "BackEnd::engine_get_payload_v1", "[silkrpc][et TEST_CASE_METHOD(EthBackendTest, "BackEnd::engine_new_payload_v1", "[silkrpc][ethbackend][backend]") { test::StrictMockAsyncResponseReader<::remote::EnginePayloadStatus> reader; - EXPECT_CALL(*stub_, AsyncEngineNewPayloadV1Raw).WillOnce(testing::Return(&reader)); + EXPECT_CALL(*stub_, AsyncEngineNewPayloadRaw).WillOnce(testing::Return(&reader)); silkworm::Bloom bloom; bloom.fill(0); @@ -344,8 +348,8 @@ TEST_CASE_METHOD(EthBackendTest, "BackEnd::engine_new_payload_v1", "[silkrpc][et } TEST_CASE_METHOD(EthBackendTest, "BackEnd::engine_forkchoice_updated_v1", "[silkrpc][ethbackend][backend]") { - test::StrictMockAsyncResponseReader<::remote::EngineForkChoiceUpdatedReply> reader; - EXPECT_CALL(*stub_, AsyncEngineForkChoiceUpdatedV1Raw).WillOnce(testing::Return(&reader)); + test::StrictMockAsyncResponseReader<::remote::EngineForkChoiceUpdatedResponse> reader; + EXPECT_CALL(*stub_, AsyncEngineForkChoiceUpdatedRaw).WillOnce(testing::Return(&reader)); const ForkChoiceUpdatedRequest forkchoice_request{ .fork_choice_state = @@ -359,7 +363,7 @@ TEST_CASE_METHOD(EthBackendTest, "BackEnd::engine_forkchoice_updated_v1", "[silk .prev_randao = 0x0000000000000000000000000000000000000000000000000000000000000001_bytes32, .suggested_fee_recipient = 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b_address}}; SECTION("call engine_forkchoice_updated_v1 and get VALID status") { - ::remote::EngineForkChoiceUpdatedReply response; + ::remote::EngineForkChoiceUpdatedResponse response; auto* engine_payload_status = new ::remote::EnginePayloadStatus(); engine_payload_status->set_allocated_latestvalidhash(make_h256(0, 0, 0, 0x40)); engine_payload_status->set_validationerror("some error"); diff --git a/silkworm/silkrpc/types/execution_payload.hpp b/silkworm/silkrpc/types/execution_payload.hpp index e72e8b2328..2e49cf9a43 100644 --- a/silkworm/silkrpc/types/execution_payload.hpp +++ b/silkworm/silkrpc/types/execution_payload.hpp @@ -28,7 +28,7 @@ namespace silkworm::rpc { -//! ExecutionPayload as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md +//! ExecutionPayload as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#executionpayloadv1 struct ExecutionPayload { uint64_t number; uint64_t timestamp; @@ -46,21 +46,21 @@ struct ExecutionPayload { std::vector transactions; }; -//! ForkChoiceState as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#ForkchoiceStateV1 +//! ForkChoiceState as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#forkchoicestatev1 struct ForkChoiceState { evmc::bytes32 head_block_hash; evmc::bytes32 safe_block_hash; evmc::bytes32 finalized_block_hash; }; -//! PayloadAttributes as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#payloadattributesv1 +//! PayloadAttributes as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#payloadattributesv1 struct PayloadAttributes { uint64_t timestamp; evmc::bytes32 prev_randao; evmc::address suggested_fee_recipient; }; -//! PayloadStatus as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md +//! PayloadStatus as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#payloadstatusv1 struct PayloadStatus { std::string status; std::optional latest_valid_hash; @@ -77,7 +77,7 @@ struct ForkChoiceUpdatedReply { std::optional payload_id; }; -//! TransitionConfiguration as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md +//! TransitionConfiguration as specified by https://github.com/ethereum/execution-apis/blob/main/src/engine/paris.md#transitionconfigurationv1 struct TransitionConfiguration { intx::uint256 terminal_total_difficulty; evmc::bytes32 terminal_block_hash; From 7939e85049298bc91a31d27e689ee730c14be6e9 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 10 Apr 2023 12:17:30 +0200 Subject: [PATCH 04/21] Update 3.21.4 interfaces --- .../3.21.4/p2psentry/sentry.grpc.pb.cc | 84 +- .../3.21.4/p2psentry/sentry.grpc.pb.h | 365 +- .../interfaces/3.21.4/p2psentry/sentry.pb.cc | 730 +- .../interfaces/3.21.4/p2psentry/sentry.pb.h | 570 +- .../3.21.4/p2psentry/sentry_mock.grpc.pb.h | 3 - .../3.21.4/remote/ethbackend.grpc.pb.cc | 198 +- .../3.21.4/remote/ethbackend.grpc.pb.h | 720 +- .../interfaces/3.21.4/remote/ethbackend.pb.cc | 2084 ++++-- .../interfaces/3.21.4/remote/ethbackend.pb.h | 2825 +++++--- .../3.21.4/remote/ethbackend_mock.grpc.pb.h | 36 +- .../interfaces/3.21.4/remote/kv.grpc.pb.cc | 209 +- .../interfaces/3.21.4/remote/kv.grpc.pb.h | 809 ++- silkworm/interfaces/3.21.4/remote/kv.pb.cc | 4194 +++++++++-- silkworm/interfaces/3.21.4/remote/kv.pb.h | 6277 +++++++++++++---- .../3.21.4/remote/kv_mock.grpc.pb.h | 18 +- silkworm/interfaces/3.21.4/types/types.pb.cc | 877 ++- silkworm/interfaces/3.21.4/types/types.pb.h | 1124 ++- 17 files changed, 15324 insertions(+), 5799 deletions(-) diff --git a/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.cc b/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.cc index fabff124ab..84e13de39b 100644 --- a/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.cc +++ b/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.cc @@ -25,7 +25,6 @@ static const char* Sentry_method_names[] = { "/sentry.Sentry/SetStatus", "/sentry.Sentry/PenalizePeer", "/sentry.Sentry/PeerMinBlock", - "/sentry.Sentry/PeerUseless", "/sentry.Sentry/HandShake", "/sentry.Sentry/SendMessageByMinBlock", "/sentry.Sentry/SendMessageById", @@ -49,18 +48,17 @@ Sentry::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, co : channel_(channel), rpcmethod_SetStatus_(Sentry_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_PenalizePeer_(Sentry_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_PeerMinBlock_(Sentry_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerUseless_(Sentry_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_HandShake_(Sentry_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageByMinBlock_(Sentry_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageById_(Sentry_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageToRandomPeers_(Sentry_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SendMessageToAll_(Sentry_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Messages_(Sentry_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_Peers_(Sentry_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerCount_(Sentry_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerById_(Sentry_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PeerEvents_(Sentry_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_NodeInfo_(Sentry_method_names[14], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_HandShake_(Sentry_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageByMinBlock_(Sentry_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageById_(Sentry_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageToRandomPeers_(Sentry_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessageToAll_(Sentry_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Messages_(Sentry_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_Peers_(Sentry_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PeerCount_(Sentry_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PeerById_(Sentry_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PeerEvents_(Sentry_method_names[12], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_NodeInfo_(Sentry_method_names[13], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status Sentry::Stub::SetStatus(::grpc::ClientContext* context, const ::sentry::StatusData& request, ::sentry::SetStatusReply* response) { @@ -132,29 +130,6 @@ ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Sentry::Stub::Asy return result; } -::grpc::Status Sentry::Stub::PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response) { - return ::grpc::internal::BlockingUnaryCall< ::sentry::PeerUselessRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PeerUseless_, context, request, response); -} - -void Sentry::Stub::async::PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::sentry::PeerUselessRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PeerUseless_, context, request, response, std::move(f)); -} - -void Sentry::Stub::async::PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PeerUseless_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Sentry::Stub::PrepareAsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::google::protobuf::Empty, ::sentry::PeerUselessRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PeerUseless_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Sentry::Stub::AsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncPeerUselessRaw(context, request, cq); - result->StartCall(); - return result; -} - ::grpc::Status Sentry::Stub::HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response) { return ::grpc::internal::BlockingUnaryCall< ::google::protobuf::Empty, ::sentry::HandShakeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HandShake_, context, request, response); } @@ -428,16 +403,6 @@ Sentry::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( Sentry_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::PeerUselessRequest, ::google::protobuf::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](Sentry::Service* service, - ::grpc::ServerContext* ctx, - const ::sentry::PeerUselessRequest* req, - ::google::protobuf::Empty* resp) { - return service->PeerUseless(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::google::protobuf::Empty, ::sentry::HandShakeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, ::grpc::ServerContext* ctx, @@ -446,7 +411,7 @@ Sentry::Service::Service() { return service->HandShake(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[5], + Sentry_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -456,7 +421,7 @@ Sentry::Service::Service() { return service->SendMessageByMinBlock(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[6], + Sentry_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::SendMessageByIdRequest, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -466,7 +431,7 @@ Sentry::Service::Service() { return service->SendMessageById(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[7], + Sentry_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -476,7 +441,7 @@ Sentry::Service::Service() { return service->SendMessageToRandomPeers(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[8], + Sentry_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::OutboundMessageData, ::sentry::SentPeers, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -486,7 +451,7 @@ Sentry::Service::Service() { return service->SendMessageToAll(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[9], + Sentry_method_names[8], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< Sentry::Service, ::sentry::MessagesRequest, ::sentry::InboundMessage>( [](Sentry::Service* service, @@ -496,7 +461,7 @@ Sentry::Service::Service() { return service->Messages(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[10], + Sentry_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::google::protobuf::Empty, ::sentry::PeersReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -506,7 +471,7 @@ Sentry::Service::Service() { return service->Peers(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[11], + Sentry_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::PeerCountRequest, ::sentry::PeerCountReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -516,7 +481,7 @@ Sentry::Service::Service() { return service->PeerCount(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[12], + Sentry_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -526,7 +491,7 @@ Sentry::Service::Service() { return service->PeerById(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[13], + Sentry_method_names[12], ::grpc::internal::RpcMethod::SERVER_STREAMING, new ::grpc::internal::ServerStreamingHandler< Sentry::Service, ::sentry::PeerEventsRequest, ::sentry::PeerEvent>( [](Sentry::Service* service, @@ -536,7 +501,7 @@ Sentry::Service::Service() { return service->PeerEvents(ctx, req, writer); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - Sentry_method_names[14], + Sentry_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< Sentry::Service, ::google::protobuf::Empty, ::types::NodeInfoReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](Sentry::Service* service, @@ -571,13 +536,6 @@ ::grpc::Status Sentry::Service::PeerMinBlock(::grpc::ServerContext* context, con return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status Sentry::Service::PeerUseless(::grpc::ServerContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status Sentry::Service::HandShake(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response) { (void) context; (void) request; diff --git a/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.h b/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.h index b59b300332..8f7d663f36 100644 --- a/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.h +++ b/silkworm/interfaces/3.21.4/p2psentry/sentry.grpc.pb.h @@ -57,14 +57,7 @@ class Sentry final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncPeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncPeerMinBlockRaw(context, request, cq)); } - virtual ::grpc::Status PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncPeerUselessRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncPeerUselessRaw(context, request, cq)); - } - // HandShake - pre-requirement for all Send* methods - returns ETH protocol version, + // HandShake - pre-requirement for all Send* methods - returns list of ETH protocol versions, // without knowledge of protocol - impossible encode correct P2P message virtual ::grpc::Status HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>> AsyncHandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { @@ -162,9 +155,7 @@ class Sentry final { virtual void PenalizePeer(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; virtual void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, std::function) = 0; virtual void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, std::function) = 0; - virtual void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // HandShake - pre-requirement for all Send* methods - returns ETH protocol version, + // HandShake - pre-requirement for all Send* methods - returns list of ETH protocol versions, // without knowledge of protocol - impossible encode correct P2P message virtual void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, std::function) = 0; virtual void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -202,8 +193,6 @@ class Sentry final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPenalizePeerRaw(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>* AsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>* PrepareAsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::sentry::SentPeers>* AsyncSendMessageByMinBlockRaw(::grpc::ClientContext* context, const ::sentry::SendMessageByMinBlockRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -253,13 +242,6 @@ class Sentry final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncPeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncPeerMinBlockRaw(context, request, cq)); } - ::grpc::Status PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncPeerUselessRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncPeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncPeerUselessRaw(context, request, cq)); - } ::grpc::Status HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>> AsyncHandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>>(AsyncHandShakeRaw(context, request, cq)); @@ -350,8 +332,6 @@ class Sentry final { void PenalizePeer(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, std::function) override; void PeerMinBlock(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; - void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, std::function) override; - void PeerUseless(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override; void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, std::function) override; void HandShake(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response, ::grpc::ClientUnaryReactor* reactor) override; void SendMessageByMinBlock(::grpc::ClientContext* context, const ::sentry::SendMessageByMinBlockRequest* request, ::sentry::SentPeers* response, std::function) override; @@ -389,8 +369,6 @@ class Sentry final { ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPenalizePeerRaw(::grpc::ClientContext* context, const ::sentry::PenalizePeerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPeerMinBlockRaw(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncPeerUselessRaw(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>* AsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::sentry::HandShakeReply>* PrepareAsyncHandShakeRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::sentry::SentPeers>* AsyncSendMessageByMinBlockRaw(::grpc::ClientContext* context, const ::sentry::SendMessageByMinBlockRequest& request, ::grpc::CompletionQueue* cq) override; @@ -418,7 +396,6 @@ class Sentry final { const ::grpc::internal::RpcMethod rpcmethod_SetStatus_; const ::grpc::internal::RpcMethod rpcmethod_PenalizePeer_; const ::grpc::internal::RpcMethod rpcmethod_PeerMinBlock_; - const ::grpc::internal::RpcMethod rpcmethod_PeerUseless_; const ::grpc::internal::RpcMethod rpcmethod_HandShake_; const ::grpc::internal::RpcMethod rpcmethod_SendMessageByMinBlock_; const ::grpc::internal::RpcMethod rpcmethod_SendMessageById_; @@ -441,8 +418,7 @@ class Sentry final { virtual ::grpc::Status SetStatus(::grpc::ServerContext* context, const ::sentry::StatusData* request, ::sentry::SetStatusReply* response); virtual ::grpc::Status PenalizePeer(::grpc::ServerContext* context, const ::sentry::PenalizePeerRequest* request, ::google::protobuf::Empty* response); virtual ::grpc::Status PeerMinBlock(::grpc::ServerContext* context, const ::sentry::PeerMinBlockRequest* request, ::google::protobuf::Empty* response); - virtual ::grpc::Status PeerUseless(::grpc::ServerContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response); - // HandShake - pre-requirement for all Send* methods - returns ETH protocol version, + // HandShake - pre-requirement for all Send* methods - returns list of ETH protocol versions, // without knowledge of protocol - impossible encode correct P2P message virtual ::grpc::Status HandShake(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response); virtual ::grpc::Status SendMessageByMinBlock(::grpc::ServerContext* context, const ::sentry::SendMessageByMinBlockRequest* request, ::sentry::SentPeers* response); @@ -522,32 +498,12 @@ class Sentry final { } }; template - class WithAsyncMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_PeerUseless() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPeerUseless(::grpc::ServerContext* context, ::sentry::PeerUselessRequest* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithAsyncMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_HandShake() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(3); } ~WithAsyncMethod_HandShake() override { BaseClassMustBeDerivedFromService(this); @@ -558,7 +514,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHandShake(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::sentry::HandShakeReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -567,7 +523,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(4); } ~WithAsyncMethod_SendMessageByMinBlock() override { BaseClassMustBeDerivedFromService(this); @@ -578,7 +534,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageByMinBlock(::grpc::ServerContext* context, ::sentry::SendMessageByMinBlockRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -587,7 +543,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageById() { - ::grpc::Service::MarkMethodAsync(6); + ::grpc::Service::MarkMethodAsync(5); } ~WithAsyncMethod_SendMessageById() override { BaseClassMustBeDerivedFromService(this); @@ -598,7 +554,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageById(::grpc::ServerContext* context, ::sentry::SendMessageByIdRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -607,7 +563,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodAsync(7); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_SendMessageToRandomPeers() override { BaseClassMustBeDerivedFromService(this); @@ -618,7 +574,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToRandomPeers(::grpc::ServerContext* context, ::sentry::SendMessageToRandomPeersRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* 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); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -627,7 +583,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodAsync(8); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_SendMessageToAll() override { BaseClassMustBeDerivedFromService(this); @@ -638,7 +594,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToAll(::grpc::ServerContext* context, ::sentry::OutboundMessageData* request, ::grpc::ServerAsyncResponseWriter< ::sentry::SentPeers>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -647,7 +603,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Messages() { - ::grpc::Service::MarkMethodAsync(9); + ::grpc::Service::MarkMethodAsync(8); } ~WithAsyncMethod_Messages() override { BaseClassMustBeDerivedFromService(this); @@ -658,7 +614,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMessages(::grpc::ServerContext* context, ::sentry::MessagesRequest* request, ::grpc::ServerAsyncWriter< ::sentry::InboundMessage>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(9, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(8, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -667,7 +623,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Peers() { - ::grpc::Service::MarkMethodAsync(10); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_Peers() override { BaseClassMustBeDerivedFromService(this); @@ -678,7 +634,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeers(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::sentry::PeersReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -687,7 +643,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PeerCount() { - ::grpc::Service::MarkMethodAsync(11); + ::grpc::Service::MarkMethodAsync(10); } ~WithAsyncMethod_PeerCount() override { BaseClassMustBeDerivedFromService(this); @@ -698,7 +654,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerCount(::grpc::ServerContext* context, ::sentry::PeerCountRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::PeerCountReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -707,7 +663,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PeerById() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(11); } ~WithAsyncMethod_PeerById() override { BaseClassMustBeDerivedFromService(this); @@ -718,7 +674,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerById(::grpc::ServerContext* context, ::sentry::PeerByIdRequest* request, ::grpc::ServerAsyncResponseWriter< ::sentry::PeerByIdReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -727,7 +683,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PeerEvents() { - ::grpc::Service::MarkMethodAsync(13); + ::grpc::Service::MarkMethodAsync(12); } ~WithAsyncMethod_PeerEvents() override { BaseClassMustBeDerivedFromService(this); @@ -738,7 +694,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerEvents(::grpc::ServerContext* context, ::sentry::PeerEventsRequest* request, ::grpc::ServerAsyncWriter< ::sentry::PeerEvent>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(13, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -747,7 +703,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_NodeInfo() { - ::grpc::Service::MarkMethodAsync(14); + ::grpc::Service::MarkMethodAsync(13); } ~WithAsyncMethod_NodeInfo() override { BaseClassMustBeDerivedFromService(this); @@ -758,10 +714,10 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNodeInfo(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::types::NodeInfoReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_SetStatus > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_SetStatus > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_SetStatus : public BaseClass { private: @@ -844,45 +800,18 @@ class Sentry final { ::grpc::CallbackServerContext* /*context*/, const ::sentry::PeerMinBlockRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_PeerUseless() { - ::grpc::Service::MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::sentry::PeerUselessRequest, ::google::protobuf::Empty>( - [this]( - ::grpc::CallbackServerContext* context, const ::sentry::PeerUselessRequest* request, ::google::protobuf::Empty* response) { return this->PeerUseless(context, request, response); }));} - void SetMessageAllocatorFor_PeerUseless( - ::grpc::MessageAllocator< ::sentry::PeerUselessRequest, ::google::protobuf::Empty>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); - static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::PeerUselessRequest, ::google::protobuf::Empty>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* PeerUseless( - ::grpc::CallbackServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; } - }; - template class WithCallbackMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_HandShake() { - ::grpc::Service::MarkMethodCallback(4, + ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::HandShakeReply>( [this]( ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::sentry::HandShakeReply* response) { return this->HandShake(context, request, response); }));} void SetMessageAllocatorFor_HandShake( ::grpc::MessageAllocator< ::google::protobuf::Empty, ::sentry::HandShakeReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::HandShakeReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -903,13 +832,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodCallback(5, + ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::SendMessageByMinBlockRequest* request, ::sentry::SentPeers* response) { return this->SendMessageByMinBlock(context, request, response); }));} void SetMessageAllocatorFor_SendMessageByMinBlock( ::grpc::MessageAllocator< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -930,13 +859,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageById() { - ::grpc::Service::MarkMethodCallback(6, + ::grpc::Service::MarkMethodCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::SendMessageByIdRequest* request, ::sentry::SentPeers* response) { return this->SendMessageById(context, request, response); }));} void SetMessageAllocatorFor_SendMessageById( ::grpc::MessageAllocator< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -957,13 +886,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodCallback(7, + ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::SendMessageToRandomPeersRequest* request, ::sentry::SentPeers* response) { return this->SendMessageToRandomPeers(context, request, response); }));} void SetMessageAllocatorFor_SendMessageToRandomPeers( ::grpc::MessageAllocator< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -984,13 +913,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodCallback(8, + ::grpc::Service::MarkMethodCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::sentry::OutboundMessageData, ::sentry::SentPeers>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::OutboundMessageData* request, ::sentry::SentPeers* response) { return this->SendMessageToAll(context, request, response); }));} void SetMessageAllocatorFor_SendMessageToAll( ::grpc::MessageAllocator< ::sentry::OutboundMessageData, ::sentry::SentPeers>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::OutboundMessageData, ::sentry::SentPeers>*>(handler) ->SetMessageAllocator(allocator); } @@ -1011,7 +940,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_Messages() { - ::grpc::Service::MarkMethodCallback(9, + ::grpc::Service::MarkMethodCallback(8, new ::grpc::internal::CallbackServerStreamingHandler< ::sentry::MessagesRequest, ::sentry::InboundMessage>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::MessagesRequest* request) { return this->Messages(context, request); })); @@ -1033,13 +962,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_Peers() { - ::grpc::Service::MarkMethodCallback(10, + ::grpc::Service::MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::PeersReply>( [this]( ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::sentry::PeersReply* response) { return this->Peers(context, request, response); }));} void SetMessageAllocatorFor_Peers( ::grpc::MessageAllocator< ::google::protobuf::Empty, ::sentry::PeersReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::sentry::PeersReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1060,13 +989,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PeerCount() { - ::grpc::Service::MarkMethodCallback(11, + ::grpc::Service::MarkMethodCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::PeerCountRequest* request, ::sentry::PeerCountReply* response) { return this->PeerCount(context, request, response); }));} void SetMessageAllocatorFor_PeerCount( ::grpc::MessageAllocator< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1087,13 +1016,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PeerById() { - ::grpc::Service::MarkMethodCallback(12, + ::grpc::Service::MarkMethodCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::PeerByIdRequest* request, ::sentry::PeerByIdReply* response) { return this->PeerById(context, request, response); }));} void SetMessageAllocatorFor_PeerById( ::grpc::MessageAllocator< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(12); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); static_cast<::grpc::internal::CallbackUnaryHandler< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1114,7 +1043,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_PeerEvents() { - ::grpc::Service::MarkMethodCallback(13, + ::grpc::Service::MarkMethodCallback(12, new ::grpc::internal::CallbackServerStreamingHandler< ::sentry::PeerEventsRequest, ::sentry::PeerEvent>( [this]( ::grpc::CallbackServerContext* context, const ::sentry::PeerEventsRequest* request) { return this->PeerEvents(context, request); })); @@ -1136,13 +1065,13 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_NodeInfo() { - ::grpc::Service::MarkMethodCallback(14, + ::grpc::Service::MarkMethodCallback(13, new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::types::NodeInfoReply>( [this]( ::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::types::NodeInfoReply* response) { return this->NodeInfo(context, request, response); }));} void SetMessageAllocatorFor_NodeInfo( ::grpc::MessageAllocator< ::google::protobuf::Empty, ::types::NodeInfoReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(14); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(13); static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::types::NodeInfoReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -1157,7 +1086,7 @@ class Sentry final { virtual ::grpc::ServerUnaryReactor* NodeInfo( ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::types::NodeInfoReply* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_SetStatus > > > > > > > > > > > > > > CallbackService; + typedef WithCallbackMethod_SetStatus > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_SetStatus : public BaseClass { @@ -1211,29 +1140,12 @@ class Sentry final { } }; template - class WithGenericMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_PeerUseless() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_HandShake() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(3); } ~WithGenericMethod_HandShake() override { BaseClassMustBeDerivedFromService(this); @@ -1250,7 +1162,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(4); } ~WithGenericMethod_SendMessageByMinBlock() override { BaseClassMustBeDerivedFromService(this); @@ -1267,7 +1179,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageById() { - ::grpc::Service::MarkMethodGeneric(6); + ::grpc::Service::MarkMethodGeneric(5); } ~WithGenericMethod_SendMessageById() override { BaseClassMustBeDerivedFromService(this); @@ -1284,7 +1196,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodGeneric(7); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_SendMessageToRandomPeers() override { BaseClassMustBeDerivedFromService(this); @@ -1301,7 +1213,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodGeneric(8); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_SendMessageToAll() override { BaseClassMustBeDerivedFromService(this); @@ -1318,7 +1230,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Messages() { - ::grpc::Service::MarkMethodGeneric(9); + ::grpc::Service::MarkMethodGeneric(8); } ~WithGenericMethod_Messages() override { BaseClassMustBeDerivedFromService(this); @@ -1335,7 +1247,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Peers() { - ::grpc::Service::MarkMethodGeneric(10); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_Peers() override { BaseClassMustBeDerivedFromService(this); @@ -1352,7 +1264,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PeerCount() { - ::grpc::Service::MarkMethodGeneric(11); + ::grpc::Service::MarkMethodGeneric(10); } ~WithGenericMethod_PeerCount() override { BaseClassMustBeDerivedFromService(this); @@ -1369,7 +1281,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PeerById() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(11); } ~WithGenericMethod_PeerById() override { BaseClassMustBeDerivedFromService(this); @@ -1386,7 +1298,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PeerEvents() { - ::grpc::Service::MarkMethodGeneric(13); + ::grpc::Service::MarkMethodGeneric(12); } ~WithGenericMethod_PeerEvents() override { BaseClassMustBeDerivedFromService(this); @@ -1403,7 +1315,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_NodeInfo() { - ::grpc::Service::MarkMethodGeneric(14); + ::grpc::Service::MarkMethodGeneric(13); } ~WithGenericMethod_NodeInfo() override { BaseClassMustBeDerivedFromService(this); @@ -1475,32 +1387,12 @@ class Sentry final { } }; template - class WithRawMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_PeerUseless() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestPeerUseless(::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(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_HandShake() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(3); } ~WithRawMethod_HandShake() override { BaseClassMustBeDerivedFromService(this); @@ -1511,7 +1403,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHandShake(::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(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1520,7 +1412,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(4); } ~WithRawMethod_SendMessageByMinBlock() override { BaseClassMustBeDerivedFromService(this); @@ -1531,7 +1423,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageByMinBlock(::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(5, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1540,7 +1432,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageById() { - ::grpc::Service::MarkMethodRaw(6); + ::grpc::Service::MarkMethodRaw(5); } ~WithRawMethod_SendMessageById() override { BaseClassMustBeDerivedFromService(this); @@ -1551,7 +1443,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageById(::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(6, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1560,7 +1452,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodRaw(7); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_SendMessageToRandomPeers() override { BaseClassMustBeDerivedFromService(this); @@ -1571,7 +1463,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToRandomPeers(::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(7, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1580,7 +1472,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodRaw(8); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_SendMessageToAll() override { BaseClassMustBeDerivedFromService(this); @@ -1591,7 +1483,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSendMessageToAll(::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(8, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1600,7 +1492,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Messages() { - ::grpc::Service::MarkMethodRaw(9); + ::grpc::Service::MarkMethodRaw(8); } ~WithRawMethod_Messages() override { BaseClassMustBeDerivedFromService(this); @@ -1611,7 +1503,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestMessages(::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(9, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(8, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1620,7 +1512,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Peers() { - ::grpc::Service::MarkMethodRaw(10); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_Peers() override { BaseClassMustBeDerivedFromService(this); @@ -1631,7 +1523,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeers(::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(10, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1640,7 +1532,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PeerCount() { - ::grpc::Service::MarkMethodRaw(11); + ::grpc::Service::MarkMethodRaw(10); } ~WithRawMethod_PeerCount() override { BaseClassMustBeDerivedFromService(this); @@ -1651,7 +1543,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerCount(::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(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1660,7 +1552,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PeerById() { - ::grpc::Service::MarkMethodRaw(12); + ::grpc::Service::MarkMethodRaw(11); } ~WithRawMethod_PeerById() override { BaseClassMustBeDerivedFromService(this); @@ -1671,7 +1563,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerById(::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(12, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1680,7 +1572,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PeerEvents() { - ::grpc::Service::MarkMethodRaw(13); + ::grpc::Service::MarkMethodRaw(12); } ~WithRawMethod_PeerEvents() override { BaseClassMustBeDerivedFromService(this); @@ -1691,7 +1583,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPeerEvents(::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(13, context, request, writer, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncServerStreaming(12, context, request, writer, new_call_cq, notification_cq, tag); } }; template @@ -1700,7 +1592,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_NodeInfo() { - ::grpc::Service::MarkMethodRaw(14); + ::grpc::Service::MarkMethodRaw(13); } ~WithRawMethod_NodeInfo() override { BaseClassMustBeDerivedFromService(this); @@ -1711,7 +1603,7 @@ class Sentry final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestNodeInfo(::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(14, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1781,34 +1673,12 @@ class Sentry final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_PeerUseless() { - ::grpc::Service::MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PeerUseless(context, request, response); })); - } - ~WithRawCallbackMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* PeerUseless( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template class WithRawCallbackMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_HandShake() { - ::grpc::Service::MarkMethodRawCallback(4, + ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HandShake(context, request, response); })); @@ -1830,7 +1700,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodRawCallback(5, + ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageByMinBlock(context, request, response); })); @@ -1852,7 +1722,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageById() { - ::grpc::Service::MarkMethodRawCallback(6, + ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageById(context, request, response); })); @@ -1874,7 +1744,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodRawCallback(7, + ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageToRandomPeers(context, request, response); })); @@ -1896,7 +1766,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodRawCallback(8, + ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessageToAll(context, request, response); })); @@ -1918,7 +1788,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_Messages() { - ::grpc::Service::MarkMethodRawCallback(9, + ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->Messages(context, request); })); @@ -1940,7 +1810,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_Peers() { - ::grpc::Service::MarkMethodRawCallback(10, + ::grpc::Service::MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Peers(context, request, response); })); @@ -1962,7 +1832,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PeerCount() { - ::grpc::Service::MarkMethodRawCallback(11, + ::grpc::Service::MarkMethodRawCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PeerCount(context, request, response); })); @@ -1984,7 +1854,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PeerById() { - ::grpc::Service::MarkMethodRawCallback(12, + ::grpc::Service::MarkMethodRawCallback(11, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PeerById(context, request, response); })); @@ -2006,7 +1876,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_PeerEvents() { - ::grpc::Service::MarkMethodRawCallback(13, + ::grpc::Service::MarkMethodRawCallback(12, new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->PeerEvents(context, request); })); @@ -2028,7 +1898,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_NodeInfo() { - ::grpc::Service::MarkMethodRawCallback(14, + ::grpc::Service::MarkMethodRawCallback(13, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->NodeInfo(context, request, response); })); @@ -2126,39 +1996,12 @@ class Sentry final { virtual ::grpc::Status StreamedPeerMinBlock(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::sentry::PeerMinBlockRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_PeerUseless : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_PeerUseless() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< - ::sentry::PeerUselessRequest, ::google::protobuf::Empty>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::sentry::PeerUselessRequest, ::google::protobuf::Empty>* streamer) { - return this->StreamedPeerUseless(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_PeerUseless() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status PeerUseless(::grpc::ServerContext* /*context*/, const ::sentry::PeerUselessRequest* /*request*/, ::google::protobuf::Empty* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPeerUseless(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::sentry::PeerUselessRequest,::google::protobuf::Empty>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_HandShake : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_HandShake() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::sentry::HandShakeReply>( [this](::grpc::ServerContext* context, @@ -2185,7 +2028,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageByMinBlock() { - ::grpc::Service::MarkMethodStreamed(5, + ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::sentry::SendMessageByMinBlockRequest, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2212,7 +2055,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageById() { - ::grpc::Service::MarkMethodStreamed(6, + ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< ::sentry::SendMessageByIdRequest, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2239,7 +2082,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageToRandomPeers() { - ::grpc::Service::MarkMethodStreamed(7, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::sentry::SendMessageToRandomPeersRequest, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2266,7 +2109,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SendMessageToAll() { - ::grpc::Service::MarkMethodStreamed(8, + ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< ::sentry::OutboundMessageData, ::sentry::SentPeers>( [this](::grpc::ServerContext* context, @@ -2293,7 +2136,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Peers() { - ::grpc::Service::MarkMethodStreamed(10, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::sentry::PeersReply>( [this](::grpc::ServerContext* context, @@ -2320,7 +2163,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PeerCount() { - ::grpc::Service::MarkMethodStreamed(11, + ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler< ::sentry::PeerCountRequest, ::sentry::PeerCountReply>( [this](::grpc::ServerContext* context, @@ -2347,7 +2190,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PeerById() { - ::grpc::Service::MarkMethodStreamed(12, + ::grpc::Service::MarkMethodStreamed(11, new ::grpc::internal::StreamedUnaryHandler< ::sentry::PeerByIdRequest, ::sentry::PeerByIdReply>( [this](::grpc::ServerContext* context, @@ -2374,7 +2217,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_NodeInfo() { - ::grpc::Service::MarkMethodStreamed(14, + ::grpc::Service::MarkMethodStreamed(13, new ::grpc::internal::StreamedUnaryHandler< ::google::protobuf::Empty, ::types::NodeInfoReply>( [this](::grpc::ServerContext* context, @@ -2395,14 +2238,14 @@ class Sentry final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedNodeInfo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::types::NodeInfoReply>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_Messages : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_Messages() { - ::grpc::Service::MarkMethodStreamed(9, + ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::SplitServerStreamingHandler< ::sentry::MessagesRequest, ::sentry::InboundMessage>( [this](::grpc::ServerContext* context, @@ -2429,7 +2272,7 @@ class Sentry final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithSplitStreamingMethod_PeerEvents() { - ::grpc::Service::MarkMethodStreamed(13, + ::grpc::Service::MarkMethodStreamed(12, new ::grpc::internal::SplitServerStreamingHandler< ::sentry::PeerEventsRequest, ::sentry::PeerEvent>( [this](::grpc::ServerContext* context, @@ -2451,7 +2294,7 @@ class Sentry final { virtual ::grpc::Status StreamedPeerEvents(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::sentry::PeerEventsRequest,::sentry::PeerEvent>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_Messages > SplitStreamedService; - typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_SetStatus > > > > > > > > > > > > > StreamedService; }; } // namespace sentry diff --git a/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.cc b/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.cc index 9c8bb36076..d78e8b66aa 100644 --- a/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.cc +++ b/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.cc @@ -119,19 +119,6 @@ struct PeerMinBlockRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerMinBlockRequestDefaultTypeInternal _PeerMinBlockRequest_default_instance_; -PROTOBUF_CONSTEXPR PeerUselessRequest::PeerUselessRequest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.peer_id_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct PeerUselessRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR PeerUselessRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~PeerUselessRequestDefaultTypeInternal() {} - union { - PeerUselessRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerUselessRequestDefaultTypeInternal _PeerUselessRequest_default_instance_; PROTOBUF_CONSTEXPR InboundMessage::InboundMessage( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -172,7 +159,6 @@ PROTOBUF_CONSTEXPR StatusData::StatusData( , /*decltype(_impl_.network_id_)*/uint64_t{0u} , /*decltype(_impl_.max_block_height_)*/uint64_t{0u} , /*decltype(_impl_.max_block_time_)*/uint64_t{0u} - , /*decltype(_impl_.passive_peers_)*/false , /*decltype(_impl_._cached_size_)*/{}} {} struct StatusDataDefaultTypeInternal { PROTOBUF_CONSTEXPR StatusDataDefaultTypeInternal() @@ -245,9 +231,24 @@ struct PeerCountRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerCountRequestDefaultTypeInternal _PeerCountRequest_default_instance_; -PROTOBUF_CONSTEXPR PeerCountReply::PeerCountReply( +PROTOBUF_CONSTEXPR PeerCountPerProtocol::PeerCountPerProtocol( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.count_)*/uint64_t{0u} + , /*decltype(_impl_.protocol_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PeerCountPerProtocolDefaultTypeInternal { + PROTOBUF_CONSTEXPR PeerCountPerProtocolDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PeerCountPerProtocolDefaultTypeInternal() {} + union { + PeerCountPerProtocol _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerCountPerProtocolDefaultTypeInternal _PeerCountPerProtocol_default_instance_; +PROTOBUF_CONSTEXPR PeerCountReply::PeerCountReply( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.countsperprotocol_)*/{} + , /*decltype(_impl_.count_)*/uint64_t{0u} , /*decltype(_impl_._cached_size_)*/{}} {} struct PeerCountReplyDefaultTypeInternal { PROTOBUF_CONSTEXPR PeerCountReplyDefaultTypeInternal() @@ -373,13 +374,6 @@ const uint32_t TableStruct_p2psentry_2fsentry_2eproto::offsets[] PROTOBUF_SECTIO PROTOBUF_FIELD_OFFSET(::sentry::PeerMinBlockRequest, _impl_.peer_id_), PROTOBUF_FIELD_OFFSET(::sentry::PeerMinBlockRequest, _impl_.min_block_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::sentry::PeerUselessRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::sentry::PeerUselessRequest, _impl_.peer_id_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::InboundMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -409,7 +403,6 @@ const uint32_t TableStruct_p2psentry_2fsentry_2eproto::offsets[] PROTOBUF_SECTIO PROTOBUF_FIELD_OFFSET(::sentry::StatusData, _impl_.fork_data_), PROTOBUF_FIELD_OFFSET(::sentry::StatusData, _impl_.max_block_height_), PROTOBUF_FIELD_OFFSET(::sentry::StatusData, _impl_.max_block_time_), - PROTOBUF_FIELD_OFFSET(::sentry::StatusData, _impl_.passive_peers_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::SetStatusReply, _internal_metadata_), ~0u, // no _extensions_ @@ -444,12 +437,21 @@ const uint32_t TableStruct_p2psentry_2fsentry_2eproto::offsets[] PROTOBUF_SECTIO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountPerProtocol, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountPerProtocol, _impl_.protocol_), + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountPerProtocol, _impl_.count_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::PeerCountReply, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::sentry::PeerCountReply, _impl_.count_), + PROTOBUF_FIELD_OFFSET(::sentry::PeerCountReply, _impl_.countsperprotocol_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::sentry::PeerByIdRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -488,20 +490,20 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 33, -1, -1, sizeof(::sentry::SentPeers)}, { 40, -1, -1, sizeof(::sentry::PenalizePeerRequest)}, { 48, -1, -1, sizeof(::sentry::PeerMinBlockRequest)}, - { 56, -1, -1, sizeof(::sentry::PeerUselessRequest)}, - { 63, -1, -1, sizeof(::sentry::InboundMessage)}, - { 72, -1, -1, sizeof(::sentry::Forks)}, - { 81, -1, -1, sizeof(::sentry::StatusData)}, - { 94, -1, -1, sizeof(::sentry::SetStatusReply)}, - { 100, -1, -1, sizeof(::sentry::HandShakeReply)}, - { 107, -1, -1, sizeof(::sentry::MessagesRequest)}, - { 114, -1, -1, sizeof(::sentry::PeersReply)}, - { 121, -1, -1, sizeof(::sentry::PeerCountRequest)}, + { 56, -1, -1, sizeof(::sentry::InboundMessage)}, + { 65, -1, -1, sizeof(::sentry::Forks)}, + { 74, -1, -1, sizeof(::sentry::StatusData)}, + { 86, -1, -1, sizeof(::sentry::SetStatusReply)}, + { 92, -1, -1, sizeof(::sentry::HandShakeReply)}, + { 99, -1, -1, sizeof(::sentry::MessagesRequest)}, + { 106, -1, -1, sizeof(::sentry::PeersReply)}, + { 113, -1, -1, sizeof(::sentry::PeerCountRequest)}, + { 119, -1, -1, sizeof(::sentry::PeerCountPerProtocol)}, { 127, -1, -1, sizeof(::sentry::PeerCountReply)}, - { 134, -1, -1, sizeof(::sentry::PeerByIdRequest)}, - { 141, 148, -1, sizeof(::sentry::PeerByIdReply)}, - { 149, -1, -1, sizeof(::sentry::PeerEventsRequest)}, - { 155, -1, -1, sizeof(::sentry::PeerEvent)}, + { 135, -1, -1, sizeof(::sentry::PeerByIdRequest)}, + { 142, 149, -1, sizeof(::sentry::PeerByIdReply)}, + { 150, -1, -1, sizeof(::sentry::PeerEventsRequest)}, + { 156, -1, -1, sizeof(::sentry::PeerEvent)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -512,7 +514,6 @@ static const ::_pb::Message* const file_default_instances[] = { &::sentry::_SentPeers_default_instance_._instance, &::sentry::_PenalizePeerRequest_default_instance_._instance, &::sentry::_PeerMinBlockRequest_default_instance_._instance, - &::sentry::_PeerUselessRequest_default_instance_._instance, &::sentry::_InboundMessage_default_instance_._instance, &::sentry::_Forks_default_instance_._instance, &::sentry::_StatusData_default_instance_._instance, @@ -521,6 +522,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::sentry::_MessagesRequest_default_instance_._instance, &::sentry::_PeersReply_default_instance_._instance, &::sentry::_PeerCountRequest_default_instance_._instance, + &::sentry::_PeerCountPerProtocol_default_instance_._instance, &::sentry::_PeerCountReply_default_instance_._instance, &::sentry::_PeerByIdRequest_default_instance_._instance, &::sentry::_PeerByIdReply_default_instance_._instance, @@ -545,76 +547,77 @@ const char descriptor_table_protodef_p2psentry_2fsentry_2eproto[] PROTOBUF_SECTI "t\022\034\n\007peer_id\030\001 \001(\0132\013.types.H512\022$\n\007penal" "ty\030\002 \001(\0162\023.sentry.PenaltyKind\"F\n\023PeerMin" "BlockRequest\022\034\n\007peer_id\030\001 \001(\0132\013.types.H5" - "12\022\021\n\tmin_block\030\002 \001(\004\"2\n\022PeerUselessRequ" - "est\022\034\n\007peer_id\030\001 \001(\0132\013.types.H512\"[\n\016Inb" - "oundMessage\022\035\n\002id\030\001 \001(\0162\021.sentry.Message" - "Id\022\014\n\004data\030\002 \001(\014\022\034\n\007peer_id\030\003 \001(\0132\013.type" - "s.H512\"O\n\005Forks\022\034\n\007genesis\030\001 \001(\0132\013.types" - ".H256\022\024\n\014height_forks\030\002 \003(\004\022\022\n\ntime_fork" - "s\030\003 \003(\004\"\322\001\n\nStatusData\022\022\n\nnetwork_id\030\001 \001" - "(\004\022%\n\020total_difficulty\030\002 \001(\0132\013.types.H25" - "6\022\036\n\tbest_hash\030\003 \001(\0132\013.types.H256\022 \n\tfor" - "k_data\030\004 \001(\0132\r.sentry.Forks\022\030\n\020max_block" - "_height\030\005 \001(\004\022\026\n\016max_block_time\030\006 \001(\004\022\025\n" - "\rpassive_peers\030\007 \001(\010\"\020\n\016SetStatusReply\"4" - "\n\016HandShakeReply\022\"\n\010protocol\030\001 \001(\0162\020.sen" - "try.Protocol\"1\n\017MessagesRequest\022\036\n\003ids\030\001" - " \003(\0162\021.sentry.MessageId\",\n\nPeersReply\022\036\n" - "\005peers\030\001 \003(\0132\017.types.PeerInfo\"\022\n\020PeerCou" - "ntRequest\"\037\n\016PeerCountReply\022\r\n\005count\030\001 \001" - "(\004\"/\n\017PeerByIdRequest\022\034\n\007peer_id\030\001 \001(\0132\013" - ".types.H512\"<\n\rPeerByIdReply\022\"\n\004peer\030\001 \001" - "(\0132\017.types.PeerInfoH\000\210\001\001B\007\n\005_peer\"\023\n\021Pee" - "rEventsRequest\"\206\001\n\tPeerEvent\022\034\n\007peer_id\030" - "\001 \001(\0132\013.types.H512\022/\n\010event_id\030\002 \001(\0162\035.s" - "entry.PeerEvent.PeerEventId\"*\n\013PeerEvent" - "Id\022\013\n\007Connect\020\000\022\016\n\nDisconnect\020\001*\332\005\n\tMess" - "ageId\022\r\n\tSTATUS_65\020\000\022\030\n\024GET_BLOCK_HEADER" - "S_65\020\001\022\024\n\020BLOCK_HEADERS_65\020\002\022\023\n\017BLOCK_HA" - "SHES_65\020\003\022\027\n\023GET_BLOCK_BODIES_65\020\004\022\023\n\017BL" - "OCK_BODIES_65\020\005\022\024\n\020GET_NODE_DATA_65\020\006\022\020\n" - "\014NODE_DATA_65\020\007\022\023\n\017GET_RECEIPTS_65\020\010\022\017\n\013" - "RECEIPTS_65\020\t\022\027\n\023NEW_BLOCK_HASHES_65\020\n\022\020" - "\n\014NEW_BLOCK_65\020\013\022\023\n\017TRANSACTIONS_65\020\014\022$\n" - " NEW_POOLED_TRANSACTION_HASHES_65\020\r\022\036\n\032G" - "ET_POOLED_TRANSACTIONS_65\020\016\022\032\n\026POOLED_TR" - "ANSACTIONS_65\020\017\022\r\n\tSTATUS_66\020\021\022\027\n\023NEW_BL" - "OCK_HASHES_66\020\022\022\020\n\014NEW_BLOCK_66\020\023\022\023\n\017TRA" - "NSACTIONS_66\020\024\022$\n NEW_POOLED_TRANSACTION" - "_HASHES_66\020\025\022\030\n\024GET_BLOCK_HEADERS_66\020\026\022\027" - "\n\023GET_BLOCK_BODIES_66\020\027\022\024\n\020GET_NODE_DATA" - "_66\020\030\022\023\n\017GET_RECEIPTS_66\020\031\022\036\n\032GET_POOLED" - "_TRANSACTIONS_66\020\032\022\024\n\020BLOCK_HEADERS_66\020\033" - "\022\023\n\017BLOCK_BODIES_66\020\034\022\020\n\014NODE_DATA_66\020\035\022" - "\017\n\013RECEIPTS_66\020\036\022\032\n\026POOLED_TRANSACTIONS_" - "66\020\037*\027\n\013PenaltyKind\022\010\n\004Kick\020\000*+\n\010Protoco" - "l\022\t\n\005ETH65\020\000\022\t\n\005ETH66\020\001\022\t\n\005ETH67\020\0022\346\007\n\006S" - "entry\0227\n\tSetStatus\022\022.sentry.StatusData\032\026" - ".sentry.SetStatusReply\022C\n\014PenalizePeer\022\033" - ".sentry.PenalizePeerRequest\032\026.google.pro" - "tobuf.Empty\022C\n\014PeerMinBlock\022\033.sentry.Pee" - "rMinBlockRequest\032\026.google.protobuf.Empty" - "\022A\n\013PeerUseless\022\032.sentry.PeerUselessRequ" - "est\032\026.google.protobuf.Empty\022;\n\tHandShake" - "\022\026.google.protobuf.Empty\032\026.sentry.HandSh" - "akeReply\022P\n\025SendMessageByMinBlock\022$.sent" - "ry.SendMessageByMinBlockRequest\032\021.sentry" - ".SentPeers\022D\n\017SendMessageById\022\036.sentry.S" - "endMessageByIdRequest\032\021.sentry.SentPeers" - "\022V\n\030SendMessageToRandomPeers\022\'.sentry.Se" - "ndMessageToRandomPeersRequest\032\021.sentry.S" - "entPeers\022B\n\020SendMessageToAll\022\033.sentry.Ou" - "tboundMessageData\032\021.sentry.SentPeers\022=\n\010" - "Messages\022\027.sentry.MessagesRequest\032\026.sent" - "ry.InboundMessage0\001\0223\n\005Peers\022\026.google.pr" - "otobuf.Empty\032\022.sentry.PeersReply\022=\n\tPeer" - "Count\022\030.sentry.PeerCountRequest\032\026.sentry" - ".PeerCountReply\022:\n\010PeerById\022\027.sentry.Pee" - "rByIdRequest\032\025.sentry.PeerByIdReply\022<\n\nP" - "eerEvents\022\031.sentry.PeerEventsRequest\032\021.s" - "entry.PeerEvent0\001\0228\n\010NodeInfo\022\026.google.p" - "rotobuf.Empty\032\024.types.NodeInfoReplyB\021Z\017." - "/sentry;sentryb\006proto3" + "12\022\021\n\tmin_block\030\002 \001(\004\"[\n\016InboundMessage\022" + "\035\n\002id\030\001 \001(\0162\021.sentry.MessageId\022\014\n\004data\030\002" + " \001(\014\022\034\n\007peer_id\030\003 \001(\0132\013.types.H512\"O\n\005Fo" + "rks\022\034\n\007genesis\030\001 \001(\0132\013.types.H256\022\024\n\014hei" + "ght_forks\030\002 \003(\004\022\022\n\ntime_forks\030\003 \003(\004\"\273\001\n\n" + "StatusData\022\022\n\nnetwork_id\030\001 \001(\004\022%\n\020total_" + "difficulty\030\002 \001(\0132\013.types.H256\022\036\n\tbest_ha" + "sh\030\003 \001(\0132\013.types.H256\022 \n\tfork_data\030\004 \001(\013" + "2\r.sentry.Forks\022\030\n\020max_block_height\030\005 \001(" + "\004\022\026\n\016max_block_time\030\006 \001(\004\"\020\n\016SetStatusRe" + "ply\"4\n\016HandShakeReply\022\"\n\010protocol\030\001 \001(\0162" + "\020.sentry.Protocol\"1\n\017MessagesRequest\022\036\n\003" + "ids\030\001 \003(\0162\021.sentry.MessageId\",\n\nPeersRep" + "ly\022\036\n\005peers\030\001 \003(\0132\017.types.PeerInfo\"\022\n\020Pe" + "erCountRequest\"I\n\024PeerCountPerProtocol\022\"" + "\n\010protocol\030\001 \001(\0162\020.sentry.Protocol\022\r\n\005co" + "unt\030\002 \001(\004\"X\n\016PeerCountReply\022\r\n\005count\030\001 \001" + "(\004\0227\n\021countsPerProtocol\030\002 \003(\0132\034.sentry.P" + "eerCountPerProtocol\"/\n\017PeerByIdRequest\022\034" + "\n\007peer_id\030\001 \001(\0132\013.types.H512\"<\n\rPeerById" + "Reply\022\"\n\004peer\030\001 \001(\0132\017.types.PeerInfoH\000\210\001" + "\001B\007\n\005_peer\"\023\n\021PeerEventsRequest\"\206\001\n\tPeer" + "Event\022\034\n\007peer_id\030\001 \001(\0132\013.types.H512\022/\n\010e" + "vent_id\030\002 \001(\0162\035.sentry.PeerEvent.PeerEve" + "ntId\"*\n\013PeerEventId\022\013\n\007Connect\020\000\022\016\n\nDisc" + "onnect\020\001*\200\006\n\tMessageId\022\r\n\tSTATUS_65\020\000\022\030\n" + "\024GET_BLOCK_HEADERS_65\020\001\022\024\n\020BLOCK_HEADERS" + "_65\020\002\022\023\n\017BLOCK_HASHES_65\020\003\022\027\n\023GET_BLOCK_" + "BODIES_65\020\004\022\023\n\017BLOCK_BODIES_65\020\005\022\024\n\020GET_" + "NODE_DATA_65\020\006\022\020\n\014NODE_DATA_65\020\007\022\023\n\017GET_" + "RECEIPTS_65\020\010\022\017\n\013RECEIPTS_65\020\t\022\027\n\023NEW_BL" + "OCK_HASHES_65\020\n\022\020\n\014NEW_BLOCK_65\020\013\022\023\n\017TRA" + "NSACTIONS_65\020\014\022$\n NEW_POOLED_TRANSACTION" + "_HASHES_65\020\r\022\036\n\032GET_POOLED_TRANSACTIONS_" + "65\020\016\022\032\n\026POOLED_TRANSACTIONS_65\020\017\022\r\n\tSTAT" + "US_66\020\021\022\027\n\023NEW_BLOCK_HASHES_66\020\022\022\020\n\014NEW_" + "BLOCK_66\020\023\022\023\n\017TRANSACTIONS_66\020\024\022$\n NEW_P" + "OOLED_TRANSACTION_HASHES_66\020\025\022\030\n\024GET_BLO" + "CK_HEADERS_66\020\026\022\027\n\023GET_BLOCK_BODIES_66\020\027" + "\022\024\n\020GET_NODE_DATA_66\020\030\022\023\n\017GET_RECEIPTS_6" + "6\020\031\022\036\n\032GET_POOLED_TRANSACTIONS_66\020\032\022\024\n\020B" + "LOCK_HEADERS_66\020\033\022\023\n\017BLOCK_BODIES_66\020\034\022\020" + "\n\014NODE_DATA_66\020\035\022\017\n\013RECEIPTS_66\020\036\022\032\n\026POO" + "LED_TRANSACTIONS_66\020\037\022$\n NEW_POOLED_TRAN" + "SACTION_HASHES_68\020 *\027\n\013PenaltyKind\022\010\n\004Ki" + "ck\020\000*6\n\010Protocol\022\t\n\005ETH65\020\000\022\t\n\005ETH66\020\001\022\t" + "\n\005ETH67\020\002\022\t\n\005ETH68\020\0032\243\007\n\006Sentry\0227\n\tSetSt" + "atus\022\022.sentry.StatusData\032\026.sentry.SetSta" + "tusReply\022C\n\014PenalizePeer\022\033.sentry.Penali" + "zePeerRequest\032\026.google.protobuf.Empty\022C\n" + "\014PeerMinBlock\022\033.sentry.PeerMinBlockReque" + "st\032\026.google.protobuf.Empty\022;\n\tHandShake\022" + "\026.google.protobuf.Empty\032\026.sentry.HandSha" + "keReply\022P\n\025SendMessageByMinBlock\022$.sentr" + "y.SendMessageByMinBlockRequest\032\021.sentry." + "SentPeers\022D\n\017SendMessageById\022\036.sentry.Se" + "ndMessageByIdRequest\032\021.sentry.SentPeers\022" + "V\n\030SendMessageToRandomPeers\022\'.sentry.Sen" + "dMessageToRandomPeersRequest\032\021.sentry.Se" + "ntPeers\022B\n\020SendMessageToAll\022\033.sentry.Out" + "boundMessageData\032\021.sentry.SentPeers\022=\n\010M" + "essages\022\027.sentry.MessagesRequest\032\026.sentr" + "y.InboundMessage0\001\0223\n\005Peers\022\026.google.pro" + "tobuf.Empty\032\022.sentry.PeersReply\022=\n\tPeerC" + "ount\022\030.sentry.PeerCountRequest\032\026.sentry." + "PeerCountReply\022:\n\010PeerById\022\027.sentry.Peer" + "ByIdRequest\032\025.sentry.PeerByIdReply\022<\n\nPe" + "erEvents\022\031.sentry.PeerEventsRequest\032\021.se" + "ntry.PeerEvent0\001\0228\n\010NodeInfo\022\026.google.pr" + "otobuf.Empty\032\024.types.NodeInfoReplyB\021Z\017./" + "sentry;sentryb\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_p2psentry_2fsentry_2eproto_deps[2] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, @@ -622,7 +625,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_p2psentry_2fsentry_ }; static ::_pbi::once_flag descriptor_table_p2psentry_2fsentry_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_p2psentry_2fsentry_2eproto = { - false, false, 3422, descriptor_table_protodef_p2psentry_2fsentry_2eproto, + false, false, 3461, descriptor_table_protodef_p2psentry_2fsentry_2eproto, "p2psentry/sentry.proto", &descriptor_table_p2psentry_2fsentry_2eproto_once, descriptor_table_p2psentry_2fsentry_2eproto_deps, 2, 21, schemas, file_default_instances, TableStruct_p2psentry_2fsentry_2eproto::offsets, @@ -694,6 +697,7 @@ bool MessageId_IsValid(int value) { case 29: case 30: case 31: + case 32: return true; default: return false; @@ -722,6 +726,7 @@ bool Protocol_IsValid(int value) { case 0: case 1: case 2: + case 3: return true; default: return false; @@ -2331,205 +2336,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PeerMinBlockRequest::GetMetadata() const { // =================================================================== -class PeerUselessRequest::_Internal { - public: - static const ::types::H512& peer_id(const PeerUselessRequest* msg); -}; - -const ::types::H512& -PeerUselessRequest::_Internal::peer_id(const PeerUselessRequest* msg) { - return *msg->_impl_.peer_id_; -} -void PeerUselessRequest::clear_peer_id() { - if (GetArenaForAllocation() == nullptr && _impl_.peer_id_ != nullptr) { - delete _impl_.peer_id_; - } - _impl_.peer_id_ = nullptr; -} -PeerUselessRequest::PeerUselessRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:sentry.PeerUselessRequest) -} -PeerUselessRequest::PeerUselessRequest(const PeerUselessRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - PeerUselessRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.peer_id_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_peer_id()) { - _this->_impl_.peer_id_ = new ::types::H512(*from._impl_.peer_id_); - } - // @@protoc_insertion_point(copy_constructor:sentry.PeerUselessRequest) -} - -inline void PeerUselessRequest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.peer_id_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -PeerUselessRequest::~PeerUselessRequest() { - // @@protoc_insertion_point(destructor:sentry.PeerUselessRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void PeerUselessRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.peer_id_; -} - -void PeerUselessRequest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void PeerUselessRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:sentry.PeerUselessRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaForAllocation() == nullptr && _impl_.peer_id_ != nullptr) { - delete _impl_.peer_id_; - } - _impl_.peer_id_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PeerUselessRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .types.H512 peer_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_peer_id(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PeerUselessRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:sentry.PeerUselessRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .types.H512 peer_id = 1; - if (this->_internal_has_peer_id()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::peer_id(this), - _Internal::peer_id(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:sentry.PeerUselessRequest) - return target; -} - -size_t PeerUselessRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:sentry.PeerUselessRequest) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .types.H512 peer_id = 1; - if (this->_internal_has_peer_id()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.peer_id_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PeerUselessRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - PeerUselessRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PeerUselessRequest::GetClassData() const { return &_class_data_; } - - -void PeerUselessRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:sentry.PeerUselessRequest) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_peer_id()) { - _this->_internal_mutable_peer_id()->::types::H512::MergeFrom( - from._internal_peer_id()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void PeerUselessRequest::CopyFrom(const PeerUselessRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:sentry.PeerUselessRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PeerUselessRequest::IsInitialized() const { - return true; -} - -void PeerUselessRequest::InternalSwap(PeerUselessRequest* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.peer_id_, other->_impl_.peer_id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PeerUselessRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[7]); -} - -// =================================================================== - class InboundMessage::_Internal { public: static const ::types::H512& peer_id(const InboundMessage* msg); @@ -2805,7 +2611,7 @@ void InboundMessage::InternalSwap(InboundMessage* other) { ::PROTOBUF_NAMESPACE_ID::Metadata InboundMessage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[8]); + file_level_metadata_p2psentry_2fsentry_2eproto[7]); } // =================================================================== @@ -3088,7 +2894,7 @@ void Forks::InternalSwap(Forks* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Forks::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[9]); + file_level_metadata_p2psentry_2fsentry_2eproto[8]); } // =================================================================== @@ -3140,7 +2946,6 @@ StatusData::StatusData(const StatusData& from) , decltype(_impl_.network_id_){} , decltype(_impl_.max_block_height_){} , decltype(_impl_.max_block_time_){} - , decltype(_impl_.passive_peers_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -3154,8 +2959,8 @@ StatusData::StatusData(const StatusData& from) _this->_impl_.fork_data_ = new ::sentry::Forks(*from._impl_.fork_data_); } ::memcpy(&_impl_.network_id_, &from._impl_.network_id_, - static_cast(reinterpret_cast(&_impl_.passive_peers_) - - reinterpret_cast(&_impl_.network_id_)) + sizeof(_impl_.passive_peers_)); + static_cast(reinterpret_cast(&_impl_.max_block_time_) - + reinterpret_cast(&_impl_.network_id_)) + sizeof(_impl_.max_block_time_)); // @@protoc_insertion_point(copy_constructor:sentry.StatusData) } @@ -3170,7 +2975,6 @@ inline void StatusData::SharedCtor( , decltype(_impl_.network_id_){uint64_t{0u}} , decltype(_impl_.max_block_height_){uint64_t{0u}} , decltype(_impl_.max_block_time_){uint64_t{0u}} - , decltype(_impl_.passive_peers_){false} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -3214,8 +3018,8 @@ void StatusData::Clear() { } _impl_.fork_data_ = nullptr; ::memset(&_impl_.network_id_, 0, static_cast( - reinterpret_cast(&_impl_.passive_peers_) - - reinterpret_cast(&_impl_.network_id_)) + sizeof(_impl_.passive_peers_)); + reinterpret_cast(&_impl_.max_block_time_) - + reinterpret_cast(&_impl_.network_id_)) + sizeof(_impl_.max_block_time_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3273,14 +3077,6 @@ const char* StatusData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; - // bool passive_peers = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _impl_.passive_peers_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; default: goto handle_unusual; } // switch @@ -3349,12 +3145,6 @@ uint8_t* StatusData::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_max_block_time(), target); } - // bool passive_peers = 7; - if (this->_internal_passive_peers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_passive_peers(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -3407,11 +3197,6 @@ size_t StatusData::ByteSizeLong() const { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_max_block_time()); } - // bool passive_peers = 7; - if (this->_internal_passive_peers() != 0) { - total_size += 1 + 1; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -3451,9 +3236,6 @@ void StatusData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO if (from._internal_max_block_time() != 0) { _this->_internal_set_max_block_time(from._internal_max_block_time()); } - if (from._internal_passive_peers() != 0) { - _this->_internal_set_passive_peers(from._internal_passive_peers()); - } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -3472,8 +3254,8 @@ void StatusData::InternalSwap(StatusData* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(StatusData, _impl_.passive_peers_) - + sizeof(StatusData::_impl_.passive_peers_) + PROTOBUF_FIELD_OFFSET(StatusData, _impl_.max_block_time_) + + sizeof(StatusData::_impl_.max_block_time_) - PROTOBUF_FIELD_OFFSET(StatusData, _impl_.total_difficulty_)>( reinterpret_cast(&_impl_.total_difficulty_), reinterpret_cast(&other->_impl_.total_difficulty_)); @@ -3482,7 +3264,7 @@ void StatusData::InternalSwap(StatusData* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StatusData::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[10]); + file_level_metadata_p2psentry_2fsentry_2eproto[9]); } // =================================================================== @@ -3522,7 +3304,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetStatusReply::GetClassData() ::PROTOBUF_NAMESPACE_ID::Metadata SetStatusReply::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[11]); + file_level_metadata_p2psentry_2fsentry_2eproto[10]); } // =================================================================== @@ -3703,7 +3485,7 @@ void HandShakeReply::InternalSwap(HandShakeReply* other) { ::PROTOBUF_NAMESPACE_ID::Metadata HandShakeReply::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[12]); + file_level_metadata_p2psentry_2fsentry_2eproto[11]); } // =================================================================== @@ -3900,7 +3682,7 @@ void MessagesRequest::InternalSwap(MessagesRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MessagesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[13]); + file_level_metadata_p2psentry_2fsentry_2eproto[12]); } // =================================================================== @@ -4088,7 +3870,7 @@ void PeersReply::InternalSwap(PeersReply* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PeersReply::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, - file_level_metadata_p2psentry_2fsentry_2eproto[14]); + file_level_metadata_p2psentry_2fsentry_2eproto[13]); } // =================================================================== @@ -4126,6 +3908,220 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PeerCountRequest::GetClassData ::PROTOBUF_NAMESPACE_ID::Metadata PeerCountRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, + file_level_metadata_p2psentry_2fsentry_2eproto[14]); +} + +// =================================================================== + +class PeerCountPerProtocol::_Internal { + public: +}; + +PeerCountPerProtocol::PeerCountPerProtocol(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:sentry.PeerCountPerProtocol) +} +PeerCountPerProtocol::PeerCountPerProtocol(const PeerCountPerProtocol& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + PeerCountPerProtocol* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.count_){} + , decltype(_impl_.protocol_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.count_, &from._impl_.count_, + static_cast(reinterpret_cast(&_impl_.protocol_) - + reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.protocol_)); + // @@protoc_insertion_point(copy_constructor:sentry.PeerCountPerProtocol) +} + +inline void PeerCountPerProtocol::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.count_){uint64_t{0u}} + , decltype(_impl_.protocol_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +PeerCountPerProtocol::~PeerCountPerProtocol() { + // @@protoc_insertion_point(destructor:sentry.PeerCountPerProtocol) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void PeerCountPerProtocol::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PeerCountPerProtocol::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void PeerCountPerProtocol::Clear() { +// @@protoc_insertion_point(message_clear_start:sentry.PeerCountPerProtocol) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.count_, 0, static_cast( + reinterpret_cast(&_impl_.protocol_) - + reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.protocol_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PeerCountPerProtocol::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .sentry.Protocol protocol = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_protocol(static_cast<::sentry::Protocol>(val)); + } else + goto handle_unusual; + continue; + // uint64 count = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PeerCountPerProtocol::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:sentry.PeerCountPerProtocol) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .sentry.Protocol protocol = 1; + if (this->_internal_protocol() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_protocol(), target); + } + + // uint64 count = 2; + 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())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:sentry.PeerCountPerProtocol) + return target; +} + +size_t PeerCountPerProtocol::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:sentry.PeerCountPerProtocol) + 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 count = 2; + if (this->_internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_count()); + } + + // .sentry.Protocol protocol = 1; + if (this->_internal_protocol() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_protocol()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PeerCountPerProtocol::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + PeerCountPerProtocol::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PeerCountPerProtocol::GetClassData() const { return &_class_data_; } + + +void PeerCountPerProtocol::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:sentry.PeerCountPerProtocol) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_count() != 0) { + _this->_internal_set_count(from._internal_count()); + } + if (from._internal_protocol() != 0) { + _this->_internal_set_protocol(from._internal_protocol()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PeerCountPerProtocol::CopyFrom(const PeerCountPerProtocol& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:sentry.PeerCountPerProtocol) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PeerCountPerProtocol::IsInitialized() const { + return true; +} + +void PeerCountPerProtocol::InternalSwap(PeerCountPerProtocol* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PeerCountPerProtocol, _impl_.protocol_) + + sizeof(PeerCountPerProtocol::_impl_.protocol_) + - PROTOBUF_FIELD_OFFSET(PeerCountPerProtocol, _impl_.count_)>( + reinterpret_cast(&_impl_.count_), + reinterpret_cast(&other->_impl_.count_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PeerCountPerProtocol::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_p2psentry_2fsentry_2eproto_getter, &descriptor_table_p2psentry_2fsentry_2eproto_once, file_level_metadata_p2psentry_2fsentry_2eproto[15]); @@ -4147,7 +4143,8 @@ PeerCountReply::PeerCountReply(const PeerCountReply& from) : ::PROTOBUF_NAMESPACE_ID::Message() { PeerCountReply* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.count_){} + decltype(_impl_.countsperprotocol_){from._impl_.countsperprotocol_} + , decltype(_impl_.count_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -4160,7 +4157,8 @@ inline void PeerCountReply::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.count_){uint64_t{0u}} + decltype(_impl_.countsperprotocol_){arena} + , decltype(_impl_.count_){uint64_t{0u}} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -4176,6 +4174,7 @@ PeerCountReply::~PeerCountReply() { inline void PeerCountReply::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.countsperprotocol_.~RepeatedPtrField(); } void PeerCountReply::SetCachedSize(int size) const { @@ -4188,6 +4187,7 @@ void PeerCountReply::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.countsperprotocol_.Clear(); _impl_.count_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -4206,6 +4206,19 @@ const char* PeerCountReply::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_countsperprotocol(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -4241,6 +4254,14 @@ uint8_t* PeerCountReply::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_count(), target); } + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_countsperprotocol_size()); i < n; i++) { + const auto& repfield = this->_internal_countsperprotocol(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -4257,6 +4278,13 @@ size_t PeerCountReply::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + total_size += 1UL * this->_internal_countsperprotocol_size(); + for (const auto& msg : this->_impl_.countsperprotocol_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + // uint64 count = 1; if (this->_internal_count() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_count()); @@ -4280,6 +4308,7 @@ void PeerCountReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.countsperprotocol_.MergeFrom(from._impl_.countsperprotocol_); if (from._internal_count() != 0) { _this->_internal_set_count(from._internal_count()); } @@ -4300,6 +4329,7 @@ bool PeerCountReply::IsInitialized() const { void PeerCountReply::InternalSwap(PeerCountReply* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.countsperprotocol_.InternalSwap(&other->_impl_.countsperprotocol_); swap(_impl_.count_, other->_impl_.count_); } @@ -5021,10 +5051,6 @@ template<> PROTOBUF_NOINLINE ::sentry::PeerMinBlockRequest* Arena::CreateMaybeMessage< ::sentry::PeerMinBlockRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::PeerMinBlockRequest >(arena); } -template<> PROTOBUF_NOINLINE ::sentry::PeerUselessRequest* -Arena::CreateMaybeMessage< ::sentry::PeerUselessRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::sentry::PeerUselessRequest >(arena); -} template<> PROTOBUF_NOINLINE ::sentry::InboundMessage* Arena::CreateMaybeMessage< ::sentry::InboundMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::InboundMessage >(arena); @@ -5057,6 +5083,10 @@ template<> PROTOBUF_NOINLINE ::sentry::PeerCountRequest* Arena::CreateMaybeMessage< ::sentry::PeerCountRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::PeerCountRequest >(arena); } +template<> PROTOBUF_NOINLINE ::sentry::PeerCountPerProtocol* +Arena::CreateMaybeMessage< ::sentry::PeerCountPerProtocol >(Arena* arena) { + return Arena::CreateMessageInternal< ::sentry::PeerCountPerProtocol >(arena); +} template<> PROTOBUF_NOINLINE ::sentry::PeerCountReply* Arena::CreateMaybeMessage< ::sentry::PeerCountReply >(Arena* arena) { return Arena::CreateMessageInternal< ::sentry::PeerCountReply >(arena); diff --git a/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.h b/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.h index 336c500d36..fdbcf3ce00 100644 --- a/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.h +++ b/silkworm/interfaces/3.21.4/p2psentry/sentry.pb.h @@ -70,6 +70,9 @@ extern PeerByIdReplyDefaultTypeInternal _PeerByIdReply_default_instance_; class PeerByIdRequest; struct PeerByIdRequestDefaultTypeInternal; extern PeerByIdRequestDefaultTypeInternal _PeerByIdRequest_default_instance_; +class PeerCountPerProtocol; +struct PeerCountPerProtocolDefaultTypeInternal; +extern PeerCountPerProtocolDefaultTypeInternal _PeerCountPerProtocol_default_instance_; class PeerCountReply; struct PeerCountReplyDefaultTypeInternal; extern PeerCountReplyDefaultTypeInternal _PeerCountReply_default_instance_; @@ -85,9 +88,6 @@ extern PeerEventsRequestDefaultTypeInternal _PeerEventsRequest_default_instance_ class PeerMinBlockRequest; struct PeerMinBlockRequestDefaultTypeInternal; extern PeerMinBlockRequestDefaultTypeInternal _PeerMinBlockRequest_default_instance_; -class PeerUselessRequest; -struct PeerUselessRequestDefaultTypeInternal; -extern PeerUselessRequestDefaultTypeInternal _PeerUselessRequest_default_instance_; class PeersReply; struct PeersReplyDefaultTypeInternal; extern PeersReplyDefaultTypeInternal _PeersReply_default_instance_; @@ -121,12 +121,12 @@ template<> ::sentry::MessagesRequest* Arena::CreateMaybeMessage<::sentry::Messag template<> ::sentry::OutboundMessageData* Arena::CreateMaybeMessage<::sentry::OutboundMessageData>(Arena*); template<> ::sentry::PeerByIdReply* Arena::CreateMaybeMessage<::sentry::PeerByIdReply>(Arena*); template<> ::sentry::PeerByIdRequest* Arena::CreateMaybeMessage<::sentry::PeerByIdRequest>(Arena*); +template<> ::sentry::PeerCountPerProtocol* Arena::CreateMaybeMessage<::sentry::PeerCountPerProtocol>(Arena*); template<> ::sentry::PeerCountReply* Arena::CreateMaybeMessage<::sentry::PeerCountReply>(Arena*); template<> ::sentry::PeerCountRequest* Arena::CreateMaybeMessage<::sentry::PeerCountRequest>(Arena*); template<> ::sentry::PeerEvent* Arena::CreateMaybeMessage<::sentry::PeerEvent>(Arena*); template<> ::sentry::PeerEventsRequest* Arena::CreateMaybeMessage<::sentry::PeerEventsRequest>(Arena*); template<> ::sentry::PeerMinBlockRequest* Arena::CreateMaybeMessage<::sentry::PeerMinBlockRequest>(Arena*); -template<> ::sentry::PeerUselessRequest* Arena::CreateMaybeMessage<::sentry::PeerUselessRequest>(Arena*); template<> ::sentry::PeersReply* Arena::CreateMaybeMessage<::sentry::PeersReply>(Arena*); template<> ::sentry::PenalizePeerRequest* Arena::CreateMaybeMessage<::sentry::PenalizePeerRequest>(Arena*); template<> ::sentry::SendMessageByIdRequest* Arena::CreateMaybeMessage<::sentry::SendMessageByIdRequest>(Arena*); @@ -195,12 +195,13 @@ enum MessageId : int { NODE_DATA_66 = 29, RECEIPTS_66 = 30, POOLED_TRANSACTIONS_66 = 31, + NEW_POOLED_TRANSACTION_HASHES_68 = 32, MessageId_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), MessageId_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool MessageId_IsValid(int value); constexpr MessageId MessageId_MIN = STATUS_65; -constexpr MessageId MessageId_MAX = POOLED_TRANSACTIONS_66; +constexpr MessageId MessageId_MAX = NEW_POOLED_TRANSACTION_HASHES_68; constexpr int MessageId_ARRAYSIZE = MessageId_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MessageId_descriptor(); @@ -245,12 +246,13 @@ enum Protocol : int { ETH65 = 0, ETH66 = 1, ETH67 = 2, + ETH68 = 3, Protocol_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), Protocol_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool Protocol_IsValid(int value); constexpr Protocol Protocol_MIN = ETH65; -constexpr Protocol Protocol_MAX = ETH67; +constexpr Protocol Protocol_MAX = ETH68; constexpr int Protocol_ARRAYSIZE = Protocol_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Protocol_descriptor(); @@ -1450,163 +1452,6 @@ class PeerMinBlockRequest final : }; // ------------------------------------------------------------------- -class PeerUselessRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.PeerUselessRequest) */ { - public: - inline PeerUselessRequest() : PeerUselessRequest(nullptr) {} - ~PeerUselessRequest() override; - explicit PROTOBUF_CONSTEXPR PeerUselessRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PeerUselessRequest(const PeerUselessRequest& from); - PeerUselessRequest(PeerUselessRequest&& from) noexcept - : PeerUselessRequest() { - *this = ::std::move(from); - } - - inline PeerUselessRequest& operator=(const PeerUselessRequest& from) { - CopyFrom(from); - return *this; - } - inline PeerUselessRequest& operator=(PeerUselessRequest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PeerUselessRequest& default_instance() { - return *internal_default_instance(); - } - static inline const PeerUselessRequest* internal_default_instance() { - return reinterpret_cast( - &_PeerUselessRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(PeerUselessRequest& a, PeerUselessRequest& b) { - a.Swap(&b); - } - inline void Swap(PeerUselessRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PeerUselessRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PeerUselessRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PeerUselessRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PeerUselessRequest& from) { - PeerUselessRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PeerUselessRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "sentry.PeerUselessRequest"; - } - protected: - explicit PeerUselessRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPeerIdFieldNumber = 1, - }; - // .types.H512 peer_id = 1; - bool has_peer_id() const; - private: - bool _internal_has_peer_id() const; - public: - void clear_peer_id(); - const ::types::H512& peer_id() const; - PROTOBUF_NODISCARD ::types::H512* release_peer_id(); - ::types::H512* mutable_peer_id(); - void set_allocated_peer_id(::types::H512* peer_id); - private: - const ::types::H512& _internal_peer_id() const; - ::types::H512* _internal_mutable_peer_id(); - public: - void unsafe_arena_set_allocated_peer_id( - ::types::H512* peer_id); - ::types::H512* unsafe_arena_release_peer_id(); - - // @@protoc_insertion_point(class_scope:sentry.PeerUselessRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::types::H512* peer_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_p2psentry_2fsentry_2eproto; -}; -// ------------------------------------------------------------------- - class InboundMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.InboundMessage) */ { public: @@ -1655,7 +1500,7 @@ class InboundMessage final : &_InboundMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 7; friend void swap(InboundMessage& a, InboundMessage& b) { a.Swap(&b); @@ -1839,7 +1684,7 @@ class Forks final : &_Forks_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 8; friend void swap(Forks& a, Forks& b) { a.Swap(&b); @@ -2046,7 +1891,7 @@ class StatusData final : &_StatusData_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; friend void swap(StatusData& a, StatusData& b) { a.Swap(&b); @@ -2125,7 +1970,6 @@ class StatusData final : kNetworkIdFieldNumber = 1, kMaxBlockHeightFieldNumber = 5, kMaxBlockTimeFieldNumber = 6, - kPassivePeersFieldNumber = 7, }; // .types.H256 total_difficulty = 2; bool has_total_difficulty() const; @@ -2208,15 +2052,6 @@ class StatusData final : void _internal_set_max_block_time(uint64_t value); public: - // bool passive_peers = 7; - void clear_passive_peers(); - bool passive_peers() const; - void set_passive_peers(bool value); - private: - bool _internal_passive_peers() const; - void _internal_set_passive_peers(bool value); - public: - // @@protoc_insertion_point(class_scope:sentry.StatusData) private: class _Internal; @@ -2231,7 +2066,6 @@ class StatusData final : uint64_t network_id_; uint64_t max_block_height_; uint64_t max_block_time_; - bool passive_peers_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2286,7 +2120,7 @@ class SetStatusReply final : &_SetStatusReply_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 10; friend void swap(SetStatusReply& a, SetStatusReply& b) { a.Swap(&b); @@ -2405,7 +2239,7 @@ class HandShakeReply final : &_HandShakeReply_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 11; friend void swap(HandShakeReply& a, HandShakeReply& b) { a.Swap(&b); @@ -2553,7 +2387,7 @@ class MessagesRequest final : &_MessagesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; friend void swap(MessagesRequest& a, MessagesRequest& b) { a.Swap(&b); @@ -2710,7 +2544,7 @@ class PeersReply final : &_PeersReply_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 13; friend void swap(PeersReply& a, PeersReply& b) { a.Swap(&b); @@ -2866,7 +2700,7 @@ class PeerCountRequest final : &_PeerCountRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 14; friend void swap(PeerCountRequest& a, PeerCountRequest& b) { a.Swap(&b); @@ -2937,6 +2771,165 @@ class PeerCountRequest final : }; // ------------------------------------------------------------------- +class PeerCountPerProtocol final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.PeerCountPerProtocol) */ { + public: + inline PeerCountPerProtocol() : PeerCountPerProtocol(nullptr) {} + ~PeerCountPerProtocol() override; + explicit PROTOBUF_CONSTEXPR PeerCountPerProtocol(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PeerCountPerProtocol(const PeerCountPerProtocol& from); + PeerCountPerProtocol(PeerCountPerProtocol&& from) noexcept + : PeerCountPerProtocol() { + *this = ::std::move(from); + } + + inline PeerCountPerProtocol& operator=(const PeerCountPerProtocol& from) { + CopyFrom(from); + return *this; + } + inline PeerCountPerProtocol& operator=(PeerCountPerProtocol&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PeerCountPerProtocol& default_instance() { + return *internal_default_instance(); + } + static inline const PeerCountPerProtocol* internal_default_instance() { + return reinterpret_cast( + &_PeerCountPerProtocol_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(PeerCountPerProtocol& a, PeerCountPerProtocol& b) { + a.Swap(&b); + } + inline void Swap(PeerCountPerProtocol* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PeerCountPerProtocol* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PeerCountPerProtocol* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PeerCountPerProtocol& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const PeerCountPerProtocol& from) { + PeerCountPerProtocol::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PeerCountPerProtocol* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "sentry.PeerCountPerProtocol"; + } + protected: + explicit PeerCountPerProtocol(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCountFieldNumber = 2, + kProtocolFieldNumber = 1, + }; + // uint64 count = 2; + void clear_count(); + uint64_t count() const; + void set_count(uint64_t value); + private: + uint64_t _internal_count() const; + void _internal_set_count(uint64_t value); + public: + + // .sentry.Protocol protocol = 1; + void clear_protocol(); + ::sentry::Protocol protocol() const; + void set_protocol(::sentry::Protocol value); + private: + ::sentry::Protocol _internal_protocol() const; + void _internal_set_protocol(::sentry::Protocol value); + public: + + // @@protoc_insertion_point(class_scope:sentry.PeerCountPerProtocol) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t count_; + int protocol_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_p2psentry_2fsentry_2eproto; +}; +// ------------------------------------------------------------------- + class PeerCountReply final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sentry.PeerCountReply) */ { public: @@ -3058,8 +3051,27 @@ class PeerCountReply final : // accessors ------------------------------------------------------- enum : int { + kCountsPerProtocolFieldNumber = 2, kCountFieldNumber = 1, }; + // repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; + int countsperprotocol_size() const; + private: + int _internal_countsperprotocol_size() const; + public: + void clear_countsperprotocol(); + ::sentry::PeerCountPerProtocol* mutable_countsperprotocol(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >* + mutable_countsperprotocol(); + private: + const ::sentry::PeerCountPerProtocol& _internal_countsperprotocol(int index) const; + ::sentry::PeerCountPerProtocol* _internal_add_countsperprotocol(); + public: + const ::sentry::PeerCountPerProtocol& countsperprotocol(int index) const; + ::sentry::PeerCountPerProtocol* add_countsperprotocol(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >& + countsperprotocol() const; + // uint64 count = 1; void clear_count(); uint64_t count() const; @@ -3077,6 +3089,7 @@ class PeerCountReply final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol > countsperprotocol_; uint64_t count_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -4483,95 +4496,6 @@ inline void PeerMinBlockRequest::set_min_block(uint64_t value) { // ------------------------------------------------------------------- -// PeerUselessRequest - -// .types.H512 peer_id = 1; -inline bool PeerUselessRequest::_internal_has_peer_id() const { - return this != internal_default_instance() && _impl_.peer_id_ != nullptr; -} -inline bool PeerUselessRequest::has_peer_id() const { - return _internal_has_peer_id(); -} -inline const ::types::H512& PeerUselessRequest::_internal_peer_id() const { - const ::types::H512* p = _impl_.peer_id_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H512_default_instance_); -} -inline const ::types::H512& PeerUselessRequest::peer_id() const { - // @@protoc_insertion_point(field_get:sentry.PeerUselessRequest.peer_id) - return _internal_peer_id(); -} -inline void PeerUselessRequest::unsafe_arena_set_allocated_peer_id( - ::types::H512* peer_id) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.peer_id_); - } - _impl_.peer_id_ = peer_id; - if (peer_id) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:sentry.PeerUselessRequest.peer_id) -} -inline ::types::H512* PeerUselessRequest::release_peer_id() { - - ::types::H512* temp = _impl_.peer_id_; - _impl_.peer_id_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::types::H512* PeerUselessRequest::unsafe_arena_release_peer_id() { - // @@protoc_insertion_point(field_release:sentry.PeerUselessRequest.peer_id) - - ::types::H512* temp = _impl_.peer_id_; - _impl_.peer_id_ = nullptr; - return temp; -} -inline ::types::H512* PeerUselessRequest::_internal_mutable_peer_id() { - - if (_impl_.peer_id_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H512>(GetArenaForAllocation()); - _impl_.peer_id_ = p; - } - return _impl_.peer_id_; -} -inline ::types::H512* PeerUselessRequest::mutable_peer_id() { - ::types::H512* _msg = _internal_mutable_peer_id(); - // @@protoc_insertion_point(field_mutable:sentry.PeerUselessRequest.peer_id) - return _msg; -} -inline void PeerUselessRequest::set_allocated_peer_id(::types::H512* peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.peer_id_); - } - if (peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(peer_id)); - if (message_arena != submessage_arena) { - peer_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, peer_id, submessage_arena); - } - - } else { - - } - _impl_.peer_id_ = peer_id; - // @@protoc_insertion_point(field_set_allocated:sentry.PeerUselessRequest.peer_id) -} - -// ------------------------------------------------------------------- - // InboundMessage // .sentry.MessageId id = 1; @@ -5236,26 +5160,6 @@ inline void StatusData::set_max_block_time(uint64_t value) { // @@protoc_insertion_point(field_set:sentry.StatusData.max_block_time) } -// bool passive_peers = 7; -inline void StatusData::clear_passive_peers() { - _impl_.passive_peers_ = false; -} -inline bool StatusData::_internal_passive_peers() const { - return _impl_.passive_peers_; -} -inline bool StatusData::passive_peers() const { - // @@protoc_insertion_point(field_get:sentry.StatusData.passive_peers) - return _internal_passive_peers(); -} -inline void StatusData::_internal_set_passive_peers(bool value) { - - _impl_.passive_peers_ = value; -} -inline void StatusData::set_passive_peers(bool value) { - _internal_set_passive_peers(value); - // @@protoc_insertion_point(field_set:sentry.StatusData.passive_peers) -} - // ------------------------------------------------------------------- // SetStatusReply @@ -5378,6 +5282,50 @@ PeersReply::peers() const { // ------------------------------------------------------------------- +// PeerCountPerProtocol + +// .sentry.Protocol protocol = 1; +inline void PeerCountPerProtocol::clear_protocol() { + _impl_.protocol_ = 0; +} +inline ::sentry::Protocol PeerCountPerProtocol::_internal_protocol() const { + return static_cast< ::sentry::Protocol >(_impl_.protocol_); +} +inline ::sentry::Protocol PeerCountPerProtocol::protocol() const { + // @@protoc_insertion_point(field_get:sentry.PeerCountPerProtocol.protocol) + return _internal_protocol(); +} +inline void PeerCountPerProtocol::_internal_set_protocol(::sentry::Protocol value) { + + _impl_.protocol_ = value; +} +inline void PeerCountPerProtocol::set_protocol(::sentry::Protocol value) { + _internal_set_protocol(value); + // @@protoc_insertion_point(field_set:sentry.PeerCountPerProtocol.protocol) +} + +// uint64 count = 2; +inline void PeerCountPerProtocol::clear_count() { + _impl_.count_ = uint64_t{0u}; +} +inline uint64_t PeerCountPerProtocol::_internal_count() const { + return _impl_.count_; +} +inline uint64_t PeerCountPerProtocol::count() const { + // @@protoc_insertion_point(field_get:sentry.PeerCountPerProtocol.count) + return _internal_count(); +} +inline void PeerCountPerProtocol::_internal_set_count(uint64_t value) { + + _impl_.count_ = value; +} +inline void PeerCountPerProtocol::set_count(uint64_t value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:sentry.PeerCountPerProtocol.count) +} + +// ------------------------------------------------------------------- + // PeerCountReply // uint64 count = 1; @@ -5400,6 +5348,46 @@ inline void PeerCountReply::set_count(uint64_t value) { // @@protoc_insertion_point(field_set:sentry.PeerCountReply.count) } +// repeated .sentry.PeerCountPerProtocol countsPerProtocol = 2; +inline int PeerCountReply::_internal_countsperprotocol_size() const { + return _impl_.countsperprotocol_.size(); +} +inline int PeerCountReply::countsperprotocol_size() const { + return _internal_countsperprotocol_size(); +} +inline void PeerCountReply::clear_countsperprotocol() { + _impl_.countsperprotocol_.Clear(); +} +inline ::sentry::PeerCountPerProtocol* PeerCountReply::mutable_countsperprotocol(int index) { + // @@protoc_insertion_point(field_mutable:sentry.PeerCountReply.countsPerProtocol) + return _impl_.countsperprotocol_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >* +PeerCountReply::mutable_countsperprotocol() { + // @@protoc_insertion_point(field_mutable_list:sentry.PeerCountReply.countsPerProtocol) + return &_impl_.countsperprotocol_; +} +inline const ::sentry::PeerCountPerProtocol& PeerCountReply::_internal_countsperprotocol(int index) const { + return _impl_.countsperprotocol_.Get(index); +} +inline const ::sentry::PeerCountPerProtocol& PeerCountReply::countsperprotocol(int index) const { + // @@protoc_insertion_point(field_get:sentry.PeerCountReply.countsPerProtocol) + return _internal_countsperprotocol(index); +} +inline ::sentry::PeerCountPerProtocol* PeerCountReply::_internal_add_countsperprotocol() { + return _impl_.countsperprotocol_.Add(); +} +inline ::sentry::PeerCountPerProtocol* PeerCountReply::add_countsperprotocol() { + ::sentry::PeerCountPerProtocol* _add = _internal_add_countsperprotocol(); + // @@protoc_insertion_point(field_add:sentry.PeerCountReply.countsPerProtocol) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::sentry::PeerCountPerProtocol >& +PeerCountReply::countsperprotocol() const { + // @@protoc_insertion_point(field_list:sentry.PeerCountReply.countsPerProtocol) + return _impl_.countsperprotocol_; +} + // ------------------------------------------------------------------- // PeerByIdRequest diff --git a/silkworm/interfaces/3.21.4/p2psentry/sentry_mock.grpc.pb.h b/silkworm/interfaces/3.21.4/p2psentry/sentry_mock.grpc.pb.h index ee7a858b4d..8f4837e54d 100644 --- a/silkworm/interfaces/3.21.4/p2psentry/sentry_mock.grpc.pb.h +++ b/silkworm/interfaces/3.21.4/p2psentry/sentry_mock.grpc.pb.h @@ -21,9 +21,6 @@ class MockSentryStub : public Sentry::StubInterface { MOCK_METHOD3(PeerMinBlock, ::grpc::Status(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::google::protobuf::Empty* response)); MOCK_METHOD3(AsyncPeerMinBlockRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncPeerMinBlockRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerMinBlockRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PeerUseless, ::grpc::Status(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::google::protobuf::Empty* response)); - MOCK_METHOD3(AsyncPeerUselessRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncPeerUselessRaw, ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>*(::grpc::ClientContext* context, const ::sentry::PeerUselessRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(HandShake, ::grpc::Status(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::sentry::HandShakeReply* response)); MOCK_METHOD3(AsyncHandShakeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncHandShakeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::sentry::HandShakeReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); diff --git a/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.cc b/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.cc index 6af3cbfa00..6ed22463a9 100644 --- a/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.cc +++ b/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.cc @@ -25,12 +25,12 @@ static const char* ETHBACKEND_method_names[] = { "/remote.ETHBACKEND/Etherbase", "/remote.ETHBACKEND/NetVersion", "/remote.ETHBACKEND/NetPeerCount", - "/remote.ETHBACKEND/EngineNewPayloadV1", - "/remote.ETHBACKEND/EngineNewPayloadV2", - "/remote.ETHBACKEND/EngineForkChoiceUpdatedV1", - "/remote.ETHBACKEND/EngineForkChoiceUpdatedV2", - "/remote.ETHBACKEND/EngineGetPayloadV1", - "/remote.ETHBACKEND/EngineGetPayloadV2", + "/remote.ETHBACKEND/EngineNewPayload", + "/remote.ETHBACKEND/EngineForkChoiceUpdated", + "/remote.ETHBACKEND/EngineGetPayload", + "/remote.ETHBACKEND/EngineGetPayloadBodiesByHashV1", + "/remote.ETHBACKEND/EngineGetPayloadBodiesByRangeV1", + "/remote.ETHBACKEND/EngineGetBlobsBundleV1", "/remote.ETHBACKEND/Version", "/remote.ETHBACKEND/ProtocolVersion", "/remote.ETHBACKEND/ClientVersion", @@ -53,12 +53,12 @@ ETHBACKEND::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel : channel_(channel), rpcmethod_Etherbase_(ETHBACKEND_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_NetVersion_(ETHBACKEND_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_NetPeerCount_(ETHBACKEND_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineNewPayloadV1_(ETHBACKEND_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineNewPayloadV2_(ETHBACKEND_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineForkChoiceUpdatedV1_(ETHBACKEND_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineForkChoiceUpdatedV2_(ETHBACKEND_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineGetPayloadV1_(ETHBACKEND_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_EngineGetPayloadV2_(ETHBACKEND_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineNewPayload_(ETHBACKEND_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineForkChoiceUpdated_(ETHBACKEND_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetPayload_(ETHBACKEND_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetPayloadBodiesByHashV1_(ETHBACKEND_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetPayloadBodiesByRangeV1_(ETHBACKEND_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_EngineGetBlobsBundleV1_(ETHBACKEND_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_Version_(ETHBACKEND_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ProtocolVersion_(ETHBACKEND_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ClientVersion_(ETHBACKEND_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) @@ -140,140 +140,140 @@ ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>* ETHBACKEND::Stu return result; } -::grpc::Status ETHBACKEND::Stub::EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) { - return ::grpc::internal::BlockingUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineNewPayloadV1_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) { + return ::grpc::internal::BlockingUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineNewPayload_, context, request, response); } -void ETHBACKEND::Stub::async::EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV1_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::types::ExecutionPayload, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayload_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV1_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayload_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::PrepareAsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EnginePayloadStatus, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineNewPayloadV1_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::PrepareAsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EnginePayloadStatus, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineNewPayload_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::AsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::AsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineNewPayloadV1Raw(context, request, cq); + this->PrepareAsyncEngineNewPayloadRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response) { - return ::grpc::internal::BlockingUnaryCall< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineNewPayloadV2_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineForkChoiceUpdated_, context, request, response); } -void ETHBACKEND::Stub::async::EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV2_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdated_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineNewPayloadV2_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdated_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::PrepareAsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EnginePayloadStatus, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineNewPayloadV2_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* ETHBACKEND::Stub::PrepareAsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineForkChoiceUpdatedResponse, ::remote::EngineForkChoiceUpdatedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineForkChoiceUpdated_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* ETHBACKEND::Stub::AsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* ETHBACKEND::Stub::AsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineNewPayloadV2Raw(context, request, cq); + this->PrepareAsyncEngineForkChoiceUpdatedRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineForkChoiceUpdatedV1_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayload_, context, request, response); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV1_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayload_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV1_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayload_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::PrepareAsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineForkChoiceUpdatedReply, ::remote::EngineForkChoiceUpdatedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineForkChoiceUpdatedV1_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineGetPayloadResponse, ::remote::EngineGetPayloadRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayload_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::AsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* ETHBACKEND::Stub::AsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineForkChoiceUpdatedV1Raw(context, request, cq); + this->PrepareAsyncEngineGetPayloadRaw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineForkChoiceUpdatedV2_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request, response); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV2_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineForkChoiceUpdatedV2_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::PrepareAsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineForkChoiceUpdatedReply, ::remote::EngineForkChoiceUpdatedRequestV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineForkChoiceUpdatedV2_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineGetPayloadBodiesV1Response, ::remote::EngineGetPayloadBodiesByHashV1Request, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadBodiesByHashV1_, context, request); } -::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* ETHBACKEND::Stub::AsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::AsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineForkChoiceUpdatedV2Raw(context, request, cq); + this->PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadV1_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request, response); } -void ETHBACKEND::Stub::async::EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV1_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV1_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::types::ExecutionPayload, ::remote::EngineGetPayloadRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadV1_, context, request); +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::EngineGetPayloadBodiesV1Response, ::remote::EngineGetPayloadBodiesByRangeV1Request, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadBodiesByRangeV1_, context, request); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* ETHBACKEND::Stub::AsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* ETHBACKEND::Stub::AsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineGetPayloadV1Raw(context, request, cq); + this->PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq); result->StartCall(); return result; } -::grpc::Status ETHBACKEND::Stub::EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response) { - return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetPayloadV2_, context, request, response); +::grpc::Status ETHBACKEND::Stub::EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_EngineGetBlobsBundleV1_, context, request, response); } -void ETHBACKEND::Stub::async::EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV2_, context, request, response, std::move(f)); +void ETHBACKEND::Stub::async::EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetBlobsBundleV1_, context, request, response, std::move(f)); } -void ETHBACKEND::Stub::async::EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetPayloadV2_, context, request, response, reactor); +void ETHBACKEND::Stub::async::EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_EngineGetBlobsBundleV1_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* ETHBACKEND::Stub::PrepareAsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::types::ExecutionPayloadV2, ::remote::EngineGetPayloadRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetPayloadV2_, context, request); +::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* ETHBACKEND::Stub::PrepareAsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::types::BlobsBundleV1, ::remote::EngineGetBlobsBundleRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_EngineGetBlobsBundleV1_, context, request); } -::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* ETHBACKEND::Stub::AsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* ETHBACKEND::Stub::AsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { auto* result = - this->PrepareAsyncEngineGetPayloadV2Raw(context, request, cq); + this->PrepareAsyncEngineGetBlobsBundleV1Raw(context, request, cq); result->StartCall(); return result; } @@ -533,57 +533,57 @@ ETHBACKEND::Service::Service() { ::grpc::ServerContext* ctx, const ::types::ExecutionPayload* req, ::remote::EnginePayloadStatus* resp) { - return service->EngineNewPayloadV1(ctx, req, resp); + return service->EngineNewPayload(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::types::ExecutionPayloadV2* req, - ::remote::EnginePayloadStatus* resp) { - return service->EngineNewPayloadV2(ctx, req, resp); + const ::remote::EngineForkChoiceUpdatedRequest* req, + ::remote::EngineForkChoiceUpdatedResponse* resp) { + return service->EngineForkChoiceUpdated(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineForkChoiceUpdatedRequest* req, - ::remote::EngineForkChoiceUpdatedReply* resp) { - return service->EngineForkChoiceUpdatedV1(ctx, req, resp); + const ::remote::EngineGetPayloadRequest* req, + ::remote::EngineGetPayloadResponse* resp) { + return service->EngineGetPayload(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineForkChoiceUpdatedRequestV2* req, - ::remote::EngineForkChoiceUpdatedReply* resp) { - return service->EngineForkChoiceUpdatedV2(ctx, req, resp); + const ::remote::EngineGetPayloadBodiesByHashV1Request* req, + ::remote::EngineGetPayloadBodiesV1Response* resp) { + return service->EngineGetPayloadBodiesByHashV1(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineGetPayloadRequest* req, - ::types::ExecutionPayload* resp) { - return service->EngineGetPayloadV1(ctx, req, resp); + const ::remote::EngineGetPayloadBodiesByRangeV1Request* req, + ::remote::EngineGetPayloadBodiesV1Response* resp) { + return service->EngineGetPayloadBodiesByRangeV1(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< ETHBACKEND::Service, ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ETHBACKEND::Service* service, ::grpc::ServerContext* ctx, - const ::remote::EngineGetPayloadRequest* req, - ::types::ExecutionPayloadV2* resp) { - return service->EngineGetPayloadV2(ctx, req, resp); + const ::remote::EngineGetBlobsBundleRequest* req, + ::types::BlobsBundleV1* resp) { + return service->EngineGetBlobsBundleV1(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( ETHBACKEND_method_names[9], @@ -711,42 +711,42 @@ ::grpc::Status ETHBACKEND::Service::NetPeerCount(::grpc::ServerContext* context, return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineNewPayloadV1(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { +::grpc::Status ETHBACKEND::Service::EngineNewPayload(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineNewPayloadV2(::grpc::ServerContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response) { +::grpc::Status ETHBACKEND::Service::EngineForkChoiceUpdated(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineForkChoiceUpdatedV1(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response) { +::grpc::Status ETHBACKEND::Service::EngineGetPayload(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineForkChoiceUpdatedV2(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response) { +::grpc::Status ETHBACKEND::Service::EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineGetPayloadV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response) { +::grpc::Status ETHBACKEND::Service::EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ETHBACKEND::Service::EngineGetPayloadV2(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response) { +::grpc::Status ETHBACKEND::Service::EngineGetBlobsBundleV1(::grpc::ServerContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response) { (void) context; (void) request; (void) response; diff --git a/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.h b/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.h index a6c7367f2b..b7e11c2f15 100644 --- a/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.h +++ b/silkworm/interfaces/3.21.4/remote/ethbackend.grpc.pb.h @@ -61,52 +61,50 @@ class ETHBACKEND final { // See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md // // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV1Raw(context, request, cq)); + virtual ::grpc::Status EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> AsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadRaw(context, request, cq)); } - // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV2Raw(context, request, cq)); + // Update fork choice + virtual ::grpc::Status EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>> AsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>>(AsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>> PrepareAsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>>(PrepareAsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + // Fetch Execution Payload using its ID. + virtual ::grpc::Status EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>> AsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>>(AsyncEngineGetPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>> PrepareAsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>>(PrepareAsyncEngineGetPayloadRaw(context, request, cq)); } - // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + virtual ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>> AsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>>(AsyncEngineGetPayloadV1Raw(context, request, cq)); + virtual ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>> PrepareAsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>>(PrepareAsyncEngineGetPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>> AsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>>(AsyncEngineGetPayloadV2Raw(context, request, cq)); + // Fetch the blobs bundle using its ID. + virtual ::grpc::Status EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>> AsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>>(AsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>> PrepareAsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>>(PrepareAsyncEngineGetPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>> PrepareAsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>>(PrepareAsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } // End of Engine API requests // ------------------------------------------------------------------------ @@ -210,23 +208,21 @@ class ETHBACKEND final { // See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md // // Validate and possibly execute the payload. - virtual void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) = 0; - virtual void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // Validate and possibly execute the payload. - virtual void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, std::function) = 0; - virtual void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // Update fork choice - virtual void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) = 0; - virtual void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) = 0; + virtual void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Update fork choice - virtual void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) = 0; - virtual void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // Fetch Execution Payload using its ID. - virtual void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, std::function) = 0; - virtual void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, std::function) = 0; + virtual void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // Fetch Execution Payload using its ID. - virtual void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, std::function) = 0; - virtual void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, std::function) = 0; + virtual void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) = 0; + virtual void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) = 0; + virtual void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Fetch the blobs bundle using its ID. + virtual void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, std::function) = 0; + virtual void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, ::grpc::ClientUnaryReactor* reactor) = 0; // End of Engine API requests // ------------------------------------------------------------------------ // @@ -270,18 +266,18 @@ class ETHBACKEND final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetVersionReply>* PrepareAsyncNetVersionRaw(::grpc::ClientContext* context, const ::remote::NetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>* AsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>* PrepareAsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>* AsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>* PrepareAsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>* AsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>* PrepareAsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>* AsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>* PrepareAsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>* AsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>* PrepareAsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>* AsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>* PrepareAsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>* AsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>* PrepareAsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::ProtocolVersionReply>* AsyncProtocolVersionRaw(::grpc::ClientContext* context, const ::remote::ProtocolVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -329,47 +325,47 @@ class ETHBACKEND final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>> PrepareAsyncNetPeerCount(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>>(PrepareAsyncNetPeerCountRaw(context, request, cq)); } - ::grpc::Status EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV1Raw(context, request, cq)); + ::grpc::Status EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> AsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadRaw(context, request, cq)); } - ::grpc::Status EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> AsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(AsyncEngineNewPayloadV2Raw(context, request, cq)); + ::grpc::Status EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>> AsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>>(AsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>> PrepareAsyncEngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>>(PrepareAsyncEngineNewPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>> PrepareAsyncEngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>>(PrepareAsyncEngineForkChoiceUpdatedRaw(context, request, cq)); } - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + ::grpc::Status EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>> AsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>>(AsyncEngineGetPayloadRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>> PrepareAsyncEngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>>(PrepareAsyncEngineGetPayloadRaw(context, request, cq)); } - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> AsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(AsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>> PrepareAsyncEngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>>(PrepareAsyncEngineForkChoiceUpdatedV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(context, request, cq)); } - ::grpc::Status EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>> AsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>>(AsyncEngineGetPayloadV1Raw(context, request, cq)); + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> AsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(AsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>> PrepareAsyncEngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>>(PrepareAsyncEngineGetPayloadV1Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>> PrepareAsyncEngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>>(PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(context, request, cq)); } - ::grpc::Status EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>> AsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>>(AsyncEngineGetPayloadV2Raw(context, request, cq)); + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>> AsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>>(AsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>> PrepareAsyncEngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>>(PrepareAsyncEngineGetPayloadV2Raw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>> PrepareAsyncEngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>>(PrepareAsyncEngineGetBlobsBundleV1Raw(context, request, cq)); } ::grpc::Status Version(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::types::VersionReply* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::types::VersionReply>> AsyncVersion(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) { @@ -454,18 +450,18 @@ class ETHBACKEND final { void NetVersion(::grpc::ClientContext* context, const ::remote::NetVersionRequest* request, ::remote::NetVersionReply* response, ::grpc::ClientUnaryReactor* reactor) override; void NetPeerCount(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest* request, ::remote::NetPeerCountReply* response, std::function) override; void NetPeerCount(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest* request, ::remote::NetPeerCountReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) override; - void EngineNewPayloadV1(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, std::function) override; - void EngineNewPayloadV2(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) override; - void EngineForkChoiceUpdatedV1(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, std::function) override; - void EngineForkChoiceUpdatedV2(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, std::function) override; - void EngineGetPayloadV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response, ::grpc::ClientUnaryReactor* reactor) override; - void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, std::function) override; - void EngineGetPayloadV2(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, std::function) override; + void EngineNewPayload(::grpc::ClientContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, std::function) override; + void EngineForkChoiceUpdated(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, std::function) override; + void EngineGetPayload(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) override; + void EngineGetPayloadBodiesByHashV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, std::function) override; + void EngineGetPayloadBodiesByRangeV1(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response, ::grpc::ClientUnaryReactor* reactor) override; + void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, std::function) override; + void EngineGetBlobsBundleV1(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response, ::grpc::ClientUnaryReactor* reactor) override; void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::types::VersionReply* response, std::function) override; void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::types::VersionReply* response, ::grpc::ClientUnaryReactor* reactor) override; void ProtocolVersion(::grpc::ClientContext* context, const ::remote::ProtocolVersionRequest* request, ::remote::ProtocolVersionReply* response, std::function) override; @@ -501,18 +497,18 @@ class ETHBACKEND final { ::grpc::ClientAsyncResponseReader< ::remote::NetVersionReply>* PrepareAsyncNetVersionRaw(::grpc::ClientContext* context, const ::remote::NetVersionRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>* AsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::NetPeerCountReply>* PrepareAsyncNetPeerCountRaw(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV1Raw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadV2Raw(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV1Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* AsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedReply>* PrepareAsyncEngineForkChoiceUpdatedV2Raw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* AsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayload>* PrepareAsyncEngineGetPayloadV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* AsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::types::ExecutionPayloadV2>* PrepareAsyncEngineGetPayloadV2Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* AsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EnginePayloadStatus>* PrepareAsyncEngineNewPayloadRaw(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* AsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineForkChoiceUpdatedResponse>* PrepareAsyncEngineForkChoiceUpdatedRaw(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* AsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadResponse>* PrepareAsyncEngineGetPayloadRaw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByHashV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* AsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::EngineGetPayloadBodiesV1Response>* PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* AsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::types::BlobsBundleV1>* PrepareAsyncEngineGetBlobsBundleV1Raw(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::types::VersionReply>* AsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::types::VersionReply>* PrepareAsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::ProtocolVersionReply>* AsyncProtocolVersionRaw(::grpc::ClientContext* context, const ::remote::ProtocolVersionRequest& request, ::grpc::CompletionQueue* cq) override; @@ -538,12 +534,12 @@ class ETHBACKEND final { const ::grpc::internal::RpcMethod rpcmethod_Etherbase_; const ::grpc::internal::RpcMethod rpcmethod_NetVersion_; const ::grpc::internal::RpcMethod rpcmethod_NetPeerCount_; - const ::grpc::internal::RpcMethod rpcmethod_EngineNewPayloadV1_; - const ::grpc::internal::RpcMethod rpcmethod_EngineNewPayloadV2_; - const ::grpc::internal::RpcMethod rpcmethod_EngineForkChoiceUpdatedV1_; - const ::grpc::internal::RpcMethod rpcmethod_EngineForkChoiceUpdatedV2_; - const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadV1_; - const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadV2_; + const ::grpc::internal::RpcMethod rpcmethod_EngineNewPayload_; + const ::grpc::internal::RpcMethod rpcmethod_EngineForkChoiceUpdated_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayload_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadBodiesByHashV1_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetPayloadBodiesByRangeV1_; + const ::grpc::internal::RpcMethod rpcmethod_EngineGetBlobsBundleV1_; const ::grpc::internal::RpcMethod rpcmethod_Version_; const ::grpc::internal::RpcMethod rpcmethod_ProtocolVersion_; const ::grpc::internal::RpcMethod rpcmethod_ClientVersion_; @@ -569,17 +565,15 @@ class ETHBACKEND final { // See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md // // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response); - // Validate and possibly execute the payload. - virtual ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response); - // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response); + virtual ::grpc::Status EngineNewPayload(::grpc::ServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response); // Update fork choice - virtual ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response); - // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response); + virtual ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response); // Fetch Execution Payload using its ID. - virtual ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response); + virtual ::grpc::Status EngineGetPayload(::grpc::ServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response); + virtual ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response); + virtual ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response); + // Fetch the blobs bundle using its ID. + virtual ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response); // End of Engine API requests // ------------------------------------------------------------------------ // @@ -666,122 +660,122 @@ class ETHBACKEND final { } }; template - class WithAsyncMethod_EngineNewPayloadV1 : public BaseClass { + class WithAsyncMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineNewPayloadV1() { + WithAsyncMethod_EngineNewPayload() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_EngineNewPayloadV1() override { + ~WithAsyncMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV1(::grpc::ServerContext* context, ::types::ExecutionPayload* request, ::grpc::ServerAsyncResponseWriter< ::remote::EnginePayloadStatus>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineNewPayload(::grpc::ServerContext* context, ::types::ExecutionPayload* request, ::grpc::ServerAsyncResponseWriter< ::remote::EnginePayloadStatus>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineNewPayloadV2 : public BaseClass { + class WithAsyncMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineNewPayloadV2() { + WithAsyncMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_EngineNewPayloadV2() override { + ~WithAsyncMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV2(::grpc::ServerContext* context, ::types::ExecutionPayloadV2* request, ::grpc::ServerAsyncResponseWriter< ::remote::EnginePayloadStatus>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineForkChoiceUpdated(::grpc::ServerContext* context, ::remote::EngineForkChoiceUpdatedRequest* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineForkChoiceUpdatedResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithAsyncMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineForkChoiceUpdatedV1() { + WithAsyncMethod_EngineGetPayload() { ::grpc::Service::MarkMethodAsync(5); } - ~WithAsyncMethod_EngineForkChoiceUpdatedV1() override { + ~WithAsyncMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV1(::grpc::ServerContext* context, ::remote::EngineForkChoiceUpdatedRequest* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineForkChoiceUpdatedReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayload(::grpc::ServerContext* context, ::remote::EngineGetPayloadRequest* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineGetPayloadResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithAsyncMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineForkChoiceUpdatedV2() { + WithAsyncMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodAsync(6); } - ~WithAsyncMethod_EngineForkChoiceUpdatedV2() override { + ~WithAsyncMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV2(::grpc::ServerContext* context, ::remote::EngineForkChoiceUpdatedRequestV2* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineForkChoiceUpdatedReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineGetPayloadBodiesV1Response>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_EngineGetPayloadV1 : public BaseClass { + class WithAsyncMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineGetPayloadV1() { + WithAsyncMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodAsync(7); } - ~WithAsyncMethod_EngineGetPayloadV1() override { + ~WithAsyncMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV1(::grpc::ServerContext* context, ::remote::EngineGetPayloadRequest* request, ::grpc::ServerAsyncResponseWriter< ::types::ExecutionPayload>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::grpc::ServerAsyncResponseWriter< ::remote::EngineGetPayloadBodiesV1Response>* 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); } }; template - class WithAsyncMethod_EngineGetPayloadV2 : public BaseClass { + class WithAsyncMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_EngineGetPayloadV2() { + WithAsyncMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodAsync(8); } - ~WithAsyncMethod_EngineGetPayloadV2() override { + ~WithAsyncMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV2(::grpc::ServerContext* context, ::remote::EngineGetPayloadRequest* request, ::grpc::ServerAsyncResponseWriter< ::types::ExecutionPayloadV2>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetBlobsBundleV1(::grpc::ServerContext* context, ::remote::EngineGetBlobsBundleRequest* request, ::grpc::ServerAsyncResponseWriter< ::types::BlobsBundleV1>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -985,7 +979,7 @@ class ETHBACKEND final { ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_Etherbase > > > > > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_Etherbase > > > > > > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_Etherbase : public BaseClass { private: @@ -1068,166 +1062,166 @@ class ETHBACKEND final { ::grpc::CallbackServerContext* /*context*/, const ::remote::NetPeerCountRequest* /*request*/, ::remote::NetPeerCountReply* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineNewPayloadV1 : public BaseClass { + class WithCallbackMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineNewPayloadV1() { + WithCallbackMethod_EngineNewPayload() { ::grpc::Service::MarkMethodCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>( [this]( - ::grpc::CallbackServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { return this->EngineNewPayloadV1(context, request, response); }));} - void SetMessageAllocatorFor_EngineNewPayloadV1( + ::grpc::CallbackServerContext* context, const ::types::ExecutionPayload* request, ::remote::EnginePayloadStatus* response) { return this->EngineNewPayload(context, request, response); }));} + void SetMessageAllocatorFor_EngineNewPayload( ::grpc::MessageAllocator< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); static_cast<::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineNewPayloadV1() override { + ~WithCallbackMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV1( + virtual ::grpc::ServerUnaryReactor* EngineNewPayload( ::grpc::CallbackServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineNewPayloadV2 : public BaseClass { + class WithCallbackMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineNewPayloadV2() { + WithCallbackMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::types::ExecutionPayloadV2* request, ::remote::EnginePayloadStatus* response) { return this->EngineNewPayloadV2(context, request, response); }));} - void SetMessageAllocatorFor_EngineNewPayloadV2( - ::grpc::MessageAllocator< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedResponse* response) { return this->EngineForkChoiceUpdated(context, request, response); }));} + void SetMessageAllocatorFor_EngineForkChoiceUpdated( + ::grpc::MessageAllocator< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); - static_cast<::grpc::internal::CallbackUnaryHandler< ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineNewPayloadV2() override { + ~WithCallbackMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV2( - ::grpc::CallbackServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdated( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithCallbackMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineForkChoiceUpdatedV1() { + WithCallbackMethod_EngineGetPayload() { ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineForkChoiceUpdatedRequest* request, ::remote::EngineForkChoiceUpdatedReply* response) { return this->EngineForkChoiceUpdatedV1(context, request, response); }));} - void SetMessageAllocatorFor_EngineForkChoiceUpdatedV1( - ::grpc::MessageAllocator< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::remote::EngineGetPayloadResponse* response) { return this->EngineGetPayload(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetPayload( + ::grpc::MessageAllocator< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineForkChoiceUpdatedV1() override { + ~WithCallbackMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV1( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetPayload( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithCallbackMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineForkChoiceUpdatedV2() { + WithCallbackMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2* request, ::remote::EngineForkChoiceUpdatedReply* response) { return this->EngineForkChoiceUpdatedV2(context, request, response); }));} - void SetMessageAllocatorFor_EngineForkChoiceUpdatedV2( - ::grpc::MessageAllocator< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { return this->EngineGetPayloadBodiesByHashV1(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetPayloadBodiesByHashV1( + ::grpc::MessageAllocator< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineForkChoiceUpdatedV2() override { + ~WithCallbackMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV2( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByHashV1( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineGetPayloadV1 : public BaseClass { + class WithCallbackMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineGetPayloadV1() { + WithCallbackMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayload* response) { return this->EngineGetPayloadV1(context, request, response); }));} - void SetMessageAllocatorFor_EngineGetPayloadV1( - ::grpc::MessageAllocator< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request* request, ::remote::EngineGetPayloadBodiesV1Response* response) { return this->EngineGetPayloadBodiesByRangeV1(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetPayloadBodiesByRangeV1( + ::grpc::MessageAllocator< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineGetPayloadV1() override { + ~WithCallbackMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV1( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByRangeV1( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_EngineGetPayloadV2 : public BaseClass { + class WithCallbackMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithCallbackMethod_EngineGetPayloadV2() { + WithCallbackMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>( + new ::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::EngineGetPayloadRequest* request, ::types::ExecutionPayloadV2* response) { return this->EngineGetPayloadV2(context, request, response); }));} - void SetMessageAllocatorFor_EngineGetPayloadV2( - ::grpc::MessageAllocator< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>* allocator) { + ::grpc::CallbackServerContext* context, const ::remote::EngineGetBlobsBundleRequest* request, ::types::BlobsBundleV1* response) { return this->EngineGetBlobsBundleV1(context, request, response); }));} + void SetMessageAllocatorFor_EngineGetBlobsBundleV1( + ::grpc::MessageAllocator< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); - static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>*>(handler) ->SetMessageAllocator(allocator); } - ~WithCallbackMethod_EngineGetPayloadV2() override { + ~WithCallbackMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV2( - ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* EngineGetBlobsBundleV1( + ::grpc::CallbackServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) { return nullptr; } }; template class WithCallbackMethod_Version : public BaseClass { @@ -1490,7 +1484,7 @@ class ETHBACKEND final { virtual ::grpc::ServerUnaryReactor* PendingBlock( ::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::remote::PendingBlockReply* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Etherbase > > > > > > > > > > > > > > > > > > CallbackService; + typedef WithCallbackMethod_Etherbase > > > > > > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Etherbase : public BaseClass { @@ -1544,103 +1538,103 @@ class ETHBACKEND final { } }; template - class WithGenericMethod_EngineNewPayloadV1 : public BaseClass { + class WithGenericMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineNewPayloadV1() { + WithGenericMethod_EngineNewPayload() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_EngineNewPayloadV1() override { + ~WithGenericMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineNewPayloadV2 : public BaseClass { + class WithGenericMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineNewPayloadV2() { + WithGenericMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodGeneric(4); } - ~WithGenericMethod_EngineNewPayloadV2() override { + ~WithGenericMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithGenericMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineForkChoiceUpdatedV1() { + WithGenericMethod_EngineGetPayload() { ::grpc::Service::MarkMethodGeneric(5); } - ~WithGenericMethod_EngineForkChoiceUpdatedV1() override { + ~WithGenericMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithGenericMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineForkChoiceUpdatedV2() { + WithGenericMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodGeneric(6); } - ~WithGenericMethod_EngineForkChoiceUpdatedV2() override { + ~WithGenericMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineGetPayloadV1 : public BaseClass { + class WithGenericMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineGetPayloadV1() { + WithGenericMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodGeneric(7); } - ~WithGenericMethod_EngineGetPayloadV1() override { + ~WithGenericMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_EngineGetPayloadV2 : public BaseClass { + class WithGenericMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_EngineGetPayloadV2() { + WithGenericMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodGeneric(8); } - ~WithGenericMethod_EngineGetPayloadV2() override { + ~WithGenericMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1876,122 +1870,122 @@ class ETHBACKEND final { } }; template - class WithRawMethod_EngineNewPayloadV1 : public BaseClass { + class WithRawMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineNewPayloadV1() { + WithRawMethod_EngineNewPayload() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_EngineNewPayloadV1() override { + ~WithRawMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV1(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineNewPayload(::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(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineNewPayloadV2 : public BaseClass { + class WithRawMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineNewPayloadV2() { + WithRawMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodRaw(4); } - ~WithRawMethod_EngineNewPayloadV2() override { + ~WithRawMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineNewPayloadV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineForkChoiceUpdated(::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(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithRawMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineForkChoiceUpdatedV1() { + WithRawMethod_EngineGetPayload() { ::grpc::Service::MarkMethodRaw(5); } - ~WithRawMethod_EngineForkChoiceUpdatedV1() override { + ~WithRawMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV1(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayload(::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(5, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithRawMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineForkChoiceUpdatedV2() { + WithRawMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodRaw(6); } - ~WithRawMethod_EngineForkChoiceUpdatedV2() override { + ~WithRawMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineForkChoiceUpdatedV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByHashV1(::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(6, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineGetPayloadV1 : public BaseClass { + class WithRawMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineGetPayloadV1() { + WithRawMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodRaw(7); } - ~WithRawMethod_EngineGetPayloadV1() override { + ~WithRawMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV1(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetPayloadBodiesByRangeV1(::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(7, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_EngineGetPayloadV2 : public BaseClass { + class WithRawMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_EngineGetPayloadV2() { + WithRawMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodRaw(8); } - ~WithRawMethod_EngineGetPayloadV2() override { + ~WithRawMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestEngineGetPayloadV2(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestEngineGetBlobsBundleV1(::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(8, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -2262,135 +2256,135 @@ class ETHBACKEND final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineNewPayloadV1 : public BaseClass { + class WithRawCallbackMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineNewPayloadV1() { + WithRawCallbackMethod_EngineNewPayload() { ::grpc::Service::MarkMethodRawCallback(3, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineNewPayloadV1(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineNewPayload(context, request, response); })); } - ~WithRawCallbackMethod_EngineNewPayloadV1() override { + ~WithRawCallbackMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV1( + virtual ::grpc::ServerUnaryReactor* EngineNewPayload( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineNewPayloadV2 : public BaseClass { + class WithRawCallbackMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineNewPayloadV2() { + WithRawCallbackMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineNewPayloadV2(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineForkChoiceUpdated(context, request, response); })); } - ~WithRawCallbackMethod_EngineNewPayloadV2() override { + ~WithRawCallbackMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineNewPayloadV2( + virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdated( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithRawCallbackMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineForkChoiceUpdatedV1() { + WithRawCallbackMethod_EngineGetPayload() { ::grpc::Service::MarkMethodRawCallback(5, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineForkChoiceUpdatedV1(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayload(context, request, response); })); } - ~WithRawCallbackMethod_EngineForkChoiceUpdatedV1() override { + ~WithRawCallbackMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV1( + virtual ::grpc::ServerUnaryReactor* EngineGetPayload( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithRawCallbackMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineForkChoiceUpdatedV2() { + WithRawCallbackMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineForkChoiceUpdatedV2(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadBodiesByHashV1(context, request, response); })); } - ~WithRawCallbackMethod_EngineForkChoiceUpdatedV2() override { + ~WithRawCallbackMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineForkChoiceUpdatedV2( + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByHashV1( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineGetPayloadV1 : public BaseClass { + class WithRawCallbackMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineGetPayloadV1() { + WithRawCallbackMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodRawCallback(7, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadV1(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadBodiesByRangeV1(context, request, response); })); } - ~WithRawCallbackMethod_EngineGetPayloadV1() override { + ~WithRawCallbackMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV1( + virtual ::grpc::ServerUnaryReactor* EngineGetPayloadBodiesByRangeV1( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_EngineGetPayloadV2 : public BaseClass { + class WithRawCallbackMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawCallbackMethod_EngineGetPayloadV2() { + WithRawCallbackMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodRawCallback(8, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetPayloadV2(context, request, response); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->EngineGetBlobsBundleV1(context, request, response); })); } - ~WithRawCallbackMethod_EngineGetPayloadV2() override { + ~WithRawCallbackMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerUnaryReactor* EngineGetPayloadV2( + virtual ::grpc::ServerUnaryReactor* EngineGetBlobsBundleV1( ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template @@ -2696,166 +2690,166 @@ class ETHBACKEND final { virtual ::grpc::Status StreamedNetPeerCount(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::NetPeerCountRequest,::remote::NetPeerCountReply>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineNewPayloadV1 : public BaseClass { + class WithStreamedUnaryMethod_EngineNewPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineNewPayloadV1() { + WithStreamedUnaryMethod_EngineNewPayload() { ::grpc::Service::MarkMethodStreamed(3, new ::grpc::internal::StreamedUnaryHandler< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayload, ::remote::EnginePayloadStatus>* streamer) { - return this->StreamedEngineNewPayloadV1(context, + return this->StreamedEngineNewPayload(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineNewPayloadV1() override { + ~WithStreamedUnaryMethod_EngineNewPayload() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineNewPayloadV1(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineNewPayload(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayload* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineNewPayloadV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayload,::remote::EnginePayloadStatus>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineNewPayload(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayload,::remote::EnginePayloadStatus>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineNewPayloadV2 : public BaseClass { + class WithStreamedUnaryMethod_EngineForkChoiceUpdated : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineNewPayloadV2() { + WithStreamedUnaryMethod_EngineForkChoiceUpdated() { ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< - ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>( + ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::types::ExecutionPayloadV2, ::remote::EnginePayloadStatus>* streamer) { - return this->StreamedEngineNewPayloadV2(context, + ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedResponse>* streamer) { + return this->StreamedEngineForkChoiceUpdated(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineNewPayloadV2() override { + ~WithStreamedUnaryMethod_EngineForkChoiceUpdated() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineNewPayloadV2(::grpc::ServerContext* /*context*/, const ::types::ExecutionPayloadV2* /*request*/, ::remote::EnginePayloadStatus* /*response*/) override { + ::grpc::Status EngineForkChoiceUpdated(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineNewPayloadV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::types::ExecutionPayloadV2,::remote::EnginePayloadStatus>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineForkChoiceUpdated(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineForkChoiceUpdatedRequest,::remote::EngineForkChoiceUpdatedResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineForkChoiceUpdatedV1 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetPayload : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineForkChoiceUpdatedV1() { + WithStreamedUnaryMethod_EngineGetPayload() { ::grpc::Service::MarkMethodStreamed(5, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>( + ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineForkChoiceUpdatedRequest, ::remote::EngineForkChoiceUpdatedReply>* streamer) { - return this->StreamedEngineForkChoiceUpdatedV1(context, + ::remote::EngineGetPayloadRequest, ::remote::EngineGetPayloadResponse>* streamer) { + return this->StreamedEngineGetPayload(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineForkChoiceUpdatedV1() override { + ~WithStreamedUnaryMethod_EngineGetPayload() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineForkChoiceUpdatedV1(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequest* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayload(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::remote::EngineGetPayloadResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineForkChoiceUpdatedV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineForkChoiceUpdatedRequest,::remote::EngineForkChoiceUpdatedReply>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetPayload(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadRequest,::remote::EngineGetPayloadResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineForkChoiceUpdatedV2 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetPayloadBodiesByHashV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineForkChoiceUpdatedV2() { + WithStreamedUnaryMethod_EngineGetPayloadBodiesByHashV1() { ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>( + ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineForkChoiceUpdatedRequestV2, ::remote::EngineForkChoiceUpdatedReply>* streamer) { - return this->StreamedEngineForkChoiceUpdatedV2(context, + ::remote::EngineGetPayloadBodiesByHashV1Request, ::remote::EngineGetPayloadBodiesV1Response>* streamer) { + return this->StreamedEngineGetPayloadBodiesByHashV1(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineForkChoiceUpdatedV2() override { + ~WithStreamedUnaryMethod_EngineGetPayloadBodiesByHashV1() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineForkChoiceUpdatedV2(::grpc::ServerContext* /*context*/, const ::remote::EngineForkChoiceUpdatedRequestV2* /*request*/, ::remote::EngineForkChoiceUpdatedReply* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByHashV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByHashV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineForkChoiceUpdatedV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineForkChoiceUpdatedRequestV2,::remote::EngineForkChoiceUpdatedReply>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetPayloadBodiesByHashV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadBodiesByHashV1Request,::remote::EngineGetPayloadBodiesV1Response>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineGetPayloadV1 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetPayloadBodiesByRangeV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineGetPayloadV1() { + WithStreamedUnaryMethod_EngineGetPayloadBodiesByRangeV1() { ::grpc::Service::MarkMethodStreamed(7, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>( + ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayload>* streamer) { - return this->StreamedEngineGetPayloadV1(context, + ::remote::EngineGetPayloadBodiesByRangeV1Request, ::remote::EngineGetPayloadBodiesV1Response>* streamer) { + return this->StreamedEngineGetPayloadBodiesByRangeV1(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineGetPayloadV1() override { + ~WithStreamedUnaryMethod_EngineGetPayloadBodiesByRangeV1() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineGetPayloadV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayload* /*response*/) override { + ::grpc::Status EngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadBodiesByRangeV1Request* /*request*/, ::remote::EngineGetPayloadBodiesV1Response* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineGetPayloadV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadRequest,::types::ExecutionPayload>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetPayloadBodiesByRangeV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadBodiesByRangeV1Request,::remote::EngineGetPayloadBodiesV1Response>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_EngineGetPayloadV2 : public BaseClass { + class WithStreamedUnaryMethod_EngineGetBlobsBundleV1 : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_EngineGetPayloadV2() { + WithStreamedUnaryMethod_EngineGetBlobsBundleV1() { ::grpc::Service::MarkMethodStreamed(8, new ::grpc::internal::StreamedUnaryHandler< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>( + ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::remote::EngineGetPayloadRequest, ::types::ExecutionPayloadV2>* streamer) { - return this->StreamedEngineGetPayloadV2(context, + ::remote::EngineGetBlobsBundleRequest, ::types::BlobsBundleV1>* streamer) { + return this->StreamedEngineGetBlobsBundleV1(context, streamer); })); } - ~WithStreamedUnaryMethod_EngineGetPayloadV2() override { + ~WithStreamedUnaryMethod_EngineGetBlobsBundleV1() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status EngineGetPayloadV2(::grpc::ServerContext* /*context*/, const ::remote::EngineGetPayloadRequest* /*request*/, ::types::ExecutionPayloadV2* /*response*/) override { + ::grpc::Status EngineGetBlobsBundleV1(::grpc::ServerContext* /*context*/, const ::remote::EngineGetBlobsBundleRequest* /*request*/, ::types::BlobsBundleV1* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedEngineGetPayloadV2(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetPayloadRequest,::types::ExecutionPayloadV2>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedEngineGetBlobsBundleV1(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::EngineGetBlobsBundleRequest,::types::BlobsBundleV1>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_Version : public BaseClass { @@ -3073,7 +3067,7 @@ class ETHBACKEND final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedPendingBlock(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::remote::PendingBlockReply>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > StreamedUnaryService; template class WithSplitStreamingMethod_Subscribe : public BaseClass { private: @@ -3102,7 +3096,7 @@ class ETHBACKEND final { virtual ::grpc::Status StreamedSubscribe(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::SubscribeRequest,::remote::SubscribeReply>* server_split_streamer) = 0; }; typedef WithSplitStreamingMethod_Subscribe SplitStreamedService; - typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_Etherbase > > > > > > > > > > > > > > > > > StreamedService; }; } // namespace remote diff --git a/silkworm/interfaces/3.21.4/remote/ethbackend.pb.cc b/silkworm/interfaces/3.21.4/remote/ethbackend.pb.cc index 18d52ab5ea..6033bbbcb7 100644 --- a/silkworm/interfaces/3.21.4/remote/ethbackend.pb.cc +++ b/silkworm/interfaces/3.21.4/remote/ethbackend.pb.cc @@ -106,6 +106,19 @@ struct EngineGetPayloadRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineGetPayloadRequestDefaultTypeInternal _EngineGetPayloadRequest_default_instance_; +PROTOBUF_CONSTEXPR EngineGetBlobsBundleRequest::EngineGetBlobsBundleRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.payloadid_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EngineGetBlobsBundleRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EngineGetBlobsBundleRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EngineGetBlobsBundleRequestDefaultTypeInternal() {} + union { + EngineGetBlobsBundleRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineGetBlobsBundleRequestDefaultTypeInternal _EngineGetBlobsBundleRequest_default_instance_; PROTOBUF_CONSTEXPR EnginePayloadStatus::EnginePayloadStatus( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.validationerror_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -123,9 +136,11 @@ struct EnginePayloadStatusDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnginePayloadStatusDefaultTypeInternal _EnginePayloadStatus_default_instance_; PROTOBUF_CONSTEXPR EnginePayloadAttributes::EnginePayloadAttributes( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.prevrandao_)*/nullptr + /*decltype(_impl_.withdrawals_)*/{} + , /*decltype(_impl_.prevrandao_)*/nullptr , /*decltype(_impl_.suggestedfeerecipient_)*/nullptr , /*decltype(_impl_.timestamp_)*/uint64_t{0u} + , /*decltype(_impl_.version_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct EnginePayloadAttributesDefaultTypeInternal { PROTOBUF_CONSTEXPR EnginePayloadAttributesDefaultTypeInternal() @@ -165,48 +180,34 @@ struct EngineForkChoiceUpdatedRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineForkChoiceUpdatedRequestDefaultTypeInternal _EngineForkChoiceUpdatedRequest_default_instance_; -PROTOBUF_CONSTEXPR EnginePayloadAttributesV2::EnginePayloadAttributesV2( +PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedResponse::EngineForkChoiceUpdatedResponse( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.withdrawals_)*/{} - , /*decltype(_impl_.attributes_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct EnginePayloadAttributesV2DefaultTypeInternal { - PROTOBUF_CONSTEXPR EnginePayloadAttributesV2DefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EnginePayloadAttributesV2DefaultTypeInternal() {} - union { - EnginePayloadAttributesV2 _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnginePayloadAttributesV2DefaultTypeInternal _EnginePayloadAttributesV2_default_instance_; -PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedRequestV2::EngineForkChoiceUpdatedRequestV2( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.forkchoicestate_)*/nullptr - , /*decltype(_impl_.payloadattributes_)*/nullptr + /*decltype(_impl_.payloadstatus_)*/nullptr + , /*decltype(_impl_.payloadid_)*/uint64_t{0u} , /*decltype(_impl_._cached_size_)*/{}} {} -struct EngineForkChoiceUpdatedRequestV2DefaultTypeInternal { - PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedRequestV2DefaultTypeInternal() +struct EngineForkChoiceUpdatedResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EngineForkChoiceUpdatedRequestV2DefaultTypeInternal() {} + ~EngineForkChoiceUpdatedResponseDefaultTypeInternal() {} union { - EngineForkChoiceUpdatedRequestV2 _instance; + EngineForkChoiceUpdatedResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineForkChoiceUpdatedRequestV2DefaultTypeInternal _EngineForkChoiceUpdatedRequestV2_default_instance_; -PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedReply::EngineForkChoiceUpdatedReply( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineForkChoiceUpdatedResponseDefaultTypeInternal _EngineForkChoiceUpdatedResponse_default_instance_; +PROTOBUF_CONSTEXPR EngineGetPayloadResponse::EngineGetPayloadResponse( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.payloadstatus_)*/nullptr - , /*decltype(_impl_.payloadid_)*/uint64_t{0u} + /*decltype(_impl_.executionpayload_)*/nullptr + , /*decltype(_impl_.blockvalue_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} -struct EngineForkChoiceUpdatedReplyDefaultTypeInternal { - PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedReplyDefaultTypeInternal() +struct EngineGetPayloadResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EngineGetPayloadResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EngineForkChoiceUpdatedReplyDefaultTypeInternal() {} + ~EngineGetPayloadResponseDefaultTypeInternal() {} union { - EngineForkChoiceUpdatedReply _instance; + EngineGetPayloadResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineForkChoiceUpdatedReplyDefaultTypeInternal _EngineForkChoiceUpdatedReply_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineGetPayloadResponseDefaultTypeInternal _EngineGetPayloadResponse_default_instance_; PROTOBUF_CONSTEXPR ProtocolVersionRequest::ProtocolVersionRequest( ::_pbi::ConstantInitialized) {} struct ProtocolVersionRequestDefaultTypeInternal { @@ -425,8 +426,48 @@ struct PendingBlockReplyDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PendingBlockReplyDefaultTypeInternal _PendingBlockReply_default_instance_; +PROTOBUF_CONSTEXPR EngineGetPayloadBodiesByHashV1Request::EngineGetPayloadBodiesByHashV1Request( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.hashes_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal() {} + union { + EngineGetPayloadBodiesByHashV1Request _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal _EngineGetPayloadBodiesByHashV1Request_default_instance_; +PROTOBUF_CONSTEXPR EngineGetPayloadBodiesByRangeV1Request::EngineGetPayloadBodiesByRangeV1Request( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.start_)*/uint64_t{0u} + , /*decltype(_impl_.count_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal() {} + union { + EngineGetPayloadBodiesByRangeV1Request _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal _EngineGetPayloadBodiesByRangeV1Request_default_instance_; +PROTOBUF_CONSTEXPR EngineGetPayloadBodiesV1Response::EngineGetPayloadBodiesV1Response( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.bodies_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct EngineGetPayloadBodiesV1ResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EngineGetPayloadBodiesV1ResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~EngineGetPayloadBodiesV1ResponseDefaultTypeInternal() {} + union { + EngineGetPayloadBodiesV1Response _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EngineGetPayloadBodiesV1ResponseDefaultTypeInternal _EngineGetPayloadBodiesV1Response_default_instance_; } // namespace remote -static ::_pb::Metadata file_level_metadata_remote_2fethbackend_2eproto[30]; +static ::_pb::Metadata file_level_metadata_remote_2fethbackend_2eproto[33]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_remote_2fethbackend_2eproto[2]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_remote_2fethbackend_2eproto = nullptr; @@ -478,6 +519,13 @@ const uint32_t TableStruct_remote_2fethbackend_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadRequest, _impl_.payloadid_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetBlobsBundleRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetBlobsBundleRequest, _impl_.payloadid_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -492,9 +540,11 @@ const uint32_t TableStruct_remote_2fethbackend_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, _impl_.version_), PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, _impl_.timestamp_), PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, _impl_.prevrandao_), PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, _impl_.suggestedfeerecipient_), + PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributes, _impl_.withdrawals_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceState, _internal_metadata_), ~0u, // no _extensions_ @@ -513,29 +563,21 @@ const uint32_t TableStruct_remote_2fethbackend_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequest, _impl_.forkchoicestate_), PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequest, _impl_.payloadattributes_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributesV2, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributesV2, _impl_.attributes_), - PROTOBUF_FIELD_OFFSET(::remote::EnginePayloadAttributesV2, _impl_.withdrawals_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequestV2, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequestV2, _impl_.forkchoicestate_), - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedRequestV2, _impl_.payloadattributes_), + PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedResponse, _impl_.payloadstatus_), + PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedResponse, _impl_.payloadid_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedReply, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedReply, _impl_.payloadstatus_), - PROTOBUF_FIELD_OFFSET(::remote::EngineForkChoiceUpdatedReply, _impl_.payloadid_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadResponse, _impl_.executionpayload_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadResponse, _impl_.blockvalue_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::ProtocolVersionRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -660,6 +702,28 @@ const uint32_t TableStruct_remote_2fethbackend_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::PendingBlockReply, _impl_.blockrlp_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByHashV1Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByHashV1Request, _impl_.hashes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByRangeV1Request, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByRangeV1Request, _impl_.start_), + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesByRangeV1Request, _impl_.count_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesV1Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::EngineGetPayloadBodiesV1Response, _impl_.bodies_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::remote::EtherbaseRequest)}, @@ -669,29 +733,32 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 26, -1, -1, sizeof(::remote::NetPeerCountRequest)}, { 32, -1, -1, sizeof(::remote::NetPeerCountReply)}, { 39, -1, -1, sizeof(::remote::EngineGetPayloadRequest)}, - { 46, -1, -1, sizeof(::remote::EnginePayloadStatus)}, - { 55, -1, -1, sizeof(::remote::EnginePayloadAttributes)}, - { 64, -1, -1, sizeof(::remote::EngineForkChoiceState)}, - { 73, -1, -1, sizeof(::remote::EngineForkChoiceUpdatedRequest)}, - { 81, -1, -1, sizeof(::remote::EnginePayloadAttributesV2)}, - { 89, -1, -1, sizeof(::remote::EngineForkChoiceUpdatedRequestV2)}, - { 97, -1, -1, sizeof(::remote::EngineForkChoiceUpdatedReply)}, - { 105, -1, -1, sizeof(::remote::ProtocolVersionRequest)}, - { 111, -1, -1, sizeof(::remote::ProtocolVersionReply)}, - { 118, -1, -1, sizeof(::remote::ClientVersionRequest)}, - { 124, -1, -1, sizeof(::remote::ClientVersionReply)}, - { 131, -1, -1, sizeof(::remote::SubscribeRequest)}, - { 138, -1, -1, sizeof(::remote::SubscribeReply)}, - { 146, -1, -1, sizeof(::remote::LogsFilterRequest)}, - { 156, -1, -1, sizeof(::remote::SubscribeLogsReply)}, - { 171, -1, -1, sizeof(::remote::BlockRequest)}, - { 179, -1, -1, sizeof(::remote::BlockReply)}, - { 187, -1, -1, sizeof(::remote::TxnLookupRequest)}, - { 194, -1, -1, sizeof(::remote::TxnLookupReply)}, - { 201, -1, -1, sizeof(::remote::NodesInfoRequest)}, - { 208, -1, -1, sizeof(::remote::NodesInfoReply)}, - { 215, -1, -1, sizeof(::remote::PeersReply)}, - { 222, -1, -1, sizeof(::remote::PendingBlockReply)}, + { 46, -1, -1, sizeof(::remote::EngineGetBlobsBundleRequest)}, + { 53, -1, -1, sizeof(::remote::EnginePayloadStatus)}, + { 62, -1, -1, sizeof(::remote::EnginePayloadAttributes)}, + { 73, -1, -1, sizeof(::remote::EngineForkChoiceState)}, + { 82, -1, -1, sizeof(::remote::EngineForkChoiceUpdatedRequest)}, + { 90, -1, -1, sizeof(::remote::EngineForkChoiceUpdatedResponse)}, + { 98, -1, -1, sizeof(::remote::EngineGetPayloadResponse)}, + { 106, -1, -1, sizeof(::remote::ProtocolVersionRequest)}, + { 112, -1, -1, sizeof(::remote::ProtocolVersionReply)}, + { 119, -1, -1, sizeof(::remote::ClientVersionRequest)}, + { 125, -1, -1, sizeof(::remote::ClientVersionReply)}, + { 132, -1, -1, sizeof(::remote::SubscribeRequest)}, + { 139, -1, -1, sizeof(::remote::SubscribeReply)}, + { 147, -1, -1, sizeof(::remote::LogsFilterRequest)}, + { 157, -1, -1, sizeof(::remote::SubscribeLogsReply)}, + { 172, -1, -1, sizeof(::remote::BlockRequest)}, + { 180, -1, -1, sizeof(::remote::BlockReply)}, + { 188, -1, -1, sizeof(::remote::TxnLookupRequest)}, + { 195, -1, -1, sizeof(::remote::TxnLookupReply)}, + { 202, -1, -1, sizeof(::remote::NodesInfoRequest)}, + { 209, -1, -1, sizeof(::remote::NodesInfoReply)}, + { 216, -1, -1, sizeof(::remote::PeersReply)}, + { 223, -1, -1, sizeof(::remote::PendingBlockReply)}, + { 230, -1, -1, sizeof(::remote::EngineGetPayloadBodiesByHashV1Request)}, + { 237, -1, -1, sizeof(::remote::EngineGetPayloadBodiesByRangeV1Request)}, + { 245, -1, -1, sizeof(::remote::EngineGetPayloadBodiesV1Response)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -702,13 +769,13 @@ static const ::_pb::Message* const file_default_instances[] = { &::remote::_NetPeerCountRequest_default_instance_._instance, &::remote::_NetPeerCountReply_default_instance_._instance, &::remote::_EngineGetPayloadRequest_default_instance_._instance, + &::remote::_EngineGetBlobsBundleRequest_default_instance_._instance, &::remote::_EnginePayloadStatus_default_instance_._instance, &::remote::_EnginePayloadAttributes_default_instance_._instance, &::remote::_EngineForkChoiceState_default_instance_._instance, &::remote::_EngineForkChoiceUpdatedRequest_default_instance_._instance, - &::remote::_EnginePayloadAttributesV2_default_instance_._instance, - &::remote::_EngineForkChoiceUpdatedRequestV2_default_instance_._instance, - &::remote::_EngineForkChoiceUpdatedReply_default_instance_._instance, + &::remote::_EngineForkChoiceUpdatedResponse_default_instance_._instance, + &::remote::_EngineGetPayloadResponse_default_instance_._instance, &::remote::_ProtocolVersionRequest_default_instance_._instance, &::remote::_ProtocolVersionReply_default_instance_._instance, &::remote::_ClientVersionRequest_default_instance_._instance, @@ -725,6 +792,9 @@ static const ::_pb::Message* const file_default_instances[] = { &::remote::_NodesInfoReply_default_instance_._instance, &::remote::_PeersReply_default_instance_._instance, &::remote::_PendingBlockReply_default_instance_._instance, + &::remote::_EngineGetPayloadBodiesByHashV1Request_default_instance_._instance, + &::remote::_EngineGetPayloadBodiesByRangeV1Request_default_instance_._instance, + &::remote::_EngineGetPayloadBodiesV1Response_default_instance_._instance, }; const char descriptor_table_protodef_remote_2fethbackend_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -735,95 +805,101 @@ const char descriptor_table_protodef_remote_2fethbackend_2eproto[] PROTOBUF_SECT "ionRequest\"\035\n\017NetVersionReply\022\n\n\002id\030\001 \001(" "\004\"\025\n\023NetPeerCountRequest\"\"\n\021NetPeerCount" "Reply\022\r\n\005count\030\001 \001(\004\",\n\027EngineGetPayload" - "Request\022\021\n\tpayloadId\030\001 \001(\004\"z\n\023EnginePayl" - "oadStatus\022$\n\006status\030\001 \001(\0162\024.remote.Engin" - "eStatus\022$\n\017latestValidHash\030\002 \001(\0132\013.types" - ".H256\022\027\n\017validationError\030\003 \001(\t\"y\n\027Engine" - "PayloadAttributes\022\021\n\ttimestamp\030\001 \001(\004\022\037\n\n" - "prevRandao\030\002 \001(\0132\013.types.H256\022*\n\025suggest" - "edFeeRecipient\030\003 \001(\0132\013.types.H160\"\210\001\n\025En" - "gineForkChoiceState\022\"\n\rheadBlockHash\030\001 \001" - "(\0132\013.types.H256\022\"\n\rsafeBlockHash\030\002 \001(\0132\013" - ".types.H256\022\'\n\022finalizedBlockHash\030\003 \001(\0132" - "\013.types.H256\"\224\001\n\036EngineForkChoiceUpdated" - "Request\0226\n\017forkchoiceState\030\001 \001(\0132\035.remot" - "e.EngineForkChoiceState\022:\n\021payloadAttrib" - "utes\030\002 \001(\0132\037.remote.EnginePayloadAttribu" - "tes\"x\n\031EnginePayloadAttributesV2\0223\n\nattr" - "ibutes\030\001 \001(\0132\037.remote.EnginePayloadAttri" - "butes\022&\n\013withdrawals\030\002 \003(\0132\021.types.Withd" - "rawal\"\230\001\n EngineForkChoiceUpdatedRequest" - "V2\0226\n\017forkchoiceState\030\001 \001(\0132\035.remote.Eng" - "ineForkChoiceState\022<\n\021payloadAttributes\030" - "\002 \001(\0132!.remote.EnginePayloadAttributesV2" - "\"e\n\034EngineForkChoiceUpdatedReply\0222\n\rpayl" - "oadStatus\030\001 \001(\0132\033.remote.EnginePayloadSt" - "atus\022\021\n\tpayloadId\030\002 \001(\004\"\030\n\026ProtocolVersi" - "onRequest\"\"\n\024ProtocolVersionReply\022\n\n\002id\030" - "\001 \001(\004\"\026\n\024ClientVersionRequest\"&\n\022ClientV" - "ersionReply\022\020\n\010nodeName\030\001 \001(\t\"/\n\020Subscri" - "beRequest\022\033\n\004type\030\001 \001(\0162\r.remote.Event\";" - "\n\016SubscribeReply\022\033\n\004type\030\001 \001(\0162\r.remote." - "Event\022\014\n\004data\030\002 \001(\014\"y\n\021LogsFilterRequest" - "\022\024\n\014allAddresses\030\001 \001(\010\022\036\n\taddresses\030\002 \003(" - "\0132\013.types.H160\022\021\n\tallTopics\030\003 \001(\010\022\033\n\006top" - "ics\030\004 \003(\0132\013.types.H256\"\365\001\n\022SubscribeLogs" - "Reply\022\034\n\007address\030\001 \001(\0132\013.types.H160\022\036\n\tb" - "lockHash\030\002 \001(\0132\013.types.H256\022\023\n\013blockNumb" - "er\030\003 \001(\004\022\014\n\004data\030\004 \001(\014\022\020\n\010logIndex\030\005 \001(\004" - "\022\033\n\006topics\030\006 \003(\0132\013.types.H256\022$\n\017transac" - "tionHash\030\007 \001(\0132\013.types.H256\022\030\n\020transacti" - "onIndex\030\010 \001(\004\022\017\n\007removed\030\t \001(\010\"C\n\014BlockR" - "equest\022\023\n\013blockHeight\030\002 \001(\004\022\036\n\tblockHash" - "\030\003 \001(\0132\013.types.H256\"/\n\nBlockReply\022\020\n\010blo" - "ckRlp\030\001 \001(\014\022\017\n\007senders\030\002 \001(\014\"0\n\020TxnLooku" - "pRequest\022\034\n\007txnHash\030\001 \001(\0132\013.types.H256\"%" - "\n\016TxnLookupReply\022\023\n\013blockNumber\030\001 \001(\004\"!\n" - "\020NodesInfoRequest\022\r\n\005limit\030\001 \001(\r\"9\n\016Node" - "sInfoReply\022\'\n\tnodesInfo\030\001 \003(\0132\024.types.No" - "deInfoReply\",\n\nPeersReply\022\036\n\005peers\030\001 \003(\013" - "2\017.types.PeerInfo\"%\n\021PendingBlockReply\022\020" - "\n\010blockRlp\030\001 \001(\014*J\n\005Event\022\n\n\006HEADER\020\000\022\020\n" - "\014PENDING_LOGS\020\001\022\021\n\rPENDING_BLOCK\020\002\022\020\n\014NE" - "W_SNAPSHOT\020\003*Y\n\014EngineStatus\022\t\n\005VALID\020\000\022" - "\013\n\007INVALID\020\001\022\013\n\007SYNCING\020\002\022\014\n\010ACCEPTED\020\003\022" - "\026\n\022INVALID_BLOCK_HASH\020\0042\362\n\n\nETHBACKEND\022=" - "\n\tEtherbase\022\030.remote.EtherbaseRequest\032\026." - "remote.EtherbaseReply\022@\n\nNetVersion\022\031.re" - "mote.NetVersionRequest\032\027.remote.NetVersi" - "onReply\022F\n\014NetPeerCount\022\033.remote.NetPeer" - "CountRequest\032\031.remote.NetPeerCountReply\022" - "J\n\022EngineNewPayloadV1\022\027.types.ExecutionP" - "ayload\032\033.remote.EnginePayloadStatus\022L\n\022E" - "ngineNewPayloadV2\022\031.types.ExecutionPaylo" - "adV2\032\033.remote.EnginePayloadStatus\022i\n\031Eng" - "ineForkChoiceUpdatedV1\022&.remote.EngineFo" - "rkChoiceUpdatedRequest\032$.remote.EngineFo" - "rkChoiceUpdatedReply\022k\n\031EngineForkChoice" - "UpdatedV2\022(.remote.EngineForkChoiceUpdat" - "edRequestV2\032$.remote.EngineForkChoiceUpd" - "atedReply\022N\n\022EngineGetPayloadV1\022\037.remote" - ".EngineGetPayloadRequest\032\027.types.Executi" - "onPayload\022P\n\022EngineGetPayloadV2\022\037.remote" - ".EngineGetPayloadRequest\032\031.types.Executi" - "onPayloadV2\0226\n\007Version\022\026.google.protobuf" - ".Empty\032\023.types.VersionReply\022O\n\017ProtocolV" - "ersion\022\036.remote.ProtocolVersionRequest\032\034" - ".remote.ProtocolVersionReply\022I\n\rClientVe" - "rsion\022\034.remote.ClientVersionRequest\032\032.re" - "mote.ClientVersionReply\022\?\n\tSubscribe\022\030.r" - "emote.SubscribeRequest\032\026.remote.Subscrib" - "eReply0\001\022J\n\rSubscribeLogs\022\031.remote.LogsF" - "ilterRequest\032\032.remote.SubscribeLogsReply" - "(\0010\001\0221\n\005Block\022\024.remote.BlockRequest\032\022.re" - "mote.BlockReply\022=\n\tTxnLookup\022\030.remote.Tx" - "nLookupRequest\032\026.remote.TxnLookupReply\022<" - "\n\010NodeInfo\022\030.remote.NodesInfoRequest\032\026.r" - "emote.NodesInfoReply\0223\n\005Peers\022\026.google.p" - "rotobuf.Empty\032\022.remote.PeersReply\022A\n\014Pen" - "dingBlock\022\026.google.protobuf.Empty\032\031.remo" - "te.PendingBlockReplyB\021Z\017./remote;remoteb" - "\006proto3" + "Request\022\021\n\tpayloadId\030\001 \001(\004\"0\n\033EngineGetB" + "lobsBundleRequest\022\021\n\tpayloadId\030\001 \001(\004\"z\n\023" + "EnginePayloadStatus\022$\n\006status\030\001 \001(\0162\024.re" + "mote.EngineStatus\022$\n\017latestValidHash\030\002 \001" + "(\0132\013.types.H256\022\027\n\017validationError\030\003 \001(\t" + "\"\262\001\n\027EnginePayloadAttributes\022\017\n\007version\030" + "\001 \001(\r\022\021\n\ttimestamp\030\002 \001(\004\022\037\n\nprevRandao\030\003" + " \001(\0132\013.types.H256\022*\n\025suggestedFeeRecipie" + "nt\030\004 \001(\0132\013.types.H160\022&\n\013withdrawals\030\005 \003" + "(\0132\021.types.Withdrawal\"\210\001\n\025EngineForkChoi" + "ceState\022\"\n\rheadBlockHash\030\001 \001(\0132\013.types.H" + "256\022\"\n\rsafeBlockHash\030\002 \001(\0132\013.types.H256\022" + "\'\n\022finalizedBlockHash\030\003 \001(\0132\013.types.H256" + "\"\224\001\n\036EngineForkChoiceUpdatedRequest\0226\n\017f" + "orkchoiceState\030\001 \001(\0132\035.remote.EngineFork" + "ChoiceState\022:\n\021payloadAttributes\030\002 \001(\0132\037" + ".remote.EnginePayloadAttributes\"h\n\037Engin" + "eForkChoiceUpdatedResponse\0222\n\rpayloadSta" + "tus\030\001 \001(\0132\033.remote.EnginePayloadStatus\022\021" + "\n\tpayloadId\030\002 \001(\004\"n\n\030EngineGetPayloadRes" + "ponse\0221\n\020executionPayload\030\001 \001(\0132\027.types." + "ExecutionPayload\022\037\n\nblockValue\030\002 \001(\0132\013.t" + "ypes.H256\"\030\n\026ProtocolVersionRequest\"\"\n\024P" + "rotocolVersionReply\022\n\n\002id\030\001 \001(\004\"\026\n\024Clien" + "tVersionRequest\"&\n\022ClientVersionReply\022\020\n" + "\010nodeName\030\001 \001(\t\"/\n\020SubscribeRequest\022\033\n\004t" + "ype\030\001 \001(\0162\r.remote.Event\";\n\016SubscribeRep" + "ly\022\033\n\004type\030\001 \001(\0162\r.remote.Event\022\014\n\004data\030" + "\002 \001(\014\"y\n\021LogsFilterRequest\022\024\n\014allAddress" + "es\030\001 \001(\010\022\036\n\taddresses\030\002 \003(\0132\013.types.H160" + "\022\021\n\tallTopics\030\003 \001(\010\022\033\n\006topics\030\004 \003(\0132\013.ty" + "pes.H256\"\365\001\n\022SubscribeLogsReply\022\034\n\007addre" + "ss\030\001 \001(\0132\013.types.H160\022\036\n\tblockHash\030\002 \001(\013" + "2\013.types.H256\022\023\n\013blockNumber\030\003 \001(\004\022\014\n\004da" + "ta\030\004 \001(\014\022\020\n\010logIndex\030\005 \001(\004\022\033\n\006topics\030\006 \003" + "(\0132\013.types.H256\022$\n\017transactionHash\030\007 \001(\013" + "2\013.types.H256\022\030\n\020transactionIndex\030\010 \001(\004\022" + "\017\n\007removed\030\t \001(\010\"C\n\014BlockRequest\022\023\n\013bloc" + "kHeight\030\002 \001(\004\022\036\n\tblockHash\030\003 \001(\0132\013.types" + ".H256\"/\n\nBlockReply\022\020\n\010blockRlp\030\001 \001(\014\022\017\n" + "\007senders\030\002 \001(\014\"0\n\020TxnLookupRequest\022\034\n\007tx" + "nHash\030\001 \001(\0132\013.types.H256\"%\n\016TxnLookupRep" + "ly\022\023\n\013blockNumber\030\001 \001(\004\"!\n\020NodesInfoRequ" + "est\022\r\n\005limit\030\001 \001(\r\"9\n\016NodesInfoReply\022\'\n\t" + "nodesInfo\030\001 \003(\0132\024.types.NodeInfoReply\",\n" + "\nPeersReply\022\036\n\005peers\030\001 \003(\0132\017.types.PeerI" + "nfo\"%\n\021PendingBlockReply\022\020\n\010blockRlp\030\001 \001" + "(\014\"D\n%EngineGetPayloadBodiesByHashV1Requ" + "est\022\033\n\006hashes\030\001 \003(\0132\013.types.H256\"F\n&Engi" + "neGetPayloadBodiesByRangeV1Request\022\r\n\005st" + "art\030\001 \001(\004\022\r\n\005count\030\002 \001(\004\"Q\n EngineGetPay" + "loadBodiesV1Response\022-\n\006bodies\030\001 \003(\0132\035.t" + "ypes.ExecutionPayloadBodyV1*J\n\005Event\022\n\n\006" + "HEADER\020\000\022\020\n\014PENDING_LOGS\020\001\022\021\n\rPENDING_BL" + "OCK\020\002\022\020\n\014NEW_SNAPSHOT\020\003*Y\n\014EngineStatus\022" + "\t\n\005VALID\020\000\022\013\n\007INVALID\020\001\022\013\n\007SYNCING\020\002\022\014\n\010" + "ACCEPTED\020\003\022\026\n\022INVALID_BLOCK_HASH\020\0042\270\013\n\nE" + "THBACKEND\022=\n\tEtherbase\022\030.remote.Etherbas" + "eRequest\032\026.remote.EtherbaseReply\022@\n\nNetV" + "ersion\022\031.remote.NetVersionRequest\032\027.remo" + "te.NetVersionReply\022F\n\014NetPeerCount\022\033.rem" + "ote.NetPeerCountRequest\032\031.remote.NetPeer" + "CountReply\022H\n\020EngineNewPayload\022\027.types.E" + "xecutionPayload\032\033.remote.EnginePayloadSt" + "atus\022j\n\027EngineForkChoiceUpdated\022&.remote" + ".EngineForkChoiceUpdatedRequest\032\'.remote" + ".EngineForkChoiceUpdatedResponse\022U\n\020Engi" + "neGetPayload\022\037.remote.EngineGetPayloadRe" + "quest\032 .remote.EngineGetPayloadResponse\022" + "y\n\036EngineGetPayloadBodiesByHashV1\022-.remo" + "te.EngineGetPayloadBodiesByHashV1Request" + "\032(.remote.EngineGetPayloadBodiesV1Respon" + "se\022{\n\037EngineGetPayloadBodiesByRangeV1\022.." + "remote.EngineGetPayloadBodiesByRangeV1Re" + "quest\032(.remote.EngineGetPayloadBodiesV1R" + "esponse\022S\n\026EngineGetBlobsBundleV1\022#.remo" + "te.EngineGetBlobsBundleRequest\032\024.types.B" + "lobsBundleV1\0226\n\007Version\022\026.google.protobu" + "f.Empty\032\023.types.VersionReply\022O\n\017Protocol" + "Version\022\036.remote.ProtocolVersionRequest\032" + "\034.remote.ProtocolVersionReply\022I\n\rClientV" + "ersion\022\034.remote.ClientVersionRequest\032\032.r" + "emote.ClientVersionReply\022\?\n\tSubscribe\022\030." + "remote.SubscribeRequest\032\026.remote.Subscri" + "beReply0\001\022J\n\rSubscribeLogs\022\031.remote.Logs" + "FilterRequest\032\032.remote.SubscribeLogsRepl" + "y(\0010\001\0221\n\005Block\022\024.remote.BlockRequest\032\022.r" + "emote.BlockReply\022=\n\tTxnLookup\022\030.remote.T" + "xnLookupRequest\032\026.remote.TxnLookupReply\022" + "<\n\010NodeInfo\022\030.remote.NodesInfoRequest\032\026." + "remote.NodesInfoReply\0223\n\005Peers\022\026.google." + "protobuf.Empty\032\022.remote.PeersReply\022A\n\014Pe" + "ndingBlock\022\026.google.protobuf.Empty\032\031.rem" + "ote.PendingBlockReplyB\021Z\017./remote;remote" + "b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_remote_2fethbackend_2eproto_deps[2] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, @@ -831,9 +907,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_remote_2fethbackend }; static ::_pbi::once_flag descriptor_table_remote_2fethbackend_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_remote_2fethbackend_2eproto = { - false, false, 3807, descriptor_table_protodef_remote_2fethbackend_2eproto, + false, false, 4048, descriptor_table_protodef_remote_2fethbackend_2eproto, "remote/ethbackend.proto", - &descriptor_table_remote_2fethbackend_2eproto_once, descriptor_table_remote_2fethbackend_2eproto_deps, 2, 30, + &descriptor_table_remote_2fethbackend_2eproto_once, descriptor_table_remote_2fethbackend_2eproto_deps, 2, 33, schemas, file_default_instances, TableStruct_remote_2fethbackend_2eproto::offsets, file_level_metadata_remote_2fethbackend_2eproto, file_level_enum_descriptors_remote_2fethbackend_2eproto, file_level_service_descriptors_remote_2fethbackend_2eproto, @@ -1734,6 +1810,184 @@ ::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadRequest::GetMetadata() const { // =================================================================== +class EngineGetBlobsBundleRequest::_Internal { + public: +}; + +EngineGetBlobsBundleRequest::EngineGetBlobsBundleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetBlobsBundleRequest) +} +EngineGetBlobsBundleRequest::EngineGetBlobsBundleRequest(const EngineGetBlobsBundleRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EngineGetBlobsBundleRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.payloadid_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.payloadid_ = from._impl_.payloadid_; + // @@protoc_insertion_point(copy_constructor:remote.EngineGetBlobsBundleRequest) +} + +inline void EngineGetBlobsBundleRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.payloadid_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EngineGetBlobsBundleRequest::~EngineGetBlobsBundleRequest() { + // @@protoc_insertion_point(destructor:remote.EngineGetBlobsBundleRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EngineGetBlobsBundleRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void EngineGetBlobsBundleRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EngineGetBlobsBundleRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetBlobsBundleRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.payloadid_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EngineGetBlobsBundleRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 payloadId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.payloadid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* EngineGetBlobsBundleRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetBlobsBundleRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 payloadId = 1; + if (this->_internal_payloadid() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_payloadid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetBlobsBundleRequest) + return target; +} + +size_t EngineGetBlobsBundleRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetBlobsBundleRequest) + 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 payloadId = 1; + if (this->_internal_payloadid() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_payloadid()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineGetBlobsBundleRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EngineGetBlobsBundleRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineGetBlobsBundleRequest::GetClassData() const { return &_class_data_; } + + +void EngineGetBlobsBundleRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetBlobsBundleRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_payloadid() != 0) { + _this->_internal_set_payloadid(from._internal_payloadid()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EngineGetBlobsBundleRequest::CopyFrom(const EngineGetBlobsBundleRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetBlobsBundleRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetBlobsBundleRequest::IsInitialized() const { + return true; +} + +void EngineGetBlobsBundleRequest::InternalSwap(EngineGetBlobsBundleRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.payloadid_, other->_impl_.payloadid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetBlobsBundleRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, + file_level_metadata_remote_2fethbackend_2eproto[7]); +} + +// =================================================================== + class EnginePayloadStatus::_Internal { public: static const ::types::H256& latestvalidhash(const EnginePayloadStatus* msg); @@ -2014,7 +2268,7 @@ void EnginePayloadStatus::InternalSwap(EnginePayloadStatus* other) { ::PROTOBUF_NAMESPACE_ID::Metadata EnginePayloadStatus::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[7]); + file_level_metadata_remote_2fethbackend_2eproto[8]); } // =================================================================== @@ -2045,6 +2299,9 @@ void EnginePayloadAttributes::clear_suggestedfeerecipient() { } _impl_.suggestedfeerecipient_ = nullptr; } +void EnginePayloadAttributes::clear_withdrawals() { + _impl_.withdrawals_.Clear(); +} EnginePayloadAttributes::EnginePayloadAttributes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -2055,9 +2312,11 @@ EnginePayloadAttributes::EnginePayloadAttributes(const EnginePayloadAttributes& : ::PROTOBUF_NAMESPACE_ID::Message() { EnginePayloadAttributes* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.prevrandao_){nullptr} + decltype(_impl_.withdrawals_){from._impl_.withdrawals_} + , decltype(_impl_.prevrandao_){nullptr} , decltype(_impl_.suggestedfeerecipient_){nullptr} , decltype(_impl_.timestamp_){} + , decltype(_impl_.version_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -2067,7 +2326,9 @@ EnginePayloadAttributes::EnginePayloadAttributes(const EnginePayloadAttributes& if (from._internal_has_suggestedfeerecipient()) { _this->_impl_.suggestedfeerecipient_ = new ::types::H160(*from._impl_.suggestedfeerecipient_); } - _this->_impl_.timestamp_ = from._impl_.timestamp_; + ::memcpy(&_impl_.timestamp_, &from._impl_.timestamp_, + static_cast(reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.timestamp_)) + sizeof(_impl_.version_)); // @@protoc_insertion_point(copy_constructor:remote.EnginePayloadAttributes) } @@ -2076,9 +2337,11 @@ inline void EnginePayloadAttributes::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.prevrandao_){nullptr} + decltype(_impl_.withdrawals_){arena} + , decltype(_impl_.prevrandao_){nullptr} , decltype(_impl_.suggestedfeerecipient_){nullptr} , decltype(_impl_.timestamp_){uint64_t{0u}} + , decltype(_impl_.version_){0u} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -2094,6 +2357,7 @@ EnginePayloadAttributes::~EnginePayloadAttributes() { inline void EnginePayloadAttributes::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.withdrawals_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.prevrandao_; if (this != internal_default_instance()) delete _impl_.suggestedfeerecipient_; } @@ -2108,6 +2372,7 @@ void EnginePayloadAttributes::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.withdrawals_.Clear(); if (GetArenaForAllocation() == nullptr && _impl_.prevrandao_ != nullptr) { delete _impl_.prevrandao_; } @@ -2116,7 +2381,9 @@ void EnginePayloadAttributes::Clear() { delete _impl_.suggestedfeerecipient_; } _impl_.suggestedfeerecipient_ = nullptr; - _impl_.timestamp_ = uint64_t{0u}; + ::memset(&_impl_.timestamp_, 0, static_cast( + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.timestamp_)) + sizeof(_impl_.version_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2126,30 +2393,51 @@ const char* EnginePayloadAttributes::_InternalParse(const char* ptr, ::_pbi::Par uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // uint64 timestamp = 1; + // uint32 version = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 prevRandao = 2; + // uint64 timestamp = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H160 suggestedFeeRecipient = 3; + // .types.H256 prevRandao = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .types.H160 suggestedFeeRecipient = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_suggestedfeerecipient(), ptr); CHK_(ptr); } else goto handle_unusual; continue; + // repeated .types.Withdrawal withdrawals = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2179,26 +2467,40 @@ uint8_t* EnginePayloadAttributes::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // uint64 timestamp = 1; + // uint32 version = 1; + if (this->_internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_version(), target); + } + + // uint64 timestamp = 2; if (this->_internal_timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_timestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_timestamp(), target); } - // .types.H256 prevRandao = 2; + // .types.H256 prevRandao = 3; if (this->_internal_has_prevrandao()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::prevrandao(this), + InternalWriteMessage(3, _Internal::prevrandao(this), _Internal::prevrandao(this).GetCachedSize(), target, stream); } - // .types.H160 suggestedFeeRecipient = 3; + // .types.H160 suggestedFeeRecipient = 4; if (this->_internal_has_suggestedfeerecipient()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::suggestedfeerecipient(this), + InternalWriteMessage(4, _Internal::suggestedfeerecipient(this), _Internal::suggestedfeerecipient(this).GetCachedSize(), target, stream); } + // repeated .types.Withdrawal withdrawals = 5; + for (unsigned i = 0, + n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { + const auto& repfield = this->_internal_withdrawals(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -2215,25 +2517,37 @@ size_t EnginePayloadAttributes::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .types.H256 prevRandao = 2; + // repeated .types.Withdrawal withdrawals = 5; + total_size += 1UL * this->_internal_withdrawals_size(); + for (const auto& msg : this->_impl_.withdrawals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .types.H256 prevRandao = 3; if (this->_internal_has_prevrandao()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.prevrandao_); } - // .types.H160 suggestedFeeRecipient = 3; + // .types.H160 suggestedFeeRecipient = 4; if (this->_internal_has_suggestedfeerecipient()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.suggestedfeerecipient_); } - // uint64 timestamp = 1; + // uint64 timestamp = 2; if (this->_internal_timestamp() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp()); } + // uint32 version = 1; + if (this->_internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_version()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -2252,6 +2566,7 @@ void EnginePayloadAttributes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.withdrawals_.MergeFrom(from._impl_.withdrawals_); if (from._internal_has_prevrandao()) { _this->_internal_mutable_prevrandao()->::types::H256::MergeFrom( from._internal_prevrandao()); @@ -2263,6 +2578,9 @@ void EnginePayloadAttributes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg if (from._internal_timestamp() != 0) { _this->_internal_set_timestamp(from._internal_timestamp()); } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -2280,9 +2598,10 @@ bool EnginePayloadAttributes::IsInitialized() const { void EnginePayloadAttributes::InternalSwap(EnginePayloadAttributes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.withdrawals_.InternalSwap(&other->_impl_.withdrawals_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EnginePayloadAttributes, _impl_.timestamp_) - + sizeof(EnginePayloadAttributes::_impl_.timestamp_) + PROTOBUF_FIELD_OFFSET(EnginePayloadAttributes, _impl_.version_) + + sizeof(EnginePayloadAttributes::_impl_.version_) - PROTOBUF_FIELD_OFFSET(EnginePayloadAttributes, _impl_.prevrandao_)>( reinterpret_cast(&_impl_.prevrandao_), reinterpret_cast(&other->_impl_.prevrandao_)); @@ -2291,7 +2610,7 @@ void EnginePayloadAttributes::InternalSwap(EnginePayloadAttributes* other) { ::PROTOBUF_NAMESPACE_ID::Metadata EnginePayloadAttributes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[8]); + file_level_metadata_remote_2fethbackend_2eproto[9]); } // =================================================================== @@ -2589,7 +2908,7 @@ void EngineForkChoiceState::InternalSwap(EngineForkChoiceState* other) { ::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceState::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[9]); + file_level_metadata_remote_2fethbackend_2eproto[10]); } // =================================================================== @@ -2828,57 +3147,55 @@ void EngineForkChoiceUpdatedRequest::InternalSwap(EngineForkChoiceUpdatedRequest ::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[10]); + file_level_metadata_remote_2fethbackend_2eproto[11]); } // =================================================================== -class EnginePayloadAttributesV2::_Internal { +class EngineForkChoiceUpdatedResponse::_Internal { public: - static const ::remote::EnginePayloadAttributes& attributes(const EnginePayloadAttributesV2* msg); + static const ::remote::EnginePayloadStatus& payloadstatus(const EngineForkChoiceUpdatedResponse* msg); }; -const ::remote::EnginePayloadAttributes& -EnginePayloadAttributesV2::_Internal::attributes(const EnginePayloadAttributesV2* msg) { - return *msg->_impl_.attributes_; -} -void EnginePayloadAttributesV2::clear_withdrawals() { - _impl_.withdrawals_.Clear(); +const ::remote::EnginePayloadStatus& +EngineForkChoiceUpdatedResponse::_Internal::payloadstatus(const EngineForkChoiceUpdatedResponse* msg) { + return *msg->_impl_.payloadstatus_; } -EnginePayloadAttributesV2::EnginePayloadAttributesV2(::PROTOBUF_NAMESPACE_ID::Arena* arena, +EngineForkChoiceUpdatedResponse::EngineForkChoiceUpdatedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(arena_constructor:remote.EngineForkChoiceUpdatedResponse) } -EnginePayloadAttributesV2::EnginePayloadAttributesV2(const EnginePayloadAttributesV2& from) +EngineForkChoiceUpdatedResponse::EngineForkChoiceUpdatedResponse(const EngineForkChoiceUpdatedResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - EnginePayloadAttributesV2* const _this = this; (void)_this; + EngineForkChoiceUpdatedResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.withdrawals_){from._impl_.withdrawals_} - , decltype(_impl_.attributes_){nullptr} + decltype(_impl_.payloadstatus_){nullptr} + , decltype(_impl_.payloadid_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_attributes()) { - _this->_impl_.attributes_ = new ::remote::EnginePayloadAttributes(*from._impl_.attributes_); + if (from._internal_has_payloadstatus()) { + _this->_impl_.payloadstatus_ = new ::remote::EnginePayloadStatus(*from._impl_.payloadstatus_); } - // @@protoc_insertion_point(copy_constructor:remote.EnginePayloadAttributesV2) + _this->_impl_.payloadid_ = from._impl_.payloadid_; + // @@protoc_insertion_point(copy_constructor:remote.EngineForkChoiceUpdatedResponse) } -inline void EnginePayloadAttributesV2::SharedCtor( +inline void EngineForkChoiceUpdatedResponse::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.withdrawals_){arena} - , decltype(_impl_.attributes_){nullptr} + decltype(_impl_.payloadstatus_){nullptr} + , decltype(_impl_.payloadid_){uint64_t{0u}} , /*decltype(_impl_._cached_size_)*/{} }; } -EnginePayloadAttributesV2::~EnginePayloadAttributesV2() { - // @@protoc_insertion_point(destructor:remote.EnginePayloadAttributesV2) +EngineForkChoiceUpdatedResponse::~EngineForkChoiceUpdatedResponse() { + // @@protoc_insertion_point(destructor:remote.EngineForkChoiceUpdatedResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2886,54 +3203,48 @@ EnginePayloadAttributesV2::~EnginePayloadAttributesV2() { SharedDtor(); } -inline void EnginePayloadAttributesV2::SharedDtor() { +inline void EngineForkChoiceUpdatedResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.withdrawals_.~RepeatedPtrField(); - if (this != internal_default_instance()) delete _impl_.attributes_; + if (this != internal_default_instance()) delete _impl_.payloadstatus_; } -void EnginePayloadAttributesV2::SetCachedSize(int size) const { +void EngineForkChoiceUpdatedResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void EnginePayloadAttributesV2::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineForkChoiceUpdatedResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.withdrawals_.Clear(); - if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { - delete _impl_.attributes_; + if (GetArenaForAllocation() == nullptr && _impl_.payloadstatus_ != nullptr) { + delete _impl_.payloadstatus_; } - _impl_.attributes_ = nullptr; + _impl_.payloadstatus_ = nullptr; + _impl_.payloadid_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EnginePayloadAttributesV2::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* EngineForkChoiceUpdatedResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .remote.EnginePayloadAttributes attributes = 1; + // .remote.EnginePayloadStatus payloadStatus = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_attributes(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_payloadstatus(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // repeated .types.Withdrawal withdrawals = 2; + // uint64 payloadId = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.payloadid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -2960,160 +3271,174 @@ const char* EnginePayloadAttributesV2::_InternalParse(const char* ptr, ::_pbi::P #undef CHK_ } -uint8_t* EnginePayloadAttributesV2::_InternalSerialize( +uint8_t* EngineForkChoiceUpdatedResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineForkChoiceUpdatedResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .remote.EnginePayloadAttributes attributes = 1; - if (this->_internal_has_attributes()) { + // .remote.EnginePayloadStatus payloadStatus = 1; + if (this->_internal_has_payloadstatus()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::attributes(this), - _Internal::attributes(this).GetCachedSize(), target, stream); + InternalWriteMessage(1, _Internal::payloadstatus(this), + _Internal::payloadstatus(this).GetCachedSize(), target, stream); } - // repeated .types.Withdrawal withdrawals = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { - const auto& repfield = this->_internal_withdrawals(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + // uint64 payloadId = 2; + if (this->_internal_payloadid() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_payloadid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineForkChoiceUpdatedResponse) return target; } -size_t EnginePayloadAttributesV2::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.EnginePayloadAttributesV2) +size_t EngineForkChoiceUpdatedResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineForkChoiceUpdatedResponse) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .types.Withdrawal withdrawals = 2; - total_size += 1UL * this->_internal_withdrawals_size(); - for (const auto& msg : this->_impl_.withdrawals_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .remote.EnginePayloadAttributes attributes = 1; - if (this->_internal_has_attributes()) { + // .remote.EnginePayloadStatus payloadStatus = 1; + if (this->_internal_has_payloadstatus()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.attributes_); + *_impl_.payloadstatus_); + } + + // uint64 payloadId = 2; + if (this->_internal_payloadid() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_payloadid()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EnginePayloadAttributesV2::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineForkChoiceUpdatedResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EnginePayloadAttributesV2::MergeImpl + EngineForkChoiceUpdatedResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EnginePayloadAttributesV2::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineForkChoiceUpdatedResponse::GetClassData() const { return &_class_data_; } -void EnginePayloadAttributesV2::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineForkChoiceUpdatedResponse) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.withdrawals_.MergeFrom(from._impl_.withdrawals_); - if (from._internal_has_attributes()) { - _this->_internal_mutable_attributes()->::remote::EnginePayloadAttributes::MergeFrom( - from._internal_attributes()); + if (from._internal_has_payloadstatus()) { + _this->_internal_mutable_payloadstatus()->::remote::EnginePayloadStatus::MergeFrom( + from._internal_payloadstatus()); + } + if (from._internal_payloadid() != 0) { + _this->_internal_set_payloadid(from._internal_payloadid()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void EnginePayloadAttributesV2::CopyFrom(const EnginePayloadAttributesV2& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.EnginePayloadAttributesV2) +void EngineForkChoiceUpdatedResponse::CopyFrom(const EngineForkChoiceUpdatedResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineForkChoiceUpdatedResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool EnginePayloadAttributesV2::IsInitialized() const { +bool EngineForkChoiceUpdatedResponse::IsInitialized() const { return true; } -void EnginePayloadAttributesV2::InternalSwap(EnginePayloadAttributesV2* other) { +void EngineForkChoiceUpdatedResponse::InternalSwap(EngineForkChoiceUpdatedResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.withdrawals_.InternalSwap(&other->_impl_.withdrawals_); - swap(_impl_.attributes_, other->_impl_.attributes_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedResponse, _impl_.payloadid_) + + sizeof(EngineForkChoiceUpdatedResponse::_impl_.payloadid_) + - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedResponse, _impl_.payloadstatus_)>( + reinterpret_cast(&_impl_.payloadstatus_), + reinterpret_cast(&other->_impl_.payloadstatus_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EnginePayloadAttributesV2::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[11]); + file_level_metadata_remote_2fethbackend_2eproto[12]); } // =================================================================== -class EngineForkChoiceUpdatedRequestV2::_Internal { +class EngineGetPayloadResponse::_Internal { public: - static const ::remote::EngineForkChoiceState& forkchoicestate(const EngineForkChoiceUpdatedRequestV2* msg); - static const ::remote::EnginePayloadAttributesV2& payloadattributes(const EngineForkChoiceUpdatedRequestV2* msg); + static const ::types::ExecutionPayload& executionpayload(const EngineGetPayloadResponse* msg); + static const ::types::H256& blockvalue(const EngineGetPayloadResponse* msg); }; -const ::remote::EngineForkChoiceState& -EngineForkChoiceUpdatedRequestV2::_Internal::forkchoicestate(const EngineForkChoiceUpdatedRequestV2* msg) { - return *msg->_impl_.forkchoicestate_; +const ::types::ExecutionPayload& +EngineGetPayloadResponse::_Internal::executionpayload(const EngineGetPayloadResponse* msg) { + return *msg->_impl_.executionpayload_; } -const ::remote::EnginePayloadAttributesV2& -EngineForkChoiceUpdatedRequestV2::_Internal::payloadattributes(const EngineForkChoiceUpdatedRequestV2* msg) { - return *msg->_impl_.payloadattributes_; +const ::types::H256& +EngineGetPayloadResponse::_Internal::blockvalue(const EngineGetPayloadResponse* msg) { + return *msg->_impl_.blockvalue_; +} +void EngineGetPayloadResponse::clear_executionpayload() { + if (GetArenaForAllocation() == nullptr && _impl_.executionpayload_ != nullptr) { + delete _impl_.executionpayload_; + } + _impl_.executionpayload_ = nullptr; } -EngineForkChoiceUpdatedRequestV2::EngineForkChoiceUpdatedRequestV2(::PROTOBUF_NAMESPACE_ID::Arena* arena, +void EngineGetPayloadResponse::clear_blockvalue() { + if (GetArenaForAllocation() == nullptr && _impl_.blockvalue_ != nullptr) { + delete _impl_.blockvalue_; + } + _impl_.blockvalue_ = nullptr; +} +EngineGetPayloadResponse::EngineGetPayloadResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadResponse) } -EngineForkChoiceUpdatedRequestV2::EngineForkChoiceUpdatedRequestV2(const EngineForkChoiceUpdatedRequestV2& from) +EngineGetPayloadResponse::EngineGetPayloadResponse(const EngineGetPayloadResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - EngineForkChoiceUpdatedRequestV2* const _this = this; (void)_this; + EngineGetPayloadResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.forkchoicestate_){nullptr} - , decltype(_impl_.payloadattributes_){nullptr} + decltype(_impl_.executionpayload_){nullptr} + , decltype(_impl_.blockvalue_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_forkchoicestate()) { - _this->_impl_.forkchoicestate_ = new ::remote::EngineForkChoiceState(*from._impl_.forkchoicestate_); + if (from._internal_has_executionpayload()) { + _this->_impl_.executionpayload_ = new ::types::ExecutionPayload(*from._impl_.executionpayload_); } - if (from._internal_has_payloadattributes()) { - _this->_impl_.payloadattributes_ = new ::remote::EnginePayloadAttributesV2(*from._impl_.payloadattributes_); + if (from._internal_has_blockvalue()) { + _this->_impl_.blockvalue_ = new ::types::H256(*from._impl_.blockvalue_); } - // @@protoc_insertion_point(copy_constructor:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadResponse) } -inline void EngineForkChoiceUpdatedRequestV2::SharedCtor( +inline void EngineGetPayloadResponse::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.forkchoicestate_){nullptr} - , decltype(_impl_.payloadattributes_){nullptr} + decltype(_impl_.executionpayload_){nullptr} + , decltype(_impl_.blockvalue_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } -EngineForkChoiceUpdatedRequestV2::~EngineForkChoiceUpdatedRequestV2() { - // @@protoc_insertion_point(destructor:remote.EngineForkChoiceUpdatedRequestV2) +EngineGetPayloadResponse::~EngineGetPayloadResponse() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -3121,51 +3446,51 @@ EngineForkChoiceUpdatedRequestV2::~EngineForkChoiceUpdatedRequestV2() { SharedDtor(); } -inline void EngineForkChoiceUpdatedRequestV2::SharedDtor() { +inline void EngineGetPayloadResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.forkchoicestate_; - if (this != internal_default_instance()) delete _impl_.payloadattributes_; + if (this != internal_default_instance()) delete _impl_.executionpayload_; + if (this != internal_default_instance()) delete _impl_.blockvalue_; } -void EngineForkChoiceUpdatedRequestV2::SetCachedSize(int size) const { +void EngineGetPayloadResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void EngineForkChoiceUpdatedRequestV2::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && _impl_.forkchoicestate_ != nullptr) { - delete _impl_.forkchoicestate_; + if (GetArenaForAllocation() == nullptr && _impl_.executionpayload_ != nullptr) { + delete _impl_.executionpayload_; } - _impl_.forkchoicestate_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.payloadattributes_ != nullptr) { - delete _impl_.payloadattributes_; + _impl_.executionpayload_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.blockvalue_ != nullptr) { + delete _impl_.blockvalue_; } - _impl_.payloadattributes_ = nullptr; + _impl_.blockvalue_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EngineForkChoiceUpdatedRequestV2::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* EngineGetPayloadResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .remote.EngineForkChoiceState forkchoiceState = 1; + // .types.ExecutionPayload executionPayload = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_forkchoicestate(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_executionpayload(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; + // .types.H256 blockValue = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_payloadattributes(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_blockvalue(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -3193,159 +3518,189 @@ const char* EngineForkChoiceUpdatedRequestV2::_InternalParse(const char* ptr, :: #undef CHK_ } -uint8_t* EngineForkChoiceUpdatedRequestV2::_InternalSerialize( +uint8_t* EngineGetPayloadResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .remote.EngineForkChoiceState forkchoiceState = 1; - if (this->_internal_has_forkchoicestate()) { + // .types.ExecutionPayload executionPayload = 1; + if (this->_internal_has_executionpayload()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::forkchoicestate(this), - _Internal::forkchoicestate(this).GetCachedSize(), target, stream); + InternalWriteMessage(1, _Internal::executionpayload(this), + _Internal::executionpayload(this).GetCachedSize(), target, stream); } - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; - if (this->_internal_has_payloadattributes()) { + // .types.H256 blockValue = 2; + if (this->_internal_has_blockvalue()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::payloadattributes(this), - _Internal::payloadattributes(this).GetCachedSize(), target, stream); + InternalWriteMessage(2, _Internal::blockvalue(this), + _Internal::blockvalue(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadResponse) return target; } -size_t EngineForkChoiceUpdatedRequestV2::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.EngineForkChoiceUpdatedRequestV2) +size_t EngineGetPayloadResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadResponse) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .remote.EngineForkChoiceState forkchoiceState = 1; - if (this->_internal_has_forkchoicestate()) { + // .types.ExecutionPayload executionPayload = 1; + if (this->_internal_has_executionpayload()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.forkchoicestate_); + *_impl_.executionpayload_); } - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; - if (this->_internal_has_payloadattributes()) { + // .types.H256 blockValue = 2; + if (this->_internal_has_blockvalue()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.payloadattributes_); + *_impl_.blockvalue_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineForkChoiceUpdatedRequestV2::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineGetPayloadResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EngineForkChoiceUpdatedRequestV2::MergeImpl + EngineGetPayloadResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineForkChoiceUpdatedRequestV2::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineGetPayloadResponse::GetClassData() const { return &_class_data_; } -void EngineForkChoiceUpdatedRequestV2::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadResponse) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_forkchoicestate()) { - _this->_internal_mutable_forkchoicestate()->::remote::EngineForkChoiceState::MergeFrom( - from._internal_forkchoicestate()); + if (from._internal_has_executionpayload()) { + _this->_internal_mutable_executionpayload()->::types::ExecutionPayload::MergeFrom( + from._internal_executionpayload()); } - if (from._internal_has_payloadattributes()) { - _this->_internal_mutable_payloadattributes()->::remote::EnginePayloadAttributesV2::MergeFrom( - from._internal_payloadattributes()); + if (from._internal_has_blockvalue()) { + _this->_internal_mutable_blockvalue()->::types::H256::MergeFrom( + from._internal_blockvalue()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void EngineForkChoiceUpdatedRequestV2::CopyFrom(const EngineForkChoiceUpdatedRequestV2& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineForkChoiceUpdatedRequestV2) +void EngineGetPayloadResponse::CopyFrom(const EngineGetPayloadResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool EngineForkChoiceUpdatedRequestV2::IsInitialized() const { +bool EngineGetPayloadResponse::IsInitialized() const { return true; } -void EngineForkChoiceUpdatedRequestV2::InternalSwap(EngineForkChoiceUpdatedRequestV2* other) { +void EngineGetPayloadResponse::InternalSwap(EngineGetPayloadResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedRequestV2, _impl_.payloadattributes_) - + sizeof(EngineForkChoiceUpdatedRequestV2::_impl_.payloadattributes_) - - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedRequestV2, _impl_.forkchoicestate_)>( - reinterpret_cast(&_impl_.forkchoicestate_), - reinterpret_cast(&other->_impl_.forkchoicestate_)); + PROTOBUF_FIELD_OFFSET(EngineGetPayloadResponse, _impl_.blockvalue_) + + sizeof(EngineGetPayloadResponse::_impl_.blockvalue_) + - PROTOBUF_FIELD_OFFSET(EngineGetPayloadResponse, _impl_.executionpayload_)>( + reinterpret_cast(&_impl_.executionpayload_), + reinterpret_cast(&other->_impl_.executionpayload_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedRequestV2::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[12]); + file_level_metadata_remote_2fethbackend_2eproto[13]); } // =================================================================== -class EngineForkChoiceUpdatedReply::_Internal { +class ProtocolVersionRequest::_Internal { public: - static const ::remote::EnginePayloadStatus& payloadstatus(const EngineForkChoiceUpdatedReply* msg); }; -const ::remote::EnginePayloadStatus& -EngineForkChoiceUpdatedReply::_Internal::payloadstatus(const EngineForkChoiceUpdatedReply* msg) { - return *msg->_impl_.payloadstatus_; +ProtocolVersionRequest::ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:remote.ProtocolVersionRequest) +} +ProtocolVersionRequest::ProtocolVersionRequest(const ProtocolVersionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + ProtocolVersionRequest* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:remote.ProtocolVersionRequest) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProtocolVersionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProtocolVersionRequest::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata ProtocolVersionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, + file_level_metadata_remote_2fethbackend_2eproto[14]); } -EngineForkChoiceUpdatedReply::EngineForkChoiceUpdatedReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + +// =================================================================== + +class ProtocolVersionReply::_Internal { + public: +}; + +ProtocolVersionReply::ProtocolVersionReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(arena_constructor:remote.ProtocolVersionReply) } -EngineForkChoiceUpdatedReply::EngineForkChoiceUpdatedReply(const EngineForkChoiceUpdatedReply& from) +ProtocolVersionReply::ProtocolVersionReply(const ProtocolVersionReply& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - EngineForkChoiceUpdatedReply* const _this = this; (void)_this; + ProtocolVersionReply* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.payloadstatus_){nullptr} - , decltype(_impl_.payloadid_){} + decltype(_impl_.id_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_payloadstatus()) { - _this->_impl_.payloadstatus_ = new ::remote::EnginePayloadStatus(*from._impl_.payloadstatus_); - } - _this->_impl_.payloadid_ = from._impl_.payloadid_; - // @@protoc_insertion_point(copy_constructor:remote.EngineForkChoiceUpdatedReply) + _this->_impl_.id_ = from._impl_.id_; + // @@protoc_insertion_point(copy_constructor:remote.ProtocolVersionReply) } -inline void EngineForkChoiceUpdatedReply::SharedCtor( +inline void ProtocolVersionReply::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.payloadstatus_){nullptr} - , decltype(_impl_.payloadid_){uint64_t{0u}} + decltype(_impl_.id_){uint64_t{0u}} , /*decltype(_impl_._cached_size_)*/{} }; } -EngineForkChoiceUpdatedReply::~EngineForkChoiceUpdatedReply() { - // @@protoc_insertion_point(destructor:remote.EngineForkChoiceUpdatedReply) +ProtocolVersionReply::~ProtocolVersionReply() { + // @@protoc_insertion_point(destructor:remote.ProtocolVersionReply) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -3353,47 +3708,34 @@ EngineForkChoiceUpdatedReply::~EngineForkChoiceUpdatedReply() { SharedDtor(); } -inline void EngineForkChoiceUpdatedReply::SharedDtor() { +inline void ProtocolVersionReply::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.payloadstatus_; } -void EngineForkChoiceUpdatedReply::SetCachedSize(int size) const { +void ProtocolVersionReply::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void EngineForkChoiceUpdatedReply::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.EngineForkChoiceUpdatedReply) +void ProtocolVersionReply::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.ProtocolVersionReply) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && _impl_.payloadstatus_ != nullptr) { - delete _impl_.payloadstatus_; - } - _impl_.payloadstatus_ = nullptr; - _impl_.payloadid_ = uint64_t{0u}; + _impl_.id_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EngineForkChoiceUpdatedReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ProtocolVersionReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .remote.EnginePayloadStatus payloadStatus = 1; + // uint64 id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_payloadstatus(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint64 payloadId = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.payloadid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -3421,288 +3763,47 @@ const char* EngineForkChoiceUpdatedReply::_InternalParse(const char* ptr, ::_pbi #undef CHK_ } -uint8_t* EngineForkChoiceUpdatedReply::_InternalSerialize( +uint8_t* ProtocolVersionReply::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(serialize_to_array_start:remote.ProtocolVersionReply) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .remote.EnginePayloadStatus payloadStatus = 1; - if (this->_internal_has_payloadstatus()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::payloadstatus(this), - _Internal::payloadstatus(this).GetCachedSize(), target, stream); - } - - // uint64 payloadId = 2; - if (this->_internal_payloadid() != 0) { + // uint64 id = 1; + if (this->_internal_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_payloadid(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.EngineForkChoiceUpdatedReply) + // @@protoc_insertion_point(serialize_to_array_end:remote.ProtocolVersionReply) return target; } -size_t EngineForkChoiceUpdatedReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.EngineForkChoiceUpdatedReply) +size_t ProtocolVersionReply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.ProtocolVersionReply) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .remote.EnginePayloadStatus payloadStatus = 1; - if (this->_internal_has_payloadstatus()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.payloadstatus_); - } - - // uint64 payloadId = 2; - if (this->_internal_payloadid() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_payloadid()); + // uint64 id = 1; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineForkChoiceUpdatedReply::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProtocolVersionReply::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EngineForkChoiceUpdatedReply::MergeImpl + ProtocolVersionReply::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineForkChoiceUpdatedReply::GetClassData() const { return &_class_data_; } - - -void EngineForkChoiceUpdatedReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineForkChoiceUpdatedReply) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_payloadstatus()) { - _this->_internal_mutable_payloadstatus()->::remote::EnginePayloadStatus::MergeFrom( - from._internal_payloadstatus()); - } - if (from._internal_payloadid() != 0) { - _this->_internal_set_payloadid(from._internal_payloadid()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void EngineForkChoiceUpdatedReply::CopyFrom(const EngineForkChoiceUpdatedReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineForkChoiceUpdatedReply) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EngineForkChoiceUpdatedReply::IsInitialized() const { - return true; -} - -void EngineForkChoiceUpdatedReply::InternalSwap(EngineForkChoiceUpdatedReply* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedReply, _impl_.payloadid_) - + sizeof(EngineForkChoiceUpdatedReply::_impl_.payloadid_) - - PROTOBUF_FIELD_OFFSET(EngineForkChoiceUpdatedReply, _impl_.payloadstatus_)>( - reinterpret_cast(&_impl_.payloadstatus_), - reinterpret_cast(&other->_impl_.payloadstatus_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EngineForkChoiceUpdatedReply::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[13]); -} - -// =================================================================== - -class ProtocolVersionRequest::_Internal { - public: -}; - -ProtocolVersionRequest::ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { - // @@protoc_insertion_point(arena_constructor:remote.ProtocolVersionRequest) -} -ProtocolVersionRequest::ProtocolVersionRequest(const ProtocolVersionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - ProtocolVersionRequest* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:remote.ProtocolVersionRequest) -} - - - - - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProtocolVersionRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProtocolVersionRequest::GetClassData() const { return &_class_data_; } - - - - - - - -::PROTOBUF_NAMESPACE_ID::Metadata ProtocolVersionRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, - file_level_metadata_remote_2fethbackend_2eproto[14]); -} - -// =================================================================== - -class ProtocolVersionReply::_Internal { - public: -}; - -ProtocolVersionReply::ProtocolVersionReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.ProtocolVersionReply) -} -ProtocolVersionReply::ProtocolVersionReply(const ProtocolVersionReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ProtocolVersionReply* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.id_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.id_ = from._impl_.id_; - // @@protoc_insertion_point(copy_constructor:remote.ProtocolVersionReply) -} - -inline void ProtocolVersionReply::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.id_){uint64_t{0u}} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -ProtocolVersionReply::~ProtocolVersionReply() { - // @@protoc_insertion_point(destructor:remote.ProtocolVersionReply) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ProtocolVersionReply::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void ProtocolVersionReply::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ProtocolVersionReply::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.ProtocolVersionReply) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_ = uint64_t{0u}; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ProtocolVersionReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // uint64 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ProtocolVersionReply::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.ProtocolVersionReply) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // uint64 id = 1; - if (this->_internal_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:remote.ProtocolVersionReply) - return target; -} - -size_t ProtocolVersionReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.ProtocolVersionReply) - 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 id = 1; - if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProtocolVersionReply::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ProtocolVersionReply::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProtocolVersionReply::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProtocolVersionReply::GetClassData() const { return &_class_data_; } void ProtocolVersionReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { @@ -6765,37 +6866,628 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PendingBlockReply::GetMetadata() const { file_level_metadata_remote_2fethbackend_2eproto[29]); } -// @@protoc_insertion_point(namespace_scope) -} // namespace remote -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::remote::EtherbaseRequest* -Arena::CreateMaybeMessage< ::remote::EtherbaseRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EtherbaseRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::remote::EtherbaseReply* -Arena::CreateMaybeMessage< ::remote::EtherbaseReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EtherbaseReply >(arena); -} -template<> PROTOBUF_NOINLINE ::remote::NetVersionRequest* -Arena::CreateMaybeMessage< ::remote::NetVersionRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetVersionRequest >(arena); +// =================================================================== + +class EngineGetPayloadBodiesByHashV1Request::_Internal { + public: +}; + +void EngineGetPayloadBodiesByHashV1Request::clear_hashes() { + _impl_.hashes_.Clear(); } -template<> PROTOBUF_NOINLINE ::remote::NetVersionReply* -Arena::CreateMaybeMessage< ::remote::NetVersionReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetVersionReply >(arena); +EngineGetPayloadBodiesByHashV1Request::EngineGetPayloadBodiesByHashV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadBodiesByHashV1Request) } -template<> PROTOBUF_NOINLINE ::remote::NetPeerCountRequest* -Arena::CreateMaybeMessage< ::remote::NetPeerCountRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetPeerCountRequest >(arena); +EngineGetPayloadBodiesByHashV1Request::EngineGetPayloadBodiesByHashV1Request(const EngineGetPayloadBodiesByHashV1Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EngineGetPayloadBodiesByHashV1Request* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.hashes_){from._impl_.hashes_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadBodiesByHashV1Request) } -template<> PROTOBUF_NOINLINE ::remote::NetPeerCountReply* -Arena::CreateMaybeMessage< ::remote::NetPeerCountReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::NetPeerCountReply >(arena); + +inline void EngineGetPayloadBodiesByHashV1Request::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.hashes_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EngineGetPayloadBodiesByHashV1Request::~EngineGetPayloadBodiesByHashV1Request() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadBodiesByHashV1Request) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EngineGetPayloadBodiesByHashV1Request::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.hashes_.~RepeatedPtrField(); +} + +void EngineGetPayloadBodiesByHashV1Request::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EngineGetPayloadBodiesByHashV1Request::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadBodiesByHashV1Request) + 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<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EngineGetPayloadBodiesByHashV1Request::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .types.H256 hashes = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_hashes(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* EngineGetPayloadBodiesByHashV1Request::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadBodiesByHashV1Request) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .types.H256 hashes = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_hashes_size()); i < n; i++) { + const auto& repfield = this->_internal_hashes(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadBodiesByHashV1Request) + return target; +} + +size_t EngineGetPayloadBodiesByHashV1Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadBodiesByHashV1Request) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .types.H256 hashes = 1; + total_size += 1UL * this->_internal_hashes_size(); + for (const auto& msg : this->_impl_.hashes_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineGetPayloadBodiesByHashV1Request::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EngineGetPayloadBodiesByHashV1Request::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineGetPayloadBodiesByHashV1Request::GetClassData() const { return &_class_data_; } + + +void EngineGetPayloadBodiesByHashV1Request::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadBodiesByHashV1Request) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.hashes_.MergeFrom(from._impl_.hashes_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EngineGetPayloadBodiesByHashV1Request::CopyFrom(const EngineGetPayloadBodiesByHashV1Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadBodiesByHashV1Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetPayloadBodiesByHashV1Request::IsInitialized() const { + return true; +} + +void EngineGetPayloadBodiesByHashV1Request::InternalSwap(EngineGetPayloadBodiesByHashV1Request* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.hashes_.InternalSwap(&other->_impl_.hashes_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadBodiesByHashV1Request::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, + file_level_metadata_remote_2fethbackend_2eproto[30]); +} + +// =================================================================== + +class EngineGetPayloadBodiesByRangeV1Request::_Internal { + public: +}; + +EngineGetPayloadBodiesByRangeV1Request::EngineGetPayloadBodiesByRangeV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadBodiesByRangeV1Request) +} +EngineGetPayloadBodiesByRangeV1Request::EngineGetPayloadBodiesByRangeV1Request(const EngineGetPayloadBodiesByRangeV1Request& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EngineGetPayloadBodiesByRangeV1Request* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.start_){} + , decltype(_impl_.count_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.start_, &from._impl_.start_, + static_cast(reinterpret_cast(&_impl_.count_) - + reinterpret_cast(&_impl_.start_)) + sizeof(_impl_.count_)); + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadBodiesByRangeV1Request) +} + +inline void EngineGetPayloadBodiesByRangeV1Request::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.start_){uint64_t{0u}} + , decltype(_impl_.count_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EngineGetPayloadBodiesByRangeV1Request::~EngineGetPayloadBodiesByRangeV1Request() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadBodiesByRangeV1Request) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EngineGetPayloadBodiesByRangeV1Request::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void EngineGetPayloadBodiesByRangeV1Request::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EngineGetPayloadBodiesByRangeV1Request::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadBodiesByRangeV1Request) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.start_, 0, static_cast( + reinterpret_cast(&_impl_.count_) - + reinterpret_cast(&_impl_.start_)) + sizeof(_impl_.count_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EngineGetPayloadBodiesByRangeV1Request::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 start = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 count = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* EngineGetPayloadBodiesByRangeV1Request::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadBodiesByRangeV1Request) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 start = 1; + if (this->_internal_start() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_start(), target); + } + + // uint64 count = 2; + 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())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadBodiesByRangeV1Request) + return target; +} + +size_t EngineGetPayloadBodiesByRangeV1Request::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadBodiesByRangeV1Request) + 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 start = 1; + if (this->_internal_start() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start()); + } + + // uint64 count = 2; + if (this->_internal_count() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_count()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineGetPayloadBodiesByRangeV1Request::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EngineGetPayloadBodiesByRangeV1Request::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineGetPayloadBodiesByRangeV1Request::GetClassData() const { return &_class_data_; } + + +void EngineGetPayloadBodiesByRangeV1Request::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadBodiesByRangeV1Request) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_start() != 0) { + _this->_internal_set_start(from._internal_start()); + } + if (from._internal_count() != 0) { + _this->_internal_set_count(from._internal_count()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EngineGetPayloadBodiesByRangeV1Request::CopyFrom(const EngineGetPayloadBodiesByRangeV1Request& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadBodiesByRangeV1Request) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetPayloadBodiesByRangeV1Request::IsInitialized() const { + return true; +} + +void EngineGetPayloadBodiesByRangeV1Request::InternalSwap(EngineGetPayloadBodiesByRangeV1Request* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(EngineGetPayloadBodiesByRangeV1Request, _impl_.count_) + + sizeof(EngineGetPayloadBodiesByRangeV1Request::_impl_.count_) + - PROTOBUF_FIELD_OFFSET(EngineGetPayloadBodiesByRangeV1Request, _impl_.start_)>( + reinterpret_cast(&_impl_.start_), + reinterpret_cast(&other->_impl_.start_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadBodiesByRangeV1Request::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, + file_level_metadata_remote_2fethbackend_2eproto[31]); +} + +// =================================================================== + +class EngineGetPayloadBodiesV1Response::_Internal { + public: +}; + +void EngineGetPayloadBodiesV1Response::clear_bodies() { + _impl_.bodies_.Clear(); +} +EngineGetPayloadBodiesV1Response::EngineGetPayloadBodiesV1Response(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.EngineGetPayloadBodiesV1Response) +} +EngineGetPayloadBodiesV1Response::EngineGetPayloadBodiesV1Response(const EngineGetPayloadBodiesV1Response& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + EngineGetPayloadBodiesV1Response* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.bodies_){from._impl_.bodies_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:remote.EngineGetPayloadBodiesV1Response) +} + +inline void EngineGetPayloadBodiesV1Response::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.bodies_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +EngineGetPayloadBodiesV1Response::~EngineGetPayloadBodiesV1Response() { + // @@protoc_insertion_point(destructor:remote.EngineGetPayloadBodiesV1Response) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void EngineGetPayloadBodiesV1Response::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.bodies_.~RepeatedPtrField(); +} + +void EngineGetPayloadBodiesV1Response::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void EngineGetPayloadBodiesV1Response::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.EngineGetPayloadBodiesV1Response) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.bodies_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* EngineGetPayloadBodiesV1Response::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_bodies(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* EngineGetPayloadBodiesV1Response::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.EngineGetPayloadBodiesV1Response) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_bodies_size()); i < n; i++) { + const auto& repfield = this->_internal_bodies(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.EngineGetPayloadBodiesV1Response) + return target; +} + +size_t EngineGetPayloadBodiesV1Response::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.EngineGetPayloadBodiesV1Response) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + total_size += 1UL * this->_internal_bodies_size(); + for (const auto& msg : this->_impl_.bodies_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EngineGetPayloadBodiesV1Response::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + EngineGetPayloadBodiesV1Response::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EngineGetPayloadBodiesV1Response::GetClassData() const { return &_class_data_; } + + +void EngineGetPayloadBodiesV1Response::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.EngineGetPayloadBodiesV1Response) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.bodies_.MergeFrom(from._impl_.bodies_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void EngineGetPayloadBodiesV1Response::CopyFrom(const EngineGetPayloadBodiesV1Response& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.EngineGetPayloadBodiesV1Response) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EngineGetPayloadBodiesV1Response::IsInitialized() const { + return true; +} + +void EngineGetPayloadBodiesV1Response::InternalSwap(EngineGetPayloadBodiesV1Response* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.bodies_.InternalSwap(&other->_impl_.bodies_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EngineGetPayloadBodiesV1Response::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fethbackend_2eproto_getter, &descriptor_table_remote_2fethbackend_2eproto_once, + file_level_metadata_remote_2fethbackend_2eproto[32]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace remote +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::remote::EtherbaseRequest* +Arena::CreateMaybeMessage< ::remote::EtherbaseRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EtherbaseRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EtherbaseReply* +Arena::CreateMaybeMessage< ::remote::EtherbaseReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EtherbaseReply >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetVersionRequest* +Arena::CreateMaybeMessage< ::remote::NetVersionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetVersionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetVersionReply* +Arena::CreateMaybeMessage< ::remote::NetVersionReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetVersionReply >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetPeerCountRequest* +Arena::CreateMaybeMessage< ::remote::NetPeerCountRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetPeerCountRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::NetPeerCountReply* +Arena::CreateMaybeMessage< ::remote::NetPeerCountReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::NetPeerCountReply >(arena); } template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadRequest* Arena::CreateMaybeMessage< ::remote::EngineGetPayloadRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::EngineGetPayloadRequest >(arena); } +template<> PROTOBUF_NOINLINE ::remote::EngineGetBlobsBundleRequest* +Arena::CreateMaybeMessage< ::remote::EngineGetBlobsBundleRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetBlobsBundleRequest >(arena); +} template<> PROTOBUF_NOINLINE ::remote::EnginePayloadStatus* Arena::CreateMaybeMessage< ::remote::EnginePayloadStatus >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::EnginePayloadStatus >(arena); @@ -6812,17 +7504,13 @@ template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedRequest* Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedRequest >(arena); } -template<> PROTOBUF_NOINLINE ::remote::EnginePayloadAttributesV2* -Arena::CreateMaybeMessage< ::remote::EnginePayloadAttributesV2 >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EnginePayloadAttributesV2 >(arena); -} -template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedRequestV2* -Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedRequestV2 >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedRequestV2 >(arena); +template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedResponse* +Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedResponse >(arena); } -template<> PROTOBUF_NOINLINE ::remote::EngineForkChoiceUpdatedReply* -Arena::CreateMaybeMessage< ::remote::EngineForkChoiceUpdatedReply >(Arena* arena) { - return Arena::CreateMessageInternal< ::remote::EngineForkChoiceUpdatedReply >(arena); +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadResponse* +Arena::CreateMaybeMessage< ::remote::EngineGetPayloadResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadResponse >(arena); } template<> PROTOBUF_NOINLINE ::remote::ProtocolVersionRequest* Arena::CreateMaybeMessage< ::remote::ProtocolVersionRequest >(Arena* arena) { @@ -6888,6 +7576,18 @@ template<> PROTOBUF_NOINLINE ::remote::PendingBlockReply* Arena::CreateMaybeMessage< ::remote::PendingBlockReply >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::PendingBlockReply >(arena); } +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadBodiesByHashV1Request* +Arena::CreateMaybeMessage< ::remote::EngineGetPayloadBodiesByHashV1Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadBodiesByHashV1Request >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadBodiesByRangeV1Request* +Arena::CreateMaybeMessage< ::remote::EngineGetPayloadBodiesByRangeV1Request >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadBodiesByRangeV1Request >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::EngineGetPayloadBodiesV1Response* +Arena::CreateMaybeMessage< ::remote::EngineGetPayloadBodiesV1Response >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::EngineGetPayloadBodiesV1Response >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/silkworm/interfaces/3.21.4/remote/ethbackend.pb.h b/silkworm/interfaces/3.21.4/remote/ethbackend.pb.h index a984317fcc..26de8113f2 100644 --- a/silkworm/interfaces/3.21.4/remote/ethbackend.pb.h +++ b/silkworm/interfaces/3.21.4/remote/ethbackend.pb.h @@ -64,24 +64,33 @@ extern ClientVersionRequestDefaultTypeInternal _ClientVersionRequest_default_ins class EngineForkChoiceState; struct EngineForkChoiceStateDefaultTypeInternal; extern EngineForkChoiceStateDefaultTypeInternal _EngineForkChoiceState_default_instance_; -class EngineForkChoiceUpdatedReply; -struct EngineForkChoiceUpdatedReplyDefaultTypeInternal; -extern EngineForkChoiceUpdatedReplyDefaultTypeInternal _EngineForkChoiceUpdatedReply_default_instance_; class EngineForkChoiceUpdatedRequest; struct EngineForkChoiceUpdatedRequestDefaultTypeInternal; extern EngineForkChoiceUpdatedRequestDefaultTypeInternal _EngineForkChoiceUpdatedRequest_default_instance_; -class EngineForkChoiceUpdatedRequestV2; -struct EngineForkChoiceUpdatedRequestV2DefaultTypeInternal; -extern EngineForkChoiceUpdatedRequestV2DefaultTypeInternal _EngineForkChoiceUpdatedRequestV2_default_instance_; +class EngineForkChoiceUpdatedResponse; +struct EngineForkChoiceUpdatedResponseDefaultTypeInternal; +extern EngineForkChoiceUpdatedResponseDefaultTypeInternal _EngineForkChoiceUpdatedResponse_default_instance_; +class EngineGetBlobsBundleRequest; +struct EngineGetBlobsBundleRequestDefaultTypeInternal; +extern EngineGetBlobsBundleRequestDefaultTypeInternal _EngineGetBlobsBundleRequest_default_instance_; +class EngineGetPayloadBodiesByHashV1Request; +struct EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal; +extern EngineGetPayloadBodiesByHashV1RequestDefaultTypeInternal _EngineGetPayloadBodiesByHashV1Request_default_instance_; +class EngineGetPayloadBodiesByRangeV1Request; +struct EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal; +extern EngineGetPayloadBodiesByRangeV1RequestDefaultTypeInternal _EngineGetPayloadBodiesByRangeV1Request_default_instance_; +class EngineGetPayloadBodiesV1Response; +struct EngineGetPayloadBodiesV1ResponseDefaultTypeInternal; +extern EngineGetPayloadBodiesV1ResponseDefaultTypeInternal _EngineGetPayloadBodiesV1Response_default_instance_; class EngineGetPayloadRequest; struct EngineGetPayloadRequestDefaultTypeInternal; extern EngineGetPayloadRequestDefaultTypeInternal _EngineGetPayloadRequest_default_instance_; +class EngineGetPayloadResponse; +struct EngineGetPayloadResponseDefaultTypeInternal; +extern EngineGetPayloadResponseDefaultTypeInternal _EngineGetPayloadResponse_default_instance_; class EnginePayloadAttributes; struct EnginePayloadAttributesDefaultTypeInternal; extern EnginePayloadAttributesDefaultTypeInternal _EnginePayloadAttributes_default_instance_; -class EnginePayloadAttributesV2; -struct EnginePayloadAttributesV2DefaultTypeInternal; -extern EnginePayloadAttributesV2DefaultTypeInternal _EnginePayloadAttributesV2_default_instance_; class EnginePayloadStatus; struct EnginePayloadStatusDefaultTypeInternal; extern EnginePayloadStatusDefaultTypeInternal _EnginePayloadStatus_default_instance_; @@ -146,12 +155,15 @@ template<> ::remote::BlockRequest* Arena::CreateMaybeMessage<::remote::BlockRequ template<> ::remote::ClientVersionReply* Arena::CreateMaybeMessage<::remote::ClientVersionReply>(Arena*); template<> ::remote::ClientVersionRequest* Arena::CreateMaybeMessage<::remote::ClientVersionRequest>(Arena*); template<> ::remote::EngineForkChoiceState* Arena::CreateMaybeMessage<::remote::EngineForkChoiceState>(Arena*); -template<> ::remote::EngineForkChoiceUpdatedReply* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedReply>(Arena*); template<> ::remote::EngineForkChoiceUpdatedRequest* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedRequest>(Arena*); -template<> ::remote::EngineForkChoiceUpdatedRequestV2* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedRequestV2>(Arena*); +template<> ::remote::EngineForkChoiceUpdatedResponse* Arena::CreateMaybeMessage<::remote::EngineForkChoiceUpdatedResponse>(Arena*); +template<> ::remote::EngineGetBlobsBundleRequest* Arena::CreateMaybeMessage<::remote::EngineGetBlobsBundleRequest>(Arena*); +template<> ::remote::EngineGetPayloadBodiesByHashV1Request* Arena::CreateMaybeMessage<::remote::EngineGetPayloadBodiesByHashV1Request>(Arena*); +template<> ::remote::EngineGetPayloadBodiesByRangeV1Request* Arena::CreateMaybeMessage<::remote::EngineGetPayloadBodiesByRangeV1Request>(Arena*); +template<> ::remote::EngineGetPayloadBodiesV1Response* Arena::CreateMaybeMessage<::remote::EngineGetPayloadBodiesV1Response>(Arena*); template<> ::remote::EngineGetPayloadRequest* Arena::CreateMaybeMessage<::remote::EngineGetPayloadRequest>(Arena*); +template<> ::remote::EngineGetPayloadResponse* Arena::CreateMaybeMessage<::remote::EngineGetPayloadResponse>(Arena*); template<> ::remote::EnginePayloadAttributes* Arena::CreateMaybeMessage<::remote::EnginePayloadAttributes>(Arena*); -template<> ::remote::EnginePayloadAttributesV2* Arena::CreateMaybeMessage<::remote::EnginePayloadAttributesV2>(Arena*); template<> ::remote::EnginePayloadStatus* Arena::CreateMaybeMessage<::remote::EnginePayloadStatus>(Arena*); template<> ::remote::EtherbaseReply* Arena::CreateMaybeMessage<::remote::EtherbaseReply>(Arena*); template<> ::remote::EtherbaseRequest* Arena::CreateMaybeMessage<::remote::EtherbaseRequest>(Arena*); @@ -1186,6 +1198,154 @@ class EngineGetPayloadRequest final : }; // ------------------------------------------------------------------- +class EngineGetBlobsBundleRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetBlobsBundleRequest) */ { + public: + inline EngineGetBlobsBundleRequest() : EngineGetBlobsBundleRequest(nullptr) {} + ~EngineGetBlobsBundleRequest() override; + explicit PROTOBUF_CONSTEXPR EngineGetBlobsBundleRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EngineGetBlobsBundleRequest(const EngineGetBlobsBundleRequest& from); + EngineGetBlobsBundleRequest(EngineGetBlobsBundleRequest&& from) noexcept + : EngineGetBlobsBundleRequest() { + *this = ::std::move(from); + } + + inline EngineGetBlobsBundleRequest& operator=(const EngineGetBlobsBundleRequest& from) { + CopyFrom(from); + return *this; + } + inline EngineGetBlobsBundleRequest& operator=(EngineGetBlobsBundleRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const EngineGetBlobsBundleRequest& default_instance() { + return *internal_default_instance(); + } + static inline const EngineGetBlobsBundleRequest* internal_default_instance() { + return reinterpret_cast( + &_EngineGetBlobsBundleRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(EngineGetBlobsBundleRequest& a, EngineGetBlobsBundleRequest& b) { + a.Swap(&b); + } + inline void Swap(EngineGetBlobsBundleRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EngineGetBlobsBundleRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EngineGetBlobsBundleRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EngineGetBlobsBundleRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EngineGetBlobsBundleRequest& from) { + EngineGetBlobsBundleRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetBlobsBundleRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetBlobsBundleRequest"; + } + protected: + explicit EngineGetBlobsBundleRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPayloadIdFieldNumber = 1, + }; + // uint64 payloadId = 1; + void clear_payloadid(); + uint64_t payloadid() const; + void set_payloadid(uint64_t value); + private: + uint64_t _internal_payloadid() const; + void _internal_set_payloadid(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.EngineGetBlobsBundleRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t payloadid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; +// ------------------------------------------------------------------- + class EnginePayloadStatus final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EnginePayloadStatus) */ { public: @@ -1234,7 +1394,7 @@ class EnginePayloadStatus final : &_EnginePayloadStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(EnginePayloadStatus& a, EnginePayloadStatus& b) { a.Swap(&b); @@ -1418,7 +1578,7 @@ class EnginePayloadAttributes final : &_EnginePayloadAttributes_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(EnginePayloadAttributes& a, EnginePayloadAttributes& b) { a.Swap(&b); @@ -1491,11 +1651,31 @@ class EnginePayloadAttributes final : // accessors ------------------------------------------------------- enum : int { - kPrevRandaoFieldNumber = 2, - kSuggestedFeeRecipientFieldNumber = 3, - kTimestampFieldNumber = 1, + kWithdrawalsFieldNumber = 5, + kPrevRandaoFieldNumber = 3, + kSuggestedFeeRecipientFieldNumber = 4, + kTimestampFieldNumber = 2, + kVersionFieldNumber = 1, }; - // .types.H256 prevRandao = 2; + // repeated .types.Withdrawal withdrawals = 5; + int withdrawals_size() const; + private: + int _internal_withdrawals_size() const; + public: + void clear_withdrawals(); + ::types::Withdrawal* mutable_withdrawals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* + mutable_withdrawals(); + private: + const ::types::Withdrawal& _internal_withdrawals(int index) const; + ::types::Withdrawal* _internal_add_withdrawals(); + public: + const ::types::Withdrawal& withdrawals(int index) const; + ::types::Withdrawal* add_withdrawals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& + withdrawals() const; + + // .types.H256 prevRandao = 3; bool has_prevrandao() const; private: bool _internal_has_prevrandao() const; @@ -1513,7 +1693,7 @@ class EnginePayloadAttributes final : ::types::H256* prevrandao); ::types::H256* unsafe_arena_release_prevrandao(); - // .types.H160 suggestedFeeRecipient = 3; + // .types.H160 suggestedFeeRecipient = 4; bool has_suggestedfeerecipient() const; private: bool _internal_has_suggestedfeerecipient() const; @@ -1531,7 +1711,7 @@ class EnginePayloadAttributes final : ::types::H160* suggestedfeerecipient); ::types::H160* unsafe_arena_release_suggestedfeerecipient(); - // uint64 timestamp = 1; + // uint64 timestamp = 2; void clear_timestamp(); uint64_t timestamp() const; void set_timestamp(uint64_t value); @@ -1540,6 +1720,15 @@ class EnginePayloadAttributes final : void _internal_set_timestamp(uint64_t value); public: + // uint32 version = 1; + void clear_version(); + uint32_t version() const; + void set_version(uint32_t value); + private: + uint32_t _internal_version() const; + void _internal_set_version(uint32_t value); + public: + // @@protoc_insertion_point(class_scope:remote.EnginePayloadAttributes) private: class _Internal; @@ -1548,9 +1737,11 @@ class EnginePayloadAttributes final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; ::types::H256* prevrandao_; ::types::H160* suggestedfeerecipient_; uint64_t timestamp_; + uint32_t version_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1606,7 +1797,7 @@ class EngineForkChoiceState final : &_EngineForkChoiceState_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(EngineForkChoiceState& a, EngineForkChoiceState& b) { a.Swap(&b); @@ -1803,7 +1994,7 @@ class EngineForkChoiceUpdatedRequest final : &_EngineForkChoiceUpdatedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(EngineForkChoiceUpdatedRequest& a, EngineForkChoiceUpdatedRequest& b) { a.Swap(&b); @@ -1932,24 +2123,24 @@ class EngineForkChoiceUpdatedRequest final : }; // ------------------------------------------------------------------- -class EnginePayloadAttributesV2 final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EnginePayloadAttributesV2) */ { +class EngineForkChoiceUpdatedResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineForkChoiceUpdatedResponse) */ { public: - inline EnginePayloadAttributesV2() : EnginePayloadAttributesV2(nullptr) {} - ~EnginePayloadAttributesV2() override; - explicit PROTOBUF_CONSTEXPR EnginePayloadAttributesV2(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline EngineForkChoiceUpdatedResponse() : EngineForkChoiceUpdatedResponse(nullptr) {} + ~EngineForkChoiceUpdatedResponse() override; + explicit PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - EnginePayloadAttributesV2(const EnginePayloadAttributesV2& from); - EnginePayloadAttributesV2(EnginePayloadAttributesV2&& from) noexcept - : EnginePayloadAttributesV2() { + EngineForkChoiceUpdatedResponse(const EngineForkChoiceUpdatedResponse& from); + EngineForkChoiceUpdatedResponse(EngineForkChoiceUpdatedResponse&& from) noexcept + : EngineForkChoiceUpdatedResponse() { *this = ::std::move(from); } - inline EnginePayloadAttributesV2& operator=(const EnginePayloadAttributesV2& from) { + inline EngineForkChoiceUpdatedResponse& operator=(const EngineForkChoiceUpdatedResponse& from) { CopyFrom(from); return *this; } - inline EnginePayloadAttributesV2& operator=(EnginePayloadAttributesV2&& from) noexcept { + inline EngineForkChoiceUpdatedResponse& operator=(EngineForkChoiceUpdatedResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1972,20 +2163,20 @@ class EnginePayloadAttributesV2 final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EnginePayloadAttributesV2& default_instance() { + static const EngineForkChoiceUpdatedResponse& default_instance() { return *internal_default_instance(); } - static inline const EnginePayloadAttributesV2* internal_default_instance() { - return reinterpret_cast( - &_EnginePayloadAttributesV2_default_instance_); + static inline const EngineForkChoiceUpdatedResponse* internal_default_instance() { + return reinterpret_cast( + &_EngineForkChoiceUpdatedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; - friend void swap(EnginePayloadAttributesV2& a, EnginePayloadAttributesV2& b) { + friend void swap(EngineForkChoiceUpdatedResponse& a, EngineForkChoiceUpdatedResponse& b) { a.Swap(&b); } - inline void Swap(EnginePayloadAttributesV2* other) { + inline void Swap(EngineForkChoiceUpdatedResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1998,7 +2189,7 @@ class EnginePayloadAttributesV2 final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EnginePayloadAttributesV2* other) { + void UnsafeArenaSwap(EngineForkChoiceUpdatedResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2006,14 +2197,14 @@ class EnginePayloadAttributesV2 final : // implements Message ---------------------------------------------- - EnginePayloadAttributesV2* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EngineForkChoiceUpdatedResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const EnginePayloadAttributesV2& from); + void CopyFrom(const EngineForkChoiceUpdatedResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EnginePayloadAttributesV2& from) { - EnginePayloadAttributesV2::MergeImpl(*this, from); + void MergeFrom( const EngineForkChoiceUpdatedResponse& from) { + EngineForkChoiceUpdatedResponse::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2031,15 +2222,15 @@ class EnginePayloadAttributesV2 final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EnginePayloadAttributesV2* other); + void InternalSwap(EngineForkChoiceUpdatedResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.EnginePayloadAttributesV2"; + return "remote.EngineForkChoiceUpdatedResponse"; } protected: - explicit EnginePayloadAttributesV2(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit EngineForkChoiceUpdatedResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2053,46 +2244,37 @@ class EnginePayloadAttributesV2 final : // accessors ------------------------------------------------------- enum : int { - kWithdrawalsFieldNumber = 2, - kAttributesFieldNumber = 1, + kPayloadStatusFieldNumber = 1, + kPayloadIdFieldNumber = 2, }; - // repeated .types.Withdrawal withdrawals = 2; - int withdrawals_size() const; + // .remote.EnginePayloadStatus payloadStatus = 1; + bool has_payloadstatus() const; private: - int _internal_withdrawals_size() const; + bool _internal_has_payloadstatus() const; public: - void clear_withdrawals(); - ::types::Withdrawal* mutable_withdrawals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* - mutable_withdrawals(); + void clear_payloadstatus(); + const ::remote::EnginePayloadStatus& payloadstatus() const; + PROTOBUF_NODISCARD ::remote::EnginePayloadStatus* release_payloadstatus(); + ::remote::EnginePayloadStatus* mutable_payloadstatus(); + void set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus); private: - const ::types::Withdrawal& _internal_withdrawals(int index) const; - ::types::Withdrawal* _internal_add_withdrawals(); + const ::remote::EnginePayloadStatus& _internal_payloadstatus() const; + ::remote::EnginePayloadStatus* _internal_mutable_payloadstatus(); public: - const ::types::Withdrawal& withdrawals(int index) const; - ::types::Withdrawal* add_withdrawals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& - withdrawals() const; + void unsafe_arena_set_allocated_payloadstatus( + ::remote::EnginePayloadStatus* payloadstatus); + ::remote::EnginePayloadStatus* unsafe_arena_release_payloadstatus(); - // .remote.EnginePayloadAttributes attributes = 1; - bool has_attributes() const; - private: - bool _internal_has_attributes() const; - public: - void clear_attributes(); - const ::remote::EnginePayloadAttributes& attributes() const; - PROTOBUF_NODISCARD ::remote::EnginePayloadAttributes* release_attributes(); - ::remote::EnginePayloadAttributes* mutable_attributes(); - void set_allocated_attributes(::remote::EnginePayloadAttributes* attributes); + // uint64 payloadId = 2; + void clear_payloadid(); + uint64_t payloadid() const; + void set_payloadid(uint64_t value); private: - const ::remote::EnginePayloadAttributes& _internal_attributes() const; - ::remote::EnginePayloadAttributes* _internal_mutable_attributes(); + uint64_t _internal_payloadid() const; + void _internal_set_payloadid(uint64_t value); public: - void unsafe_arena_set_allocated_attributes( - ::remote::EnginePayloadAttributes* attributes); - ::remote::EnginePayloadAttributes* unsafe_arena_release_attributes(); - // @@protoc_insertion_point(class_scope:remote.EnginePayloadAttributesV2) + // @@protoc_insertion_point(class_scope:remote.EngineForkChoiceUpdatedResponse) private: class _Internal; @@ -2100,8 +2282,8 @@ class EnginePayloadAttributesV2 final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; - ::remote::EnginePayloadAttributes* attributes_; + ::remote::EnginePayloadStatus* payloadstatus_; + uint64_t payloadid_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2109,24 +2291,24 @@ class EnginePayloadAttributesV2 final : }; // ------------------------------------------------------------------- -class EngineForkChoiceUpdatedRequestV2 final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineForkChoiceUpdatedRequestV2) */ { +class EngineGetPayloadResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadResponse) */ { public: - inline EngineForkChoiceUpdatedRequestV2() : EngineForkChoiceUpdatedRequestV2(nullptr) {} - ~EngineForkChoiceUpdatedRequestV2() override; - explicit PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedRequestV2(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline EngineGetPayloadResponse() : EngineGetPayloadResponse(nullptr) {} + ~EngineGetPayloadResponse() override; + explicit PROTOBUF_CONSTEXPR EngineGetPayloadResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - EngineForkChoiceUpdatedRequestV2(const EngineForkChoiceUpdatedRequestV2& from); - EngineForkChoiceUpdatedRequestV2(EngineForkChoiceUpdatedRequestV2&& from) noexcept - : EngineForkChoiceUpdatedRequestV2() { + EngineGetPayloadResponse(const EngineGetPayloadResponse& from); + EngineGetPayloadResponse(EngineGetPayloadResponse&& from) noexcept + : EngineGetPayloadResponse() { *this = ::std::move(from); } - inline EngineForkChoiceUpdatedRequestV2& operator=(const EngineForkChoiceUpdatedRequestV2& from) { + inline EngineGetPayloadResponse& operator=(const EngineGetPayloadResponse& from) { CopyFrom(from); return *this; } - inline EngineForkChoiceUpdatedRequestV2& operator=(EngineForkChoiceUpdatedRequestV2&& from) noexcept { + inline EngineGetPayloadResponse& operator=(EngineGetPayloadResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2149,20 +2331,20 @@ class EngineForkChoiceUpdatedRequestV2 final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EngineForkChoiceUpdatedRequestV2& default_instance() { + static const EngineGetPayloadResponse& default_instance() { return *internal_default_instance(); } - static inline const EngineForkChoiceUpdatedRequestV2* internal_default_instance() { - return reinterpret_cast( - &_EngineForkChoiceUpdatedRequestV2_default_instance_); + static inline const EngineGetPayloadResponse* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; - friend void swap(EngineForkChoiceUpdatedRequestV2& a, EngineForkChoiceUpdatedRequestV2& b) { + friend void swap(EngineGetPayloadResponse& a, EngineGetPayloadResponse& b) { a.Swap(&b); } - inline void Swap(EngineForkChoiceUpdatedRequestV2* other) { + inline void Swap(EngineGetPayloadResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2175,7 +2357,7 @@ class EngineForkChoiceUpdatedRequestV2 final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EngineForkChoiceUpdatedRequestV2* other) { + void UnsafeArenaSwap(EngineGetPayloadResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2183,14 +2365,14 @@ class EngineForkChoiceUpdatedRequestV2 final : // implements Message ---------------------------------------------- - EngineForkChoiceUpdatedRequestV2* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EngineGetPayloadResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const EngineForkChoiceUpdatedRequestV2& from); + void CopyFrom(const EngineGetPayloadResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EngineForkChoiceUpdatedRequestV2& from) { - EngineForkChoiceUpdatedRequestV2::MergeImpl(*this, from); + void MergeFrom( const EngineGetPayloadResponse& from) { + EngineGetPayloadResponse::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2208,15 +2390,15 @@ class EngineForkChoiceUpdatedRequestV2 final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(EngineForkChoiceUpdatedRequestV2* other); + void InternalSwap(EngineGetPayloadResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.EngineForkChoiceUpdatedRequestV2"; + return "remote.EngineGetPayloadResponse"; } protected: - explicit EngineForkChoiceUpdatedRequestV2(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit EngineGetPayloadResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2230,46 +2412,46 @@ class EngineForkChoiceUpdatedRequestV2 final : // accessors ------------------------------------------------------- enum : int { - kForkchoiceStateFieldNumber = 1, - kPayloadAttributesFieldNumber = 2, + kExecutionPayloadFieldNumber = 1, + kBlockValueFieldNumber = 2, }; - // .remote.EngineForkChoiceState forkchoiceState = 1; - bool has_forkchoicestate() const; + // .types.ExecutionPayload executionPayload = 1; + bool has_executionpayload() const; private: - bool _internal_has_forkchoicestate() const; + bool _internal_has_executionpayload() const; public: - void clear_forkchoicestate(); - const ::remote::EngineForkChoiceState& forkchoicestate() const; - PROTOBUF_NODISCARD ::remote::EngineForkChoiceState* release_forkchoicestate(); - ::remote::EngineForkChoiceState* mutable_forkchoicestate(); - void set_allocated_forkchoicestate(::remote::EngineForkChoiceState* forkchoicestate); + void clear_executionpayload(); + const ::types::ExecutionPayload& executionpayload() const; + PROTOBUF_NODISCARD ::types::ExecutionPayload* release_executionpayload(); + ::types::ExecutionPayload* mutable_executionpayload(); + void set_allocated_executionpayload(::types::ExecutionPayload* executionpayload); private: - const ::remote::EngineForkChoiceState& _internal_forkchoicestate() const; - ::remote::EngineForkChoiceState* _internal_mutable_forkchoicestate(); + const ::types::ExecutionPayload& _internal_executionpayload() const; + ::types::ExecutionPayload* _internal_mutable_executionpayload(); public: - void unsafe_arena_set_allocated_forkchoicestate( - ::remote::EngineForkChoiceState* forkchoicestate); - ::remote::EngineForkChoiceState* unsafe_arena_release_forkchoicestate(); + void unsafe_arena_set_allocated_executionpayload( + ::types::ExecutionPayload* executionpayload); + ::types::ExecutionPayload* unsafe_arena_release_executionpayload(); - // .remote.EnginePayloadAttributesV2 payloadAttributes = 2; - bool has_payloadattributes() const; + // .types.H256 blockValue = 2; + bool has_blockvalue() const; private: - bool _internal_has_payloadattributes() const; + bool _internal_has_blockvalue() const; public: - void clear_payloadattributes(); - const ::remote::EnginePayloadAttributesV2& payloadattributes() const; - PROTOBUF_NODISCARD ::remote::EnginePayloadAttributesV2* release_payloadattributes(); - ::remote::EnginePayloadAttributesV2* mutable_payloadattributes(); - void set_allocated_payloadattributes(::remote::EnginePayloadAttributesV2* payloadattributes); + void clear_blockvalue(); + const ::types::H256& blockvalue() const; + PROTOBUF_NODISCARD ::types::H256* release_blockvalue(); + ::types::H256* mutable_blockvalue(); + void set_allocated_blockvalue(::types::H256* blockvalue); private: - const ::remote::EnginePayloadAttributesV2& _internal_payloadattributes() const; - ::remote::EnginePayloadAttributesV2* _internal_mutable_payloadattributes(); + const ::types::H256& _internal_blockvalue() const; + ::types::H256* _internal_mutable_blockvalue(); public: - void unsafe_arena_set_allocated_payloadattributes( - ::remote::EnginePayloadAttributesV2* payloadattributes); - ::remote::EnginePayloadAttributesV2* unsafe_arena_release_payloadattributes(); + void unsafe_arena_set_allocated_blockvalue( + ::types::H256* blockvalue); + ::types::H256* unsafe_arena_release_blockvalue(); - // @@protoc_insertion_point(class_scope:remote.EngineForkChoiceUpdatedRequestV2) + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadResponse) private: class _Internal; @@ -2277,8 +2459,8 @@ class EngineForkChoiceUpdatedRequestV2 final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::remote::EngineForkChoiceState* forkchoicestate_; - ::remote::EnginePayloadAttributesV2* payloadattributes_; + ::types::ExecutionPayload* executionpayload_; + ::types::H256* blockvalue_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2286,24 +2468,23 @@ class EngineForkChoiceUpdatedRequestV2 final : }; // ------------------------------------------------------------------- -class EngineForkChoiceUpdatedReply final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineForkChoiceUpdatedReply) */ { +class ProtocolVersionRequest final : + public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:remote.ProtocolVersionRequest) */ { public: - inline EngineForkChoiceUpdatedReply() : EngineForkChoiceUpdatedReply(nullptr) {} - ~EngineForkChoiceUpdatedReply() override; - explicit PROTOBUF_CONSTEXPR EngineForkChoiceUpdatedReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ProtocolVersionRequest() : ProtocolVersionRequest(nullptr) {} + explicit PROTOBUF_CONSTEXPR ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - EngineForkChoiceUpdatedReply(const EngineForkChoiceUpdatedReply& from); - EngineForkChoiceUpdatedReply(EngineForkChoiceUpdatedReply&& from) noexcept - : EngineForkChoiceUpdatedReply() { + ProtocolVersionRequest(const ProtocolVersionRequest& from); + ProtocolVersionRequest(ProtocolVersionRequest&& from) noexcept + : ProtocolVersionRequest() { *this = ::std::move(from); } - inline EngineForkChoiceUpdatedReply& operator=(const EngineForkChoiceUpdatedReply& from) { + inline ProtocolVersionRequest& operator=(const ProtocolVersionRequest& from) { CopyFrom(from); return *this; } - inline EngineForkChoiceUpdatedReply& operator=(EngineForkChoiceUpdatedReply&& from) noexcept { + inline ProtocolVersionRequest& operator=(ProtocolVersionRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2326,20 +2507,20 @@ class EngineForkChoiceUpdatedReply final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EngineForkChoiceUpdatedReply& default_instance() { + static const ProtocolVersionRequest& default_instance() { return *internal_default_instance(); } - static inline const EngineForkChoiceUpdatedReply* internal_default_instance() { - return reinterpret_cast( - &_EngineForkChoiceUpdatedReply_default_instance_); + static inline const ProtocolVersionRequest* internal_default_instance() { + return reinterpret_cast( + &_ProtocolVersionRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; - friend void swap(EngineForkChoiceUpdatedReply& a, EngineForkChoiceUpdatedReply& b) { + friend void swap(ProtocolVersionRequest& a, ProtocolVersionRequest& b) { a.Swap(&b); } - inline void Swap(EngineForkChoiceUpdatedReply* other) { + inline void Swap(ProtocolVersionRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2352,7 +2533,7 @@ class EngineForkChoiceUpdatedReply final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EngineForkChoiceUpdatedReply* other) { + void UnsafeArenaSwap(ProtocolVersionRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2360,183 +2541,16 @@ class EngineForkChoiceUpdatedReply final : // implements Message ---------------------------------------------- - EngineForkChoiceUpdatedReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ProtocolVersionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const EngineForkChoiceUpdatedReply& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EngineForkChoiceUpdatedReply& from) { - EngineForkChoiceUpdatedReply::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EngineForkChoiceUpdatedReply* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.EngineForkChoiceUpdatedReply"; - } - protected: - explicit EngineForkChoiceUpdatedReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPayloadStatusFieldNumber = 1, - kPayloadIdFieldNumber = 2, - }; - // .remote.EnginePayloadStatus payloadStatus = 1; - bool has_payloadstatus() const; - private: - bool _internal_has_payloadstatus() const; - public: - void clear_payloadstatus(); - const ::remote::EnginePayloadStatus& payloadstatus() const; - PROTOBUF_NODISCARD ::remote::EnginePayloadStatus* release_payloadstatus(); - ::remote::EnginePayloadStatus* mutable_payloadstatus(); - void set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus); - private: - const ::remote::EnginePayloadStatus& _internal_payloadstatus() const; - ::remote::EnginePayloadStatus* _internal_mutable_payloadstatus(); - public: - void unsafe_arena_set_allocated_payloadstatus( - ::remote::EnginePayloadStatus* payloadstatus); - ::remote::EnginePayloadStatus* unsafe_arena_release_payloadstatus(); - - // uint64 payloadId = 2; - void clear_payloadid(); - uint64_t payloadid() const; - void set_payloadid(uint64_t value); - private: - uint64_t _internal_payloadid() const; - void _internal_set_payloadid(uint64_t value); - public: - - // @@protoc_insertion_point(class_scope:remote.EngineForkChoiceUpdatedReply) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::remote::EnginePayloadStatus* payloadstatus_; - uint64_t payloadid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_remote_2fethbackend_2eproto; -}; -// ------------------------------------------------------------------- - -class ProtocolVersionRequest final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:remote.ProtocolVersionRequest) */ { - public: - inline ProtocolVersionRequest() : ProtocolVersionRequest(nullptr) {} - explicit PROTOBUF_CONSTEXPR ProtocolVersionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ProtocolVersionRequest(const ProtocolVersionRequest& from); - ProtocolVersionRequest(ProtocolVersionRequest&& from) noexcept - : ProtocolVersionRequest() { - *this = ::std::move(from); - } - - inline ProtocolVersionRequest& operator=(const ProtocolVersionRequest& from) { - CopyFrom(from); - return *this; - } - inline ProtocolVersionRequest& operator=(ProtocolVersionRequest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ProtocolVersionRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ProtocolVersionRequest* internal_default_instance() { - return reinterpret_cast( - &_ProtocolVersionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(ProtocolVersionRequest& a, ProtocolVersionRequest& b) { - a.Swap(&b); - } - inline void Swap(ProtocolVersionRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ProtocolVersionRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ProtocolVersionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ProtocolVersionRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ProtocolVersionRequest& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const ProtocolVersionRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const ProtocolVersionRequest& from) { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: @@ -5034,402 +5048,527 @@ class PendingBlockReply final : union { Impl_ _impl_; }; friend struct ::TableStruct_remote_2fethbackend_2eproto; }; -// =================================================================== - - -// =================================================================== +// ------------------------------------------------------------------- -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// EtherbaseRequest +class EngineGetPayloadBodiesByHashV1Request final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadBodiesByHashV1Request) */ { + public: + inline EngineGetPayloadBodiesByHashV1Request() : EngineGetPayloadBodiesByHashV1Request(nullptr) {} + ~EngineGetPayloadBodiesByHashV1Request() override; + explicit PROTOBUF_CONSTEXPR EngineGetPayloadBodiesByHashV1Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// ------------------------------------------------------------------- + EngineGetPayloadBodiesByHashV1Request(const EngineGetPayloadBodiesByHashV1Request& from); + EngineGetPayloadBodiesByHashV1Request(EngineGetPayloadBodiesByHashV1Request&& from) noexcept + : EngineGetPayloadBodiesByHashV1Request() { + *this = ::std::move(from); + } -// EtherbaseReply + inline EngineGetPayloadBodiesByHashV1Request& operator=(const EngineGetPayloadBodiesByHashV1Request& from) { + CopyFrom(from); + return *this; + } + inline EngineGetPayloadBodiesByHashV1Request& operator=(EngineGetPayloadBodiesByHashV1Request&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// .types.H160 address = 1; -inline bool EtherbaseReply::_internal_has_address() const { - return this != internal_default_instance() && _impl_.address_ != nullptr; -} -inline bool EtherbaseReply::has_address() const { - return _internal_has_address(); -} -inline const ::types::H160& EtherbaseReply::_internal_address() const { - const ::types::H160* p = _impl_.address_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H160_default_instance_); -} -inline const ::types::H160& EtherbaseReply::address() const { - // @@protoc_insertion_point(field_get:remote.EtherbaseReply.address) - return _internal_address(); -} -inline void EtherbaseReply::unsafe_arena_set_allocated_address( - ::types::H160* address) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } - _impl_.address_ = address; - if (address) { - - } else { - + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EtherbaseReply.address) -} -inline ::types::H160* EtherbaseReply::release_address() { - - ::types::H160* temp = _impl_.address_; - _impl_.address_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::types::H160* EtherbaseReply::unsafe_arena_release_address() { - // @@protoc_insertion_point(field_release:remote.EtherbaseReply.address) - - ::types::H160* temp = _impl_.address_; - _impl_.address_ = nullptr; - return temp; -} -inline ::types::H160* EtherbaseReply::_internal_mutable_address() { - - if (_impl_.address_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H160>(GetArenaForAllocation()); - _impl_.address_ = p; + static const EngineGetPayloadBodiesByHashV1Request& default_instance() { + return *internal_default_instance(); } - return _impl_.address_; -} -inline ::types::H160* EtherbaseReply::mutable_address() { - ::types::H160* _msg = _internal_mutable_address(); - // @@protoc_insertion_point(field_mutable:remote.EtherbaseReply.address) - return _msg; -} -inline void EtherbaseReply::set_allocated_address(::types::H160* address) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); + static inline const EngineGetPayloadBodiesByHashV1Request* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadBodiesByHashV1Request_default_instance_); } - if (address) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address)); - if (message_arena != submessage_arena) { - address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, address, submessage_arena); + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(EngineGetPayloadBodiesByHashV1Request& a, EngineGetPayloadBodiesByHashV1Request& b) { + a.Swap(&b); + } + inline void Swap(EngineGetPayloadBodiesByHashV1Request* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } - - } else { - } - _impl_.address_ = address; - // @@protoc_insertion_point(field_set_allocated:remote.EtherbaseReply.address) -} - -// ------------------------------------------------------------------- - -// NetVersionRequest + void UnsafeArenaSwap(EngineGetPayloadBodiesByHashV1Request* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } -// ------------------------------------------------------------------- + // implements Message ---------------------------------------------- -// NetVersionReply + EngineGetPayloadBodiesByHashV1Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EngineGetPayloadBodiesByHashV1Request& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EngineGetPayloadBodiesByHashV1Request& from) { + EngineGetPayloadBodiesByHashV1Request::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; -// uint64 id = 1; -inline void NetVersionReply::clear_id() { - _impl_.id_ = uint64_t{0u}; -} -inline uint64_t NetVersionReply::_internal_id() const { - return _impl_.id_; -} -inline uint64_t NetVersionReply::id() const { - // @@protoc_insertion_point(field_get:remote.NetVersionReply.id) - return _internal_id(); -} -inline void NetVersionReply::_internal_set_id(uint64_t value) { - - _impl_.id_ = value; -} -inline void NetVersionReply::set_id(uint64_t value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:remote.NetVersionReply.id) -} + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } -// ------------------------------------------------------------------- + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetPayloadBodiesByHashV1Request* other); -// NetPeerCountRequest + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetPayloadBodiesByHashV1Request"; + } + protected: + explicit EngineGetPayloadBodiesByHashV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: -// ------------------------------------------------------------------- + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; -// NetPeerCountReply + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; -// uint64 count = 1; -inline void NetPeerCountReply::clear_count() { - _impl_.count_ = uint64_t{0u}; -} -inline uint64_t NetPeerCountReply::_internal_count() const { - return _impl_.count_; -} -inline uint64_t NetPeerCountReply::count() const { - // @@protoc_insertion_point(field_get:remote.NetPeerCountReply.count) - return _internal_count(); -} -inline void NetPeerCountReply::_internal_set_count(uint64_t value) { - - _impl_.count_ = value; -} -inline void NetPeerCountReply::set_count(uint64_t value) { - _internal_set_count(value); - // @@protoc_insertion_point(field_set:remote.NetPeerCountReply.count) -} + // nested types ---------------------------------------------------- -// ------------------------------------------------------------------- + // accessors ------------------------------------------------------- -// EngineGetPayloadRequest + enum : int { + kHashesFieldNumber = 1, + }; + // repeated .types.H256 hashes = 1; + int hashes_size() const; + private: + int _internal_hashes_size() const; + public: + void clear_hashes(); + ::types::H256* mutable_hashes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >* + mutable_hashes(); + private: + const ::types::H256& _internal_hashes(int index) const; + ::types::H256* _internal_add_hashes(); + public: + const ::types::H256& hashes(int index) const; + ::types::H256* add_hashes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >& + hashes() const; -// uint64 payloadId = 1; -inline void EngineGetPayloadRequest::clear_payloadid() { - _impl_.payloadid_ = uint64_t{0u}; -} -inline uint64_t EngineGetPayloadRequest::_internal_payloadid() const { - return _impl_.payloadid_; -} -inline uint64_t EngineGetPayloadRequest::payloadid() const { - // @@protoc_insertion_point(field_get:remote.EngineGetPayloadRequest.payloadId) - return _internal_payloadid(); -} -inline void EngineGetPayloadRequest::_internal_set_payloadid(uint64_t value) { - - _impl_.payloadid_ = value; -} -inline void EngineGetPayloadRequest::set_payloadid(uint64_t value) { - _internal_set_payloadid(value); - // @@protoc_insertion_point(field_set:remote.EngineGetPayloadRequest.payloadId) -} + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadBodiesByHashV1Request) + private: + class _Internal; + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 > hashes_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; // ------------------------------------------------------------------- -// EnginePayloadStatus +class EngineGetPayloadBodiesByRangeV1Request final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadBodiesByRangeV1Request) */ { + public: + inline EngineGetPayloadBodiesByRangeV1Request() : EngineGetPayloadBodiesByRangeV1Request(nullptr) {} + ~EngineGetPayloadBodiesByRangeV1Request() override; + explicit PROTOBUF_CONSTEXPR EngineGetPayloadBodiesByRangeV1Request(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// .remote.EngineStatus status = 1; -inline void EnginePayloadStatus::clear_status() { - _impl_.status_ = 0; -} -inline ::remote::EngineStatus EnginePayloadStatus::_internal_status() const { - return static_cast< ::remote::EngineStatus >(_impl_.status_); -} -inline ::remote::EngineStatus EnginePayloadStatus::status() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadStatus.status) - return _internal_status(); -} -inline void EnginePayloadStatus::_internal_set_status(::remote::EngineStatus value) { - - _impl_.status_ = value; -} -inline void EnginePayloadStatus::set_status(::remote::EngineStatus value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:remote.EnginePayloadStatus.status) -} + EngineGetPayloadBodiesByRangeV1Request(const EngineGetPayloadBodiesByRangeV1Request& from); + EngineGetPayloadBodiesByRangeV1Request(EngineGetPayloadBodiesByRangeV1Request&& from) noexcept + : EngineGetPayloadBodiesByRangeV1Request() { + *this = ::std::move(from); + } -// .types.H256 latestValidHash = 2; -inline bool EnginePayloadStatus::_internal_has_latestvalidhash() const { - return this != internal_default_instance() && _impl_.latestvalidhash_ != nullptr; -} -inline bool EnginePayloadStatus::has_latestvalidhash() const { - return _internal_has_latestvalidhash(); -} -inline const ::types::H256& EnginePayloadStatus::_internal_latestvalidhash() const { - const ::types::H256* p = _impl_.latestvalidhash_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H256_default_instance_); -} -inline const ::types::H256& EnginePayloadStatus::latestvalidhash() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadStatus.latestValidHash) - return _internal_latestvalidhash(); -} -inline void EnginePayloadStatus::unsafe_arena_set_allocated_latestvalidhash( - ::types::H256* latestvalidhash) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.latestvalidhash_); + inline EngineGetPayloadBodiesByRangeV1Request& operator=(const EngineGetPayloadBodiesByRangeV1Request& from) { + CopyFrom(from); + return *this; } - _impl_.latestvalidhash_ = latestvalidhash; - if (latestvalidhash) { - - } else { - + inline EngineGetPayloadBodiesByRangeV1Request& operator=(EngineGetPayloadBodiesByRangeV1Request&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadStatus.latestValidHash) -} -inline ::types::H256* EnginePayloadStatus::release_latestvalidhash() { - - ::types::H256* temp = _impl_.latestvalidhash_; - _impl_.latestvalidhash_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::types::H256* EnginePayloadStatus::unsafe_arena_release_latestvalidhash() { - // @@protoc_insertion_point(field_release:remote.EnginePayloadStatus.latestValidHash) - - ::types::H256* temp = _impl_.latestvalidhash_; - _impl_.latestvalidhash_ = nullptr; - return temp; -} -inline ::types::H256* EnginePayloadStatus::_internal_mutable_latestvalidhash() { - - if (_impl_.latestvalidhash_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.latestvalidhash_ = p; + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - return _impl_.latestvalidhash_; -} -inline ::types::H256* EnginePayloadStatus::mutable_latestvalidhash() { - ::types::H256* _msg = _internal_mutable_latestvalidhash(); - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadStatus.latestValidHash) - return _msg; -} -inline void EnginePayloadStatus::set_allocated_latestvalidhash(::types::H256* latestvalidhash) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.latestvalidhash_); + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; } - if (latestvalidhash) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(latestvalidhash)); - if (message_arena != submessage_arena) { - latestvalidhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, latestvalidhash, submessage_arena); + static const EngineGetPayloadBodiesByRangeV1Request& default_instance() { + return *internal_default_instance(); + } + static inline const EngineGetPayloadBodiesByRangeV1Request* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadBodiesByRangeV1Request_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(EngineGetPayloadBodiesByRangeV1Request& a, EngineGetPayloadBodiesByRangeV1Request& b) { + a.Swap(&b); + } + inline void Swap(EngineGetPayloadBodiesByRangeV1Request* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } - - } else { - } - _impl_.latestvalidhash_ = latestvalidhash; - // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadStatus.latestValidHash) -} + void UnsafeArenaSwap(EngineGetPayloadBodiesByRangeV1Request* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } -// string validationError = 3; -inline void EnginePayloadStatus::clear_validationerror() { - _impl_.validationerror_.ClearToEmpty(); -} -inline const std::string& EnginePayloadStatus::validationerror() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadStatus.validationError) - return _internal_validationerror(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void EnginePayloadStatus::set_validationerror(ArgT0&& arg0, ArgT... args) { - - _impl_.validationerror_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.EnginePayloadStatus.validationError) -} -inline std::string* EnginePayloadStatus::mutable_validationerror() { - std::string* _s = _internal_mutable_validationerror(); - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadStatus.validationError) - return _s; -} -inline const std::string& EnginePayloadStatus::_internal_validationerror() const { - return _impl_.validationerror_.Get(); -} -inline void EnginePayloadStatus::_internal_set_validationerror(const std::string& value) { - - _impl_.validationerror_.Set(value, GetArenaForAllocation()); -} -inline std::string* EnginePayloadStatus::_internal_mutable_validationerror() { - - return _impl_.validationerror_.Mutable(GetArenaForAllocation()); -} -inline std::string* EnginePayloadStatus::release_validationerror() { - // @@protoc_insertion_point(field_release:remote.EnginePayloadStatus.validationError) - return _impl_.validationerror_.Release(); -} -inline void EnginePayloadStatus::set_allocated_validationerror(std::string* validationerror) { - if (validationerror != nullptr) { - - } else { - + // implements Message ---------------------------------------------- + + EngineGetPayloadBodiesByRangeV1Request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } - _impl_.validationerror_.SetAllocated(validationerror, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.validationerror_.IsDefault()) { - _impl_.validationerror_.Set("", GetArenaForAllocation()); + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EngineGetPayloadBodiesByRangeV1Request& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EngineGetPayloadBodiesByRangeV1Request& from) { + EngineGetPayloadBodiesByRangeV1Request::MergeImpl(*this, from); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadStatus.validationError) -} + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetPayloadBodiesByRangeV1Request* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetPayloadBodiesByRangeV1Request"; + } + protected: + explicit EngineGetPayloadBodiesByRangeV1Request(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- + + enum : int { + kStartFieldNumber = 1, + kCountFieldNumber = 2, + }; + // uint64 start = 1; + void clear_start(); + uint64_t start() const; + void set_start(uint64_t value); + private: + uint64_t _internal_start() const; + void _internal_set_start(uint64_t value); + public: + + // uint64 count = 2; + void clear_count(); + uint64_t count() const; + void set_count(uint64_t value); + private: + uint64_t _internal_count() const; + void _internal_set_count(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadBodiesByRangeV1Request) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t start_; + uint64_t count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; // ------------------------------------------------------------------- -// EnginePayloadAttributes +class EngineGetPayloadBodiesV1Response final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.EngineGetPayloadBodiesV1Response) */ { + public: + inline EngineGetPayloadBodiesV1Response() : EngineGetPayloadBodiesV1Response(nullptr) {} + ~EngineGetPayloadBodiesV1Response() override; + explicit PROTOBUF_CONSTEXPR EngineGetPayloadBodiesV1Response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// uint64 timestamp = 1; -inline void EnginePayloadAttributes::clear_timestamp() { - _impl_.timestamp_ = uint64_t{0u}; -} -inline uint64_t EnginePayloadAttributes::_internal_timestamp() const { - return _impl_.timestamp_; -} -inline uint64_t EnginePayloadAttributes::timestamp() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.timestamp) - return _internal_timestamp(); -} -inline void EnginePayloadAttributes::_internal_set_timestamp(uint64_t value) { - - _impl_.timestamp_ = value; -} -inline void EnginePayloadAttributes::set_timestamp(uint64_t value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:remote.EnginePayloadAttributes.timestamp) -} + EngineGetPayloadBodiesV1Response(const EngineGetPayloadBodiesV1Response& from); + EngineGetPayloadBodiesV1Response(EngineGetPayloadBodiesV1Response&& from) noexcept + : EngineGetPayloadBodiesV1Response() { + *this = ::std::move(from); + } -// .types.H256 prevRandao = 2; -inline bool EnginePayloadAttributes::_internal_has_prevrandao() const { - return this != internal_default_instance() && _impl_.prevrandao_ != nullptr; + inline EngineGetPayloadBodiesV1Response& operator=(const EngineGetPayloadBodiesV1Response& from) { + CopyFrom(from); + return *this; + } + inline EngineGetPayloadBodiesV1Response& operator=(EngineGetPayloadBodiesV1Response&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const EngineGetPayloadBodiesV1Response& default_instance() { + return *internal_default_instance(); + } + static inline const EngineGetPayloadBodiesV1Response* internal_default_instance() { + return reinterpret_cast( + &_EngineGetPayloadBodiesV1Response_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(EngineGetPayloadBodiesV1Response& a, EngineGetPayloadBodiesV1Response& b) { + a.Swap(&b); + } + inline void Swap(EngineGetPayloadBodiesV1Response* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EngineGetPayloadBodiesV1Response* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EngineGetPayloadBodiesV1Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const EngineGetPayloadBodiesV1Response& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const EngineGetPayloadBodiesV1Response& from) { + EngineGetPayloadBodiesV1Response::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EngineGetPayloadBodiesV1Response* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.EngineGetPayloadBodiesV1Response"; + } + protected: + explicit EngineGetPayloadBodiesV1Response(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBodiesFieldNumber = 1, + }; + // repeated .types.ExecutionPayloadBodyV1 bodies = 1; + int bodies_size() const; + private: + int _internal_bodies_size() const; + public: + void clear_bodies(); + ::types::ExecutionPayloadBodyV1* mutable_bodies(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >* + mutable_bodies(); + private: + const ::types::ExecutionPayloadBodyV1& _internal_bodies(int index) const; + ::types::ExecutionPayloadBodyV1* _internal_add_bodies(); + public: + const ::types::ExecutionPayloadBodyV1& bodies(int index) const; + ::types::ExecutionPayloadBodyV1* add_bodies(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >& + bodies() const; + + // @@protoc_insertion_point(class_scope:remote.EngineGetPayloadBodiesV1Response) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 > bodies_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fethbackend_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EtherbaseRequest + +// ------------------------------------------------------------------- + +// EtherbaseReply + +// .types.H160 address = 1; +inline bool EtherbaseReply::_internal_has_address() const { + return this != internal_default_instance() && _impl_.address_ != nullptr; } -inline bool EnginePayloadAttributes::has_prevrandao() const { - return _internal_has_prevrandao(); +inline bool EtherbaseReply::has_address() const { + return _internal_has_address(); } -inline const ::types::H256& EnginePayloadAttributes::_internal_prevrandao() const { - const ::types::H256* p = _impl_.prevrandao_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H256_default_instance_); +inline const ::types::H160& EtherbaseReply::_internal_address() const { + const ::types::H160* p = _impl_.address_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H160_default_instance_); } -inline const ::types::H256& EnginePayloadAttributes::prevrandao() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.prevRandao) - return _internal_prevrandao(); +inline const ::types::H160& EtherbaseReply::address() const { + // @@protoc_insertion_point(field_get:remote.EtherbaseReply.address) + return _internal_address(); } -inline void EnginePayloadAttributes::unsafe_arena_set_allocated_prevrandao( - ::types::H256* prevrandao) { +inline void EtherbaseReply::unsafe_arena_set_allocated_address( + ::types::H160* address) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prevrandao_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); } - _impl_.prevrandao_ = prevrandao; - if (prevrandao) { + _impl_.address_ = address; + if (address) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadAttributes.prevRandao) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EtherbaseReply.address) } -inline ::types::H256* EnginePayloadAttributes::release_prevrandao() { +inline ::types::H160* EtherbaseReply::release_address() { - ::types::H256* temp = _impl_.prevrandao_; - _impl_.prevrandao_ = nullptr; + ::types::H160* temp = _impl_.address_; + _impl_.address_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5441,169 +5580,208 @@ inline ::types::H256* EnginePayloadAttributes::release_prevrandao() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::types::H256* EnginePayloadAttributes::unsafe_arena_release_prevrandao() { - // @@protoc_insertion_point(field_release:remote.EnginePayloadAttributes.prevRandao) +inline ::types::H160* EtherbaseReply::unsafe_arena_release_address() { + // @@protoc_insertion_point(field_release:remote.EtherbaseReply.address) - ::types::H256* temp = _impl_.prevrandao_; - _impl_.prevrandao_ = nullptr; + ::types::H160* temp = _impl_.address_; + _impl_.address_ = nullptr; return temp; } -inline ::types::H256* EnginePayloadAttributes::_internal_mutable_prevrandao() { +inline ::types::H160* EtherbaseReply::_internal_mutable_address() { - if (_impl_.prevrandao_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.prevrandao_ = p; + if (_impl_.address_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H160>(GetArenaForAllocation()); + _impl_.address_ = p; } - return _impl_.prevrandao_; + return _impl_.address_; } -inline ::types::H256* EnginePayloadAttributes::mutable_prevrandao() { - ::types::H256* _msg = _internal_mutable_prevrandao(); - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributes.prevRandao) +inline ::types::H160* EtherbaseReply::mutable_address() { + ::types::H160* _msg = _internal_mutable_address(); + // @@protoc_insertion_point(field_mutable:remote.EtherbaseReply.address) return _msg; } -inline void EnginePayloadAttributes::set_allocated_prevrandao(::types::H256* prevrandao) { +inline void EtherbaseReply::set_allocated_address(::types::H160* address) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prevrandao_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); } - if (prevrandao) { + if (address) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(prevrandao)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address)); if (message_arena != submessage_arena) { - prevrandao = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, prevrandao, submessage_arena); + address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, address, submessage_arena); } } else { } - _impl_.prevrandao_ = prevrandao; - // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributes.prevRandao) + _impl_.address_ = address; + // @@protoc_insertion_point(field_set_allocated:remote.EtherbaseReply.address) } -// .types.H160 suggestedFeeRecipient = 3; -inline bool EnginePayloadAttributes::_internal_has_suggestedfeerecipient() const { - return this != internal_default_instance() && _impl_.suggestedfeerecipient_ != nullptr; +// ------------------------------------------------------------------- + +// NetVersionRequest + +// ------------------------------------------------------------------- + +// NetVersionReply + +// uint64 id = 1; +inline void NetVersionReply::clear_id() { + _impl_.id_ = uint64_t{0u}; } -inline bool EnginePayloadAttributes::has_suggestedfeerecipient() const { - return _internal_has_suggestedfeerecipient(); +inline uint64_t NetVersionReply::_internal_id() const { + return _impl_.id_; } -inline const ::types::H160& EnginePayloadAttributes::_internal_suggestedfeerecipient() const { - const ::types::H160* p = _impl_.suggestedfeerecipient_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H160_default_instance_); +inline uint64_t NetVersionReply::id() const { + // @@protoc_insertion_point(field_get:remote.NetVersionReply.id) + return _internal_id(); } -inline const ::types::H160& EnginePayloadAttributes::suggestedfeerecipient() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.suggestedFeeRecipient) - return _internal_suggestedfeerecipient(); +inline void NetVersionReply::_internal_set_id(uint64_t value) { + + _impl_.id_ = value; } -inline void EnginePayloadAttributes::unsafe_arena_set_allocated_suggestedfeerecipient( - ::types::H160* suggestedfeerecipient) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.suggestedfeerecipient_); - } - _impl_.suggestedfeerecipient_ = suggestedfeerecipient; - if (suggestedfeerecipient) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadAttributes.suggestedFeeRecipient) +inline void NetVersionReply::set_id(uint64_t value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:remote.NetVersionReply.id) } -inline ::types::H160* EnginePayloadAttributes::release_suggestedfeerecipient() { - - ::types::H160* temp = _impl_.suggestedfeerecipient_; - _impl_.suggestedfeerecipient_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + +// ------------------------------------------------------------------- + +// NetPeerCountRequest + +// ------------------------------------------------------------------- + +// NetPeerCountReply + +// uint64 count = 1; +inline void NetPeerCountReply::clear_count() { + _impl_.count_ = uint64_t{0u}; } -inline ::types::H160* EnginePayloadAttributes::unsafe_arena_release_suggestedfeerecipient() { - // @@protoc_insertion_point(field_release:remote.EnginePayloadAttributes.suggestedFeeRecipient) +inline uint64_t NetPeerCountReply::_internal_count() const { + return _impl_.count_; +} +inline uint64_t NetPeerCountReply::count() const { + // @@protoc_insertion_point(field_get:remote.NetPeerCountReply.count) + return _internal_count(); +} +inline void NetPeerCountReply::_internal_set_count(uint64_t value) { - ::types::H160* temp = _impl_.suggestedfeerecipient_; - _impl_.suggestedfeerecipient_ = nullptr; - return temp; + _impl_.count_ = value; } -inline ::types::H160* EnginePayloadAttributes::_internal_mutable_suggestedfeerecipient() { +inline void NetPeerCountReply::set_count(uint64_t value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:remote.NetPeerCountReply.count) +} + +// ------------------------------------------------------------------- + +// EngineGetPayloadRequest + +// uint64 payloadId = 1; +inline void EngineGetPayloadRequest::clear_payloadid() { + _impl_.payloadid_ = uint64_t{0u}; +} +inline uint64_t EngineGetPayloadRequest::_internal_payloadid() const { + return _impl_.payloadid_; +} +inline uint64_t EngineGetPayloadRequest::payloadid() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadRequest.payloadId) + return _internal_payloadid(); +} +inline void EngineGetPayloadRequest::_internal_set_payloadid(uint64_t value) { - if (_impl_.suggestedfeerecipient_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H160>(GetArenaForAllocation()); - _impl_.suggestedfeerecipient_ = p; - } - return _impl_.suggestedfeerecipient_; + _impl_.payloadid_ = value; } -inline ::types::H160* EnginePayloadAttributes::mutable_suggestedfeerecipient() { - ::types::H160* _msg = _internal_mutable_suggestedfeerecipient(); - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributes.suggestedFeeRecipient) - return _msg; +inline void EngineGetPayloadRequest::set_payloadid(uint64_t value) { + _internal_set_payloadid(value); + // @@protoc_insertion_point(field_set:remote.EngineGetPayloadRequest.payloadId) } -inline void EnginePayloadAttributes::set_allocated_suggestedfeerecipient(::types::H160* suggestedfeerecipient) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.suggestedfeerecipient_); - } - if (suggestedfeerecipient) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(suggestedfeerecipient)); - if (message_arena != submessage_arena) { - suggestedfeerecipient = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, suggestedfeerecipient, submessage_arena); - } - - } else { - - } - _impl_.suggestedfeerecipient_ = suggestedfeerecipient; - // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributes.suggestedFeeRecipient) + +// ------------------------------------------------------------------- + +// EngineGetBlobsBundleRequest + +// uint64 payloadId = 1; +inline void EngineGetBlobsBundleRequest::clear_payloadid() { + _impl_.payloadid_ = uint64_t{0u}; +} +inline uint64_t EngineGetBlobsBundleRequest::_internal_payloadid() const { + return _impl_.payloadid_; +} +inline uint64_t EngineGetBlobsBundleRequest::payloadid() const { + // @@protoc_insertion_point(field_get:remote.EngineGetBlobsBundleRequest.payloadId) + return _internal_payloadid(); +} +inline void EngineGetBlobsBundleRequest::_internal_set_payloadid(uint64_t value) { + + _impl_.payloadid_ = value; +} +inline void EngineGetBlobsBundleRequest::set_payloadid(uint64_t value) { + _internal_set_payloadid(value); + // @@protoc_insertion_point(field_set:remote.EngineGetBlobsBundleRequest.payloadId) } // ------------------------------------------------------------------- -// EngineForkChoiceState +// EnginePayloadStatus -// .types.H256 headBlockHash = 1; -inline bool EngineForkChoiceState::_internal_has_headblockhash() const { - return this != internal_default_instance() && _impl_.headblockhash_ != nullptr; +// .remote.EngineStatus status = 1; +inline void EnginePayloadStatus::clear_status() { + _impl_.status_ = 0; } -inline bool EngineForkChoiceState::has_headblockhash() const { - return _internal_has_headblockhash(); +inline ::remote::EngineStatus EnginePayloadStatus::_internal_status() const { + return static_cast< ::remote::EngineStatus >(_impl_.status_); } -inline const ::types::H256& EngineForkChoiceState::_internal_headblockhash() const { - const ::types::H256* p = _impl_.headblockhash_; +inline ::remote::EngineStatus EnginePayloadStatus::status() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadStatus.status) + return _internal_status(); +} +inline void EnginePayloadStatus::_internal_set_status(::remote::EngineStatus value) { + + _impl_.status_ = value; +} +inline void EnginePayloadStatus::set_status(::remote::EngineStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:remote.EnginePayloadStatus.status) +} + +// .types.H256 latestValidHash = 2; +inline bool EnginePayloadStatus::_internal_has_latestvalidhash() const { + return this != internal_default_instance() && _impl_.latestvalidhash_ != nullptr; +} +inline bool EnginePayloadStatus::has_latestvalidhash() const { + return _internal_has_latestvalidhash(); +} +inline const ::types::H256& EnginePayloadStatus::_internal_latestvalidhash() const { + const ::types::H256* p = _impl_.latestvalidhash_; return p != nullptr ? *p : reinterpret_cast( ::types::_H256_default_instance_); } -inline const ::types::H256& EngineForkChoiceState::headblockhash() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceState.headBlockHash) - return _internal_headblockhash(); +inline const ::types::H256& EnginePayloadStatus::latestvalidhash() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadStatus.latestValidHash) + return _internal_latestvalidhash(); } -inline void EngineForkChoiceState::unsafe_arena_set_allocated_headblockhash( - ::types::H256* headblockhash) { +inline void EnginePayloadStatus::unsafe_arena_set_allocated_latestvalidhash( + ::types::H256* latestvalidhash) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.headblockhash_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.latestvalidhash_); } - _impl_.headblockhash_ = headblockhash; - if (headblockhash) { + _impl_.latestvalidhash_ = latestvalidhash; + if (latestvalidhash) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceState.headBlockHash) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadStatus.latestValidHash) } -inline ::types::H256* EngineForkChoiceState::release_headblockhash() { +inline ::types::H256* EnginePayloadStatus::release_latestvalidhash() { - ::types::H256* temp = _impl_.headblockhash_; - _impl_.headblockhash_ = nullptr; + ::types::H256* temp = _impl_.latestvalidhash_; + _impl_.latestvalidhash_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5615,80 +5793,174 @@ inline ::types::H256* EngineForkChoiceState::release_headblockhash() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::types::H256* EngineForkChoiceState::unsafe_arena_release_headblockhash() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceState.headBlockHash) +inline ::types::H256* EnginePayloadStatus::unsafe_arena_release_latestvalidhash() { + // @@protoc_insertion_point(field_release:remote.EnginePayloadStatus.latestValidHash) - ::types::H256* temp = _impl_.headblockhash_; - _impl_.headblockhash_ = nullptr; + ::types::H256* temp = _impl_.latestvalidhash_; + _impl_.latestvalidhash_ = nullptr; return temp; } -inline ::types::H256* EngineForkChoiceState::_internal_mutable_headblockhash() { +inline ::types::H256* EnginePayloadStatus::_internal_mutable_latestvalidhash() { - if (_impl_.headblockhash_ == nullptr) { + if (_impl_.latestvalidhash_ == nullptr) { auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.headblockhash_ = p; + _impl_.latestvalidhash_ = p; } - return _impl_.headblockhash_; + return _impl_.latestvalidhash_; } -inline ::types::H256* EngineForkChoiceState::mutable_headblockhash() { - ::types::H256* _msg = _internal_mutable_headblockhash(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceState.headBlockHash) +inline ::types::H256* EnginePayloadStatus::mutable_latestvalidhash() { + ::types::H256* _msg = _internal_mutable_latestvalidhash(); + // @@protoc_insertion_point(field_mutable:remote.EnginePayloadStatus.latestValidHash) return _msg; } -inline void EngineForkChoiceState::set_allocated_headblockhash(::types::H256* headblockhash) { +inline void EnginePayloadStatus::set_allocated_latestvalidhash(::types::H256* latestvalidhash) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.headblockhash_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.latestvalidhash_); } - if (headblockhash) { + if (latestvalidhash) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(headblockhash)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(latestvalidhash)); if (message_arena != submessage_arena) { - headblockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, headblockhash, submessage_arena); + latestvalidhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, latestvalidhash, submessage_arena); } } else { } - _impl_.headblockhash_ = headblockhash; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceState.headBlockHash) + _impl_.latestvalidhash_ = latestvalidhash; + // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadStatus.latestValidHash) } -// .types.H256 safeBlockHash = 2; -inline bool EngineForkChoiceState::_internal_has_safeblockhash() const { - return this != internal_default_instance() && _impl_.safeblockhash_ != nullptr; +// string validationError = 3; +inline void EnginePayloadStatus::clear_validationerror() { + _impl_.validationerror_.ClearToEmpty(); } -inline bool EngineForkChoiceState::has_safeblockhash() const { - return _internal_has_safeblockhash(); +inline const std::string& EnginePayloadStatus::validationerror() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadStatus.validationError) + return _internal_validationerror(); } -inline const ::types::H256& EngineForkChoiceState::_internal_safeblockhash() const { - const ::types::H256* p = _impl_.safeblockhash_; +template +inline PROTOBUF_ALWAYS_INLINE +void EnginePayloadStatus::set_validationerror(ArgT0&& arg0, ArgT... args) { + + _impl_.validationerror_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.EnginePayloadStatus.validationError) +} +inline std::string* EnginePayloadStatus::mutable_validationerror() { + std::string* _s = _internal_mutable_validationerror(); + // @@protoc_insertion_point(field_mutable:remote.EnginePayloadStatus.validationError) + return _s; +} +inline const std::string& EnginePayloadStatus::_internal_validationerror() const { + return _impl_.validationerror_.Get(); +} +inline void EnginePayloadStatus::_internal_set_validationerror(const std::string& value) { + + _impl_.validationerror_.Set(value, GetArenaForAllocation()); +} +inline std::string* EnginePayloadStatus::_internal_mutable_validationerror() { + + return _impl_.validationerror_.Mutable(GetArenaForAllocation()); +} +inline std::string* EnginePayloadStatus::release_validationerror() { + // @@protoc_insertion_point(field_release:remote.EnginePayloadStatus.validationError) + return _impl_.validationerror_.Release(); +} +inline void EnginePayloadStatus::set_allocated_validationerror(std::string* validationerror) { + if (validationerror != nullptr) { + + } else { + + } + _impl_.validationerror_.SetAllocated(validationerror, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.validationerror_.IsDefault()) { + _impl_.validationerror_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadStatus.validationError) +} + +// ------------------------------------------------------------------- + +// EnginePayloadAttributes + +// uint32 version = 1; +inline void EnginePayloadAttributes::clear_version() { + _impl_.version_ = 0u; +} +inline uint32_t EnginePayloadAttributes::_internal_version() const { + return _impl_.version_; +} +inline uint32_t EnginePayloadAttributes::version() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.version) + return _internal_version(); +} +inline void EnginePayloadAttributes::_internal_set_version(uint32_t value) { + + _impl_.version_ = value; +} +inline void EnginePayloadAttributes::set_version(uint32_t value) { + _internal_set_version(value); + // @@protoc_insertion_point(field_set:remote.EnginePayloadAttributes.version) +} + +// uint64 timestamp = 2; +inline void EnginePayloadAttributes::clear_timestamp() { + _impl_.timestamp_ = uint64_t{0u}; +} +inline uint64_t EnginePayloadAttributes::_internal_timestamp() const { + return _impl_.timestamp_; +} +inline uint64_t EnginePayloadAttributes::timestamp() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.timestamp) + return _internal_timestamp(); +} +inline void EnginePayloadAttributes::_internal_set_timestamp(uint64_t value) { + + _impl_.timestamp_ = value; +} +inline void EnginePayloadAttributes::set_timestamp(uint64_t value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:remote.EnginePayloadAttributes.timestamp) +} + +// .types.H256 prevRandao = 3; +inline bool EnginePayloadAttributes::_internal_has_prevrandao() const { + return this != internal_default_instance() && _impl_.prevrandao_ != nullptr; +} +inline bool EnginePayloadAttributes::has_prevrandao() const { + return _internal_has_prevrandao(); +} +inline const ::types::H256& EnginePayloadAttributes::_internal_prevrandao() const { + const ::types::H256* p = _impl_.prevrandao_; return p != nullptr ? *p : reinterpret_cast( ::types::_H256_default_instance_); } -inline const ::types::H256& EngineForkChoiceState::safeblockhash() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceState.safeBlockHash) - return _internal_safeblockhash(); +inline const ::types::H256& EnginePayloadAttributes::prevrandao() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.prevRandao) + return _internal_prevrandao(); } -inline void EngineForkChoiceState::unsafe_arena_set_allocated_safeblockhash( - ::types::H256* safeblockhash) { +inline void EnginePayloadAttributes::unsafe_arena_set_allocated_prevrandao( + ::types::H256* prevrandao) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.safeblockhash_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prevrandao_); } - _impl_.safeblockhash_ = safeblockhash; - if (safeblockhash) { + _impl_.prevrandao_ = prevrandao; + if (prevrandao) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceState.safeBlockHash) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadAttributes.prevRandao) } -inline ::types::H256* EngineForkChoiceState::release_safeblockhash() { +inline ::types::H256* EnginePayloadAttributes::release_prevrandao() { - ::types::H256* temp = _impl_.safeblockhash_; - _impl_.safeblockhash_ = nullptr; + ::types::H256* temp = _impl_.prevrandao_; + _impl_.prevrandao_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5700,80 +5972,80 @@ inline ::types::H256* EngineForkChoiceState::release_safeblockhash() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::types::H256* EngineForkChoiceState::unsafe_arena_release_safeblockhash() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceState.safeBlockHash) +inline ::types::H256* EnginePayloadAttributes::unsafe_arena_release_prevrandao() { + // @@protoc_insertion_point(field_release:remote.EnginePayloadAttributes.prevRandao) - ::types::H256* temp = _impl_.safeblockhash_; - _impl_.safeblockhash_ = nullptr; + ::types::H256* temp = _impl_.prevrandao_; + _impl_.prevrandao_ = nullptr; return temp; } -inline ::types::H256* EngineForkChoiceState::_internal_mutable_safeblockhash() { +inline ::types::H256* EnginePayloadAttributes::_internal_mutable_prevrandao() { - if (_impl_.safeblockhash_ == nullptr) { + if (_impl_.prevrandao_ == nullptr) { auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.safeblockhash_ = p; + _impl_.prevrandao_ = p; } - return _impl_.safeblockhash_; + return _impl_.prevrandao_; } -inline ::types::H256* EngineForkChoiceState::mutable_safeblockhash() { - ::types::H256* _msg = _internal_mutable_safeblockhash(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceState.safeBlockHash) +inline ::types::H256* EnginePayloadAttributes::mutable_prevrandao() { + ::types::H256* _msg = _internal_mutable_prevrandao(); + // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributes.prevRandao) return _msg; } -inline void EngineForkChoiceState::set_allocated_safeblockhash(::types::H256* safeblockhash) { +inline void EnginePayloadAttributes::set_allocated_prevrandao(::types::H256* prevrandao) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.safeblockhash_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prevrandao_); } - if (safeblockhash) { + if (prevrandao) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(safeblockhash)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(prevrandao)); if (message_arena != submessage_arena) { - safeblockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, safeblockhash, submessage_arena); + prevrandao = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, prevrandao, submessage_arena); } } else { } - _impl_.safeblockhash_ = safeblockhash; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceState.safeBlockHash) + _impl_.prevrandao_ = prevrandao; + // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributes.prevRandao) } -// .types.H256 finalizedBlockHash = 3; -inline bool EngineForkChoiceState::_internal_has_finalizedblockhash() const { - return this != internal_default_instance() && _impl_.finalizedblockhash_ != nullptr; +// .types.H160 suggestedFeeRecipient = 4; +inline bool EnginePayloadAttributes::_internal_has_suggestedfeerecipient() const { + return this != internal_default_instance() && _impl_.suggestedfeerecipient_ != nullptr; } -inline bool EngineForkChoiceState::has_finalizedblockhash() const { - return _internal_has_finalizedblockhash(); +inline bool EnginePayloadAttributes::has_suggestedfeerecipient() const { + return _internal_has_suggestedfeerecipient(); } -inline const ::types::H256& EngineForkChoiceState::_internal_finalizedblockhash() const { - const ::types::H256* p = _impl_.finalizedblockhash_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H256_default_instance_); +inline const ::types::H160& EnginePayloadAttributes::_internal_suggestedfeerecipient() const { + const ::types::H160* p = _impl_.suggestedfeerecipient_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H160_default_instance_); } -inline const ::types::H256& EngineForkChoiceState::finalizedblockhash() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceState.finalizedBlockHash) - return _internal_finalizedblockhash(); +inline const ::types::H160& EnginePayloadAttributes::suggestedfeerecipient() const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.suggestedFeeRecipient) + return _internal_suggestedfeerecipient(); } -inline void EngineForkChoiceState::unsafe_arena_set_allocated_finalizedblockhash( - ::types::H256* finalizedblockhash) { +inline void EnginePayloadAttributes::unsafe_arena_set_allocated_suggestedfeerecipient( + ::types::H160* suggestedfeerecipient) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.finalizedblockhash_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.suggestedfeerecipient_); } - _impl_.finalizedblockhash_ = finalizedblockhash; - if (finalizedblockhash) { + _impl_.suggestedfeerecipient_ = suggestedfeerecipient; + if (suggestedfeerecipient) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceState.finalizedBlockHash) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadAttributes.suggestedFeeRecipient) } -inline ::types::H256* EngineForkChoiceState::release_finalizedblockhash() { +inline ::types::H160* EnginePayloadAttributes::release_suggestedfeerecipient() { - ::types::H256* temp = _impl_.finalizedblockhash_; - _impl_.finalizedblockhash_ = nullptr; + ::types::H160* temp = _impl_.suggestedfeerecipient_; + _impl_.suggestedfeerecipient_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5785,90 +6057,121 @@ inline ::types::H256* EngineForkChoiceState::release_finalizedblockhash() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::types::H256* EngineForkChoiceState::unsafe_arena_release_finalizedblockhash() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceState.finalizedBlockHash) +inline ::types::H160* EnginePayloadAttributes::unsafe_arena_release_suggestedfeerecipient() { + // @@protoc_insertion_point(field_release:remote.EnginePayloadAttributes.suggestedFeeRecipient) - ::types::H256* temp = _impl_.finalizedblockhash_; - _impl_.finalizedblockhash_ = nullptr; + ::types::H160* temp = _impl_.suggestedfeerecipient_; + _impl_.suggestedfeerecipient_ = nullptr; return temp; } -inline ::types::H256* EngineForkChoiceState::_internal_mutable_finalizedblockhash() { +inline ::types::H160* EnginePayloadAttributes::_internal_mutable_suggestedfeerecipient() { - if (_impl_.finalizedblockhash_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.finalizedblockhash_ = p; + if (_impl_.suggestedfeerecipient_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H160>(GetArenaForAllocation()); + _impl_.suggestedfeerecipient_ = p; } - return _impl_.finalizedblockhash_; + return _impl_.suggestedfeerecipient_; } -inline ::types::H256* EngineForkChoiceState::mutable_finalizedblockhash() { - ::types::H256* _msg = _internal_mutable_finalizedblockhash(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceState.finalizedBlockHash) +inline ::types::H160* EnginePayloadAttributes::mutable_suggestedfeerecipient() { + ::types::H160* _msg = _internal_mutable_suggestedfeerecipient(); + // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributes.suggestedFeeRecipient) return _msg; } -inline void EngineForkChoiceState::set_allocated_finalizedblockhash(::types::H256* finalizedblockhash) { +inline void EnginePayloadAttributes::set_allocated_suggestedfeerecipient(::types::H160* suggestedfeerecipient) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.finalizedblockhash_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.suggestedfeerecipient_); } - if (finalizedblockhash) { + if (suggestedfeerecipient) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(finalizedblockhash)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(suggestedfeerecipient)); if (message_arena != submessage_arena) { - finalizedblockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, finalizedblockhash, submessage_arena); + suggestedfeerecipient = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, suggestedfeerecipient, submessage_arena); } } else { } - _impl_.finalizedblockhash_ = finalizedblockhash; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceState.finalizedBlockHash) + _impl_.suggestedfeerecipient_ = suggestedfeerecipient; + // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributes.suggestedFeeRecipient) +} + +// repeated .types.Withdrawal withdrawals = 5; +inline int EnginePayloadAttributes::_internal_withdrawals_size() const { + return _impl_.withdrawals_.size(); +} +inline int EnginePayloadAttributes::withdrawals_size() const { + return _internal_withdrawals_size(); +} +inline ::types::Withdrawal* EnginePayloadAttributes::mutable_withdrawals(int index) { + // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributes.withdrawals) + return _impl_.withdrawals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* +EnginePayloadAttributes::mutable_withdrawals() { + // @@protoc_insertion_point(field_mutable_list:remote.EnginePayloadAttributes.withdrawals) + return &_impl_.withdrawals_; +} +inline const ::types::Withdrawal& EnginePayloadAttributes::_internal_withdrawals(int index) const { + return _impl_.withdrawals_.Get(index); +} +inline const ::types::Withdrawal& EnginePayloadAttributes::withdrawals(int index) const { + // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributes.withdrawals) + return _internal_withdrawals(index); +} +inline ::types::Withdrawal* EnginePayloadAttributes::_internal_add_withdrawals() { + return _impl_.withdrawals_.Add(); +} +inline ::types::Withdrawal* EnginePayloadAttributes::add_withdrawals() { + ::types::Withdrawal* _add = _internal_add_withdrawals(); + // @@protoc_insertion_point(field_add:remote.EnginePayloadAttributes.withdrawals) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& +EnginePayloadAttributes::withdrawals() const { + // @@protoc_insertion_point(field_list:remote.EnginePayloadAttributes.withdrawals) + return _impl_.withdrawals_; } // ------------------------------------------------------------------- -// EngineForkChoiceUpdatedRequest +// EngineForkChoiceState -// .remote.EngineForkChoiceState forkchoiceState = 1; -inline bool EngineForkChoiceUpdatedRequest::_internal_has_forkchoicestate() const { - return this != internal_default_instance() && _impl_.forkchoicestate_ != nullptr; -} -inline bool EngineForkChoiceUpdatedRequest::has_forkchoicestate() const { - return _internal_has_forkchoicestate(); +// .types.H256 headBlockHash = 1; +inline bool EngineForkChoiceState::_internal_has_headblockhash() const { + return this != internal_default_instance() && _impl_.headblockhash_ != nullptr; } -inline void EngineForkChoiceUpdatedRequest::clear_forkchoicestate() { - if (GetArenaForAllocation() == nullptr && _impl_.forkchoicestate_ != nullptr) { - delete _impl_.forkchoicestate_; - } - _impl_.forkchoicestate_ = nullptr; +inline bool EngineForkChoiceState::has_headblockhash() const { + return _internal_has_headblockhash(); } -inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequest::_internal_forkchoicestate() const { - const ::remote::EngineForkChoiceState* p = _impl_.forkchoicestate_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EngineForkChoiceState_default_instance_); +inline const ::types::H256& EngineForkChoiceState::_internal_headblockhash() const { + const ::types::H256* p = _impl_.headblockhash_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); } -inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequest::forkchoicestate() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) - return _internal_forkchoicestate(); +inline const ::types::H256& EngineForkChoiceState::headblockhash() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceState.headBlockHash) + return _internal_headblockhash(); } -inline void EngineForkChoiceUpdatedRequest::unsafe_arena_set_allocated_forkchoicestate( - ::remote::EngineForkChoiceState* forkchoicestate) { +inline void EngineForkChoiceState::unsafe_arena_set_allocated_headblockhash( + ::types::H256* headblockhash) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.forkchoicestate_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.headblockhash_); } - _impl_.forkchoicestate_ = forkchoicestate; - if (forkchoicestate) { + _impl_.headblockhash_ = headblockhash; + if (headblockhash) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceState.headBlockHash) } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::release_forkchoicestate() { +inline ::types::H256* EngineForkChoiceState::release_headblockhash() { - ::remote::EngineForkChoiceState* temp = _impl_.forkchoicestate_; - _impl_.forkchoicestate_ = nullptr; + ::types::H256* temp = _impl_.headblockhash_; + _impl_.headblockhash_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5880,85 +6183,80 @@ inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::release_ #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::unsafe_arena_release_forkchoicestate() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) +inline ::types::H256* EngineForkChoiceState::unsafe_arena_release_headblockhash() { + // @@protoc_insertion_point(field_release:remote.EngineForkChoiceState.headBlockHash) - ::remote::EngineForkChoiceState* temp = _impl_.forkchoicestate_; - _impl_.forkchoicestate_ = nullptr; + ::types::H256* temp = _impl_.headblockhash_; + _impl_.headblockhash_ = nullptr; return temp; } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::_internal_mutable_forkchoicestate() { +inline ::types::H256* EngineForkChoiceState::_internal_mutable_headblockhash() { - if (_impl_.forkchoicestate_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EngineForkChoiceState>(GetArenaForAllocation()); - _impl_.forkchoicestate_ = p; + if (_impl_.headblockhash_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.headblockhash_ = p; } - return _impl_.forkchoicestate_; + return _impl_.headblockhash_; } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::mutable_forkchoicestate() { - ::remote::EngineForkChoiceState* _msg = _internal_mutable_forkchoicestate(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) +inline ::types::H256* EngineForkChoiceState::mutable_headblockhash() { + ::types::H256* _msg = _internal_mutable_headblockhash(); + // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceState.headBlockHash) return _msg; } -inline void EngineForkChoiceUpdatedRequest::set_allocated_forkchoicestate(::remote::EngineForkChoiceState* forkchoicestate) { +inline void EngineForkChoiceState::set_allocated_headblockhash(::types::H256* headblockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete _impl_.forkchoicestate_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.headblockhash_); } - if (forkchoicestate) { + if (headblockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(forkchoicestate); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(headblockhash)); if (message_arena != submessage_arena) { - forkchoicestate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, forkchoicestate, submessage_arena); + headblockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, headblockhash, submessage_arena); } } else { } - _impl_.forkchoicestate_ = forkchoicestate; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) + _impl_.headblockhash_ = headblockhash; + // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceState.headBlockHash) } -// .remote.EnginePayloadAttributes payloadAttributes = 2; -inline bool EngineForkChoiceUpdatedRequest::_internal_has_payloadattributes() const { - return this != internal_default_instance() && _impl_.payloadattributes_ != nullptr; -} -inline bool EngineForkChoiceUpdatedRequest::has_payloadattributes() const { - return _internal_has_payloadattributes(); +// .types.H256 safeBlockHash = 2; +inline bool EngineForkChoiceState::_internal_has_safeblockhash() const { + return this != internal_default_instance() && _impl_.safeblockhash_ != nullptr; } -inline void EngineForkChoiceUpdatedRequest::clear_payloadattributes() { - if (GetArenaForAllocation() == nullptr && _impl_.payloadattributes_ != nullptr) { - delete _impl_.payloadattributes_; - } - _impl_.payloadattributes_ = nullptr; +inline bool EngineForkChoiceState::has_safeblockhash() const { + return _internal_has_safeblockhash(); } -inline const ::remote::EnginePayloadAttributes& EngineForkChoiceUpdatedRequest::_internal_payloadattributes() const { - const ::remote::EnginePayloadAttributes* p = _impl_.payloadattributes_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EnginePayloadAttributes_default_instance_); +inline const ::types::H256& EngineForkChoiceState::_internal_safeblockhash() const { + const ::types::H256* p = _impl_.safeblockhash_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); } -inline const ::remote::EnginePayloadAttributes& EngineForkChoiceUpdatedRequest::payloadattributes() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) - return _internal_payloadattributes(); +inline const ::types::H256& EngineForkChoiceState::safeblockhash() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceState.safeBlockHash) + return _internal_safeblockhash(); } -inline void EngineForkChoiceUpdatedRequest::unsafe_arena_set_allocated_payloadattributes( - ::remote::EnginePayloadAttributes* payloadattributes) { +inline void EngineForkChoiceState::unsafe_arena_set_allocated_safeblockhash( + ::types::H256* safeblockhash) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.payloadattributes_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.safeblockhash_); } - _impl_.payloadattributes_ = payloadattributes; - if (payloadattributes) { + _impl_.safeblockhash_ = safeblockhash; + if (safeblockhash) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceState.safeBlockHash) } -inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::release_payloadattributes() { +inline ::types::H256* EngineForkChoiceState::release_safeblockhash() { - ::remote::EnginePayloadAttributes* temp = _impl_.payloadattributes_; - _impl_.payloadattributes_ = nullptr; + ::types::H256* temp = _impl_.safeblockhash_; + _impl_.safeblockhash_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -5970,89 +6268,80 @@ inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::releas #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::unsafe_arena_release_payloadattributes() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) +inline ::types::H256* EngineForkChoiceState::unsafe_arena_release_safeblockhash() { + // @@protoc_insertion_point(field_release:remote.EngineForkChoiceState.safeBlockHash) - ::remote::EnginePayloadAttributes* temp = _impl_.payloadattributes_; - _impl_.payloadattributes_ = nullptr; + ::types::H256* temp = _impl_.safeblockhash_; + _impl_.safeblockhash_ = nullptr; return temp; } -inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::_internal_mutable_payloadattributes() { +inline ::types::H256* EngineForkChoiceState::_internal_mutable_safeblockhash() { - if (_impl_.payloadattributes_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EnginePayloadAttributes>(GetArenaForAllocation()); - _impl_.payloadattributes_ = p; + if (_impl_.safeblockhash_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.safeblockhash_ = p; } - return _impl_.payloadattributes_; + return _impl_.safeblockhash_; } -inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::mutable_payloadattributes() { - ::remote::EnginePayloadAttributes* _msg = _internal_mutable_payloadattributes(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) +inline ::types::H256* EngineForkChoiceState::mutable_safeblockhash() { + ::types::H256* _msg = _internal_mutable_safeblockhash(); + // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceState.safeBlockHash) return _msg; } -inline void EngineForkChoiceUpdatedRequest::set_allocated_payloadattributes(::remote::EnginePayloadAttributes* payloadattributes) { +inline void EngineForkChoiceState::set_allocated_safeblockhash(::types::H256* safeblockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete _impl_.payloadattributes_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.safeblockhash_); } - if (payloadattributes) { + if (safeblockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(payloadattributes); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(safeblockhash)); if (message_arena != submessage_arena) { - payloadattributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payloadattributes, submessage_arena); + safeblockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, safeblockhash, submessage_arena); } } else { } - _impl_.payloadattributes_ = payloadattributes; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) + _impl_.safeblockhash_ = safeblockhash; + // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceState.safeBlockHash) } -// ------------------------------------------------------------------- - -// EnginePayloadAttributesV2 - -// .remote.EnginePayloadAttributes attributes = 1; -inline bool EnginePayloadAttributesV2::_internal_has_attributes() const { - return this != internal_default_instance() && _impl_.attributes_ != nullptr; -} -inline bool EnginePayloadAttributesV2::has_attributes() const { - return _internal_has_attributes(); +// .types.H256 finalizedBlockHash = 3; +inline bool EngineForkChoiceState::_internal_has_finalizedblockhash() const { + return this != internal_default_instance() && _impl_.finalizedblockhash_ != nullptr; } -inline void EnginePayloadAttributesV2::clear_attributes() { - if (GetArenaForAllocation() == nullptr && _impl_.attributes_ != nullptr) { - delete _impl_.attributes_; - } - _impl_.attributes_ = nullptr; +inline bool EngineForkChoiceState::has_finalizedblockhash() const { + return _internal_has_finalizedblockhash(); } -inline const ::remote::EnginePayloadAttributes& EnginePayloadAttributesV2::_internal_attributes() const { - const ::remote::EnginePayloadAttributes* p = _impl_.attributes_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EnginePayloadAttributes_default_instance_); +inline const ::types::H256& EngineForkChoiceState::_internal_finalizedblockhash() const { + const ::types::H256* p = _impl_.finalizedblockhash_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); } -inline const ::remote::EnginePayloadAttributes& EnginePayloadAttributesV2::attributes() const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributesV2.attributes) - return _internal_attributes(); +inline const ::types::H256& EngineForkChoiceState::finalizedblockhash() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceState.finalizedBlockHash) + return _internal_finalizedblockhash(); } -inline void EnginePayloadAttributesV2::unsafe_arena_set_allocated_attributes( - ::remote::EnginePayloadAttributes* attributes) { +inline void EngineForkChoiceState::unsafe_arena_set_allocated_finalizedblockhash( + ::types::H256* finalizedblockhash) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attributes_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.finalizedblockhash_); } - _impl_.attributes_ = attributes; - if (attributes) { + _impl_.finalizedblockhash_ = finalizedblockhash; + if (finalizedblockhash) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EnginePayloadAttributesV2.attributes) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceState.finalizedBlockHash) } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::release_attributes() { +inline ::types::H256* EngineForkChoiceState::release_finalizedblockhash() { - ::remote::EnginePayloadAttributes* temp = _impl_.attributes_; - _impl_.attributes_ = nullptr; + ::types::H256* temp = _impl_.finalizedblockhash_; + _impl_.finalizedblockhash_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -6064,110 +6353,74 @@ inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::release_att #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::unsafe_arena_release_attributes() { - // @@protoc_insertion_point(field_release:remote.EnginePayloadAttributesV2.attributes) +inline ::types::H256* EngineForkChoiceState::unsafe_arena_release_finalizedblockhash() { + // @@protoc_insertion_point(field_release:remote.EngineForkChoiceState.finalizedBlockHash) - ::remote::EnginePayloadAttributes* temp = _impl_.attributes_; - _impl_.attributes_ = nullptr; + ::types::H256* temp = _impl_.finalizedblockhash_; + _impl_.finalizedblockhash_ = nullptr; return temp; } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::_internal_mutable_attributes() { +inline ::types::H256* EngineForkChoiceState::_internal_mutable_finalizedblockhash() { - if (_impl_.attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EnginePayloadAttributes>(GetArenaForAllocation()); - _impl_.attributes_ = p; + if (_impl_.finalizedblockhash_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.finalizedblockhash_ = p; } - return _impl_.attributes_; + return _impl_.finalizedblockhash_; } -inline ::remote::EnginePayloadAttributes* EnginePayloadAttributesV2::mutable_attributes() { - ::remote::EnginePayloadAttributes* _msg = _internal_mutable_attributes(); - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributesV2.attributes) +inline ::types::H256* EngineForkChoiceState::mutable_finalizedblockhash() { + ::types::H256* _msg = _internal_mutable_finalizedblockhash(); + // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceState.finalizedBlockHash) return _msg; } -inline void EnginePayloadAttributesV2::set_allocated_attributes(::remote::EnginePayloadAttributes* attributes) { +inline void EngineForkChoiceState::set_allocated_finalizedblockhash(::types::H256* finalizedblockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete _impl_.attributes_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.finalizedblockhash_); } - if (attributes) { + if (finalizedblockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(attributes); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(finalizedblockhash)); if (message_arena != submessage_arena) { - attributes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); + finalizedblockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, finalizedblockhash, submessage_arena); } } else { } - _impl_.attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:remote.EnginePayloadAttributesV2.attributes) -} - -// repeated .types.Withdrawal withdrawals = 2; -inline int EnginePayloadAttributesV2::_internal_withdrawals_size() const { - return _impl_.withdrawals_.size(); -} -inline int EnginePayloadAttributesV2::withdrawals_size() const { - return _internal_withdrawals_size(); -} -inline ::types::Withdrawal* EnginePayloadAttributesV2::mutable_withdrawals(int index) { - // @@protoc_insertion_point(field_mutable:remote.EnginePayloadAttributesV2.withdrawals) - return _impl_.withdrawals_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* -EnginePayloadAttributesV2::mutable_withdrawals() { - // @@protoc_insertion_point(field_mutable_list:remote.EnginePayloadAttributesV2.withdrawals) - return &_impl_.withdrawals_; -} -inline const ::types::Withdrawal& EnginePayloadAttributesV2::_internal_withdrawals(int index) const { - return _impl_.withdrawals_.Get(index); -} -inline const ::types::Withdrawal& EnginePayloadAttributesV2::withdrawals(int index) const { - // @@protoc_insertion_point(field_get:remote.EnginePayloadAttributesV2.withdrawals) - return _internal_withdrawals(index); -} -inline ::types::Withdrawal* EnginePayloadAttributesV2::_internal_add_withdrawals() { - return _impl_.withdrawals_.Add(); -} -inline ::types::Withdrawal* EnginePayloadAttributesV2::add_withdrawals() { - ::types::Withdrawal* _add = _internal_add_withdrawals(); - // @@protoc_insertion_point(field_add:remote.EnginePayloadAttributesV2.withdrawals) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& -EnginePayloadAttributesV2::withdrawals() const { - // @@protoc_insertion_point(field_list:remote.EnginePayloadAttributesV2.withdrawals) - return _impl_.withdrawals_; + _impl_.finalizedblockhash_ = finalizedblockhash; + // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceState.finalizedBlockHash) } // ------------------------------------------------------------------- -// EngineForkChoiceUpdatedRequestV2 +// EngineForkChoiceUpdatedRequest // .remote.EngineForkChoiceState forkchoiceState = 1; -inline bool EngineForkChoiceUpdatedRequestV2::_internal_has_forkchoicestate() const { +inline bool EngineForkChoiceUpdatedRequest::_internal_has_forkchoicestate() const { return this != internal_default_instance() && _impl_.forkchoicestate_ != nullptr; } -inline bool EngineForkChoiceUpdatedRequestV2::has_forkchoicestate() const { +inline bool EngineForkChoiceUpdatedRequest::has_forkchoicestate() const { return _internal_has_forkchoicestate(); } -inline void EngineForkChoiceUpdatedRequestV2::clear_forkchoicestate() { +inline void EngineForkChoiceUpdatedRequest::clear_forkchoicestate() { if (GetArenaForAllocation() == nullptr && _impl_.forkchoicestate_ != nullptr) { delete _impl_.forkchoicestate_; } _impl_.forkchoicestate_ = nullptr; } -inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequestV2::_internal_forkchoicestate() const { +inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequest::_internal_forkchoicestate() const { const ::remote::EngineForkChoiceState* p = _impl_.forkchoicestate_; return p != nullptr ? *p : reinterpret_cast( ::remote::_EngineForkChoiceState_default_instance_); } -inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequestV2::forkchoicestate() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) +inline const ::remote::EngineForkChoiceState& EngineForkChoiceUpdatedRequest::forkchoicestate() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) return _internal_forkchoicestate(); } -inline void EngineForkChoiceUpdatedRequestV2::unsafe_arena_set_allocated_forkchoicestate( +inline void EngineForkChoiceUpdatedRequest::unsafe_arena_set_allocated_forkchoicestate( ::remote::EngineForkChoiceState* forkchoicestate) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.forkchoicestate_); @@ -6178,9 +6431,9 @@ inline void EngineForkChoiceUpdatedRequestV2::unsafe_arena_set_allocated_forkcho } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::release_forkchoicestate() { +inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::release_forkchoicestate() { ::remote::EngineForkChoiceState* temp = _impl_.forkchoicestate_; _impl_.forkchoicestate_ = nullptr; @@ -6195,14 +6448,14 @@ inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::releas #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::unsafe_arena_release_forkchoicestate() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) +inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::unsafe_arena_release_forkchoicestate() { + // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) ::remote::EngineForkChoiceState* temp = _impl_.forkchoicestate_; _impl_.forkchoicestate_ = nullptr; return temp; } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::_internal_mutable_forkchoicestate() { +inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::_internal_mutable_forkchoicestate() { if (_impl_.forkchoicestate_ == nullptr) { auto* p = CreateMaybeMessage<::remote::EngineForkChoiceState>(GetArenaForAllocation()); @@ -6210,12 +6463,12 @@ inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::_inter } return _impl_.forkchoicestate_; } -inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequestV2::mutable_forkchoicestate() { +inline ::remote::EngineForkChoiceState* EngineForkChoiceUpdatedRequest::mutable_forkchoicestate() { ::remote::EngineForkChoiceState* _msg = _internal_mutable_forkchoicestate(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) + // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) return _msg; } -inline void EngineForkChoiceUpdatedRequestV2::set_allocated_forkchoicestate(::remote::EngineForkChoiceState* forkchoicestate) { +inline void EngineForkChoiceUpdatedRequest::set_allocated_forkchoicestate(::remote::EngineForkChoiceState* forkchoicestate) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete _impl_.forkchoicestate_; @@ -6232,33 +6485,33 @@ inline void EngineForkChoiceUpdatedRequestV2::set_allocated_forkchoicestate(::re } _impl_.forkchoicestate_ = forkchoicestate; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.forkchoiceState) + // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequest.forkchoiceState) } -// .remote.EnginePayloadAttributesV2 payloadAttributes = 2; -inline bool EngineForkChoiceUpdatedRequestV2::_internal_has_payloadattributes() const { +// .remote.EnginePayloadAttributes payloadAttributes = 2; +inline bool EngineForkChoiceUpdatedRequest::_internal_has_payloadattributes() const { return this != internal_default_instance() && _impl_.payloadattributes_ != nullptr; } -inline bool EngineForkChoiceUpdatedRequestV2::has_payloadattributes() const { +inline bool EngineForkChoiceUpdatedRequest::has_payloadattributes() const { return _internal_has_payloadattributes(); } -inline void EngineForkChoiceUpdatedRequestV2::clear_payloadattributes() { +inline void EngineForkChoiceUpdatedRequest::clear_payloadattributes() { if (GetArenaForAllocation() == nullptr && _impl_.payloadattributes_ != nullptr) { delete _impl_.payloadattributes_; } _impl_.payloadattributes_ = nullptr; } -inline const ::remote::EnginePayloadAttributesV2& EngineForkChoiceUpdatedRequestV2::_internal_payloadattributes() const { - const ::remote::EnginePayloadAttributesV2* p = _impl_.payloadattributes_; - return p != nullptr ? *p : reinterpret_cast( - ::remote::_EnginePayloadAttributesV2_default_instance_); +inline const ::remote::EnginePayloadAttributes& EngineForkChoiceUpdatedRequest::_internal_payloadattributes() const { + const ::remote::EnginePayloadAttributes* p = _impl_.payloadattributes_; + return p != nullptr ? *p : reinterpret_cast( + ::remote::_EnginePayloadAttributes_default_instance_); } -inline const ::remote::EnginePayloadAttributesV2& EngineForkChoiceUpdatedRequestV2::payloadattributes() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) +inline const ::remote::EnginePayloadAttributes& EngineForkChoiceUpdatedRequest::payloadattributes() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) return _internal_payloadattributes(); } -inline void EngineForkChoiceUpdatedRequestV2::unsafe_arena_set_allocated_payloadattributes( - ::remote::EnginePayloadAttributesV2* payloadattributes) { +inline void EngineForkChoiceUpdatedRequest::unsafe_arena_set_allocated_payloadattributes( + ::remote::EnginePayloadAttributes* payloadattributes) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.payloadattributes_); } @@ -6268,11 +6521,11 @@ inline void EngineForkChoiceUpdatedRequestV2::unsafe_arena_set_allocated_payload } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::release_payloadattributes() { +inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::release_payloadattributes() { - ::remote::EnginePayloadAttributesV2* temp = _impl_.payloadattributes_; + ::remote::EnginePayloadAttributes* temp = _impl_.payloadattributes_; _impl_.payloadattributes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); @@ -6285,27 +6538,27 @@ inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::re #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::unsafe_arena_release_payloadattributes() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) +inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::unsafe_arena_release_payloadattributes() { + // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) - ::remote::EnginePayloadAttributesV2* temp = _impl_.payloadattributes_; + ::remote::EnginePayloadAttributes* temp = _impl_.payloadattributes_; _impl_.payloadattributes_ = nullptr; return temp; } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::_internal_mutable_payloadattributes() { +inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::_internal_mutable_payloadattributes() { if (_impl_.payloadattributes_ == nullptr) { - auto* p = CreateMaybeMessage<::remote::EnginePayloadAttributesV2>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::remote::EnginePayloadAttributes>(GetArenaForAllocation()); _impl_.payloadattributes_ = p; } return _impl_.payloadattributes_; } -inline ::remote::EnginePayloadAttributesV2* EngineForkChoiceUpdatedRequestV2::mutable_payloadattributes() { - ::remote::EnginePayloadAttributesV2* _msg = _internal_mutable_payloadattributes(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) +inline ::remote::EnginePayloadAttributes* EngineForkChoiceUpdatedRequest::mutable_payloadattributes() { + ::remote::EnginePayloadAttributes* _msg = _internal_mutable_payloadattributes(); + // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) return _msg; } -inline void EngineForkChoiceUpdatedRequestV2::set_allocated_payloadattributes(::remote::EnginePayloadAttributesV2* payloadattributes) { +inline void EngineForkChoiceUpdatedRequest::set_allocated_payloadattributes(::remote::EnginePayloadAttributes* payloadattributes) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete _impl_.payloadattributes_; @@ -6322,36 +6575,36 @@ inline void EngineForkChoiceUpdatedRequestV2::set_allocated_payloadattributes(:: } _impl_.payloadattributes_ = payloadattributes; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequestV2.payloadAttributes) + // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedRequest.payloadAttributes) } // ------------------------------------------------------------------- -// EngineForkChoiceUpdatedReply +// EngineForkChoiceUpdatedResponse // .remote.EnginePayloadStatus payloadStatus = 1; -inline bool EngineForkChoiceUpdatedReply::_internal_has_payloadstatus() const { +inline bool EngineForkChoiceUpdatedResponse::_internal_has_payloadstatus() const { return this != internal_default_instance() && _impl_.payloadstatus_ != nullptr; } -inline bool EngineForkChoiceUpdatedReply::has_payloadstatus() const { +inline bool EngineForkChoiceUpdatedResponse::has_payloadstatus() const { return _internal_has_payloadstatus(); } -inline void EngineForkChoiceUpdatedReply::clear_payloadstatus() { +inline void EngineForkChoiceUpdatedResponse::clear_payloadstatus() { if (GetArenaForAllocation() == nullptr && _impl_.payloadstatus_ != nullptr) { delete _impl_.payloadstatus_; } _impl_.payloadstatus_ = nullptr; } -inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedReply::_internal_payloadstatus() const { +inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedResponse::_internal_payloadstatus() const { const ::remote::EnginePayloadStatus* p = _impl_.payloadstatus_; return p != nullptr ? *p : reinterpret_cast( ::remote::_EnginePayloadStatus_default_instance_); } -inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedReply::payloadstatus() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedReply.payloadStatus) +inline const ::remote::EnginePayloadStatus& EngineForkChoiceUpdatedResponse::payloadstatus() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedResponse.payloadStatus) return _internal_payloadstatus(); } -inline void EngineForkChoiceUpdatedReply::unsafe_arena_set_allocated_payloadstatus( +inline void EngineForkChoiceUpdatedResponse::unsafe_arena_set_allocated_payloadstatus( ::remote::EnginePayloadStatus* payloadstatus) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.payloadstatus_); @@ -6362,9 +6615,9 @@ inline void EngineForkChoiceUpdatedReply::unsafe_arena_set_allocated_payloadstat } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedReply.payloadStatus) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineForkChoiceUpdatedResponse.payloadStatus) } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::release_payloadstatus() { +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::release_payloadstatus() { ::remote::EnginePayloadStatus* temp = _impl_.payloadstatus_; _impl_.payloadstatus_ = nullptr; @@ -6379,14 +6632,14 @@ inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::release_payl #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::unsafe_arena_release_payloadstatus() { - // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedReply.payloadStatus) +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::unsafe_arena_release_payloadstatus() { + // @@protoc_insertion_point(field_release:remote.EngineForkChoiceUpdatedResponse.payloadStatus) ::remote::EnginePayloadStatus* temp = _impl_.payloadstatus_; _impl_.payloadstatus_ = nullptr; return temp; } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::_internal_mutable_payloadstatus() { +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::_internal_mutable_payloadstatus() { if (_impl_.payloadstatus_ == nullptr) { auto* p = CreateMaybeMessage<::remote::EnginePayloadStatus>(GetArenaForAllocation()); @@ -6394,12 +6647,12 @@ inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::_internal_mu } return _impl_.payloadstatus_; } -inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedReply::mutable_payloadstatus() { +inline ::remote::EnginePayloadStatus* EngineForkChoiceUpdatedResponse::mutable_payloadstatus() { ::remote::EnginePayloadStatus* _msg = _internal_mutable_payloadstatus(); - // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedReply.payloadStatus) + // @@protoc_insertion_point(field_mutable:remote.EngineForkChoiceUpdatedResponse.payloadStatus) return _msg; } -inline void EngineForkChoiceUpdatedReply::set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus) { +inline void EngineForkChoiceUpdatedResponse::set_allocated_payloadstatus(::remote::EnginePayloadStatus* payloadstatus) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete _impl_.payloadstatus_; @@ -6416,27 +6669,201 @@ inline void EngineForkChoiceUpdatedReply::set_allocated_payloadstatus(::remote:: } _impl_.payloadstatus_ = payloadstatus; - // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedReply.payloadStatus) + // @@protoc_insertion_point(field_set_allocated:remote.EngineForkChoiceUpdatedResponse.payloadStatus) } // uint64 payloadId = 2; -inline void EngineForkChoiceUpdatedReply::clear_payloadid() { +inline void EngineForkChoiceUpdatedResponse::clear_payloadid() { _impl_.payloadid_ = uint64_t{0u}; } -inline uint64_t EngineForkChoiceUpdatedReply::_internal_payloadid() const { +inline uint64_t EngineForkChoiceUpdatedResponse::_internal_payloadid() const { return _impl_.payloadid_; } -inline uint64_t EngineForkChoiceUpdatedReply::payloadid() const { - // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedReply.payloadId) +inline uint64_t EngineForkChoiceUpdatedResponse::payloadid() const { + // @@protoc_insertion_point(field_get:remote.EngineForkChoiceUpdatedResponse.payloadId) return _internal_payloadid(); } -inline void EngineForkChoiceUpdatedReply::_internal_set_payloadid(uint64_t value) { +inline void EngineForkChoiceUpdatedResponse::_internal_set_payloadid(uint64_t value) { _impl_.payloadid_ = value; } -inline void EngineForkChoiceUpdatedReply::set_payloadid(uint64_t value) { +inline void EngineForkChoiceUpdatedResponse::set_payloadid(uint64_t value) { _internal_set_payloadid(value); - // @@protoc_insertion_point(field_set:remote.EngineForkChoiceUpdatedReply.payloadId) + // @@protoc_insertion_point(field_set:remote.EngineForkChoiceUpdatedResponse.payloadId) +} + +// ------------------------------------------------------------------- + +// EngineGetPayloadResponse + +// .types.ExecutionPayload executionPayload = 1; +inline bool EngineGetPayloadResponse::_internal_has_executionpayload() const { + return this != internal_default_instance() && _impl_.executionpayload_ != nullptr; +} +inline bool EngineGetPayloadResponse::has_executionpayload() const { + return _internal_has_executionpayload(); +} +inline const ::types::ExecutionPayload& EngineGetPayloadResponse::_internal_executionpayload() const { + const ::types::ExecutionPayload* p = _impl_.executionpayload_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_ExecutionPayload_default_instance_); +} +inline const ::types::ExecutionPayload& EngineGetPayloadResponse::executionpayload() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadResponse.executionPayload) + return _internal_executionpayload(); +} +inline void EngineGetPayloadResponse::unsafe_arena_set_allocated_executionpayload( + ::types::ExecutionPayload* executionpayload) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.executionpayload_); + } + _impl_.executionpayload_ = executionpayload; + if (executionpayload) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineGetPayloadResponse.executionPayload) +} +inline ::types::ExecutionPayload* EngineGetPayloadResponse::release_executionpayload() { + + ::types::ExecutionPayload* temp = _impl_.executionpayload_; + _impl_.executionpayload_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::types::ExecutionPayload* EngineGetPayloadResponse::unsafe_arena_release_executionpayload() { + // @@protoc_insertion_point(field_release:remote.EngineGetPayloadResponse.executionPayload) + + ::types::ExecutionPayload* temp = _impl_.executionpayload_; + _impl_.executionpayload_ = nullptr; + return temp; +} +inline ::types::ExecutionPayload* EngineGetPayloadResponse::_internal_mutable_executionpayload() { + + if (_impl_.executionpayload_ == nullptr) { + auto* p = CreateMaybeMessage<::types::ExecutionPayload>(GetArenaForAllocation()); + _impl_.executionpayload_ = p; + } + return _impl_.executionpayload_; +} +inline ::types::ExecutionPayload* EngineGetPayloadResponse::mutable_executionpayload() { + ::types::ExecutionPayload* _msg = _internal_mutable_executionpayload(); + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadResponse.executionPayload) + return _msg; +} +inline void EngineGetPayloadResponse::set_allocated_executionpayload(::types::ExecutionPayload* executionpayload) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.executionpayload_); + } + if (executionpayload) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(executionpayload)); + if (message_arena != submessage_arena) { + executionpayload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, executionpayload, submessage_arena); + } + + } else { + + } + _impl_.executionpayload_ = executionpayload; + // @@protoc_insertion_point(field_set_allocated:remote.EngineGetPayloadResponse.executionPayload) +} + +// .types.H256 blockValue = 2; +inline bool EngineGetPayloadResponse::_internal_has_blockvalue() const { + return this != internal_default_instance() && _impl_.blockvalue_ != nullptr; +} +inline bool EngineGetPayloadResponse::has_blockvalue() const { + return _internal_has_blockvalue(); +} +inline const ::types::H256& EngineGetPayloadResponse::_internal_blockvalue() const { + const ::types::H256* p = _impl_.blockvalue_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& EngineGetPayloadResponse::blockvalue() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadResponse.blockValue) + return _internal_blockvalue(); +} +inline void EngineGetPayloadResponse::unsafe_arena_set_allocated_blockvalue( + ::types::H256* blockvalue) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.blockvalue_); + } + _impl_.blockvalue_ = blockvalue; + if (blockvalue) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.EngineGetPayloadResponse.blockValue) +} +inline ::types::H256* EngineGetPayloadResponse::release_blockvalue() { + + ::types::H256* temp = _impl_.blockvalue_; + _impl_.blockvalue_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::types::H256* EngineGetPayloadResponse::unsafe_arena_release_blockvalue() { + // @@protoc_insertion_point(field_release:remote.EngineGetPayloadResponse.blockValue) + + ::types::H256* temp = _impl_.blockvalue_; + _impl_.blockvalue_ = nullptr; + return temp; +} +inline ::types::H256* EngineGetPayloadResponse::_internal_mutable_blockvalue() { + + if (_impl_.blockvalue_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.blockvalue_ = p; + } + return _impl_.blockvalue_; +} +inline ::types::H256* EngineGetPayloadResponse::mutable_blockvalue() { + ::types::H256* _msg = _internal_mutable_blockvalue(); + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadResponse.blockValue) + return _msg; +} +inline void EngineGetPayloadResponse::set_allocated_blockvalue(::types::H256* blockvalue) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.blockvalue_); + } + if (blockvalue) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockvalue)); + if (message_arena != submessage_arena) { + blockvalue = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, blockvalue, submessage_arena); + } + + } else { + + } + _impl_.blockvalue_ = blockvalue; + // @@protoc_insertion_point(field_set_allocated:remote.EngineGetPayloadResponse.blockValue) } // ------------------------------------------------------------------- @@ -7653,6 +8080,132 @@ inline void PendingBlockReply::set_allocated_blockrlp(std::string* blockrlp) { // @@protoc_insertion_point(field_set_allocated:remote.PendingBlockReply.blockRlp) } +// ------------------------------------------------------------------- + +// EngineGetPayloadBodiesByHashV1Request + +// repeated .types.H256 hashes = 1; +inline int EngineGetPayloadBodiesByHashV1Request::_internal_hashes_size() const { + return _impl_.hashes_.size(); +} +inline int EngineGetPayloadBodiesByHashV1Request::hashes_size() const { + return _internal_hashes_size(); +} +inline ::types::H256* EngineGetPayloadBodiesByHashV1Request::mutable_hashes(int index) { + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return _impl_.hashes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >* +EngineGetPayloadBodiesByHashV1Request::mutable_hashes() { + // @@protoc_insertion_point(field_mutable_list:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return &_impl_.hashes_; +} +inline const ::types::H256& EngineGetPayloadBodiesByHashV1Request::_internal_hashes(int index) const { + return _impl_.hashes_.Get(index); +} +inline const ::types::H256& EngineGetPayloadBodiesByHashV1Request::hashes(int index) const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return _internal_hashes(index); +} +inline ::types::H256* EngineGetPayloadBodiesByHashV1Request::_internal_add_hashes() { + return _impl_.hashes_.Add(); +} +inline ::types::H256* EngineGetPayloadBodiesByHashV1Request::add_hashes() { + ::types::H256* _add = _internal_add_hashes(); + // @@protoc_insertion_point(field_add:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::H256 >& +EngineGetPayloadBodiesByHashV1Request::hashes() const { + // @@protoc_insertion_point(field_list:remote.EngineGetPayloadBodiesByHashV1Request.hashes) + return _impl_.hashes_; +} + +// ------------------------------------------------------------------- + +// EngineGetPayloadBodiesByRangeV1Request + +// uint64 start = 1; +inline void EngineGetPayloadBodiesByRangeV1Request::clear_start() { + _impl_.start_ = uint64_t{0u}; +} +inline uint64_t EngineGetPayloadBodiesByRangeV1Request::_internal_start() const { + return _impl_.start_; +} +inline uint64_t EngineGetPayloadBodiesByRangeV1Request::start() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesByRangeV1Request.start) + return _internal_start(); +} +inline void EngineGetPayloadBodiesByRangeV1Request::_internal_set_start(uint64_t value) { + + _impl_.start_ = value; +} +inline void EngineGetPayloadBodiesByRangeV1Request::set_start(uint64_t value) { + _internal_set_start(value); + // @@protoc_insertion_point(field_set:remote.EngineGetPayloadBodiesByRangeV1Request.start) +} + +// uint64 count = 2; +inline void EngineGetPayloadBodiesByRangeV1Request::clear_count() { + _impl_.count_ = uint64_t{0u}; +} +inline uint64_t EngineGetPayloadBodiesByRangeV1Request::_internal_count() const { + return _impl_.count_; +} +inline uint64_t EngineGetPayloadBodiesByRangeV1Request::count() const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesByRangeV1Request.count) + return _internal_count(); +} +inline void EngineGetPayloadBodiesByRangeV1Request::_internal_set_count(uint64_t value) { + + _impl_.count_ = value; +} +inline void EngineGetPayloadBodiesByRangeV1Request::set_count(uint64_t value) { + _internal_set_count(value); + // @@protoc_insertion_point(field_set:remote.EngineGetPayloadBodiesByRangeV1Request.count) +} + +// ------------------------------------------------------------------- + +// EngineGetPayloadBodiesV1Response + +// repeated .types.ExecutionPayloadBodyV1 bodies = 1; +inline int EngineGetPayloadBodiesV1Response::_internal_bodies_size() const { + return _impl_.bodies_.size(); +} +inline int EngineGetPayloadBodiesV1Response::bodies_size() const { + return _internal_bodies_size(); +} +inline ::types::ExecutionPayloadBodyV1* EngineGetPayloadBodiesV1Response::mutable_bodies(int index) { + // @@protoc_insertion_point(field_mutable:remote.EngineGetPayloadBodiesV1Response.bodies) + return _impl_.bodies_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >* +EngineGetPayloadBodiesV1Response::mutable_bodies() { + // @@protoc_insertion_point(field_mutable_list:remote.EngineGetPayloadBodiesV1Response.bodies) + return &_impl_.bodies_; +} +inline const ::types::ExecutionPayloadBodyV1& EngineGetPayloadBodiesV1Response::_internal_bodies(int index) const { + return _impl_.bodies_.Get(index); +} +inline const ::types::ExecutionPayloadBodyV1& EngineGetPayloadBodiesV1Response::bodies(int index) const { + // @@protoc_insertion_point(field_get:remote.EngineGetPayloadBodiesV1Response.bodies) + return _internal_bodies(index); +} +inline ::types::ExecutionPayloadBodyV1* EngineGetPayloadBodiesV1Response::_internal_add_bodies() { + return _impl_.bodies_.Add(); +} +inline ::types::ExecutionPayloadBodyV1* EngineGetPayloadBodiesV1Response::add_bodies() { + ::types::ExecutionPayloadBodyV1* _add = _internal_add_bodies(); + // @@protoc_insertion_point(field_add:remote.EngineGetPayloadBodiesV1Response.bodies) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::ExecutionPayloadBodyV1 >& +EngineGetPayloadBodiesV1Response::bodies() const { + // @@protoc_insertion_point(field_list:remote.EngineGetPayloadBodiesV1Response.bodies) + return _impl_.bodies_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -7714,6 +8267,12 @@ inline void PendingBlockReply::set_allocated_blockrlp(std::string* blockrlp) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/silkworm/interfaces/3.21.4/remote/ethbackend_mock.grpc.pb.h b/silkworm/interfaces/3.21.4/remote/ethbackend_mock.grpc.pb.h index 15f1c2f174..5e1ef46cfa 100644 --- a/silkworm/interfaces/3.21.4/remote/ethbackend_mock.grpc.pb.h +++ b/silkworm/interfaces/3.21.4/remote/ethbackend_mock.grpc.pb.h @@ -21,24 +21,24 @@ class MockETHBACKENDStub : public ETHBACKEND::StubInterface { MOCK_METHOD3(NetPeerCount, ::grpc::Status(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::remote::NetPeerCountReply* response)); MOCK_METHOD3(AsyncNetPeerCountRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>*(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncNetPeerCountRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::NetPeerCountReply>*(::grpc::ClientContext* context, const ::remote::NetPeerCountRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineNewPayloadV1, ::grpc::Status(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response)); - MOCK_METHOD3(AsyncEngineNewPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineNewPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineNewPayloadV2, ::grpc::Status(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::remote::EnginePayloadStatus* response)); - MOCK_METHOD3(AsyncEngineNewPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineNewPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayloadV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineForkChoiceUpdatedV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedReply* response)); - MOCK_METHOD3(AsyncEngineForkChoiceUpdatedV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineForkChoiceUpdatedV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineForkChoiceUpdatedV2, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::remote::EngineForkChoiceUpdatedReply* response)); - MOCK_METHOD3(AsyncEngineForkChoiceUpdatedV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineForkChoiceUpdatedV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedReply>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequestV2& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineGetPayloadV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayload* response)); - MOCK_METHOD3(AsyncEngineGetPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineGetPayloadV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayload>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(EngineGetPayloadV2, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::types::ExecutionPayloadV2* response)); - MOCK_METHOD3(AsyncEngineGetPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD3(PrepareAsyncEngineGetPayloadV2Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::ExecutionPayloadV2>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineNewPayload, ::grpc::Status(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::remote::EnginePayloadStatus* response)); + MOCK_METHOD3(AsyncEngineNewPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineNewPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EnginePayloadStatus>*(::grpc::ClientContext* context, const ::types::ExecutionPayload& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineForkChoiceUpdated, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::remote::EngineForkChoiceUpdatedResponse* response)); + MOCK_METHOD3(AsyncEngineForkChoiceUpdatedRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineForkChoiceUpdatedRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineForkChoiceUpdatedResponse>*(::grpc::ClientContext* context, const ::remote::EngineForkChoiceUpdatedRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetPayload, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::remote::EngineGetPayloadResponse* response)); + MOCK_METHOD3(AsyncEngineGetPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetPayloadRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadResponse>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetPayloadBodiesByHashV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response)); + MOCK_METHOD3(AsyncEngineGetPayloadBodiesByHashV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetPayloadBodiesByHashV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByHashV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetPayloadBodiesByRangeV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::remote::EngineGetPayloadBodiesV1Response* response)); + MOCK_METHOD3(AsyncEngineGetPayloadBodiesByRangeV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetPayloadBodiesByRangeV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::EngineGetPayloadBodiesV1Response>*(::grpc::ClientContext* context, const ::remote::EngineGetPayloadBodiesByRangeV1Request& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(EngineGetBlobsBundleV1, ::grpc::Status(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::types::BlobsBundleV1* response)); + MOCK_METHOD3(AsyncEngineGetBlobsBundleV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>*(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncEngineGetBlobsBundleV1Raw, ::grpc::ClientAsyncResponseReaderInterface< ::types::BlobsBundleV1>*(::grpc::ClientContext* context, const ::remote::EngineGetBlobsBundleRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(Version, ::grpc::Status(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::types::VersionReply* response)); MOCK_METHOD3(AsyncVersionRaw, ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncVersionRaw, ::grpc::ClientAsyncResponseReaderInterface< ::types::VersionReply>*(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq)); diff --git a/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.cc b/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.cc index e40aac508a..3a4ea289a2 100644 --- a/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.cc +++ b/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.cc @@ -26,8 +26,12 @@ static const char* KV_method_names[] = { "/remote.KV/Tx", "/remote.KV/StateChanges", "/remote.KV/Snapshots", + "/remote.KV/Range", + "/remote.KV/DomainGet", "/remote.KV/HistoryGet", "/remote.KV/IndexRange", + "/remote.KV/HistoryRange", + "/remote.KV/DomainRange", }; std::unique_ptr< KV::Stub> KV::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -41,8 +45,12 @@ KV::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const , rpcmethod_Tx_(KV_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) , rpcmethod_StateChanges_(KV_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) , rpcmethod_Snapshots_(KV_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_HistoryGet_(KV_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_IndexRange_(KV_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_Range_(KV_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DomainGet_(KV_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_HistoryGet_(KV_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_IndexRange_(KV_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_HistoryRange_(KV_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DomainRange_(KV_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status KV::Stub::Version(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::types::VersionReply* response) { @@ -123,6 +131,52 @@ ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>* KV::Stub::AsyncSna return result; } +::grpc::Status KV::Stub::Range(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::RangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Range_, context, request, response); +} + +void KV::Stub::async::Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::RangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Range_, context, request, response, std::move(f)); +} + +void KV::Stub::async::Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Range_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::PrepareAsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::Pairs, ::remote::RangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Range_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::AsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncRangeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status KV::Stub::DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::DomainGetReq, ::remote::DomainGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DomainGet_, context, request, response); +} + +void KV::Stub::async::DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::DomainGetReq, ::remote::DomainGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainGet_, context, request, response, std::move(f)); +} + +void KV::Stub::async::DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainGet_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* KV::Stub::PrepareAsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::DomainGetReply, ::remote::DomainGetReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DomainGet_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* KV::Stub::AsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDomainGetRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status KV::Stub::HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response) { return ::grpc::internal::BlockingUnaryCall< ::remote::HistoryGetReq, ::remote::HistoryGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HistoryGet_, context, request, response); } @@ -146,20 +200,73 @@ ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>* KV::Stub::AsyncHi return result; } -::grpc::ClientReader< ::remote::IndexRangeReply>* KV::Stub::IndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) { - return ::grpc::internal::ClientReaderFactory< ::remote::IndexRangeReply>::Create(channel_.get(), rpcmethod_IndexRange_, context, request); +::grpc::Status KV::Stub::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::IndexRangeReq, ::remote::IndexRangeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_IndexRange_, context, request, response); +} + +void KV::Stub::async::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::IndexRangeReq, ::remote::IndexRangeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IndexRange_, context, request, response, std::move(f)); +} + +void KV::Stub::async::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_IndexRange_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* KV::Stub::PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::IndexRangeReply, ::remote::IndexRangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_IndexRange_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* KV::Stub::AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncIndexRangeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status KV::Stub::HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::HistoryRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HistoryRange_, context, request, response); } -void KV::Stub::async::IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::grpc::ClientReadReactor< ::remote::IndexRangeReply>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::remote::IndexRangeReply>::Create(stub_->channel_.get(), stub_->rpcmethod_IndexRange_, context, request, reactor); +void KV::Stub::async::HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::HistoryRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HistoryRange_, context, request, response, std::move(f)); } -::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* KV::Stub::AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::remote::IndexRangeReply>::Create(channel_.get(), cq, rpcmethod_IndexRange_, context, request, true, tag); +void KV::Stub::async::HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HistoryRange_, context, request, response, reactor); } -::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* KV::Stub::PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::remote::IndexRangeReply>::Create(channel_.get(), cq, rpcmethod_IndexRange_, context, request, false, nullptr); +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::PrepareAsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::Pairs, ::remote::HistoryRangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_HistoryRange_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::AsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncHistoryRangeRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status KV::Stub::DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response) { + return ::grpc::internal::BlockingUnaryCall< ::remote::DomainRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DomainRange_, context, request, response); +} + +void KV::Stub::async::DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::remote::DomainRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainRange_, context, request, response, std::move(f)); +} + +void KV::Stub::async::DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_DomainRange_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::PrepareAsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::remote::Pairs, ::remote::DomainRangeReq, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_DomainRange_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::remote::Pairs>* KV::Stub::AsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncDomainRangeRaw(context, request, cq); + result->StartCall(); + return result; } KV::Service::Service() { @@ -206,6 +313,26 @@ KV::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( KV_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::RangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::RangeReq* req, + ::remote::Pairs* resp) { + return service->Range(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::DomainGetReq, ::remote::DomainGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::DomainGetReq* req, + ::remote::DomainGetReply* resp) { + return service->DomainGet(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::HistoryGetReq, ::remote::HistoryGetReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](KV::Service* service, ::grpc::ServerContext* ctx, @@ -214,14 +341,34 @@ KV::Service::Service() { return service->HistoryGet(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - KV_method_names[5], - ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< KV::Service, ::remote::IndexRangeReq, ::remote::IndexRangeReply>( + KV_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::IndexRangeReq, ::remote::IndexRangeReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](KV::Service* service, ::grpc::ServerContext* ctx, const ::remote::IndexRangeReq* req, - ::grpc::ServerWriter<::remote::IndexRangeReply>* writer) { - return service->IndexRange(ctx, req, writer); + ::remote::IndexRangeReply* resp) { + return service->IndexRange(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::HistoryRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::HistoryRangeReq* req, + ::remote::Pairs* resp) { + return service->HistoryRange(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + KV_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< KV::Service, ::remote::DomainRangeReq, ::remote::Pairs, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](KV::Service* service, + ::grpc::ServerContext* ctx, + const ::remote::DomainRangeReq* req, + ::remote::Pairs* resp) { + return service->DomainRange(ctx, req, resp); }, this))); } @@ -255,6 +402,20 @@ ::grpc::Status KV::Service::Snapshots(::grpc::ServerContext* context, const ::re return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status KV::Service::Range(::grpc::ServerContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status KV::Service::DomainGet(::grpc::ServerContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status KV::Service::HistoryGet(::grpc::ServerContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response) { (void) context; (void) request; @@ -262,10 +423,24 @@ ::grpc::Status KV::Service::HistoryGet(::grpc::ServerContext* context, const ::r return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status KV::Service::IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::grpc::ServerWriter< ::remote::IndexRangeReply>* writer) { +::grpc::Status KV::Service::IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response) { (void) context; (void) request; - (void) writer; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status KV::Service::HistoryRange(::grpc::ServerContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status KV::Service::DomainRange(::grpc::ServerContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response) { + (void) context; + (void) request; + (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } diff --git a/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.h b/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.h index acaf283caa..fb5b705f11 100644 --- a/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.h +++ b/silkworm/interfaces/3.21.4/remote/kv.grpc.pb.h @@ -43,6 +43,12 @@ namespace remote { // Prefix: Has(k, prefix) // Amount: [from, INF) AND maximum N records // +// Entity Naming: +// State: simple table in db +// InvertedIndex: supports range-scans +// History: can return value of key K as of given TimeStamp. Doesn't know about latest/current value of key K. Returns NIL if K not changed after TimeStamp. +// Domain: as History but also aware about latest/current value of key K. +// // Provides methods to access key-value data class KV final { public: @@ -91,7 +97,27 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>> PrepareAsyncSnapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>>(PrepareAsyncSnapshotsRaw(context, request, cq)); } + // Range [from, to) + // Range(from, nil) means [from, EndOfTable) + // Range(nil, to) means [StartOfTable, to) + // If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A") + virtual ::grpc::Status Range(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> AsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(AsyncRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> PrepareAsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(PrepareAsyncRangeRaw(context, request, cq)); + } + // rpc Stream(RangeReq) returns (stream Pairs); // Temporal methods + virtual ::grpc::Status DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>> AsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>>(AsyncDomainGetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>> PrepareAsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>>(PrepareAsyncDomainGetRaw(context, request, cq)); + } + // can return latest value or as of given timestamp virtual ::grpc::Status HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>> AsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>>(AsyncHistoryGetRaw(context, request, cq)); @@ -99,14 +125,26 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>> PrepareAsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>>(PrepareAsyncHistoryGetRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>> IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>>(IndexRangeRaw(context, request)); + virtual ::grpc::Status IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + } + virtual ::grpc::Status HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> AsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(AsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> PrepareAsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(PrepareAsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + virtual ::grpc::Status DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> AsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(AsyncDomainRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>> PrepareAsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>>(PrepareAsyncDomainRangeRaw(context, request, cq)); } class async_interface { public: @@ -124,10 +162,25 @@ class KV final { // Snapshots returns list of current snapshot files. Then client can just open all of them. virtual void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, std::function) = 0; virtual void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Range [from, to) + // Range(from, nil) means [from, EndOfTable) + // Range(nil, to) means [StartOfTable, to) + // If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A") + virtual void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, std::function) = 0; + virtual void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // rpc Stream(RangeReq) returns (stream Pairs); // Temporal methods + virtual void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, std::function) = 0; + virtual void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // can return latest value or as of given timestamp virtual void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, std::function) = 0; virtual void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; - virtual void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::grpc::ClientReadReactor< ::remote::IndexRangeReply>* reactor) = 0; + virtual void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, std::function) = 0; + virtual void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, std::function) = 0; + virtual void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, std::function) = 0; + virtual void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -143,11 +196,18 @@ class KV final { virtual ::grpc::ClientAsyncReaderInterface< ::remote::StateChangeBatch>* PrepareAsyncStateChangesRaw(::grpc::ClientContext* context, const ::remote::StateChangeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>* AsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>* PrepareAsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* AsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* PrepareAsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>* AsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>* PrepareAsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>* AsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>* PrepareAsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>* IndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* AsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* PrepareAsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* AsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>* PrepareAsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -184,6 +244,20 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>> PrepareAsyncSnapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>>(PrepareAsyncSnapshotsRaw(context, request, cq)); } + ::grpc::Status Range(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> AsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(AsyncRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> PrepareAsyncRange(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(PrepareAsyncRangeRaw(context, request, cq)); + } + ::grpc::Status DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>> AsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>>(AsyncDomainGetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>> PrepareAsyncDomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>>(PrepareAsyncDomainGetRaw(context, request, cq)); + } ::grpc::Status HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>> AsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>>(AsyncHistoryGetRaw(context, request, cq)); @@ -191,14 +265,26 @@ class KV final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>> PrepareAsyncHistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>>(PrepareAsyncHistoryGetRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientReader< ::remote::IndexRangeReply>> IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) { - return std::unique_ptr< ::grpc::ClientReader< ::remote::IndexRangeReply>>(IndexRangeRaw(context, request)); + ::grpc::Status IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + } + ::grpc::Status HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> AsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(AsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>> AsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>>(AsyncIndexRangeRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> PrepareAsyncHistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(PrepareAsyncHistoryRangeRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>> PrepareAsyncIndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>>(PrepareAsyncIndexRangeRaw(context, request, cq)); + ::grpc::Status DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> AsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(AsyncDomainRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>> PrepareAsyncDomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::remote::Pairs>>(PrepareAsyncDomainRangeRaw(context, request, cq)); } class async final : public StubInterface::async_interface { @@ -209,9 +295,18 @@ class KV final { void StateChanges(::grpc::ClientContext* context, const ::remote::StateChangeRequest* request, ::grpc::ClientReadReactor< ::remote::StateChangeBatch>* reactor) override; void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, std::function) override; void Snapshots(::grpc::ClientContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response, ::grpc::ClientUnaryReactor* reactor) override; + void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, std::function) override; + void Range(::grpc::ClientContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) override; + void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, std::function) override; + void DomainGet(::grpc::ClientContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response, ::grpc::ClientUnaryReactor* reactor) override; void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, std::function) override; void HistoryGet(::grpc::ClientContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response, ::grpc::ClientUnaryReactor* reactor) override; - void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::grpc::ClientReadReactor< ::remote::IndexRangeReply>* reactor) override; + void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, std::function) override; + void IndexRange(::grpc::ClientContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response, ::grpc::ClientUnaryReactor* reactor) override; + void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, std::function) override; + void HistoryRange(::grpc::ClientContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) override; + void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, std::function) override; + void DomainRange(::grpc::ClientContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -233,17 +328,28 @@ class KV final { ::grpc::ClientAsyncReader< ::remote::StateChangeBatch>* PrepareAsyncStateChangesRaw(::grpc::ClientContext* context, const ::remote::StateChangeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>* AsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::SnapshotsReply>* PrepareAsyncSnapshotsRaw(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* AsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* PrepareAsyncRangeRaw(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* AsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::DomainGetReply>* PrepareAsyncDomainGetRaw(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>* AsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::remote::HistoryGetReply>* PrepareAsyncHistoryGetRaw(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::remote::IndexRangeReply>* IndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request) override; - ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* AsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::IndexRangeReply>* PrepareAsyncIndexRangeRaw(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* AsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* PrepareAsyncHistoryRangeRaw(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* AsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::remote::Pairs>* PrepareAsyncDomainRangeRaw(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_Version_; const ::grpc::internal::RpcMethod rpcmethod_Tx_; const ::grpc::internal::RpcMethod rpcmethod_StateChanges_; const ::grpc::internal::RpcMethod rpcmethod_Snapshots_; + const ::grpc::internal::RpcMethod rpcmethod_Range_; + const ::grpc::internal::RpcMethod rpcmethod_DomainGet_; const ::grpc::internal::RpcMethod rpcmethod_HistoryGet_; const ::grpc::internal::RpcMethod rpcmethod_IndexRange_; + const ::grpc::internal::RpcMethod rpcmethod_HistoryRange_; + const ::grpc::internal::RpcMethod rpcmethod_DomainRange_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -262,9 +368,19 @@ class KV final { virtual ::grpc::Status StateChanges(::grpc::ServerContext* context, const ::remote::StateChangeRequest* request, ::grpc::ServerWriter< ::remote::StateChangeBatch>* writer); // Snapshots returns list of current snapshot files. Then client can just open all of them. virtual ::grpc::Status Snapshots(::grpc::ServerContext* context, const ::remote::SnapshotsRequest* request, ::remote::SnapshotsReply* response); + // Range [from, to) + // Range(from, nil) means [from, EndOfTable) + // Range(nil, to) means [StartOfTable, to) + // If orderAscend=false server expecting `from`<`to`. Example: Range("B", "A") + virtual ::grpc::Status Range(::grpc::ServerContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response); + // rpc Stream(RangeReq) returns (stream Pairs); // Temporal methods + virtual ::grpc::Status DomainGet(::grpc::ServerContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response); + // can return latest value or as of given timestamp virtual ::grpc::Status HistoryGet(::grpc::ServerContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response); - virtual ::grpc::Status IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::grpc::ServerWriter< ::remote::IndexRangeReply>* writer); + virtual ::grpc::Status IndexRange(::grpc::ServerContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response); + virtual ::grpc::Status HistoryRange(::grpc::ServerContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response); + virtual ::grpc::Status DomainRange(::grpc::ServerContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response); }; template class WithAsyncMethod_Version : public BaseClass { @@ -347,12 +463,52 @@ class KV final { } }; template + class WithAsyncMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Range() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRange(::grpc::ServerContext* context, ::remote::RangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::Pairs>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DomainGet() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainGet(::grpc::ServerContext* context, ::remote::DomainGetReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::DomainGetReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_HistoryGet() { - ::grpc::Service::MarkMethodAsync(4); + ::grpc::Service::MarkMethodAsync(6); } ~WithAsyncMethod_HistoryGet() override { BaseClassMustBeDerivedFromService(this); @@ -363,7 +519,7 @@ class KV final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHistoryGet(::grpc::ServerContext* context, ::remote::HistoryGetReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::HistoryGetReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -372,21 +528,61 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_IndexRange() { - ::grpc::Service::MarkMethodAsync(5); + ::grpc::Service::MarkMethodAsync(7); } ~WithAsyncMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestIndexRange(::grpc::ServerContext* context, ::remote::IndexRangeReq* request, ::grpc::ServerAsyncWriter< ::remote::IndexRangeReply>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncServerStreaming(5, context, request, writer, new_call_cq, notification_cq, tag); + void RequestIndexRange(::grpc::ServerContext* context, ::remote::IndexRangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::IndexRangeReply>* 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); } }; - typedef WithAsyncMethod_Version > > > > > AsyncService; + template + class WithAsyncMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_HistoryRange() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHistoryRange(::grpc::ServerContext* context, ::remote::HistoryRangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::Pairs>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_DomainRange() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainRange(::grpc::ServerContext* context, ::remote::DomainRangeReq* request, ::grpc::ServerAsyncResponseWriter< ::remote::Pairs>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_Version > > > > > > > > > AsyncService; template class WithCallbackMethod_Version : public BaseClass { private: @@ -487,18 +683,72 @@ class KV final { ::grpc::CallbackServerContext* /*context*/, const ::remote::SnapshotsRequest* /*request*/, ::remote::SnapshotsReply* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Range() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::remote::RangeReq, ::remote::Pairs>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::RangeReq* request, ::remote::Pairs* response) { return this->Range(context, request, response); }));} + void SetMessageAllocatorFor_Range( + ::grpc::MessageAllocator< ::remote::RangeReq, ::remote::Pairs>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::RangeReq, ::remote::Pairs>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Range( + ::grpc::CallbackServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DomainGet() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::remote::DomainGetReq, ::remote::DomainGetReply>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::DomainGetReq* request, ::remote::DomainGetReply* response) { return this->DomainGet(context, request, response); }));} + void SetMessageAllocatorFor_DomainGet( + ::grpc::MessageAllocator< ::remote::DomainGetReq, ::remote::DomainGetReply>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::DomainGetReq, ::remote::DomainGetReply>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainGet( + ::grpc::CallbackServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_HistoryGet() { - ::grpc::Service::MarkMethodCallback(4, + ::grpc::Service::MarkMethodCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::remote::HistoryGetReq, ::remote::HistoryGetReply>( [this]( ::grpc::CallbackServerContext* context, const ::remote::HistoryGetReq* request, ::remote::HistoryGetReply* response) { return this->HistoryGet(context, request, response); }));} void SetMessageAllocatorFor_HistoryGet( ::grpc::MessageAllocator< ::remote::HistoryGetReq, ::remote::HistoryGetReply>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(6); static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::HistoryGetReq, ::remote::HistoryGetReply>*>(handler) ->SetMessageAllocator(allocator); } @@ -519,23 +769,82 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_IndexRange() { - ::grpc::Service::MarkMethodCallback(5, - new ::grpc::internal::CallbackServerStreamingHandler< ::remote::IndexRangeReq, ::remote::IndexRangeReply>( + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::remote::IndexRangeReq, ::remote::IndexRangeReply>( [this]( - ::grpc::CallbackServerContext* context, const ::remote::IndexRangeReq* request) { return this->IndexRange(context, request); })); + ::grpc::CallbackServerContext* context, const ::remote::IndexRangeReq* request, ::remote::IndexRangeReply* response) { return this->IndexRange(context, request, response); }));} + void SetMessageAllocatorFor_IndexRange( + ::grpc::MessageAllocator< ::remote::IndexRangeReq, ::remote::IndexRangeReply>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(7); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::IndexRangeReq, ::remote::IndexRangeReply>*>(handler) + ->SetMessageAllocator(allocator); } ~WithCallbackMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerWriteReactor< ::remote::IndexRangeReply>* IndexRange( - ::grpc::CallbackServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* IndexRange( + ::grpc::CallbackServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Version > > > > > CallbackService; + template + class WithCallbackMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_HistoryRange() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::remote::HistoryRangeReq, ::remote::Pairs>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::HistoryRangeReq* request, ::remote::Pairs* response) { return this->HistoryRange(context, request, response); }));} + void SetMessageAllocatorFor_HistoryRange( + ::grpc::MessageAllocator< ::remote::HistoryRangeReq, ::remote::Pairs>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::HistoryRangeReq, ::remote::Pairs>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* HistoryRange( + ::grpc::CallbackServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_DomainRange() { + ::grpc::Service::MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::remote::DomainRangeReq, ::remote::Pairs>( + [this]( + ::grpc::CallbackServerContext* context, const ::remote::DomainRangeReq* request, ::remote::Pairs* response) { return this->DomainRange(context, request, response); }));} + void SetMessageAllocatorFor_DomainRange( + ::grpc::MessageAllocator< ::remote::DomainRangeReq, ::remote::Pairs>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + static_cast<::grpc::internal::CallbackUnaryHandler< ::remote::DomainRangeReq, ::remote::Pairs>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainRange( + ::grpc::CallbackServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_Version > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Version : public BaseClass { @@ -606,12 +915,46 @@ class KV final { } }; template + class WithGenericMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Range() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DomainGet() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_HistoryGet() { - ::grpc::Service::MarkMethodGeneric(4); + ::grpc::Service::MarkMethodGeneric(6); } ~WithGenericMethod_HistoryGet() override { BaseClassMustBeDerivedFromService(this); @@ -628,13 +971,47 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_IndexRange() { - ::grpc::Service::MarkMethodGeneric(5); + ::grpc::Service::MarkMethodGeneric(7); } ~WithGenericMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_HistoryRange() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_DomainRange() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -720,12 +1097,52 @@ class KV final { } }; template + class WithRawMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Range() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRange(::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(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DomainGet() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainGet(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_HistoryGet() { - ::grpc::Service::MarkMethodRaw(4); + ::grpc::Service::MarkMethodRaw(6); } ~WithRawMethod_HistoryGet() override { BaseClassMustBeDerivedFromService(this); @@ -736,7 +1153,7 @@ class KV final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestHistoryGet(::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(4, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -745,18 +1162,58 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_IndexRange() { - ::grpc::Service::MarkMethodRaw(5); + ::grpc::Service::MarkMethodRaw(7); } ~WithRawMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestIndexRange(::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(5, context, request, writer, new_call_cq, notification_cq, tag); + void RequestIndexRange(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_HistoryRange() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHistoryRange(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_DomainRange() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDomainRange(::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(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -849,12 +1306,56 @@ class KV final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Range() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Range(context, request, response); })); + } + ~WithRawCallbackMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Range( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DomainGet() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DomainGet(context, request, response); })); + } + ~WithRawCallbackMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainGet( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_HistoryGet() { - ::grpc::Service::MarkMethodRawCallback(4, + ::grpc::Service::MarkMethodRawCallback(6, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HistoryGet(context, request, response); })); @@ -876,21 +1377,65 @@ class KV final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_IndexRange() { - ::grpc::Service::MarkMethodRawCallback(5, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( - ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->IndexRange(context, request); })); + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->IndexRange(context, request, response); })); } ~WithRawCallbackMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* IndexRange( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + virtual ::grpc::ServerUnaryReactor* IndexRange( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_HistoryRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_HistoryRange() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HistoryRange(context, request, response); })); + } + ~WithRawCallbackMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* HistoryRange( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_DomainRange() { + ::grpc::Service::MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DomainRange(context, request, response); })); + } + ~WithRawCallbackMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* DomainRange( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template class WithStreamedUnaryMethod_Version : public BaseClass { @@ -947,12 +1492,66 @@ class KV final { virtual ::grpc::Status StreamedSnapshots(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::SnapshotsRequest,::remote::SnapshotsReply>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_Range : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Range() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::RangeReq, ::remote::Pairs>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::RangeReq, ::remote::Pairs>* streamer) { + return this->StreamedRange(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Range() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Range(::grpc::ServerContext* /*context*/, const ::remote::RangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::RangeReq,::remote::Pairs>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DomainGet : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DomainGet() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::DomainGetReq, ::remote::DomainGetReply>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::DomainGetReq, ::remote::DomainGetReply>* streamer) { + return this->StreamedDomainGet(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DomainGet() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DomainGet(::grpc::ServerContext* /*context*/, const ::remote::DomainGetReq* /*request*/, ::remote::DomainGetReply* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDomainGet(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::DomainGetReq,::remote::DomainGetReply>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_HistoryGet : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_HistoryGet() { - ::grpc::Service::MarkMethodStreamed(4, + ::grpc::Service::MarkMethodStreamed(6, new ::grpc::internal::StreamedUnaryHandler< ::remote::HistoryGetReq, ::remote::HistoryGetReply>( [this](::grpc::ServerContext* context, @@ -973,63 +1572,117 @@ class KV final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedHistoryGet(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::HistoryGetReq,::remote::HistoryGetReply>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Version > > StreamedUnaryService; template - class WithSplitStreamingMethod_StateChanges : public BaseClass { + class WithStreamedUnaryMethod_IndexRange : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithSplitStreamingMethod_StateChanges() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::SplitServerStreamingHandler< - ::remote::StateChangeRequest, ::remote::StateChangeBatch>( + WithStreamedUnaryMethod_IndexRange() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::IndexRangeReq, ::remote::IndexRangeReply>( [this](::grpc::ServerContext* context, - ::grpc::ServerSplitStreamer< - ::remote::StateChangeRequest, ::remote::StateChangeBatch>* streamer) { - return this->StreamedStateChanges(context, + ::grpc::ServerUnaryStreamer< + ::remote::IndexRangeReq, ::remote::IndexRangeReply>* streamer) { + return this->StreamedIndexRange(context, streamer); })); } - ~WithSplitStreamingMethod_StateChanges() override { + ~WithStreamedUnaryMethod_IndexRange() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status StateChanges(::grpc::ServerContext* /*context*/, const ::remote::StateChangeRequest* /*request*/, ::grpc::ServerWriter< ::remote::StateChangeBatch>* /*writer*/) override { + ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::remote::IndexRangeReply* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - // replace default version of method with split streamed - virtual ::grpc::Status StreamedStateChanges(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::StateChangeRequest,::remote::StateChangeBatch>* server_split_streamer) = 0; + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedIndexRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::IndexRangeReq,::remote::IndexRangeReply>* server_unary_streamer) = 0; }; template - class WithSplitStreamingMethod_IndexRange : public BaseClass { + class WithStreamedUnaryMethod_HistoryRange : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithSplitStreamingMethod_IndexRange() { - ::grpc::Service::MarkMethodStreamed(5, + WithStreamedUnaryMethod_HistoryRange() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::HistoryRangeReq, ::remote::Pairs>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::HistoryRangeReq, ::remote::Pairs>* streamer) { + return this->StreamedHistoryRange(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_HistoryRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status HistoryRange(::grpc::ServerContext* /*context*/, const ::remote::HistoryRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedHistoryRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::HistoryRangeReq,::remote::Pairs>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DomainRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_DomainRange() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< + ::remote::DomainRangeReq, ::remote::Pairs>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::remote::DomainRangeReq, ::remote::Pairs>* streamer) { + return this->StreamedDomainRange(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_DomainRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DomainRange(::grpc::ServerContext* /*context*/, const ::remote::DomainRangeReq* /*request*/, ::remote::Pairs* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDomainRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::remote::DomainRangeReq,::remote::Pairs>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Version > > > > > > > StreamedUnaryService; + template + class WithSplitStreamingMethod_StateChanges : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_StateChanges() { + ::grpc::Service::MarkMethodStreamed(2, new ::grpc::internal::SplitServerStreamingHandler< - ::remote::IndexRangeReq, ::remote::IndexRangeReply>( + ::remote::StateChangeRequest, ::remote::StateChangeBatch>( [this](::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< - ::remote::IndexRangeReq, ::remote::IndexRangeReply>* streamer) { - return this->StreamedIndexRange(context, + ::remote::StateChangeRequest, ::remote::StateChangeBatch>* streamer) { + return this->StreamedStateChanges(context, streamer); })); } - ~WithSplitStreamingMethod_IndexRange() override { + ~WithSplitStreamingMethod_StateChanges() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status IndexRange(::grpc::ServerContext* /*context*/, const ::remote::IndexRangeReq* /*request*/, ::grpc::ServerWriter< ::remote::IndexRangeReply>* /*writer*/) override { + ::grpc::Status StateChanges(::grpc::ServerContext* /*context*/, const ::remote::StateChangeRequest* /*request*/, ::grpc::ServerWriter< ::remote::StateChangeBatch>* /*writer*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with split streamed - virtual ::grpc::Status StreamedIndexRange(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::IndexRangeReq,::remote::IndexRangeReply>* server_split_streamer) = 0; + virtual ::grpc::Status StreamedStateChanges(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::remote::StateChangeRequest,::remote::StateChangeBatch>* server_split_streamer) = 0; }; - typedef WithSplitStreamingMethod_StateChanges > SplitStreamedService; - typedef WithStreamedUnaryMethod_Version > > > > StreamedService; + typedef WithSplitStreamingMethod_StateChanges SplitStreamedService; + typedef WithStreamedUnaryMethod_Version > > > > > > > > StreamedService; }; } // namespace remote diff --git a/silkworm/interfaces/3.21.4/remote/kv.pb.cc b/silkworm/interfaces/3.21.4/remote/kv.pb.cc index d2d6898d30..1e8fc45cee 100644 --- a/silkworm/interfaces/3.21.4/remote/kv.pb.cc +++ b/silkworm/interfaces/3.21.4/remote/kv.pb.cc @@ -147,7 +147,8 @@ struct SnapshotsRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SnapshotsRequestDefaultTypeInternal _SnapshotsRequest_default_instance_; PROTOBUF_CONSTEXPR SnapshotsReply::SnapshotsReply( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.files_)*/{} + /*decltype(_impl_.blocks_files_)*/{} + , /*decltype(_impl_.history_files_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} struct SnapshotsReplyDefaultTypeInternal { PROTOBUF_CONSTEXPR SnapshotsReplyDefaultTypeInternal() @@ -158,11 +159,63 @@ struct SnapshotsReplyDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SnapshotsReplyDefaultTypeInternal _SnapshotsReply_default_instance_; +PROTOBUF_CONSTEXPR RangeReq::RangeReq( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.from_prefix_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.to_prefix_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tx_id_)*/uint64_t{0u} + , /*decltype(_impl_.limit_)*/int64_t{0} + , /*decltype(_impl_.order_ascend_)*/false + , /*decltype(_impl_.page_size_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct RangeReqDefaultTypeInternal { + PROTOBUF_CONSTEXPR RangeReqDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~RangeReqDefaultTypeInternal() {} + union { + RangeReq _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RangeReqDefaultTypeInternal _RangeReq_default_instance_; +PROTOBUF_CONSTEXPR DomainGetReq::DomainGetReq( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.k_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.k2_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tx_id_)*/uint64_t{0u} + , /*decltype(_impl_.ts_)*/uint64_t{0u} + , /*decltype(_impl_.latest_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DomainGetReqDefaultTypeInternal { + PROTOBUF_CONSTEXPR DomainGetReqDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DomainGetReqDefaultTypeInternal() {} + union { + DomainGetReq _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DomainGetReqDefaultTypeInternal _DomainGetReq_default_instance_; +PROTOBUF_CONSTEXPR DomainGetReply::DomainGetReply( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.v_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.ok_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DomainGetReplyDefaultTypeInternal { + PROTOBUF_CONSTEXPR DomainGetReplyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DomainGetReplyDefaultTypeInternal() {} + union { + DomainGetReply _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DomainGetReplyDefaultTypeInternal _DomainGetReply_default_instance_; PROTOBUF_CONSTEXPR HistoryGetReq::HistoryGetReq( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + /*decltype(_impl_.table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.k_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.txid_)*/uint64_t{0u} + , /*decltype(_impl_.tx_id_)*/uint64_t{0u} , /*decltype(_impl_.ts_)*/uint64_t{0u} , /*decltype(_impl_._cached_size_)*/{}} {} struct HistoryGetReqDefaultTypeInternal { @@ -190,11 +243,15 @@ struct HistoryGetReplyDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HistoryGetReplyDefaultTypeInternal _HistoryGetReply_default_instance_; PROTOBUF_CONSTEXPR IndexRangeReq::IndexRangeReq( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + /*decltype(_impl_.table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.k_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.txid_)*/uint64_t{0u} - , /*decltype(_impl_.fromts_)*/uint64_t{0u} - , /*decltype(_impl_.tots_)*/uint64_t{0u} + , /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tx_id_)*/uint64_t{0u} + , /*decltype(_impl_.from_ts_)*/int64_t{0} + , /*decltype(_impl_.to_ts_)*/int64_t{0} + , /*decltype(_impl_.limit_)*/int64_t{0} + , /*decltype(_impl_.order_ascend_)*/false + , /*decltype(_impl_.page_size_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct IndexRangeReqDefaultTypeInternal { PROTOBUF_CONSTEXPR IndexRangeReqDefaultTypeInternal() @@ -209,6 +266,7 @@ PROTOBUF_CONSTEXPR IndexRangeReply::IndexRangeReply( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.timestamps_)*/{} , /*decltype(_impl_._timestamps_cached_byte_size_)*/{0} + , /*decltype(_impl_.next_page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} struct IndexRangeReplyDefaultTypeInternal { PROTOBUF_CONSTEXPR IndexRangeReplyDefaultTypeInternal() @@ -219,8 +277,93 @@ struct IndexRangeReplyDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IndexRangeReplyDefaultTypeInternal _IndexRangeReply_default_instance_; +PROTOBUF_CONSTEXPR HistoryRangeReq::HistoryRangeReq( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tx_id_)*/uint64_t{0u} + , /*decltype(_impl_.from_ts_)*/int64_t{0} + , /*decltype(_impl_.to_ts_)*/int64_t{0} + , /*decltype(_impl_.limit_)*/int64_t{0} + , /*decltype(_impl_.order_ascend_)*/false + , /*decltype(_impl_.page_size_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct HistoryRangeReqDefaultTypeInternal { + PROTOBUF_CONSTEXPR HistoryRangeReqDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HistoryRangeReqDefaultTypeInternal() {} + union { + HistoryRangeReq _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HistoryRangeReqDefaultTypeInternal _HistoryRangeReq_default_instance_; +PROTOBUF_CONSTEXPR DomainRangeReq::DomainRangeReq( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.from_key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.to_key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.tx_id_)*/uint64_t{0u} + , /*decltype(_impl_.ts_)*/uint64_t{0u} + , /*decltype(_impl_.latest_)*/false + , /*decltype(_impl_.order_ascend_)*/false + , /*decltype(_impl_.page_size_)*/0 + , /*decltype(_impl_.limit_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DomainRangeReqDefaultTypeInternal { + PROTOBUF_CONSTEXPR DomainRangeReqDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DomainRangeReqDefaultTypeInternal() {} + union { + DomainRangeReq _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DomainRangeReqDefaultTypeInternal _DomainRangeReq_default_instance_; +PROTOBUF_CONSTEXPR Pairs::Pairs( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.keys_)*/{} + , /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_.next_page_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct PairsDefaultTypeInternal { + PROTOBUF_CONSTEXPR PairsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~PairsDefaultTypeInternal() {} + union { + Pairs _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PairsDefaultTypeInternal _Pairs_default_instance_; +PROTOBUF_CONSTEXPR ParisPagination::ParisPagination( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.next_key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.limit_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ParisPaginationDefaultTypeInternal { + PROTOBUF_CONSTEXPR ParisPaginationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ParisPaginationDefaultTypeInternal() {} + union { + ParisPagination _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParisPaginationDefaultTypeInternal _ParisPagination_default_instance_; +PROTOBUF_CONSTEXPR IndexPagination::IndexPagination( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.next_time_stamp_)*/int64_t{0} + , /*decltype(_impl_.limit_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct IndexPaginationDefaultTypeInternal { + PROTOBUF_CONSTEXPR IndexPaginationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~IndexPaginationDefaultTypeInternal() {} + union { + IndexPagination _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IndexPaginationDefaultTypeInternal _IndexPagination_default_instance_; } // namespace remote -static ::_pb::Metadata file_level_metadata_remote_2fkv_2eproto[13]; +static ::_pb::Metadata file_level_metadata_remote_2fkv_2eproto[21]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_remote_2fkv_2eproto[3]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_remote_2fkv_2eproto = nullptr; @@ -308,15 +451,50 @@ const uint32_t TableStruct_remote_2fkv_2eproto::offsets[] PROTOBUF_SECTION_VARIA ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::remote::SnapshotsReply, _impl_.files_), + PROTOBUF_FIELD_OFFSET(::remote::SnapshotsReply, _impl_.blocks_files_), + PROTOBUF_FIELD_OFFSET(::remote::SnapshotsReply, _impl_.history_files_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.table_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.from_prefix_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.to_prefix_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.limit_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.page_size_), + PROTOBUF_FIELD_OFFSET(::remote::RangeReq, _impl_.page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _impl_.tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _impl_.table_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _impl_.k_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _impl_.ts_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _impl_.k2_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReq, _impl_.latest_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReply, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReply, _impl_.v_), + PROTOBUF_FIELD_OFFSET(::remote::DomainGetReply, _impl_.ok_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _impl_.txid_), - PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _impl_.tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _impl_.table_), PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _impl_.k_), PROTOBUF_FIELD_OFFSET(::remote::HistoryGetReq, _impl_.ts_), ~0u, // no _has_bits_ @@ -333,11 +511,15 @@ const uint32_t TableStruct_remote_2fkv_2eproto::offsets[] PROTOBUF_SECTION_VARIA ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.txid_), - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.table_), PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.k_), - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.fromts_), - PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.tots_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.from_ts_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.to_ts_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.limit_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.page_size_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReq, _impl_.page_token_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReply, _internal_metadata_), ~0u, // no _extensions_ @@ -345,6 +527,62 @@ const uint32_t TableStruct_remote_2fkv_2eproto::offsets[] PROTOBUF_SECTION_VARIA ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReply, _impl_.timestamps_), + PROTOBUF_FIELD_OFFSET(::remote::IndexRangeReply, _impl_.next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.table_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.from_ts_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.to_ts_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.limit_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.page_size_), + PROTOBUF_FIELD_OFFSET(::remote::HistoryRangeReq, _impl_.page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.tx_id_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.table_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.from_key_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.to_key_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.ts_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.latest_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.order_ascend_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.limit_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.page_size_), + PROTOBUF_FIELD_OFFSET(::remote::DomainRangeReq, _impl_.page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::Pairs, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::Pairs, _impl_.keys_), + PROTOBUF_FIELD_OFFSET(::remote::Pairs, _impl_.values_), + PROTOBUF_FIELD_OFFSET(::remote::Pairs, _impl_.next_page_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::ParisPagination, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::ParisPagination, _impl_.next_key_), + PROTOBUF_FIELD_OFFSET(::remote::ParisPagination, _impl_.limit_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::remote::IndexPagination, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::remote::IndexPagination, _impl_.next_time_stamp_), + PROTOBUF_FIELD_OFFSET(::remote::IndexPagination, _impl_.limit_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::remote::Cursor)}, @@ -356,10 +594,18 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 63, -1, -1, sizeof(::remote::StateChangeRequest)}, { 71, -1, -1, sizeof(::remote::SnapshotsRequest)}, { 77, -1, -1, sizeof(::remote::SnapshotsReply)}, - { 84, -1, -1, sizeof(::remote::HistoryGetReq)}, - { 94, -1, -1, sizeof(::remote::HistoryGetReply)}, - { 102, -1, -1, sizeof(::remote::IndexRangeReq)}, - { 113, -1, -1, sizeof(::remote::IndexRangeReply)}, + { 85, -1, -1, sizeof(::remote::RangeReq)}, + { 99, -1, -1, sizeof(::remote::DomainGetReq)}, + { 111, -1, -1, sizeof(::remote::DomainGetReply)}, + { 119, -1, -1, sizeof(::remote::HistoryGetReq)}, + { 129, -1, -1, sizeof(::remote::HistoryGetReply)}, + { 137, -1, -1, sizeof(::remote::IndexRangeReq)}, + { 152, -1, -1, sizeof(::remote::IndexRangeReply)}, + { 160, -1, -1, sizeof(::remote::HistoryRangeReq)}, + { 174, -1, -1, sizeof(::remote::DomainRangeReq)}, + { 190, -1, -1, sizeof(::remote::Pairs)}, + { 199, -1, -1, sizeof(::remote::ParisPagination)}, + { 207, -1, -1, sizeof(::remote::IndexPagination)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -372,10 +618,18 @@ static const ::_pb::Message* const file_default_instances[] = { &::remote::_StateChangeRequest_default_instance_._instance, &::remote::_SnapshotsRequest_default_instance_._instance, &::remote::_SnapshotsReply_default_instance_._instance, + &::remote::_RangeReq_default_instance_._instance, + &::remote::_DomainGetReq_default_instance_._instance, + &::remote::_DomainGetReply_default_instance_._instance, &::remote::_HistoryGetReq_default_instance_._instance, &::remote::_HistoryGetReply_default_instance_._instance, &::remote::_IndexRangeReq_default_instance_._instance, &::remote::_IndexRangeReply_default_instance_._instance, + &::remote::_HistoryRangeReq_default_instance_._instance, + &::remote::_DomainRangeReq_default_instance_._instance, + &::remote::_Pairs_default_instance_._instance, + &::remote::_ParisPagination_default_instance_._instance, + &::remote::_IndexPagination_default_instance_._instance, }; const char descriptor_table_protodef_remote_2fkv_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -400,33 +654,62 @@ const char descriptor_table_protodef_remote_2fkv_2eproto[] PROTOBUF_SECTION_VARI "es.H256\022&\n\007changes\030\004 \003(\0132\025.remote.Accoun" "tChange\022\013\n\003txs\030\005 \003(\014\"C\n\022StateChangeReque" "st\022\023\n\013withStorage\030\001 \001(\010\022\030\n\020withTransacti" - "ons\030\002 \001(\010\"\022\n\020SnapshotsRequest\"\037\n\016Snapsho" - "tsReply\022\r\n\005files\030\001 \003(\t\"B\n\rHistoryGetReq\022" - "\014\n\004txID\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022\t\n\001k\030\003 \001(\014\022\n" - "\n\002ts\030\004 \001(\004\"(\n\017HistoryGetReply\022\t\n\001v\030\001 \001(\014" - "\022\n\n\002ok\030\002 \001(\010\"T\n\rIndexRangeReq\022\014\n\004txID\030\001 " - "\001(\004\022\014\n\004name\030\002 \001(\t\022\t\n\001k\030\003 \001(\014\022\016\n\006fromTs\030\004" - " \001(\004\022\014\n\004toTs\030\005 \001(\004\"%\n\017IndexRangeReply\022\022\n" - "\ntimestamps\030\001 \003(\004*\206\002\n\002Op\022\t\n\005FIRST\020\000\022\r\n\tF" - "IRST_DUP\020\001\022\010\n\004SEEK\020\002\022\r\n\tSEEK_BOTH\020\003\022\013\n\007C" - "URRENT\020\004\022\010\n\004LAST\020\006\022\014\n\010LAST_DUP\020\007\022\010\n\004NEXT" - "\020\010\022\014\n\010NEXT_DUP\020\t\022\017\n\013NEXT_NO_DUP\020\013\022\010\n\004PRE" - "V\020\014\022\014\n\010PREV_DUP\020\r\022\017\n\013PREV_NO_DUP\020\016\022\016\n\nSE" - "EK_EXACT\020\017\022\023\n\017SEEK_BOTH_EXACT\020\020\022\010\n\004OPEN\020" - "\036\022\t\n\005CLOSE\020\037\022\021\n\rOPEN_DUP_SORT\020 \022\t\n\005COUNT" - "\020!*H\n\006Action\022\013\n\007STORAGE\020\000\022\n\n\006UPSERT\020\001\022\010\n" - "\004CODE\020\002\022\017\n\013UPSERT_CODE\020\003\022\n\n\006REMOVE\020\004*$\n\t" - "Direction\022\013\n\007FORWARD\020\000\022\n\n\006UNWIND\020\0012\351\002\n\002K" - "V\0226\n\007Version\022\026.google.protobuf.Empty\032\023.t" - "ypes.VersionReply\022&\n\002Tx\022\016.remote.Cursor\032" - "\014.remote.Pair(\0010\001\022F\n\014StateChanges\022\032.remo" - "te.StateChangeRequest\032\030.remote.StateChan" - "geBatch0\001\022=\n\tSnapshots\022\030.remote.Snapshot" - "sRequest\032\026.remote.SnapshotsReply\022<\n\nHist" - "oryGet\022\025.remote.HistoryGetReq\032\027.remote.H" - "istoryGetReply\022>\n\nIndexRange\022\025.remote.In" - "dexRangeReq\032\027.remote.IndexRangeReply0\001B\021" - "Z\017./remote;remoteb\006proto3" + "ons\030\002 \001(\010\"\022\n\020SnapshotsRequest\"=\n\016Snapsho" + "tsReply\022\024\n\014blocks_files\030\001 \003(\t\022\025\n\rhistory" + "_files\030\002 \003(\t\"\234\001\n\010RangeReq\022\r\n\005tx_id\030\001 \001(\004" + "\022\r\n\005table\030\002 \001(\t\022\023\n\013from_prefix\030\003 \001(\014\022\021\n\t" + "to_prefix\030\004 \001(\014\022\024\n\014order_ascend\030\005 \001(\010\022\r\n" + "\005limit\030\006 \001(\022\022\021\n\tpage_size\030\007 \001(\005\022\022\n\npage_" + "token\030\010 \001(\t\"_\n\014DomainGetReq\022\r\n\005tx_id\030\001 \001" + "(\004\022\r\n\005table\030\002 \001(\t\022\t\n\001k\030\003 \001(\014\022\n\n\002ts\030\004 \001(\004" + "\022\n\n\002k2\030\005 \001(\014\022\016\n\006latest\030\006 \001(\010\"\'\n\016DomainGe" + "tReply\022\t\n\001v\030\001 \001(\014\022\n\n\002ok\030\002 \001(\010\"D\n\rHistory" + "GetReq\022\r\n\005tx_id\030\001 \001(\004\022\r\n\005table\030\002 \001(\t\022\t\n\001" + "k\030\003 \001(\014\022\n\n\002ts\030\004 \001(\004\"(\n\017HistoryGetReply\022\t" + "\n\001v\030\001 \001(\014\022\n\n\002ok\030\002 \001(\010\"\244\001\n\rIndexRangeReq\022" + "\r\n\005tx_id\030\001 \001(\004\022\r\n\005table\030\002 \001(\t\022\t\n\001k\030\003 \001(\014" + "\022\017\n\007from_ts\030\004 \001(\022\022\r\n\005to_ts\030\005 \001(\022\022\024\n\014orde" + "r_ascend\030\006 \001(\010\022\r\n\005limit\030\007 \001(\022\022\021\n\tpage_si" + "ze\030\010 \001(\005\022\022\n\npage_token\030\t \001(\t\">\n\017IndexRan" + "geReply\022\022\n\ntimestamps\030\001 \003(\004\022\027\n\017next_page" + "_token\030\002 \001(\t\"\233\001\n\017HistoryRangeReq\022\r\n\005tx_i" + "d\030\001 \001(\004\022\r\n\005table\030\002 \001(\t\022\017\n\007from_ts\030\004 \001(\022\022" + "\r\n\005to_ts\030\005 \001(\022\022\024\n\014order_ascend\030\006 \001(\010\022\r\n\005" + "limit\030\007 \001(\022\022\021\n\tpage_size\030\010 \001(\005\022\022\n\npage_t" + "oken\030\t \001(\t\"\270\001\n\016DomainRangeReq\022\r\n\005tx_id\030\001" + " \001(\004\022\r\n\005table\030\002 \001(\t\022\020\n\010from_key\030\003 \001(\014\022\016\n" + "\006to_key\030\004 \001(\014\022\n\n\002ts\030\005 \001(\004\022\016\n\006latest\030\006 \001(" + "\010\022\024\n\014order_ascend\030\007 \001(\010\022\r\n\005limit\030\010 \001(\022\022\021" + "\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t\">\n" + "\005Pairs\022\014\n\004keys\030\001 \003(\014\022\016\n\006values\030\002 \003(\014\022\027\n\017" + "next_page_token\030\003 \001(\t\"2\n\017ParisPagination" + "\022\020\n\010next_key\030\001 \001(\014\022\r\n\005limit\030\002 \001(\022\"9\n\017Ind" + "exPagination\022\027\n\017next_time_stamp\030\001 \001(\022\022\r\n" + "\005limit\030\002 \001(\022*\206\002\n\002Op\022\t\n\005FIRST\020\000\022\r\n\tFIRST_" + "DUP\020\001\022\010\n\004SEEK\020\002\022\r\n\tSEEK_BOTH\020\003\022\013\n\007CURREN" + "T\020\004\022\010\n\004LAST\020\006\022\014\n\010LAST_DUP\020\007\022\010\n\004NEXT\020\010\022\014\n" + "\010NEXT_DUP\020\t\022\017\n\013NEXT_NO_DUP\020\013\022\010\n\004PREV\020\014\022\014" + "\n\010PREV_DUP\020\r\022\017\n\013PREV_NO_DUP\020\016\022\016\n\nSEEK_EX" + "ACT\020\017\022\023\n\017SEEK_BOTH_EXACT\020\020\022\010\n\004OPEN\020\036\022\t\n\005" + "CLOSE\020\037\022\021\n\rOPEN_DUP_SORT\020 \022\t\n\005COUNT\020!*H\n" + "\006Action\022\013\n\007STORAGE\020\000\022\n\n\006UPSERT\020\001\022\010\n\004CODE" + "\020\002\022\017\n\013UPSERT_CODE\020\003\022\n\n\006REMOVE\020\004*$\n\tDirec" + "tion\022\013\n\007FORWARD\020\000\022\n\n\006UNWIND\020\0012\272\004\n\002KV\0226\n\007" + "Version\022\026.google.protobuf.Empty\032\023.types." + "VersionReply\022&\n\002Tx\022\016.remote.Cursor\032\014.rem" + "ote.Pair(\0010\001\022F\n\014StateChanges\022\032.remote.St" + "ateChangeRequest\032\030.remote.StateChangeBat" + "ch0\001\022=\n\tSnapshots\022\030.remote.SnapshotsRequ" + "est\032\026.remote.SnapshotsReply\022(\n\005Range\022\020.r" + "emote.RangeReq\032\r.remote.Pairs\0229\n\tDomainG" + "et\022\024.remote.DomainGetReq\032\026.remote.Domain" + "GetReply\022<\n\nHistoryGet\022\025.remote.HistoryG" + "etReq\032\027.remote.HistoryGetReply\022<\n\nIndexR" + "ange\022\025.remote.IndexRangeReq\032\027.remote.Ind" + "exRangeReply\0226\n\014HistoryRange\022\027.remote.Hi" + "storyRangeReq\032\r.remote.Pairs\0224\n\013DomainRa" + "nge\022\026.remote.DomainRangeReq\032\r.remote.Pai" + "rsB\021Z\017./remote;remoteb\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_remote_2fkv_2eproto_deps[2] = { &::descriptor_table_google_2fprotobuf_2fempty_2eproto, @@ -434,9 +717,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_remote_2fkv_2eproto }; static ::_pbi::once_flag descriptor_table_remote_2fkv_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_remote_2fkv_2eproto = { - false, false, 1905, descriptor_table_protodef_remote_2fkv_2eproto, + false, false, 3069, descriptor_table_protodef_remote_2fkv_2eproto, "remote/kv.proto", - &descriptor_table_remote_2fkv_2eproto_once, descriptor_table_remote_2fkv_2eproto_deps, 2, 13, + &descriptor_table_remote_2fkv_2eproto_once, descriptor_table_remote_2fkv_2eproto_deps, 2, 21, schemas, file_default_instances, TableStruct_remote_2fkv_2eproto::offsets, file_level_metadata_remote_2fkv_2eproto, file_level_enum_descriptors_remote_2fkv_2eproto, file_level_service_descriptors_remote_2fkv_2eproto, @@ -2692,7 +2975,8 @@ SnapshotsReply::SnapshotsReply(const SnapshotsReply& from) : ::PROTOBUF_NAMESPACE_ID::Message() { SnapshotsReply* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.files_){from._impl_.files_} + decltype(_impl_.blocks_files_){from._impl_.blocks_files_} + , decltype(_impl_.history_files_){from._impl_.history_files_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -2704,7 +2988,8 @@ inline void SnapshotsReply::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.files_){arena} + decltype(_impl_.blocks_files_){arena} + , decltype(_impl_.history_files_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -2720,7 +3005,8 @@ SnapshotsReply::~SnapshotsReply() { inline void SnapshotsReply::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.files_.~RepeatedPtrField(); + _impl_.blocks_files_.~RepeatedPtrField(); + _impl_.history_files_.~RepeatedPtrField(); } void SnapshotsReply::SetCachedSize(int size) const { @@ -2733,7 +3019,8 @@ void SnapshotsReply::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.files_.Clear(); + _impl_.blocks_files_.Clear(); + _impl_.history_files_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2743,21 +3030,36 @@ const char* SnapshotsReply::_InternalParse(const char* ptr, ::_pbi::ParseContext uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated string files = 1; + // repeated string blocks_files = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; - auto str = _internal_add_files(); + auto str = _internal_add_blocks_files(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "remote.SnapshotsReply.files")); + CHK_(::_pbi::VerifyUTF8(str, "remote.SnapshotsReply.blocks_files")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; + // repeated string history_files = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_history_files(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.SnapshotsReply.history_files")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2787,16 +3089,26 @@ uint8_t* SnapshotsReply::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated string files = 1; - for (int i = 0, n = this->_internal_files_size(); i < n; i++) { - const auto& s = this->_internal_files(i); + // repeated string blocks_files = 1; + for (int i = 0, n = this->_internal_blocks_files_size(); i < n; i++) { + const auto& s = this->_internal_blocks_files(i); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "remote.SnapshotsReply.files"); + "remote.SnapshotsReply.blocks_files"); target = stream->WriteString(1, s, target); } + // repeated string history_files = 2; + for (int i = 0, n = this->_internal_history_files_size(); i < n; i++) { + const auto& s = this->_internal_history_files(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.SnapshotsReply.history_files"); + target = stream->WriteString(2, s, target); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -2813,12 +3125,20 @@ size_t SnapshotsReply::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated string files = 1; + // repeated string blocks_files = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.files_.size()); - for (int i = 0, n = _impl_.files_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.blocks_files_.size()); + for (int i = 0, n = _impl_.blocks_files_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.files_.Get(i)); + _impl_.blocks_files_.Get(i)); + } + + // repeated string history_files = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.history_files_.size()); + for (int i = 0, n = _impl_.history_files_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.history_files_.Get(i)); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); @@ -2839,7 +3159,8 @@ void SnapshotsReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.files_.MergeFrom(from._impl_.files_); + _this->_impl_.blocks_files_.MergeFrom(from._impl_.blocks_files_); + _this->_impl_.history_files_.MergeFrom(from._impl_.history_files_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -2857,7 +3178,8 @@ bool SnapshotsReply::IsInitialized() const { void SnapshotsReply::InternalSwap(SnapshotsReply* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.files_.InternalSwap(&other->_impl_.files_); + _impl_.blocks_files_.InternalSwap(&other->_impl_.blocks_files_); + _impl_.history_files_.InternalSwap(&other->_impl_.history_files_); } ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotsReply::GetMetadata() const { @@ -2868,72 +3190,104 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotsReply::GetMetadata() const { // =================================================================== -class HistoryGetReq::_Internal { +class RangeReq::_Internal { public: }; -HistoryGetReq::HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, +RangeReq::RangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReq) + // @@protoc_insertion_point(arena_constructor:remote.RangeReq) } -HistoryGetReq::HistoryGetReq(const HistoryGetReq& from) +RangeReq::RangeReq(const RangeReq& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - HistoryGetReq* const _this = this; (void)_this; + RangeReq* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.k_){} - , decltype(_impl_.txid_){} - , decltype(_impl_.ts_){} + decltype(_impl_.table_){} + , decltype(_impl_.from_prefix_){} + , decltype(_impl_.to_prefix_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){} + , decltype(_impl_.limit_){} + , decltype(_impl_.order_ascend_){} + , decltype(_impl_.page_size_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); + _impl_.table_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.table_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), + if (!from._internal_table().empty()) { + _this->_impl_.table_.Set(from._internal_table(), _this->GetArenaForAllocation()); } - _impl_.k_.InitDefault(); + _impl_.from_prefix_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.k_.Set("", GetArenaForAllocation()); + _impl_.from_prefix_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_k().empty()) { - _this->_impl_.k_.Set(from._internal_k(), + if (!from._internal_from_prefix().empty()) { + _this->_impl_.from_prefix_.Set(from._internal_from_prefix(), _this->GetArenaForAllocation()); } - ::memcpy(&_impl_.txid_, &from._impl_.txid_, - static_cast(reinterpret_cast(&_impl_.ts_) - - reinterpret_cast(&_impl_.txid_)) + sizeof(_impl_.ts_)); - // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReq) + _impl_.to_prefix_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_prefix_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_to_prefix().empty()) { + _this->_impl_.to_prefix_.Set(from._internal_to_prefix(), + _this->GetArenaForAllocation()); + } + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_page_token().empty()) { + _this->_impl_.page_token_.Set(from._internal_page_token(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.tx_id_, &from._impl_.tx_id_, + static_cast(reinterpret_cast(&_impl_.page_size_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.page_size_)); + // @@protoc_insertion_point(copy_constructor:remote.RangeReq) } -inline void HistoryGetReq::SharedCtor( +inline void RangeReq::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.k_){} - , decltype(_impl_.txid_){uint64_t{0u}} - , decltype(_impl_.ts_){uint64_t{0u}} + decltype(_impl_.table_){} + , decltype(_impl_.from_prefix_){} + , decltype(_impl_.to_prefix_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){uint64_t{0u}} + , decltype(_impl_.limit_){int64_t{0}} + , decltype(_impl_.order_ascend_){false} + , decltype(_impl_.page_size_){0} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.name_.InitDefault(); + _impl_.table_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.table_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.k_.InitDefault(); + _impl_.from_prefix_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.k_.Set("", GetArenaForAllocation()); + _impl_.from_prefix_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_prefix_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_prefix_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -HistoryGetReq::~HistoryGetReq() { - // @@protoc_insertion_point(destructor:remote.HistoryGetReq) +RangeReq::~RangeReq() { + // @@protoc_insertion_point(destructor:remote.RangeReq) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2941,68 +3295,107 @@ HistoryGetReq::~HistoryGetReq() { SharedDtor(); } -inline void HistoryGetReq::SharedDtor() { +inline void RangeReq::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - _impl_.k_.Destroy(); + _impl_.table_.Destroy(); + _impl_.from_prefix_.Destroy(); + _impl_.to_prefix_.Destroy(); + _impl_.page_token_.Destroy(); } -void HistoryGetReq::SetCachedSize(int size) const { +void RangeReq::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void HistoryGetReq::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReq) +void RangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.RangeReq) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.k_.ClearToEmpty(); - ::memset(&_impl_.txid_, 0, static_cast( - reinterpret_cast(&_impl_.ts_) - - reinterpret_cast(&_impl_.txid_)) + sizeof(_impl_.ts_)); + _impl_.table_.ClearToEmpty(); + _impl_.from_prefix_.ClearToEmpty(); + _impl_.to_prefix_.ClearToEmpty(); + _impl_.page_token_.ClearToEmpty(); + ::memset(&_impl_.tx_id_, 0, static_cast( + reinterpret_cast(&_impl_.page_size_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.page_size_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HistoryGetReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* RangeReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // uint64 txID = 1; + // uint64 tx_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.txid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string name = 2; + // string table = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_name(); + auto str = _internal_mutable_table(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "remote.HistoryGetReq.name")); + CHK_(::_pbi::VerifyUTF8(str, "remote.RangeReq.table")); } else goto handle_unusual; continue; - // bytes k = 3; + // bytes from_prefix = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_k(); + auto str = _internal_mutable_from_prefix(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 ts = 4; + // bytes to_prefix = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _impl_.ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_to_prefix(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool order_ascend = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 limit = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 page_size = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string page_token = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.RangeReq.page_token")); } else goto handle_unusual; continue; @@ -3029,146 +3422,218 @@ const char* HistoryGetReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* HistoryGetReq::_InternalSerialize( +uint8_t* RangeReq::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReq) + // @@protoc_insertion_point(serialize_to_array_start:remote.RangeReq) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // uint64 txID = 1; - if (this->_internal_txid() != 0) { + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_txid(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); } - // string name = 2; - if (!this->_internal_name().empty()) { + // string table = 2; + if (!this->_internal_table().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), + this->_internal_table().data(), static_cast(this->_internal_table().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "remote.HistoryGetReq.name"); + "remote.RangeReq.table"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); + 2, this->_internal_table(), target); } - // bytes k = 3; - if (!this->_internal_k().empty()) { + // bytes from_prefix = 3; + if (!this->_internal_from_prefix().empty()) { target = stream->WriteBytesMaybeAliased( - 3, this->_internal_k(), target); + 3, this->_internal_from_prefix(), target); } - // uint64 ts = 4; - if (this->_internal_ts() != 0) { + // bytes to_prefix = 4; + if (!this->_internal_to_prefix().empty()) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_to_prefix(), target); + } + + // bool order_ascend = 5; + if (this->_internal_order_ascend() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_ts(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_order_ascend(), target); + } + + // sint64 limit = 6; + if (this->_internal_limit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(6, this->_internal_limit(), target); + } + + // int32 page_size = 7; + if (this->_internal_page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_page_size(), target); + } + + // string page_token = 8; + if (!this->_internal_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.RangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 8, this->_internal_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReq) + // @@protoc_insertion_point(serialize_to_array_end:remote.RangeReq) return target; } -size_t HistoryGetReq::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReq) +size_t RangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.RangeReq) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string name = 2; - if (!this->_internal_name().empty()) { + // string table = 2; + if (!this->_internal_table().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); + this->_internal_table()); } - // bytes k = 3; - if (!this->_internal_k().empty()) { + // bytes from_prefix = 3; + if (!this->_internal_from_prefix().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_k()); + this->_internal_from_prefix()); } - // uint64 txID = 1; - if (this->_internal_txid() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_txid()); + // bytes to_prefix = 4; + if (!this->_internal_to_prefix().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_to_prefix()); } - // uint64 ts = 4; - if (this->_internal_ts() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ts()); + // string page_token = 8; + if (!this->_internal_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_tx_id()); + } + + // sint64 limit = 6; + if (this->_internal_limit() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_limit()); + } + + // bool order_ascend = 5; + if (this->_internal_order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 7; + if (this->_internal_page_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HistoryGetReq::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RangeReq::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - HistoryGetReq::MergeImpl + RangeReq::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HistoryGetReq::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RangeReq::GetClassData() const { return &_class_data_; } -void HistoryGetReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReq) +void RangeReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.RangeReq) GOOGLE_DCHECK_NE(&from, _this); 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_table().empty()) { + _this->_internal_set_table(from._internal_table()); } - if (!from._internal_k().empty()) { - _this->_internal_set_k(from._internal_k()); + if (!from._internal_from_prefix().empty()) { + _this->_internal_set_from_prefix(from._internal_from_prefix()); } - if (from._internal_txid() != 0) { - _this->_internal_set_txid(from._internal_txid()); + if (!from._internal_to_prefix().empty()) { + _this->_internal_set_to_prefix(from._internal_to_prefix()); } - if (from._internal_ts() != 0) { - _this->_internal_set_ts(from._internal_ts()); + if (!from._internal_page_token().empty()) { + _this->_internal_set_page_token(from._internal_page_token()); + } + if (from._internal_tx_id() != 0) { + _this->_internal_set_tx_id(from._internal_tx_id()); + } + if (from._internal_limit() != 0) { + _this->_internal_set_limit(from._internal_limit()); + } + if (from._internal_order_ascend() != 0) { + _this->_internal_set_order_ascend(from._internal_order_ascend()); + } + if (from._internal_page_size() != 0) { + _this->_internal_set_page_size(from._internal_page_size()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void HistoryGetReq::CopyFrom(const HistoryGetReq& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReq) +void RangeReq::CopyFrom(const RangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.RangeReq) if (&from == this) return; Clear(); MergeFrom(from); } -bool HistoryGetReq::IsInitialized() const { +bool RangeReq::IsInitialized() const { return true; } -void HistoryGetReq::InternalSwap(HistoryGetReq* other) { +void RangeReq::InternalSwap(RangeReq* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena + &_impl_.table_, lhs_arena, + &other->_impl_.table_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.k_, lhs_arena, - &other->_impl_.k_, rhs_arena + &_impl_.from_prefix_, lhs_arena, + &other->_impl_.from_prefix_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.to_prefix_, lhs_arena, + &other->_impl_.to_prefix_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.page_token_, lhs_arena, + &other->_impl_.page_token_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(HistoryGetReq, _impl_.ts_) - + sizeof(HistoryGetReq::_impl_.ts_) - - PROTOBUF_FIELD_OFFSET(HistoryGetReq, _impl_.txid_)>( - reinterpret_cast(&_impl_.txid_), - reinterpret_cast(&other->_impl_.txid_)); + PROTOBUF_FIELD_OFFSET(RangeReq, _impl_.page_size_) + + sizeof(RangeReq::_impl_.page_size_) + - PROTOBUF_FIELD_OFFSET(RangeReq, _impl_.tx_id_)>( + reinterpret_cast(&_impl_.tx_id_), + reinterpret_cast(&other->_impl_.tx_id_)); } -::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReq::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RangeReq::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, file_level_metadata_remote_2fkv_2eproto[9]); @@ -3176,54 +3641,88 @@ ::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReq::GetMetadata() const { // =================================================================== -class HistoryGetReply::_Internal { +class DomainGetReq::_Internal { public: }; -HistoryGetReply::HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DomainGetReq::DomainGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReply) + // @@protoc_insertion_point(arena_constructor:remote.DomainGetReq) } -HistoryGetReply::HistoryGetReply(const HistoryGetReply& from) +DomainGetReq::DomainGetReq(const DomainGetReq& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - HistoryGetReply* const _this = this; (void)_this; + DomainGetReq* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.v_){} - , decltype(_impl_.ok_){} + decltype(_impl_.table_){} + , decltype(_impl_.k_){} + , decltype(_impl_.k2_){} + , decltype(_impl_.tx_id_){} + , decltype(_impl_.ts_){} + , decltype(_impl_.latest_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.v_.InitDefault(); + _impl_.table_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.v_.Set("", GetArenaForAllocation()); + _impl_.table_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_v().empty()) { - _this->_impl_.v_.Set(from._internal_v(), + if (!from._internal_table().empty()) { + _this->_impl_.table_.Set(from._internal_table(), _this->GetArenaForAllocation()); } - _this->_impl_.ok_ = from._impl_.ok_; - // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReply) + _impl_.k_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_k().empty()) { + _this->_impl_.k_.Set(from._internal_k(), + _this->GetArenaForAllocation()); + } + _impl_.k2_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k2_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_k2().empty()) { + _this->_impl_.k2_.Set(from._internal_k2(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.tx_id_, &from._impl_.tx_id_, + static_cast(reinterpret_cast(&_impl_.latest_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.latest_)); + // @@protoc_insertion_point(copy_constructor:remote.DomainGetReq) } -inline void HistoryGetReply::SharedCtor( +inline void DomainGetReq::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.v_){} - , decltype(_impl_.ok_){false} + decltype(_impl_.table_){} + , decltype(_impl_.k_){} + , decltype(_impl_.k2_){} + , decltype(_impl_.tx_id_){uint64_t{0u}} + , decltype(_impl_.ts_){uint64_t{0u}} + , decltype(_impl_.latest_){false} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.v_.InitDefault(); + _impl_.table_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.v_.Set("", GetArenaForAllocation()); + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k2_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k2_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -HistoryGetReply::~HistoryGetReply() { - // @@protoc_insertion_point(destructor:remote.HistoryGetReply) +DomainGetReq::~DomainGetReq() { + // @@protoc_insertion_point(destructor:remote.DomainGetReq) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -3231,45 +3730,86 @@ HistoryGetReply::~HistoryGetReply() { SharedDtor(); } -inline void HistoryGetReply::SharedDtor() { +inline void DomainGetReq::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.v_.Destroy(); + _impl_.table_.Destroy(); + _impl_.k_.Destroy(); + _impl_.k2_.Destroy(); } -void HistoryGetReply::SetCachedSize(int size) const { +void DomainGetReq::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void HistoryGetReply::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReply) +void DomainGetReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.DomainGetReq) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.v_.ClearToEmpty(); - _impl_.ok_ = false; + _impl_.table_.ClearToEmpty(); + _impl_.k_.ClearToEmpty(); + _impl_.k2_.ClearToEmpty(); + ::memset(&_impl_.tx_id_, 0, static_cast( + reinterpret_cast(&_impl_.latest_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.latest_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HistoryGetReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DomainGetReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // bytes v = 1; + // uint64 tx_id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_v(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // bool ok = 2; + // string table = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.ok_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.DomainGetReq.table")); + } else + goto handle_unusual; + continue; + // bytes k = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_k(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes k2 = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_k2(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool latest = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.latest_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -3297,178 +3837,2871 @@ const char* HistoryGetReply::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* HistoryGetReply::_InternalSerialize( +uint8_t* DomainGetReq::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReply) + // @@protoc_insertion_point(serialize_to_array_start:remote.DomainGetReq) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (!this->_internal_table().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.DomainGetReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes k = 3; + if (!this->_internal_k().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_k(), target); + } + + // uint64 ts = 4; + if (this->_internal_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_ts(), target); + } + + // bytes k2 = 5; + if (!this->_internal_k2().empty()) { + target = stream->WriteBytesMaybeAliased( + 5, this->_internal_k2(), target); + } + + // bool latest = 6; + if (this->_internal_latest() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_latest(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.DomainGetReq) + return target; +} + +size_t DomainGetReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.DomainGetReq) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (!this->_internal_table().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes k = 3; + if (!this->_internal_k().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k()); + } + + // bytes k2 = 5; + if (!this->_internal_k2().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k2()); + } + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_tx_id()); + } + + // uint64 ts = 4; + if (this->_internal_ts() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ts()); + } + + // bool latest = 6; + if (this->_internal_latest() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DomainGetReq::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DomainGetReq::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DomainGetReq::GetClassData() const { return &_class_data_; } + + +void DomainGetReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.DomainGetReq) + GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - // bytes v = 1; - if (!this->_internal_v().empty()) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_v(), target); + if (!from._internal_table().empty()) { + _this->_internal_set_table(from._internal_table()); + } + if (!from._internal_k().empty()) { + _this->_internal_set_k(from._internal_k()); + } + if (!from._internal_k2().empty()) { + _this->_internal_set_k2(from._internal_k2()); + } + if (from._internal_tx_id() != 0) { + _this->_internal_set_tx_id(from._internal_tx_id()); + } + if (from._internal_ts() != 0) { + _this->_internal_set_ts(from._internal_ts()); + } + if (from._internal_latest() != 0) { + _this->_internal_set_latest(from._internal_latest()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DomainGetReq::CopyFrom(const DomainGetReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.DomainGetReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DomainGetReq::IsInitialized() const { + return true; +} + +void DomainGetReq::InternalSwap(DomainGetReq* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_, lhs_arena, + &other->_impl_.table_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.k_, lhs_arena, + &other->_impl_.k_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.k2_, lhs_arena, + &other->_impl_.k2_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DomainGetReq, _impl_.latest_) + + sizeof(DomainGetReq::_impl_.latest_) + - PROTOBUF_FIELD_OFFSET(DomainGetReq, _impl_.tx_id_)>( + reinterpret_cast(&_impl_.tx_id_), + reinterpret_cast(&other->_impl_.tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DomainGetReq::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[10]); +} + +// =================================================================== + +class DomainGetReply::_Internal { + public: +}; + +DomainGetReply::DomainGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.DomainGetReply) +} +DomainGetReply::DomainGetReply(const DomainGetReply& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DomainGetReply* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.v_){} + , decltype(_impl_.ok_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.v_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.v_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_v().empty()) { + _this->_impl_.v_.Set(from._internal_v(), + _this->GetArenaForAllocation()); + } + _this->_impl_.ok_ = from._impl_.ok_; + // @@protoc_insertion_point(copy_constructor:remote.DomainGetReply) +} + +inline void DomainGetReply::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.v_){} + , decltype(_impl_.ok_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.v_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.v_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DomainGetReply::~DomainGetReply() { + // @@protoc_insertion_point(destructor:remote.DomainGetReply) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DomainGetReply::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.v_.Destroy(); +} + +void DomainGetReply::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DomainGetReply::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.DomainGetReply) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.v_.ClearToEmpty(); + _impl_.ok_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DomainGetReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bytes v = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_v(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool ok = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.ok_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DomainGetReply::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.DomainGetReply) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes v = 1; + if (!this->_internal_v().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_v(), target); + } + + // bool ok = 2; + if (this->_internal_ok() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_ok(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.DomainGetReply) + return target; +} + +size_t DomainGetReply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.DomainGetReply) + 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 v = 1; + if (!this->_internal_v().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_v()); + } + + // bool ok = 2; + if (this->_internal_ok() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DomainGetReply::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DomainGetReply::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DomainGetReply::GetClassData() const { return &_class_data_; } + + +void DomainGetReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.DomainGetReply) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_v().empty()) { + _this->_internal_set_v(from._internal_v()); + } + if (from._internal_ok() != 0) { + _this->_internal_set_ok(from._internal_ok()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DomainGetReply::CopyFrom(const DomainGetReply& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.DomainGetReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DomainGetReply::IsInitialized() const { + return true; +} + +void DomainGetReply::InternalSwap(DomainGetReply* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.v_, lhs_arena, + &other->_impl_.v_, rhs_arena + ); + swap(_impl_.ok_, other->_impl_.ok_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DomainGetReply::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[11]); +} + +// =================================================================== + +class HistoryGetReq::_Internal { + public: +}; + +HistoryGetReq::HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReq) +} +HistoryGetReq::HistoryGetReq(const HistoryGetReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + HistoryGetReq* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.k_){} + , decltype(_impl_.tx_id_){} + , decltype(_impl_.ts_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table().empty()) { + _this->_impl_.table_.Set(from._internal_table(), + _this->GetArenaForAllocation()); + } + _impl_.k_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_k().empty()) { + _this->_impl_.k_.Set(from._internal_k(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.tx_id_, &from._impl_.tx_id_, + static_cast(reinterpret_cast(&_impl_.ts_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.ts_)); + // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReq) +} + +inline void HistoryGetReq::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.k_){} + , decltype(_impl_.tx_id_){uint64_t{0u}} + , decltype(_impl_.ts_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +HistoryGetReq::~HistoryGetReq() { + // @@protoc_insertion_point(destructor:remote.HistoryGetReq) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void HistoryGetReq::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.table_.Destroy(); + _impl_.k_.Destroy(); +} + +void HistoryGetReq::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void HistoryGetReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReq) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.table_.ClearToEmpty(); + _impl_.k_.ClearToEmpty(); + ::memset(&_impl_.tx_id_, 0, static_cast( + reinterpret_cast(&_impl_.ts_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.ts_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HistoryGetReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.HistoryGetReq.table")); + } else + goto handle_unusual; + continue; + // bytes k = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_k(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* HistoryGetReq::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReq) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (!this->_internal_table().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.HistoryGetReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes k = 3; + if (!this->_internal_k().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_k(), target); + } + + // uint64 ts = 4; + if (this->_internal_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_ts(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReq) + return target; +} + +size_t HistoryGetReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReq) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (!this->_internal_table().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes k = 3; + if (!this->_internal_k().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k()); + } + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_tx_id()); + } + + // uint64 ts = 4; + if (this->_internal_ts() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ts()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HistoryGetReq::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + HistoryGetReq::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HistoryGetReq::GetClassData() const { return &_class_data_; } + + +void HistoryGetReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReq) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_table().empty()) { + _this->_internal_set_table(from._internal_table()); + } + if (!from._internal_k().empty()) { + _this->_internal_set_k(from._internal_k()); + } + if (from._internal_tx_id() != 0) { + _this->_internal_set_tx_id(from._internal_tx_id()); + } + if (from._internal_ts() != 0) { + _this->_internal_set_ts(from._internal_ts()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void HistoryGetReq::CopyFrom(const HistoryGetReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HistoryGetReq::IsInitialized() const { + return true; +} + +void HistoryGetReq::InternalSwap(HistoryGetReq* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_, lhs_arena, + &other->_impl_.table_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.k_, lhs_arena, + &other->_impl_.k_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(HistoryGetReq, _impl_.ts_) + + sizeof(HistoryGetReq::_impl_.ts_) + - PROTOBUF_FIELD_OFFSET(HistoryGetReq, _impl_.tx_id_)>( + reinterpret_cast(&_impl_.tx_id_), + reinterpret_cast(&other->_impl_.tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReq::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[12]); +} + +// =================================================================== + +class HistoryGetReply::_Internal { + public: +}; + +HistoryGetReply::HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.HistoryGetReply) +} +HistoryGetReply::HistoryGetReply(const HistoryGetReply& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + HistoryGetReply* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.v_){} + , decltype(_impl_.ok_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.v_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.v_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_v().empty()) { + _this->_impl_.v_.Set(from._internal_v(), + _this->GetArenaForAllocation()); + } + _this->_impl_.ok_ = from._impl_.ok_; + // @@protoc_insertion_point(copy_constructor:remote.HistoryGetReply) +} + +inline void HistoryGetReply::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.v_){} + , decltype(_impl_.ok_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.v_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.v_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +HistoryGetReply::~HistoryGetReply() { + // @@protoc_insertion_point(destructor:remote.HistoryGetReply) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void HistoryGetReply::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.v_.Destroy(); +} + +void HistoryGetReply::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void HistoryGetReply::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.HistoryGetReply) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.v_.ClearToEmpty(); + _impl_.ok_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HistoryGetReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bytes v = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_v(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool ok = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.ok_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* HistoryGetReply::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryGetReply) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes v = 1; + if (!this->_internal_v().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_v(), target); + } + + // bool ok = 2; + if (this->_internal_ok() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_ok(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReply) + return target; +} + +size_t HistoryGetReply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReply) + 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 v = 1; + if (!this->_internal_v().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_v()); + } + + // bool ok = 2; + if (this->_internal_ok() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HistoryGetReply::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + HistoryGetReply::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HistoryGetReply::GetClassData() const { return &_class_data_; } + + +void HistoryGetReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReply) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_v().empty()) { + _this->_internal_set_v(from._internal_v()); + } + if (from._internal_ok() != 0) { + _this->_internal_set_ok(from._internal_ok()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void HistoryGetReply::CopyFrom(const HistoryGetReply& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HistoryGetReply::IsInitialized() const { + return true; +} + +void HistoryGetReply::InternalSwap(HistoryGetReply* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.v_, lhs_arena, + &other->_impl_.v_, rhs_arena + ); + swap(_impl_.ok_, other->_impl_.ok_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReply::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[13]); +} + +// =================================================================== + +class IndexRangeReq::_Internal { + public: +}; + +IndexRangeReq::IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReq) +} +IndexRangeReq::IndexRangeReq(const IndexRangeReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + IndexRangeReq* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.k_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){} + , decltype(_impl_.from_ts_){} + , decltype(_impl_.to_ts_){} + , decltype(_impl_.limit_){} + , decltype(_impl_.order_ascend_){} + , decltype(_impl_.page_size_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table().empty()) { + _this->_impl_.table_.Set(from._internal_table(), + _this->GetArenaForAllocation()); + } + _impl_.k_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_k().empty()) { + _this->_impl_.k_.Set(from._internal_k(), + _this->GetArenaForAllocation()); + } + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_page_token().empty()) { + _this->_impl_.page_token_.Set(from._internal_page_token(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.tx_id_, &from._impl_.tx_id_, + static_cast(reinterpret_cast(&_impl_.page_size_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.page_size_)); + // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReq) +} + +inline void IndexRangeReq::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.k_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){uint64_t{0u}} + , decltype(_impl_.from_ts_){int64_t{0}} + , decltype(_impl_.to_ts_){int64_t{0}} + , decltype(_impl_.limit_){int64_t{0}} + , decltype(_impl_.order_ascend_){false} + , decltype(_impl_.page_size_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.k_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +IndexRangeReq::~IndexRangeReq() { + // @@protoc_insertion_point(destructor:remote.IndexRangeReq) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void IndexRangeReq::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.table_.Destroy(); + _impl_.k_.Destroy(); + _impl_.page_token_.Destroy(); +} + +void IndexRangeReq::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void IndexRangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReq) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.table_.ClearToEmpty(); + _impl_.k_.ClearToEmpty(); + _impl_.page_token_.ClearToEmpty(); + ::memset(&_impl_.tx_id_, 0, static_cast( + reinterpret_cast(&_impl_.page_size_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.page_size_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IndexRangeReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.IndexRangeReq.table")); + } else + goto handle_unusual; + continue; + // bytes k = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_k(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 from_ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.from_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 to_ts = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.to_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool order_ascend = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 limit = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 page_size = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string page_token = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.IndexRangeReq.page_token")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* IndexRangeReq::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReq) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (!this->_internal_table().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.IndexRangeReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes k = 3; + if (!this->_internal_k().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_k(), target); + } + + // sint64 from_ts = 4; + if (this->_internal_from_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(4, this->_internal_from_ts(), target); + } + + // sint64 to_ts = 5; + if (this->_internal_to_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(5, this->_internal_to_ts(), target); + } + + // bool order_ascend = 6; + if (this->_internal_order_ascend() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_order_ascend(), target); + } + + // sint64 limit = 7; + if (this->_internal_limit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(7, this->_internal_limit(), target); + } + + // int32 page_size = 8; + if (this->_internal_page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(8, this->_internal_page_size(), target); + } + + // string page_token = 9; + if (!this->_internal_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.IndexRangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReq) + return target; +} + +size_t IndexRangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReq) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (!this->_internal_table().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes k = 3; + if (!this->_internal_k().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_k()); + } + + // string page_token = 9; + if (!this->_internal_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_tx_id()); + } + + // sint64 from_ts = 4; + if (this->_internal_from_ts() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_from_ts()); + } + + // sint64 to_ts = 5; + if (this->_internal_to_ts() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_to_ts()); + } + + // sint64 limit = 7; + if (this->_internal_limit() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_limit()); + } + + // bool order_ascend = 6; + if (this->_internal_order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 8; + if (this->_internal_page_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IndexRangeReq::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IndexRangeReq::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IndexRangeReq::GetClassData() const { return &_class_data_; } + + +void IndexRangeReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReq) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_table().empty()) { + _this->_internal_set_table(from._internal_table()); + } + if (!from._internal_k().empty()) { + _this->_internal_set_k(from._internal_k()); + } + if (!from._internal_page_token().empty()) { + _this->_internal_set_page_token(from._internal_page_token()); + } + if (from._internal_tx_id() != 0) { + _this->_internal_set_tx_id(from._internal_tx_id()); + } + if (from._internal_from_ts() != 0) { + _this->_internal_set_from_ts(from._internal_from_ts()); + } + if (from._internal_to_ts() != 0) { + _this->_internal_set_to_ts(from._internal_to_ts()); + } + if (from._internal_limit() != 0) { + _this->_internal_set_limit(from._internal_limit()); + } + if (from._internal_order_ascend() != 0) { + _this->_internal_set_order_ascend(from._internal_order_ascend()); + } + if (from._internal_page_size() != 0) { + _this->_internal_set_page_size(from._internal_page_size()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IndexRangeReq::CopyFrom(const IndexRangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexRangeReq::IsInitialized() const { + return true; +} + +void IndexRangeReq::InternalSwap(IndexRangeReq* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_, lhs_arena, + &other->_impl_.table_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.k_, lhs_arena, + &other->_impl_.k_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.page_token_, lhs_arena, + &other->_impl_.page_token_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IndexRangeReq, _impl_.page_size_) + + sizeof(IndexRangeReq::_impl_.page_size_) + - PROTOBUF_FIELD_OFFSET(IndexRangeReq, _impl_.tx_id_)>( + reinterpret_cast(&_impl_.tx_id_), + reinterpret_cast(&other->_impl_.tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReq::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[14]); +} + +// =================================================================== + +class IndexRangeReply::_Internal { + public: +}; + +IndexRangeReply::IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReply) +} +IndexRangeReply::IndexRangeReply(const IndexRangeReply& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + IndexRangeReply* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.timestamps_){from._impl_.timestamps_} + , /*decltype(_impl_._timestamps_cached_byte_size_)*/{0} + , decltype(_impl_.next_page_token_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.next_page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.next_page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_next_page_token().empty()) { + _this->_impl_.next_page_token_.Set(from._internal_next_page_token(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReply) +} + +inline void IndexRangeReply::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.timestamps_){arena} + , /*decltype(_impl_._timestamps_cached_byte_size_)*/{0} + , decltype(_impl_.next_page_token_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.next_page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.next_page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +IndexRangeReply::~IndexRangeReply() { + // @@protoc_insertion_point(destructor:remote.IndexRangeReply) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void IndexRangeReply::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.timestamps_.~RepeatedField(); + _impl_.next_page_token_.Destroy(); +} + +void IndexRangeReply::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void IndexRangeReply::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReply) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.timestamps_.Clear(); + _impl_.next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IndexRangeReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated uint64 timestamps = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_timestamps(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 8) { + _internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string next_page_token = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.IndexRangeReply.next_page_token")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* IndexRangeReply::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReply) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated uint64 timestamps = 1; + { + int byte_size = _impl_._timestamps_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteUInt64Packed( + 1, _internal_timestamps(), byte_size, target); + } + } + + // string next_page_token = 2; + if (!this->_internal_next_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.IndexRangeReply.next_page_token"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_next_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReply) + return target; +} + +size_t IndexRangeReply::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReply) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated uint64 timestamps = 1; + { + size_t data_size = ::_pbi::WireFormatLite:: + UInt64Size(this->_impl_.timestamps_); + if (data_size > 0) { + total_size += 1 + + ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); + } + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._timestamps_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // string next_page_token = 2; + if (!this->_internal_next_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IndexRangeReply::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + IndexRangeReply::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IndexRangeReply::GetClassData() const { return &_class_data_; } + + +void IndexRangeReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReply) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.timestamps_.MergeFrom(from._impl_.timestamps_); + if (!from._internal_next_page_token().empty()) { + _this->_internal_set_next_page_token(from._internal_next_page_token()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IndexRangeReply::CopyFrom(const IndexRangeReply& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReply) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexRangeReply::IsInitialized() const { + return true; +} + +void IndexRangeReply::InternalSwap(IndexRangeReply* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.timestamps_.InternalSwap(&other->_impl_.timestamps_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.next_page_token_, lhs_arena, + &other->_impl_.next_page_token_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReply::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[15]); +} + +// =================================================================== + +class HistoryRangeReq::_Internal { + public: +}; + +HistoryRangeReq::HistoryRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.HistoryRangeReq) +} +HistoryRangeReq::HistoryRangeReq(const HistoryRangeReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + HistoryRangeReq* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){} + , decltype(_impl_.from_ts_){} + , decltype(_impl_.to_ts_){} + , decltype(_impl_.limit_){} + , decltype(_impl_.order_ascend_){} + , decltype(_impl_.page_size_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table().empty()) { + _this->_impl_.table_.Set(from._internal_table(), + _this->GetArenaForAllocation()); + } + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_page_token().empty()) { + _this->_impl_.page_token_.Set(from._internal_page_token(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.tx_id_, &from._impl_.tx_id_, + static_cast(reinterpret_cast(&_impl_.page_size_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.page_size_)); + // @@protoc_insertion_point(copy_constructor:remote.HistoryRangeReq) +} + +inline void HistoryRangeReq::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){uint64_t{0u}} + , decltype(_impl_.from_ts_){int64_t{0}} + , decltype(_impl_.to_ts_){int64_t{0}} + , decltype(_impl_.limit_){int64_t{0}} + , decltype(_impl_.order_ascend_){false} + , decltype(_impl_.page_size_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +HistoryRangeReq::~HistoryRangeReq() { + // @@protoc_insertion_point(destructor:remote.HistoryRangeReq) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void HistoryRangeReq::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.table_.Destroy(); + _impl_.page_token_.Destroy(); +} + +void HistoryRangeReq::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void HistoryRangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.HistoryRangeReq) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.table_.ClearToEmpty(); + _impl_.page_token_.ClearToEmpty(); + ::memset(&_impl_.tx_id_, 0, static_cast( + reinterpret_cast(&_impl_.page_size_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.page_size_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HistoryRangeReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.HistoryRangeReq.table")); + } else + goto handle_unusual; + continue; + // sint64 from_ts = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.from_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 to_ts = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.to_ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool order_ascend = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 limit = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 page_size = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string page_token = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.HistoryRangeReq.page_token")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* HistoryRangeReq::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.HistoryRangeReq) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (!this->_internal_table().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.HistoryRangeReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // sint64 from_ts = 4; + if (this->_internal_from_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(4, this->_internal_from_ts(), target); + } + + // sint64 to_ts = 5; + if (this->_internal_to_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(5, this->_internal_to_ts(), target); + } + + // bool order_ascend = 6; + if (this->_internal_order_ascend() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_order_ascend(), target); + } + + // sint64 limit = 7; + if (this->_internal_limit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(7, this->_internal_limit(), target); + } + + // int32 page_size = 8; + if (this->_internal_page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(8, this->_internal_page_size(), target); + } + + // string page_token = 9; + if (!this->_internal_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.HistoryRangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryRangeReq) + return target; +} + +size_t HistoryRangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.HistoryRangeReq) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (!this->_internal_table().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // string page_token = 9; + if (!this->_internal_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_tx_id()); + } + + // sint64 from_ts = 4; + if (this->_internal_from_ts() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_from_ts()); + } + + // sint64 to_ts = 5; + if (this->_internal_to_ts() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_to_ts()); + } + + // sint64 limit = 7; + if (this->_internal_limit() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_limit()); + } + + // bool order_ascend = 6; + if (this->_internal_order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 8; + if (this->_internal_page_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HistoryRangeReq::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + HistoryRangeReq::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HistoryRangeReq::GetClassData() const { return &_class_data_; } + + +void HistoryRangeReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryRangeReq) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_table().empty()) { + _this->_internal_set_table(from._internal_table()); + } + if (!from._internal_page_token().empty()) { + _this->_internal_set_page_token(from._internal_page_token()); + } + if (from._internal_tx_id() != 0) { + _this->_internal_set_tx_id(from._internal_tx_id()); + } + if (from._internal_from_ts() != 0) { + _this->_internal_set_from_ts(from._internal_from_ts()); + } + if (from._internal_to_ts() != 0) { + _this->_internal_set_to_ts(from._internal_to_ts()); + } + if (from._internal_limit() != 0) { + _this->_internal_set_limit(from._internal_limit()); + } + if (from._internal_order_ascend() != 0) { + _this->_internal_set_order_ascend(from._internal_order_ascend()); + } + if (from._internal_page_size() != 0) { + _this->_internal_set_page_size(from._internal_page_size()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void HistoryRangeReq::CopyFrom(const HistoryRangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HistoryRangeReq::IsInitialized() const { + return true; +} + +void HistoryRangeReq::InternalSwap(HistoryRangeReq* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_, lhs_arena, + &other->_impl_.table_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.page_token_, lhs_arena, + &other->_impl_.page_token_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(HistoryRangeReq, _impl_.page_size_) + + sizeof(HistoryRangeReq::_impl_.page_size_) + - PROTOBUF_FIELD_OFFSET(HistoryRangeReq, _impl_.tx_id_)>( + reinterpret_cast(&_impl_.tx_id_), + reinterpret_cast(&other->_impl_.tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HistoryRangeReq::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[16]); +} + +// =================================================================== + +class DomainRangeReq::_Internal { + public: +}; + +DomainRangeReq::DomainRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.DomainRangeReq) +} +DomainRangeReq::DomainRangeReq(const DomainRangeReq& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DomainRangeReq* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.from_key_){} + , decltype(_impl_.to_key_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){} + , decltype(_impl_.ts_){} + , decltype(_impl_.latest_){} + , decltype(_impl_.order_ascend_){} + , decltype(_impl_.page_size_){} + , decltype(_impl_.limit_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table().empty()) { + _this->_impl_.table_.Set(from._internal_table(), + _this->GetArenaForAllocation()); + } + _impl_.from_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.from_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_from_key().empty()) { + _this->_impl_.from_key_.Set(from._internal_from_key(), + _this->GetArenaForAllocation()); + } + _impl_.to_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_to_key().empty()) { + _this->_impl_.to_key_.Set(from._internal_to_key(), + _this->GetArenaForAllocation()); + } + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_page_token().empty()) { + _this->_impl_.page_token_.Set(from._internal_page_token(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.tx_id_, &from._impl_.tx_id_, + static_cast(reinterpret_cast(&_impl_.limit_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.limit_)); + // @@protoc_insertion_point(copy_constructor:remote.DomainRangeReq) +} + +inline void DomainRangeReq::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.table_){} + , decltype(_impl_.from_key_){} + , decltype(_impl_.to_key_){} + , decltype(_impl_.page_token_){} + , decltype(_impl_.tx_id_){uint64_t{0u}} + , decltype(_impl_.ts_){uint64_t{0u}} + , decltype(_impl_.latest_){false} + , decltype(_impl_.order_ascend_){false} + , decltype(_impl_.page_size_){0} + , decltype(_impl_.limit_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.table_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.from_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.from_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.to_key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +DomainRangeReq::~DomainRangeReq() { + // @@protoc_insertion_point(destructor:remote.DomainRangeReq) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DomainRangeReq::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.table_.Destroy(); + _impl_.from_key_.Destroy(); + _impl_.to_key_.Destroy(); + _impl_.page_token_.Destroy(); +} + +void DomainRangeReq::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DomainRangeReq::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.DomainRangeReq) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.table_.ClearToEmpty(); + _impl_.from_key_.ClearToEmpty(); + _impl_.to_key_.ClearToEmpty(); + _impl_.page_token_.ClearToEmpty(); + ::memset(&_impl_.tx_id_, 0, static_cast( + reinterpret_cast(&_impl_.limit_) - + reinterpret_cast(&_impl_.tx_id_)) + sizeof(_impl_.limit_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DomainRangeReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // uint64 tx_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.tx_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string table = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_table(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.DomainRangeReq.table")); + } else + goto handle_unusual; + continue; + // bytes from_key = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_from_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bytes to_key = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_to_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 ts = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.ts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool latest = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.latest_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool order_ascend = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + _impl_.order_ascend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // sint64 limit = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 page_size = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + _impl_.page_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string page_token = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + auto str = _internal_mutable_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.DomainRangeReq.page_token")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DomainRangeReq::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.DomainRangeReq) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_tx_id(), target); + } + + // string table = 2; + if (!this->_internal_table().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table().data(), static_cast(this->_internal_table().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.DomainRangeReq.table"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_table(), target); + } + + // bytes from_key = 3; + if (!this->_internal_from_key().empty()) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_from_key(), target); + } + + // bytes to_key = 4; + if (!this->_internal_to_key().empty()) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_to_key(), target); + } + + // uint64 ts = 5; + if (this->_internal_ts() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_ts(), target); + } + + // bool latest = 6; + if (this->_internal_latest() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_latest(), target); + } + + // bool order_ascend = 7; + if (this->_internal_order_ascend() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_order_ascend(), target); + } + + // sint64 limit = 8; + if (this->_internal_limit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(8, this->_internal_limit(), target); + } + + // int32 page_size = 9; + if (this->_internal_page_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_page_size(), target); + } + + // string page_token = 10; + if (!this->_internal_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_page_token().data(), static_cast(this->_internal_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.DomainRangeReq.page_token"); + target = stream->WriteStringMaybeAliased( + 10, this->_internal_page_token(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:remote.DomainRangeReq) + return target; +} + +size_t DomainRangeReq::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.DomainRangeReq) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string table = 2; + if (!this->_internal_table().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table()); + } + + // bytes from_key = 3; + if (!this->_internal_from_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_from_key()); + } + + // bytes to_key = 4; + if (!this->_internal_to_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_to_key()); + } + + // string page_token = 10; + if (!this->_internal_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_page_token()); + } + + // uint64 tx_id = 1; + if (this->_internal_tx_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_tx_id()); + } + + // uint64 ts = 5; + if (this->_internal_ts() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_ts()); + } + + // bool latest = 6; + if (this->_internal_latest() != 0) { + total_size += 1 + 1; + } + + // bool order_ascend = 7; + if (this->_internal_order_ascend() != 0) { + total_size += 1 + 1; + } + + // int32 page_size = 9; + if (this->_internal_page_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_page_size()); + } + + // sint64 limit = 8; + if (this->_internal_limit() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_limit()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DomainRangeReq::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DomainRangeReq::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DomainRangeReq::GetClassData() const { return &_class_data_; } + + +void DomainRangeReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.DomainRangeReq) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_table().empty()) { + _this->_internal_set_table(from._internal_table()); + } + if (!from._internal_from_key().empty()) { + _this->_internal_set_from_key(from._internal_from_key()); + } + if (!from._internal_to_key().empty()) { + _this->_internal_set_to_key(from._internal_to_key()); + } + if (!from._internal_page_token().empty()) { + _this->_internal_set_page_token(from._internal_page_token()); + } + if (from._internal_tx_id() != 0) { + _this->_internal_set_tx_id(from._internal_tx_id()); + } + if (from._internal_ts() != 0) { + _this->_internal_set_ts(from._internal_ts()); + } + if (from._internal_latest() != 0) { + _this->_internal_set_latest(from._internal_latest()); + } + if (from._internal_order_ascend() != 0) { + _this->_internal_set_order_ascend(from._internal_order_ascend()); + } + if (from._internal_page_size() != 0) { + _this->_internal_set_page_size(from._internal_page_size()); + } + if (from._internal_limit() != 0) { + _this->_internal_set_limit(from._internal_limit()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DomainRangeReq::CopyFrom(const DomainRangeReq& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.DomainRangeReq) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DomainRangeReq::IsInitialized() const { + return true; +} + +void DomainRangeReq::InternalSwap(DomainRangeReq* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_, lhs_arena, + &other->_impl_.table_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.from_key_, lhs_arena, + &other->_impl_.from_key_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.to_key_, lhs_arena, + &other->_impl_.to_key_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.page_token_, lhs_arena, + &other->_impl_.page_token_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DomainRangeReq, _impl_.limit_) + + sizeof(DomainRangeReq::_impl_.limit_) + - PROTOBUF_FIELD_OFFSET(DomainRangeReq, _impl_.tx_id_)>( + reinterpret_cast(&_impl_.tx_id_), + reinterpret_cast(&other->_impl_.tx_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DomainRangeReq::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, + file_level_metadata_remote_2fkv_2eproto[17]); +} + +// =================================================================== + +class Pairs::_Internal { + public: +}; + +Pairs::Pairs(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:remote.Pairs) +} +Pairs::Pairs(const Pairs& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Pairs* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){from._impl_.keys_} + , decltype(_impl_.values_){from._impl_.values_} + , decltype(_impl_.next_page_token_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.next_page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.next_page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_next_page_token().empty()) { + _this->_impl_.next_page_token_.Set(from._internal_next_page_token(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:remote.Pairs) +} + +inline void Pairs::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){arena} + , decltype(_impl_.values_){arena} + , decltype(_impl_.next_page_token_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.next_page_token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.next_page_token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +Pairs::~Pairs() { + // @@protoc_insertion_point(destructor:remote.Pairs) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void Pairs::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.keys_.~RepeatedPtrField(); + _impl_.values_.~RepeatedPtrField(); + _impl_.next_page_token_.Destroy(); +} + +void Pairs::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void Pairs::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.Pairs) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.keys_.Clear(); + _impl_.values_.Clear(); + _impl_.next_page_token_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Pairs::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated bytes keys = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_keys(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated bytes values = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_values(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // string next_page_token = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_next_page_token(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "remote.Pairs.next_page_token")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* Pairs::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:remote.Pairs) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes keys = 1; + for (int i = 0, n = this->_internal_keys_size(); i < n; i++) { + const auto& s = this->_internal_keys(i); + target = stream->WriteBytes(1, s, target); + } + + // repeated bytes values = 2; + for (int i = 0, n = this->_internal_values_size(); i < n; i++) { + const auto& s = this->_internal_values(i); + target = stream->WriteBytes(2, s, target); } - // bool ok = 2; - if (this->_internal_ok() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_ok(), target); + // string next_page_token = 3; + if (!this->_internal_next_page_token().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_next_page_token().data(), static_cast(this->_internal_next_page_token().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "remote.Pairs.next_page_token"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_next_page_token(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.HistoryGetReply) + // @@protoc_insertion_point(serialize_to_array_end:remote.Pairs) return target; } -size_t HistoryGetReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.HistoryGetReply) +size_t Pairs::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.Pairs) 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 v = 1; - if (!this->_internal_v().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_v()); + // repeated bytes keys = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.keys_.size()); + for (int i = 0, n = _impl_.keys_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + _impl_.keys_.Get(i)); } - // bool ok = 2; - if (this->_internal_ok() != 0) { - total_size += 1 + 1; + // repeated bytes values = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.values_.size()); + for (int i = 0, n = _impl_.values_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + _impl_.values_.Get(i)); + } + + // string next_page_token = 3; + if (!this->_internal_next_page_token().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_next_page_token()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HistoryGetReply::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pairs::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - HistoryGetReply::MergeImpl + Pairs::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HistoryGetReply::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pairs::GetClassData() const { return &_class_data_; } -void HistoryGetReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:remote.HistoryGetReply) +void Pairs::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.Pairs) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_v().empty()) { - _this->_internal_set_v(from._internal_v()); - } - if (from._internal_ok() != 0) { - _this->_internal_set_ok(from._internal_ok()); + _this->_impl_.keys_.MergeFrom(from._impl_.keys_); + _this->_impl_.values_.MergeFrom(from._impl_.values_); + if (!from._internal_next_page_token().empty()) { + _this->_internal_set_next_page_token(from._internal_next_page_token()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void HistoryGetReply::CopyFrom(const HistoryGetReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.HistoryGetReply) +void Pairs::CopyFrom(const Pairs& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.Pairs) if (&from == this) return; Clear(); MergeFrom(from); } -bool HistoryGetReply::IsInitialized() const { +bool Pairs::IsInitialized() const { return true; } -void HistoryGetReply::InternalSwap(HistoryGetReply* other) { +void Pairs::InternalSwap(Pairs* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.keys_.InternalSwap(&other->_impl_.keys_); + _impl_.values_.InternalSwap(&other->_impl_.values_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.v_, lhs_arena, - &other->_impl_.v_, rhs_arena + &_impl_.next_page_token_, lhs_arena, + &other->_impl_.next_page_token_, rhs_arena ); - swap(_impl_.ok_, other->_impl_.ok_); } -::PROTOBUF_NAMESPACE_ID::Metadata HistoryGetReply::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Pairs::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, - file_level_metadata_remote_2fkv_2eproto[10]); + file_level_metadata_remote_2fkv_2eproto[18]); } // =================================================================== -class IndexRangeReq::_Internal { +class ParisPagination::_Internal { public: }; -IndexRangeReq::IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ParisPagination::ParisPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReq) + // @@protoc_insertion_point(arena_constructor:remote.ParisPagination) } -IndexRangeReq::IndexRangeReq(const IndexRangeReq& from) +ParisPagination::ParisPagination(const ParisPagination& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - IndexRangeReq* const _this = this; (void)_this; + ParisPagination* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.k_){} - , decltype(_impl_.txid_){} - , decltype(_impl_.fromts_){} - , decltype(_impl_.tots_){} + decltype(_impl_.next_key_){} + , decltype(_impl_.limit_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.k_.InitDefault(); + _impl_.next_key_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.k_.Set("", GetArenaForAllocation()); + _impl_.next_key_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_k().empty()) { - _this->_impl_.k_.Set(from._internal_k(), + if (!from._internal_next_key().empty()) { + _this->_impl_.next_key_.Set(from._internal_next_key(), _this->GetArenaForAllocation()); } - ::memcpy(&_impl_.txid_, &from._impl_.txid_, - static_cast(reinterpret_cast(&_impl_.tots_) - - reinterpret_cast(&_impl_.txid_)) + sizeof(_impl_.tots_)); - // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReq) + _this->_impl_.limit_ = from._impl_.limit_; + // @@protoc_insertion_point(copy_constructor:remote.ParisPagination) } -inline void IndexRangeReq::SharedCtor( +inline void ParisPagination::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.k_){} - , decltype(_impl_.txid_){uint64_t{0u}} - , decltype(_impl_.fromts_){uint64_t{0u}} - , decltype(_impl_.tots_){uint64_t{0u}} + decltype(_impl_.next_key_){} + , decltype(_impl_.limit_){int64_t{0}} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.k_.InitDefault(); + _impl_.next_key_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.k_.Set("", GetArenaForAllocation()); + _impl_.next_key_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -IndexRangeReq::~IndexRangeReq() { - // @@protoc_insertion_point(destructor:remote.IndexRangeReq) +ParisPagination::~ParisPagination() { + // @@protoc_insertion_point(destructor:remote.ParisPagination) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -3476,75 +6709,45 @@ IndexRangeReq::~IndexRangeReq() { SharedDtor(); } -inline void IndexRangeReq::SharedDtor() { +inline void ParisPagination::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - _impl_.k_.Destroy(); + _impl_.next_key_.Destroy(); } -void IndexRangeReq::SetCachedSize(int size) const { +void ParisPagination::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void IndexRangeReq::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReq) +void ParisPagination::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.ParisPagination) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.k_.ClearToEmpty(); - ::memset(&_impl_.txid_, 0, static_cast( - reinterpret_cast(&_impl_.tots_) - - reinterpret_cast(&_impl_.txid_)) + sizeof(_impl_.tots_)); + _impl_.next_key_.ClearToEmpty(); + _impl_.limit_ = int64_t{0}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* IndexRangeReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ParisPagination::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // uint64 txID = 1; + // bytes next_key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.txid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "remote.IndexRangeReq.name")); - } else - goto handle_unusual; - continue; - // bytes k = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_k(); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_next_key(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 fromTs = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _impl_.fromts_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint64 toTs = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.tots_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + // sint64 limit = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -3572,202 +6775,148 @@ const char* IndexRangeReq::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* IndexRangeReq::_InternalSerialize( +uint8_t* ParisPagination::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReq) + // @@protoc_insertion_point(serialize_to_array_start:remote.ParisPagination) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // uint64 txID = 1; - if (this->_internal_txid() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_txid(), target); - } - - // string name = 2; - if (!this->_internal_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "remote.IndexRangeReq.name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); - } - - // bytes k = 3; - if (!this->_internal_k().empty()) { + // bytes next_key = 1; + if (!this->_internal_next_key().empty()) { target = stream->WriteBytesMaybeAliased( - 3, this->_internal_k(), target); - } - - // uint64 fromTs = 4; - if (this->_internal_fromts() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_fromts(), target); + 1, this->_internal_next_key(), target); } - // uint64 toTs = 5; - if (this->_internal_tots() != 0) { + // sint64 limit = 2; + if (this->_internal_limit() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_tots(), target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(2, this->_internal_limit(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReq) + // @@protoc_insertion_point(serialize_to_array_end:remote.ParisPagination) return target; } -size_t IndexRangeReq::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReq) +size_t ParisPagination::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.ParisPagination) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string name = 2; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // bytes k = 3; - if (!this->_internal_k().empty()) { + // bytes next_key = 1; + if (!this->_internal_next_key().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_k()); - } - - // uint64 txID = 1; - if (this->_internal_txid() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_txid()); - } - - // uint64 fromTs = 4; - if (this->_internal_fromts() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_fromts()); + this->_internal_next_key()); } - // uint64 toTs = 5; - if (this->_internal_tots() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_tots()); + // sint64 limit = 2; + if (this->_internal_limit() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_limit()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IndexRangeReq::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ParisPagination::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - IndexRangeReq::MergeImpl + ParisPagination::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IndexRangeReq::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ParisPagination::GetClassData() const { return &_class_data_; } -void IndexRangeReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReq) +void ParisPagination::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.ParisPagination) GOOGLE_DCHECK_NE(&from, _this); 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_k().empty()) { - _this->_internal_set_k(from._internal_k()); - } - if (from._internal_txid() != 0) { - _this->_internal_set_txid(from._internal_txid()); - } - if (from._internal_fromts() != 0) { - _this->_internal_set_fromts(from._internal_fromts()); + if (!from._internal_next_key().empty()) { + _this->_internal_set_next_key(from._internal_next_key()); } - if (from._internal_tots() != 0) { - _this->_internal_set_tots(from._internal_tots()); + if (from._internal_limit() != 0) { + _this->_internal_set_limit(from._internal_limit()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void IndexRangeReq::CopyFrom(const IndexRangeReq& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReq) +void ParisPagination::CopyFrom(const ParisPagination& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.ParisPagination) if (&from == this) return; Clear(); MergeFrom(from); } -bool IndexRangeReq::IsInitialized() const { +bool ParisPagination::IsInitialized() const { return true; } -void IndexRangeReq::InternalSwap(IndexRangeReq* other) { +void ParisPagination::InternalSwap(ParisPagination* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.k_, lhs_arena, - &other->_impl_.k_, rhs_arena + &_impl_.next_key_, lhs_arena, + &other->_impl_.next_key_, rhs_arena ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(IndexRangeReq, _impl_.tots_) - + sizeof(IndexRangeReq::_impl_.tots_) - - PROTOBUF_FIELD_OFFSET(IndexRangeReq, _impl_.txid_)>( - reinterpret_cast(&_impl_.txid_), - reinterpret_cast(&other->_impl_.txid_)); + swap(_impl_.limit_, other->_impl_.limit_); } -::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReq::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ParisPagination::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, - file_level_metadata_remote_2fkv_2eproto[11]); + file_level_metadata_remote_2fkv_2eproto[19]); } // =================================================================== -class IndexRangeReply::_Internal { +class IndexPagination::_Internal { public: }; -IndexRangeReply::IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, +IndexPagination::IndexPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:remote.IndexRangeReply) + // @@protoc_insertion_point(arena_constructor:remote.IndexPagination) } -IndexRangeReply::IndexRangeReply(const IndexRangeReply& from) +IndexPagination::IndexPagination(const IndexPagination& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - IndexRangeReply* const _this = this; (void)_this; + IndexPagination* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.timestamps_){from._impl_.timestamps_} - , /*decltype(_impl_._timestamps_cached_byte_size_)*/{0} + decltype(_impl_.next_time_stamp_){} + , decltype(_impl_.limit_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:remote.IndexRangeReply) + ::memcpy(&_impl_.next_time_stamp_, &from._impl_.next_time_stamp_, + static_cast(reinterpret_cast(&_impl_.limit_) - + reinterpret_cast(&_impl_.next_time_stamp_)) + sizeof(_impl_.limit_)); + // @@protoc_insertion_point(copy_constructor:remote.IndexPagination) } -inline void IndexRangeReply::SharedCtor( +inline void IndexPagination::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.timestamps_){arena} - , /*decltype(_impl_._timestamps_cached_byte_size_)*/{0} + decltype(_impl_.next_time_stamp_){int64_t{0}} + , decltype(_impl_.limit_){int64_t{0}} , /*decltype(_impl_._cached_size_)*/{} }; } -IndexRangeReply::~IndexRangeReply() { - // @@protoc_insertion_point(destructor:remote.IndexRangeReply) +IndexPagination::~IndexPagination() { + // @@protoc_insertion_point(destructor:remote.IndexPagination) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -3775,38 +6924,44 @@ IndexRangeReply::~IndexRangeReply() { SharedDtor(); } -inline void IndexRangeReply::SharedDtor() { +inline void IndexPagination::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.timestamps_.~RepeatedField(); } -void IndexRangeReply::SetCachedSize(int size) const { +void IndexPagination::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void IndexRangeReply::Clear() { -// @@protoc_insertion_point(message_clear_start:remote.IndexRangeReply) +void IndexPagination::Clear() { +// @@protoc_insertion_point(message_clear_start:remote.IndexPagination) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.timestamps_.Clear(); + ::memset(&_impl_.next_time_stamp_, 0, static_cast( + reinterpret_cast(&_impl_.limit_) - + reinterpret_cast(&_impl_.next_time_stamp_)) + sizeof(_impl_.limit_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* IndexRangeReply::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* IndexPagination::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated uint64 timestamps = 1; + // sint64 next_time_stamp = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_timestamps(), ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.next_time_stamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_timestamps(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + } else + goto handle_unusual; + continue; + // sint64 limit = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -3834,94 +6989,103 @@ const char* IndexRangeReply::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* IndexRangeReply::_InternalSerialize( +uint8_t* IndexPagination::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:remote.IndexRangeReply) + // @@protoc_insertion_point(serialize_to_array_start:remote.IndexPagination) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated uint64 timestamps = 1; - { - int byte_size = _impl_._timestamps_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteUInt64Packed( - 1, _internal_timestamps(), byte_size, target); - } + // sint64 next_time_stamp = 1; + if (this->_internal_next_time_stamp() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(1, this->_internal_next_time_stamp(), target); + } + + // sint64 limit = 2; + if (this->_internal_limit() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteSInt64ToArray(2, this->_internal_limit(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:remote.IndexRangeReply) + // @@protoc_insertion_point(serialize_to_array_end:remote.IndexPagination) return target; } -size_t IndexRangeReply::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:remote.IndexRangeReply) +size_t IndexPagination::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:remote.IndexPagination) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated uint64 timestamps = 1; - { - size_t data_size = ::_pbi::WireFormatLite:: - UInt64Size(this->_impl_.timestamps_); - if (data_size > 0) { - total_size += 1 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); - } - int cached_size = ::_pbi::ToCachedSize(data_size); - _impl_._timestamps_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; + // sint64 next_time_stamp = 1; + if (this->_internal_next_time_stamp() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_next_time_stamp()); + } + + // sint64 limit = 2; + if (this->_internal_limit() != 0) { + total_size += ::_pbi::WireFormatLite::SInt64SizePlusOne(this->_internal_limit()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IndexRangeReply::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IndexPagination::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - IndexRangeReply::MergeImpl + IndexPagination::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IndexRangeReply::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IndexPagination::GetClassData() const { return &_class_data_; } -void IndexRangeReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexRangeReply) +void IndexPagination::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:remote.IndexPagination) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.timestamps_.MergeFrom(from._impl_.timestamps_); + if (from._internal_next_time_stamp() != 0) { + _this->_internal_set_next_time_stamp(from._internal_next_time_stamp()); + } + if (from._internal_limit() != 0) { + _this->_internal_set_limit(from._internal_limit()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void IndexRangeReply::CopyFrom(const IndexRangeReply& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexRangeReply) +void IndexPagination::CopyFrom(const IndexPagination& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:remote.IndexPagination) if (&from == this) return; Clear(); MergeFrom(from); } -bool IndexRangeReply::IsInitialized() const { +bool IndexPagination::IsInitialized() const { return true; } -void IndexRangeReply::InternalSwap(IndexRangeReply* other) { +void IndexPagination::InternalSwap(IndexPagination* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.timestamps_.InternalSwap(&other->_impl_.timestamps_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(IndexPagination, _impl_.limit_) + + sizeof(IndexPagination::_impl_.limit_) + - PROTOBUF_FIELD_OFFSET(IndexPagination, _impl_.next_time_stamp_)>( + reinterpret_cast(&_impl_.next_time_stamp_), + reinterpret_cast(&other->_impl_.next_time_stamp_)); } -::PROTOBUF_NAMESPACE_ID::Metadata IndexRangeReply::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata IndexPagination::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_remote_2fkv_2eproto_getter, &descriptor_table_remote_2fkv_2eproto_once, - file_level_metadata_remote_2fkv_2eproto[12]); + file_level_metadata_remote_2fkv_2eproto[20]); } // @@protoc_insertion_point(namespace_scope) @@ -3963,6 +7127,18 @@ template<> PROTOBUF_NOINLINE ::remote::SnapshotsReply* Arena::CreateMaybeMessage< ::remote::SnapshotsReply >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::SnapshotsReply >(arena); } +template<> PROTOBUF_NOINLINE ::remote::RangeReq* +Arena::CreateMaybeMessage< ::remote::RangeReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::RangeReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::DomainGetReq* +Arena::CreateMaybeMessage< ::remote::DomainGetReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::DomainGetReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::DomainGetReply* +Arena::CreateMaybeMessage< ::remote::DomainGetReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::DomainGetReply >(arena); +} template<> PROTOBUF_NOINLINE ::remote::HistoryGetReq* Arena::CreateMaybeMessage< ::remote::HistoryGetReq >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::HistoryGetReq >(arena); @@ -3979,6 +7155,26 @@ template<> PROTOBUF_NOINLINE ::remote::IndexRangeReply* Arena::CreateMaybeMessage< ::remote::IndexRangeReply >(Arena* arena) { return Arena::CreateMessageInternal< ::remote::IndexRangeReply >(arena); } +template<> PROTOBUF_NOINLINE ::remote::HistoryRangeReq* +Arena::CreateMaybeMessage< ::remote::HistoryRangeReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::HistoryRangeReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::DomainRangeReq* +Arena::CreateMaybeMessage< ::remote::DomainRangeReq >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::DomainRangeReq >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::Pairs* +Arena::CreateMaybeMessage< ::remote::Pairs >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::Pairs >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::ParisPagination* +Arena::CreateMaybeMessage< ::remote::ParisPagination >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::ParisPagination >(arena); +} +template<> PROTOBUF_NOINLINE ::remote::IndexPagination* +Arena::CreateMaybeMessage< ::remote::IndexPagination >(Arena* arena) { + return Arena::CreateMessageInternal< ::remote::IndexPagination >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/silkworm/interfaces/3.21.4/remote/kv.pb.h b/silkworm/interfaces/3.21.4/remote/kv.pb.h index 0c3afeda71..dc9de30271 100644 --- a/silkworm/interfaces/3.21.4/remote/kv.pb.h +++ b/silkworm/interfaces/3.21.4/remote/kv.pb.h @@ -55,12 +55,27 @@ extern AccountChangeDefaultTypeInternal _AccountChange_default_instance_; class Cursor; struct CursorDefaultTypeInternal; extern CursorDefaultTypeInternal _Cursor_default_instance_; +class DomainGetReply; +struct DomainGetReplyDefaultTypeInternal; +extern DomainGetReplyDefaultTypeInternal _DomainGetReply_default_instance_; +class DomainGetReq; +struct DomainGetReqDefaultTypeInternal; +extern DomainGetReqDefaultTypeInternal _DomainGetReq_default_instance_; +class DomainRangeReq; +struct DomainRangeReqDefaultTypeInternal; +extern DomainRangeReqDefaultTypeInternal _DomainRangeReq_default_instance_; class HistoryGetReply; struct HistoryGetReplyDefaultTypeInternal; extern HistoryGetReplyDefaultTypeInternal _HistoryGetReply_default_instance_; class HistoryGetReq; struct HistoryGetReqDefaultTypeInternal; extern HistoryGetReqDefaultTypeInternal _HistoryGetReq_default_instance_; +class HistoryRangeReq; +struct HistoryRangeReqDefaultTypeInternal; +extern HistoryRangeReqDefaultTypeInternal _HistoryRangeReq_default_instance_; +class IndexPagination; +struct IndexPaginationDefaultTypeInternal; +extern IndexPaginationDefaultTypeInternal _IndexPagination_default_instance_; class IndexRangeReply; struct IndexRangeReplyDefaultTypeInternal; extern IndexRangeReplyDefaultTypeInternal _IndexRangeReply_default_instance_; @@ -70,6 +85,15 @@ extern IndexRangeReqDefaultTypeInternal _IndexRangeReq_default_instance_; class Pair; struct PairDefaultTypeInternal; extern PairDefaultTypeInternal _Pair_default_instance_; +class Pairs; +struct PairsDefaultTypeInternal; +extern PairsDefaultTypeInternal _Pairs_default_instance_; +class ParisPagination; +struct ParisPaginationDefaultTypeInternal; +extern ParisPaginationDefaultTypeInternal _ParisPagination_default_instance_; +class RangeReq; +struct RangeReqDefaultTypeInternal; +extern RangeReqDefaultTypeInternal _RangeReq_default_instance_; class SnapshotsReply; struct SnapshotsReplyDefaultTypeInternal; extern SnapshotsReplyDefaultTypeInternal _SnapshotsReply_default_instance_; @@ -92,11 +116,19 @@ extern StorageChangeDefaultTypeInternal _StorageChange_default_instance_; PROTOBUF_NAMESPACE_OPEN template<> ::remote::AccountChange* Arena::CreateMaybeMessage<::remote::AccountChange>(Arena*); template<> ::remote::Cursor* Arena::CreateMaybeMessage<::remote::Cursor>(Arena*); +template<> ::remote::DomainGetReply* Arena::CreateMaybeMessage<::remote::DomainGetReply>(Arena*); +template<> ::remote::DomainGetReq* Arena::CreateMaybeMessage<::remote::DomainGetReq>(Arena*); +template<> ::remote::DomainRangeReq* Arena::CreateMaybeMessage<::remote::DomainRangeReq>(Arena*); template<> ::remote::HistoryGetReply* Arena::CreateMaybeMessage<::remote::HistoryGetReply>(Arena*); template<> ::remote::HistoryGetReq* Arena::CreateMaybeMessage<::remote::HistoryGetReq>(Arena*); +template<> ::remote::HistoryRangeReq* Arena::CreateMaybeMessage<::remote::HistoryRangeReq>(Arena*); +template<> ::remote::IndexPagination* Arena::CreateMaybeMessage<::remote::IndexPagination>(Arena*); template<> ::remote::IndexRangeReply* Arena::CreateMaybeMessage<::remote::IndexRangeReply>(Arena*); template<> ::remote::IndexRangeReq* Arena::CreateMaybeMessage<::remote::IndexRangeReq>(Arena*); template<> ::remote::Pair* Arena::CreateMaybeMessage<::remote::Pair>(Arena*); +template<> ::remote::Pairs* Arena::CreateMaybeMessage<::remote::Pairs>(Arena*); +template<> ::remote::ParisPagination* Arena::CreateMaybeMessage<::remote::ParisPagination>(Arena*); +template<> ::remote::RangeReq* Arena::CreateMaybeMessage<::remote::RangeReq>(Arena*); template<> ::remote::SnapshotsReply* Arena::CreateMaybeMessage<::remote::SnapshotsReply>(Arena*); template<> ::remote::SnapshotsRequest* Arena::CreateMaybeMessage<::remote::SnapshotsRequest>(Arena*); template<> ::remote::StateChange* Arena::CreateMaybeMessage<::remote::StateChange>(Arena*); @@ -1829,30 +1861,55 @@ class SnapshotsReply final : // accessors ------------------------------------------------------- enum : int { - kFilesFieldNumber = 1, + kBlocksFilesFieldNumber = 1, + kHistoryFilesFieldNumber = 2, }; - // repeated string files = 1; - int files_size() const; - private: - int _internal_files_size() const; - public: - void clear_files(); - const std::string& files(int index) const; - std::string* mutable_files(int index); - void set_files(int index, const std::string& value); - void set_files(int index, std::string&& value); - void set_files(int index, const char* value); - void set_files(int index, const char* value, size_t size); - std::string* add_files(); - void add_files(const std::string& value); - void add_files(std::string&& value); - void add_files(const char* value); - void add_files(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& files() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_files(); - private: - const std::string& _internal_files(int index) const; - std::string* _internal_add_files(); + // repeated string blocks_files = 1; + int blocks_files_size() const; + private: + int _internal_blocks_files_size() const; + public: + void clear_blocks_files(); + const std::string& blocks_files(int index) const; + std::string* mutable_blocks_files(int index); + void set_blocks_files(int index, const std::string& value); + void set_blocks_files(int index, std::string&& value); + void set_blocks_files(int index, const char* value); + void set_blocks_files(int index, const char* value, size_t size); + std::string* add_blocks_files(); + void add_blocks_files(const std::string& value); + void add_blocks_files(std::string&& value); + void add_blocks_files(const char* value); + void add_blocks_files(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& blocks_files() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_blocks_files(); + private: + const std::string& _internal_blocks_files(int index) const; + std::string* _internal_add_blocks_files(); + public: + + // repeated string history_files = 2; + int history_files_size() const; + private: + int _internal_history_files_size() const; + public: + void clear_history_files(); + const std::string& history_files(int index) const; + std::string* mutable_history_files(int index); + void set_history_files(int index, const std::string& value); + void set_history_files(int index, std::string&& value); + void set_history_files(int index, const char* value); + void set_history_files(int index, const char* value, size_t size); + std::string* add_history_files(); + void add_history_files(const std::string& value); + void add_history_files(std::string&& value); + void add_history_files(const char* value); + void add_history_files(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& history_files() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_history_files(); + private: + const std::string& _internal_history_files(int index) const; + std::string* _internal_add_history_files(); public: // @@protoc_insertion_point(class_scope:remote.SnapshotsReply) @@ -1863,7 +1920,8 @@ class SnapshotsReply final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField files_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blocks_files_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField history_files_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1871,24 +1929,24 @@ class SnapshotsReply final : }; // ------------------------------------------------------------------- -class HistoryGetReq final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReq) */ { +class RangeReq final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.RangeReq) */ { public: - inline HistoryGetReq() : HistoryGetReq(nullptr) {} - ~HistoryGetReq() override; - explicit PROTOBUF_CONSTEXPR HistoryGetReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RangeReq() : RangeReq(nullptr) {} + ~RangeReq() override; + explicit PROTOBUF_CONSTEXPR RangeReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - HistoryGetReq(const HistoryGetReq& from); - HistoryGetReq(HistoryGetReq&& from) noexcept - : HistoryGetReq() { + RangeReq(const RangeReq& from); + RangeReq(RangeReq&& from) noexcept + : RangeReq() { *this = ::std::move(from); } - inline HistoryGetReq& operator=(const HistoryGetReq& from) { + inline RangeReq& operator=(const RangeReq& from) { CopyFrom(from); return *this; } - inline HistoryGetReq& operator=(HistoryGetReq&& from) noexcept { + inline RangeReq& operator=(RangeReq&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1911,20 +1969,20 @@ class HistoryGetReq final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const HistoryGetReq& default_instance() { + static const RangeReq& default_instance() { return *internal_default_instance(); } - static inline const HistoryGetReq* internal_default_instance() { - return reinterpret_cast( - &_HistoryGetReq_default_instance_); + static inline const RangeReq* internal_default_instance() { + return reinterpret_cast( + &_RangeReq_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(HistoryGetReq& a, HistoryGetReq& b) { + friend void swap(RangeReq& a, RangeReq& b) { a.Swap(&b); } - inline void Swap(HistoryGetReq* other) { + inline void Swap(RangeReq* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1937,7 +1995,7 @@ class HistoryGetReq final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HistoryGetReq* other) { + void UnsafeArenaSwap(RangeReq* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1945,14 +2003,14 @@ class HistoryGetReq final : // implements Message ---------------------------------------------- - HistoryGetReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const HistoryGetReq& from); + void CopyFrom(const RangeReq& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const HistoryGetReq& from) { - HistoryGetReq::MergeImpl(*this, from); + void MergeFrom( const RangeReq& from) { + RangeReq::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -1970,15 +2028,15 @@ class HistoryGetReq final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(HistoryGetReq* other); + void InternalSwap(RangeReq* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.HistoryGetReq"; + return "remote.RangeReq"; } protected: - explicit HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1992,58 +2050,108 @@ class HistoryGetReq final : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 2, - kKFieldNumber = 3, - kTxIDFieldNumber = 1, - kTsFieldNumber = 4, + kTableFieldNumber = 2, + kFromPrefixFieldNumber = 3, + kToPrefixFieldNumber = 4, + kPageTokenFieldNumber = 8, + kTxIdFieldNumber = 1, + kLimitFieldNumber = 6, + kOrderAscendFieldNumber = 5, + kPageSizeFieldNumber = 7, }; - // string name = 2; - void clear_name(); - const std::string& name() const; + // string table = 2; + void clear_table(); + const std::string& table() const; template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_table(ArgT0&& arg0, ArgT... args); + std::string* mutable_table(); + PROTOBUF_NODISCARD std::string* release_table(); + void set_allocated_table(std::string* table); 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_table() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); public: - // bytes k = 3; - void clear_k(); - const std::string& k() const; + // bytes from_prefix = 3; + void clear_from_prefix(); + const std::string& from_prefix() const; template - void set_k(ArgT0&& arg0, ArgT... args); - std::string* mutable_k(); - PROTOBUF_NODISCARD std::string* release_k(); - void set_allocated_k(std::string* k); + void set_from_prefix(ArgT0&& arg0, ArgT... args); + std::string* mutable_from_prefix(); + PROTOBUF_NODISCARD std::string* release_from_prefix(); + void set_allocated_from_prefix(std::string* from_prefix); private: - const std::string& _internal_k() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_k(const std::string& value); - std::string* _internal_mutable_k(); + const std::string& _internal_from_prefix() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_from_prefix(const std::string& value); + std::string* _internal_mutable_from_prefix(); public: - // uint64 txID = 1; - void clear_txid(); - uint64_t txid() const; - void set_txid(uint64_t value); + // bytes to_prefix = 4; + void clear_to_prefix(); + const std::string& to_prefix() const; + template + void set_to_prefix(ArgT0&& arg0, ArgT... args); + std::string* mutable_to_prefix(); + PROTOBUF_NODISCARD std::string* release_to_prefix(); + void set_allocated_to_prefix(std::string* to_prefix); private: - uint64_t _internal_txid() const; - void _internal_set_txid(uint64_t value); + const std::string& _internal_to_prefix() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_to_prefix(const std::string& value); + std::string* _internal_mutable_to_prefix(); public: - // uint64 ts = 4; - void clear_ts(); - uint64_t ts() const; - void set_ts(uint64_t value); + // string page_token = 8; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); private: - uint64_t _internal_ts() const; - void _internal_set_ts(uint64_t value); + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); public: - // @@protoc_insertion_point(class_scope:remote.HistoryGetReq) + // uint64 tx_id = 1; + void clear_tx_id(); + uint64_t tx_id() const; + void set_tx_id(uint64_t value); + private: + uint64_t _internal_tx_id() const; + void _internal_set_tx_id(uint64_t value); + public: + + // sint64 limit = 6; + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // bool order_ascend = 5; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 7; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.RangeReq) private: class _Internal; @@ -2051,10 +2159,14 @@ class HistoryGetReq final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; - uint64_t txid_; - uint64_t ts_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr from_prefix_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr to_prefix_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + uint64_t tx_id_; + int64_t limit_; + bool order_ascend_; + int32_t page_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2062,24 +2174,24 @@ class HistoryGetReq final : }; // ------------------------------------------------------------------- -class HistoryGetReply final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReply) */ { +class DomainGetReq final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.DomainGetReq) */ { public: - inline HistoryGetReply() : HistoryGetReply(nullptr) {} - ~HistoryGetReply() override; - explicit PROTOBUF_CONSTEXPR HistoryGetReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DomainGetReq() : DomainGetReq(nullptr) {} + ~DomainGetReq() override; + explicit PROTOBUF_CONSTEXPR DomainGetReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - HistoryGetReply(const HistoryGetReply& from); - HistoryGetReply(HistoryGetReply&& from) noexcept - : HistoryGetReply() { + DomainGetReq(const DomainGetReq& from); + DomainGetReq(DomainGetReq&& from) noexcept + : DomainGetReq() { *this = ::std::move(from); } - inline HistoryGetReply& operator=(const HistoryGetReply& from) { + inline DomainGetReq& operator=(const DomainGetReq& from) { CopyFrom(from); return *this; } - inline HistoryGetReply& operator=(HistoryGetReply&& from) noexcept { + inline DomainGetReq& operator=(DomainGetReq&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2102,20 +2214,20 @@ class HistoryGetReply final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const HistoryGetReply& default_instance() { + static const DomainGetReq& default_instance() { return *internal_default_instance(); } - static inline const HistoryGetReply* internal_default_instance() { - return reinterpret_cast( - &_HistoryGetReply_default_instance_); + static inline const DomainGetReq* internal_default_instance() { + return reinterpret_cast( + &_DomainGetReq_default_instance_); } static constexpr int kIndexInFileMessages = 10; - friend void swap(HistoryGetReply& a, HistoryGetReply& b) { + friend void swap(DomainGetReq& a, DomainGetReq& b) { a.Swap(&b); } - inline void Swap(HistoryGetReply* other) { + inline void Swap(DomainGetReq* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2128,7 +2240,7 @@ class HistoryGetReply final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(HistoryGetReply* other) { + void UnsafeArenaSwap(DomainGetReq* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2136,14 +2248,14 @@ class HistoryGetReply final : // implements Message ---------------------------------------------- - HistoryGetReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DomainGetReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const HistoryGetReply& from); + void CopyFrom(const DomainGetReq& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const HistoryGetReply& from) { - HistoryGetReply::MergeImpl(*this, from); + void MergeFrom( const DomainGetReq& from) { + DomainGetReq::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2161,15 +2273,15 @@ class HistoryGetReply final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(HistoryGetReply* other); + void InternalSwap(DomainGetReq* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.HistoryGetReply"; + return "remote.DomainGetReq"; } protected: - explicit HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DomainGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2183,33 +2295,83 @@ class HistoryGetReply final : // accessors ------------------------------------------------------- enum : int { - kVFieldNumber = 1, - kOkFieldNumber = 2, + kTableFieldNumber = 2, + kKFieldNumber = 3, + kK2FieldNumber = 5, + kTxIdFieldNumber = 1, + kTsFieldNumber = 4, + kLatestFieldNumber = 6, }; - // bytes v = 1; - void clear_v(); - const std::string& v() const; + // string table = 2; + void clear_table(); + const std::string& table() const; template - void set_v(ArgT0&& arg0, ArgT... args); - std::string* mutable_v(); - PROTOBUF_NODISCARD std::string* release_v(); - void set_allocated_v(std::string* v); + void set_table(ArgT0&& arg0, ArgT... args); + std::string* mutable_table(); + PROTOBUF_NODISCARD std::string* release_table(); + void set_allocated_table(std::string* table); 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_table() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); public: - // bool ok = 2; - void clear_ok(); - bool ok() const; - void set_ok(bool value); + // bytes k = 3; + void clear_k(); + const std::string& k() const; + template + void set_k(ArgT0&& arg0, ArgT... args); + std::string* mutable_k(); + PROTOBUF_NODISCARD std::string* release_k(); + void set_allocated_k(std::string* k); private: - bool _internal_ok() const; - void _internal_set_ok(bool value); + const std::string& _internal_k() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_k(const std::string& value); + std::string* _internal_mutable_k(); public: - // @@protoc_insertion_point(class_scope:remote.HistoryGetReply) + // bytes k2 = 5; + void clear_k2(); + const std::string& k2() const; + template + void set_k2(ArgT0&& arg0, ArgT... args); + std::string* mutable_k2(); + PROTOBUF_NODISCARD std::string* release_k2(); + void set_allocated_k2(std::string* k2); + private: + const std::string& _internal_k2() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_k2(const std::string& value); + std::string* _internal_mutable_k2(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + uint64_t tx_id() const; + void set_tx_id(uint64_t value); + private: + uint64_t _internal_tx_id() const; + void _internal_set_tx_id(uint64_t value); + public: + + // uint64 ts = 4; + void clear_ts(); + uint64_t ts() const; + void set_ts(uint64_t value); + private: + uint64_t _internal_ts() const; + void _internal_set_ts(uint64_t value); + public: + + // bool latest = 6; + void clear_latest(); + bool latest() const; + void set_latest(bool value); + private: + bool _internal_latest() const; + void _internal_set_latest(bool value); + public: + + // @@protoc_insertion_point(class_scope:remote.DomainGetReq) private: class _Internal; @@ -2217,8 +2379,12 @@ class HistoryGetReply final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr v_; - bool ok_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k2_; + uint64_t tx_id_; + uint64_t ts_; + bool latest_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2226,24 +2392,24 @@ class HistoryGetReply final : }; // ------------------------------------------------------------------- -class IndexRangeReq final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReq) */ { +class DomainGetReply final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.DomainGetReply) */ { public: - inline IndexRangeReq() : IndexRangeReq(nullptr) {} - ~IndexRangeReq() override; - explicit PROTOBUF_CONSTEXPR IndexRangeReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DomainGetReply() : DomainGetReply(nullptr) {} + ~DomainGetReply() override; + explicit PROTOBUF_CONSTEXPR DomainGetReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - IndexRangeReq(const IndexRangeReq& from); - IndexRangeReq(IndexRangeReq&& from) noexcept - : IndexRangeReq() { + DomainGetReply(const DomainGetReply& from); + DomainGetReply(DomainGetReply&& from) noexcept + : DomainGetReply() { *this = ::std::move(from); } - inline IndexRangeReq& operator=(const IndexRangeReq& from) { + inline DomainGetReply& operator=(const DomainGetReply& from) { CopyFrom(from); return *this; } - inline IndexRangeReq& operator=(IndexRangeReq&& from) noexcept { + inline DomainGetReply& operator=(DomainGetReply&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2266,20 +2432,20 @@ class IndexRangeReq final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IndexRangeReq& default_instance() { + static const DomainGetReply& default_instance() { return *internal_default_instance(); } - static inline const IndexRangeReq* internal_default_instance() { - return reinterpret_cast( - &_IndexRangeReq_default_instance_); + static inline const DomainGetReply* internal_default_instance() { + return reinterpret_cast( + &_DomainGetReply_default_instance_); } static constexpr int kIndexInFileMessages = 11; - friend void swap(IndexRangeReq& a, IndexRangeReq& b) { + friend void swap(DomainGetReply& a, DomainGetReply& b) { a.Swap(&b); } - inline void Swap(IndexRangeReq* other) { + inline void Swap(DomainGetReply* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2292,7 +2458,7 @@ class IndexRangeReq final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IndexRangeReq* other) { + void UnsafeArenaSwap(DomainGetReply* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2300,14 +2466,14 @@ class IndexRangeReq final : // implements Message ---------------------------------------------- - IndexRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DomainGetReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const IndexRangeReq& from); + void CopyFrom(const DomainGetReply& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const IndexRangeReq& from) { - IndexRangeReq::MergeImpl(*this, from); + void MergeFrom( const DomainGetReply& from) { + DomainGetReply::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2325,15 +2491,15 @@ class IndexRangeReq final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IndexRangeReq* other); + void InternalSwap(DomainGetReply* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.IndexRangeReq"; + return "remote.DomainGetReply"; } protected: - explicit IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DomainGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2347,68 +2513,33 @@ class IndexRangeReq final : // accessors ------------------------------------------------------- enum : int { - kNameFieldNumber = 2, - kKFieldNumber = 3, - kTxIDFieldNumber = 1, - kFromTsFieldNumber = 4, - kToTsFieldNumber = 5, + kVFieldNumber = 1, + kOkFieldNumber = 2, }; - // string name = 2; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // bytes k = 3; - void clear_k(); - const std::string& k() const; + // bytes v = 1; + void clear_v(); + const std::string& v() const; template - void set_k(ArgT0&& arg0, ArgT... args); - std::string* mutable_k(); - PROTOBUF_NODISCARD std::string* release_k(); - void set_allocated_k(std::string* k); - private: - const std::string& _internal_k() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_k(const std::string& value); - std::string* _internal_mutable_k(); - public: - - // uint64 txID = 1; - void clear_txid(); - uint64_t txid() const; - void set_txid(uint64_t value); - private: - uint64_t _internal_txid() const; - void _internal_set_txid(uint64_t value); - public: - - // uint64 fromTs = 4; - void clear_fromts(); - uint64_t fromts() const; - void set_fromts(uint64_t value); + void set_v(ArgT0&& arg0, ArgT... args); + std::string* mutable_v(); + PROTOBUF_NODISCARD std::string* release_v(); + void set_allocated_v(std::string* v); private: - uint64_t _internal_fromts() const; - void _internal_set_fromts(uint64_t value); + const std::string& _internal_v() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_v(const std::string& value); + std::string* _internal_mutable_v(); public: - // uint64 toTs = 5; - void clear_tots(); - uint64_t tots() const; - void set_tots(uint64_t value); + // bool ok = 2; + void clear_ok(); + bool ok() const; + void set_ok(bool value); private: - uint64_t _internal_tots() const; - void _internal_set_tots(uint64_t value); + bool _internal_ok() const; + void _internal_set_ok(bool value); public: - // @@protoc_insertion_point(class_scope:remote.IndexRangeReq) + // @@protoc_insertion_point(class_scope:remote.DomainGetReply) private: class _Internal; @@ -2416,11 +2547,8 @@ class IndexRangeReq final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; - uint64_t txid_; - uint64_t fromts_; - uint64_t tots_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr v_; + bool ok_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2428,24 +2556,24 @@ class IndexRangeReq final : }; // ------------------------------------------------------------------- -class IndexRangeReply final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReply) */ { +class HistoryGetReq final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReq) */ { public: - inline IndexRangeReply() : IndexRangeReply(nullptr) {} - ~IndexRangeReply() override; - explicit PROTOBUF_CONSTEXPR IndexRangeReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline HistoryGetReq() : HistoryGetReq(nullptr) {} + ~HistoryGetReq() override; + explicit PROTOBUF_CONSTEXPR HistoryGetReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - IndexRangeReply(const IndexRangeReply& from); - IndexRangeReply(IndexRangeReply&& from) noexcept - : IndexRangeReply() { + HistoryGetReq(const HistoryGetReq& from); + HistoryGetReq(HistoryGetReq&& from) noexcept + : HistoryGetReq() { *this = ::std::move(from); } - inline IndexRangeReply& operator=(const IndexRangeReply& from) { + inline HistoryGetReq& operator=(const HistoryGetReq& from) { CopyFrom(from); return *this; } - inline IndexRangeReply& operator=(IndexRangeReply&& from) noexcept { + inline HistoryGetReq& operator=(HistoryGetReq&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2468,20 +2596,20 @@ class IndexRangeReply final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const IndexRangeReply& default_instance() { + static const HistoryGetReq& default_instance() { return *internal_default_instance(); } - static inline const IndexRangeReply* internal_default_instance() { - return reinterpret_cast( - &_IndexRangeReply_default_instance_); - } + static inline const HistoryGetReq* internal_default_instance() { + return reinterpret_cast( + &_HistoryGetReq_default_instance_); + } static constexpr int kIndexInFileMessages = 12; - friend void swap(IndexRangeReply& a, IndexRangeReply& b) { + friend void swap(HistoryGetReq& a, HistoryGetReq& b) { a.Swap(&b); } - inline void Swap(IndexRangeReply* other) { + inline void Swap(HistoryGetReq* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2494,7 +2622,7 @@ class IndexRangeReply final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(IndexRangeReply* other) { + void UnsafeArenaSwap(HistoryGetReq* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2502,14 +2630,14 @@ class IndexRangeReply final : // implements Message ---------------------------------------------- - IndexRangeReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + HistoryGetReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const IndexRangeReply& from); + void CopyFrom(const HistoryGetReq& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const IndexRangeReply& from) { - IndexRangeReply::MergeImpl(*this, from); + void MergeFrom( const HistoryGetReq& from) { + HistoryGetReq::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2527,15 +2655,15 @@ class IndexRangeReply final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(IndexRangeReply* other); + void InternalSwap(HistoryGetReq* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "remote.IndexRangeReply"; + return "remote.HistoryGetReq"; } protected: - explicit IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit HistoryGetReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2549,31 +2677,58 @@ class IndexRangeReply final : // accessors ------------------------------------------------------- enum : int { - kTimestampsFieldNumber = 1, + kTableFieldNumber = 2, + kKFieldNumber = 3, + kTxIdFieldNumber = 1, + kTsFieldNumber = 4, }; - // repeated uint64 timestamps = 1; - int timestamps_size() const; + // string table = 2; + void clear_table(); + const std::string& table() const; + template + void set_table(ArgT0&& arg0, ArgT... args); + std::string* mutable_table(); + PROTOBUF_NODISCARD std::string* release_table(); + void set_allocated_table(std::string* table); private: - int _internal_timestamps_size() const; + const std::string& _internal_table() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); public: - void clear_timestamps(); + + // bytes k = 3; + void clear_k(); + const std::string& k() const; + template + void set_k(ArgT0&& arg0, ArgT... args); + std::string* mutable_k(); + PROTOBUF_NODISCARD std::string* release_k(); + void set_allocated_k(std::string* k); private: - uint64_t _internal_timestamps(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - _internal_timestamps() const; - void _internal_add_timestamps(uint64_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - _internal_mutable_timestamps(); + const std::string& _internal_k() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_k(const std::string& value); + std::string* _internal_mutable_k(); public: - uint64_t timestamps(int index) const; - void set_timestamps(int index, uint64_t value); - void add_timestamps(uint64_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& - timestamps() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* - mutable_timestamps(); - // @@protoc_insertion_point(class_scope:remote.IndexRangeReply) + // uint64 tx_id = 1; + void clear_tx_id(); + uint64_t tx_id() const; + void set_tx_id(uint64_t value); + private: + uint64_t _internal_tx_id() const; + void _internal_set_tx_id(uint64_t value); + public: + + // uint64 ts = 4; + void clear_ts(); + uint64_t ts() const; + void set_ts(uint64_t value); + private: + uint64_t _internal_ts() const; + void _internal_set_ts(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.HistoryGetReq) private: class _Internal; @@ -2581,254 +2736,3355 @@ class IndexRangeReply final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > timestamps_; - mutable std::atomic _timestamps_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; + uint64_t tx_id_; + uint64_t ts_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; friend struct ::TableStruct_remote_2fkv_2eproto; }; -// =================================================================== +// ------------------------------------------------------------------- +class HistoryGetReply final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryGetReply) */ { + public: + inline HistoryGetReply() : HistoryGetReply(nullptr) {} + ~HistoryGetReply() override; + explicit PROTOBUF_CONSTEXPR HistoryGetReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); -// =================================================================== + HistoryGetReply(const HistoryGetReply& from); + HistoryGetReply(HistoryGetReply&& from) noexcept + : HistoryGetReply() { + *this = ::std::move(from); + } -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Cursor + inline HistoryGetReply& operator=(const HistoryGetReply& from) { + CopyFrom(from); + return *this; + } + inline HistoryGetReply& operator=(HistoryGetReply&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } -// .remote.Op op = 1; -inline void Cursor::clear_op() { - _impl_.op_ = 0; -} -inline ::remote::Op Cursor::_internal_op() const { - return static_cast< ::remote::Op >(_impl_.op_); -} -inline ::remote::Op Cursor::op() const { - // @@protoc_insertion_point(field_get:remote.Cursor.op) - return _internal_op(); -} -inline void Cursor::_internal_set_op(::remote::Op value) { - - _impl_.op_ = value; -} -inline void Cursor::set_op(::remote::Op value) { - _internal_set_op(value); - // @@protoc_insertion_point(field_set:remote.Cursor.op) -} + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const HistoryGetReply& default_instance() { + return *internal_default_instance(); + } + static inline const HistoryGetReply* internal_default_instance() { + return reinterpret_cast( + &_HistoryGetReply_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; -// string bucketName = 2; -inline void Cursor::clear_bucketname() { - _impl_.bucketname_.ClearToEmpty(); -} -inline const std::string& Cursor::bucketname() const { - // @@protoc_insertion_point(field_get:remote.Cursor.bucketName) - return _internal_bucketname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Cursor::set_bucketname(ArgT0&& arg0, ArgT... args) { - - _impl_.bucketname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.Cursor.bucketName) -} -inline std::string* Cursor::mutable_bucketname() { - std::string* _s = _internal_mutable_bucketname(); - // @@protoc_insertion_point(field_mutable:remote.Cursor.bucketName) - return _s; -} -inline const std::string& Cursor::_internal_bucketname() const { - return _impl_.bucketname_.Get(); -} -inline void Cursor::_internal_set_bucketname(const std::string& value) { - - _impl_.bucketname_.Set(value, GetArenaForAllocation()); -} -inline std::string* Cursor::_internal_mutable_bucketname() { - - return _impl_.bucketname_.Mutable(GetArenaForAllocation()); -} -inline std::string* Cursor::release_bucketname() { - // @@protoc_insertion_point(field_release:remote.Cursor.bucketName) - return _impl_.bucketname_.Release(); -} -inline void Cursor::set_allocated_bucketname(std::string* bucketname) { - if (bucketname != nullptr) { - - } else { - + friend void swap(HistoryGetReply& a, HistoryGetReply& b) { + a.Swap(&b); } - _impl_.bucketname_.SetAllocated(bucketname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.bucketname_.IsDefault()) { - _impl_.bucketname_.Set("", GetArenaForAllocation()); + inline void Swap(HistoryGetReply* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HistoryGetReply* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.Cursor.bucketName) -} -// uint32 cursor = 3; -inline void Cursor::clear_cursor() { - _impl_.cursor_ = 0u; -} -inline uint32_t Cursor::_internal_cursor() const { - return _impl_.cursor_; -} -inline uint32_t Cursor::cursor() const { - // @@protoc_insertion_point(field_get:remote.Cursor.cursor) - return _internal_cursor(); -} -inline void Cursor::_internal_set_cursor(uint32_t value) { - - _impl_.cursor_ = value; -} -inline void Cursor::set_cursor(uint32_t value) { - _internal_set_cursor(value); - // @@protoc_insertion_point(field_set:remote.Cursor.cursor) -} + // implements Message ---------------------------------------------- -// bytes k = 4; -inline void Cursor::clear_k() { - _impl_.k_.ClearToEmpty(); -} -inline const std::string& Cursor::k() const { - // @@protoc_insertion_point(field_get:remote.Cursor.k) - return _internal_k(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Cursor::set_k(ArgT0&& arg0, ArgT... args) { - - _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.Cursor.k) -} -inline std::string* Cursor::mutable_k() { - std::string* _s = _internal_mutable_k(); - // @@protoc_insertion_point(field_mutable:remote.Cursor.k) - return _s; -} -inline const std::string& Cursor::_internal_k() const { + HistoryGetReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const HistoryGetReply& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const HistoryGetReply& from) { + HistoryGetReply::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HistoryGetReply* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.HistoryGetReply"; + } + protected: + explicit HistoryGetReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVFieldNumber = 1, + kOkFieldNumber = 2, + }; + // bytes v = 1; + void clear_v(); + const std::string& v() const; + template + void set_v(ArgT0&& arg0, ArgT... args); + std::string* mutable_v(); + PROTOBUF_NODISCARD std::string* release_v(); + void set_allocated_v(std::string* v); + private: + const std::string& _internal_v() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_v(const std::string& value); + std::string* _internal_mutable_v(); + public: + + // bool ok = 2; + void clear_ok(); + bool ok() const; + void set_ok(bool value); + private: + bool _internal_ok() const; + void _internal_set_ok(bool value); + public: + + // @@protoc_insertion_point(class_scope:remote.HistoryGetReply) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr v_; + bool ok_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexRangeReq final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReq) */ { + public: + inline IndexRangeReq() : IndexRangeReq(nullptr) {} + ~IndexRangeReq() override; + explicit PROTOBUF_CONSTEXPR IndexRangeReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IndexRangeReq(const IndexRangeReq& from); + IndexRangeReq(IndexRangeReq&& from) noexcept + : IndexRangeReq() { + *this = ::std::move(from); + } + + inline IndexRangeReq& operator=(const IndexRangeReq& from) { + CopyFrom(from); + return *this; + } + inline IndexRangeReq& operator=(IndexRangeReq&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const IndexRangeReq& default_instance() { + return *internal_default_instance(); + } + static inline const IndexRangeReq* internal_default_instance() { + return reinterpret_cast( + &_IndexRangeReq_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(IndexRangeReq& a, IndexRangeReq& b) { + a.Swap(&b); + } + inline void Swap(IndexRangeReq* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IndexRangeReq* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IndexRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IndexRangeReq& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IndexRangeReq& from) { + IndexRangeReq::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexRangeReq* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.IndexRangeReq"; + } + protected: + explicit IndexRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableFieldNumber = 2, + kKFieldNumber = 3, + kPageTokenFieldNumber = 9, + kTxIdFieldNumber = 1, + kFromTsFieldNumber = 4, + kToTsFieldNumber = 5, + kLimitFieldNumber = 7, + kOrderAscendFieldNumber = 6, + kPageSizeFieldNumber = 8, + }; + // string table = 2; + void clear_table(); + const std::string& table() const; + template + void set_table(ArgT0&& arg0, ArgT... args); + std::string* mutable_table(); + PROTOBUF_NODISCARD std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: + + // bytes k = 3; + void clear_k(); + const std::string& k() const; + template + void set_k(ArgT0&& arg0, ArgT... args); + std::string* mutable_k(); + PROTOBUF_NODISCARD std::string* release_k(); + void set_allocated_k(std::string* k); + private: + const std::string& _internal_k() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_k(const std::string& value); + std::string* _internal_mutable_k(); + public: + + // string page_token = 9; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + uint64_t tx_id() const; + void set_tx_id(uint64_t value); + private: + uint64_t _internal_tx_id() const; + void _internal_set_tx_id(uint64_t value); + public: + + // sint64 from_ts = 4; + void clear_from_ts(); + int64_t from_ts() const; + void set_from_ts(int64_t value); + private: + int64_t _internal_from_ts() const; + void _internal_set_from_ts(int64_t value); + public: + + // sint64 to_ts = 5; + void clear_to_ts(); + int64_t to_ts() const; + void set_to_ts(int64_t value); + private: + int64_t _internal_to_ts() const; + void _internal_set_to_ts(int64_t value); + public: + + // sint64 limit = 7; + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // bool order_ascend = 6; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 8; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.IndexRangeReq) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr k_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + uint64_t tx_id_; + int64_t from_ts_; + int64_t to_ts_; + int64_t limit_; + bool order_ascend_; + int32_t page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexRangeReply final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexRangeReply) */ { + public: + inline IndexRangeReply() : IndexRangeReply(nullptr) {} + ~IndexRangeReply() override; + explicit PROTOBUF_CONSTEXPR IndexRangeReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IndexRangeReply(const IndexRangeReply& from); + IndexRangeReply(IndexRangeReply&& from) noexcept + : IndexRangeReply() { + *this = ::std::move(from); + } + + inline IndexRangeReply& operator=(const IndexRangeReply& from) { + CopyFrom(from); + return *this; + } + inline IndexRangeReply& operator=(IndexRangeReply&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const IndexRangeReply& default_instance() { + return *internal_default_instance(); + } + static inline const IndexRangeReply* internal_default_instance() { + return reinterpret_cast( + &_IndexRangeReply_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(IndexRangeReply& a, IndexRangeReply& b) { + a.Swap(&b); + } + inline void Swap(IndexRangeReply* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IndexRangeReply* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IndexRangeReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IndexRangeReply& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IndexRangeReply& from) { + IndexRangeReply::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexRangeReply* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.IndexRangeReply"; + } + protected: + explicit IndexRangeReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTimestampsFieldNumber = 1, + kNextPageTokenFieldNumber = 2, + }; + // repeated uint64 timestamps = 1; + int timestamps_size() const; + private: + int _internal_timestamps_size() const; + public: + void clear_timestamps(); + private: + uint64_t _internal_timestamps(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + _internal_timestamps() const; + void _internal_add_timestamps(uint64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + _internal_mutable_timestamps(); + public: + uint64_t timestamps(int index) const; + void set_timestamps(int index, uint64_t value); + void add_timestamps(uint64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& + timestamps() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* + mutable_timestamps(); + + // string next_page_token = 2; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:remote.IndexRangeReply) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > timestamps_; + mutable std::atomic _timestamps_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class HistoryRangeReq final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.HistoryRangeReq) */ { + public: + inline HistoryRangeReq() : HistoryRangeReq(nullptr) {} + ~HistoryRangeReq() override; + explicit PROTOBUF_CONSTEXPR HistoryRangeReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HistoryRangeReq(const HistoryRangeReq& from); + HistoryRangeReq(HistoryRangeReq&& from) noexcept + : HistoryRangeReq() { + *this = ::std::move(from); + } + + inline HistoryRangeReq& operator=(const HistoryRangeReq& from) { + CopyFrom(from); + return *this; + } + inline HistoryRangeReq& operator=(HistoryRangeReq&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const HistoryRangeReq& default_instance() { + return *internal_default_instance(); + } + static inline const HistoryRangeReq* internal_default_instance() { + return reinterpret_cast( + &_HistoryRangeReq_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(HistoryRangeReq& a, HistoryRangeReq& b) { + a.Swap(&b); + } + inline void Swap(HistoryRangeReq* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HistoryRangeReq* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HistoryRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const HistoryRangeReq& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const HistoryRangeReq& from) { + HistoryRangeReq::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HistoryRangeReq* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.HistoryRangeReq"; + } + protected: + explicit HistoryRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableFieldNumber = 2, + kPageTokenFieldNumber = 9, + kTxIdFieldNumber = 1, + kFromTsFieldNumber = 4, + kToTsFieldNumber = 5, + kLimitFieldNumber = 7, + kOrderAscendFieldNumber = 6, + kPageSizeFieldNumber = 8, + }; + // string table = 2; + void clear_table(); + const std::string& table() const; + template + void set_table(ArgT0&& arg0, ArgT... args); + std::string* mutable_table(); + PROTOBUF_NODISCARD std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: + + // string page_token = 9; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + uint64_t tx_id() const; + void set_tx_id(uint64_t value); + private: + uint64_t _internal_tx_id() const; + void _internal_set_tx_id(uint64_t value); + public: + + // sint64 from_ts = 4; + void clear_from_ts(); + int64_t from_ts() const; + void set_from_ts(int64_t value); + private: + int64_t _internal_from_ts() const; + void _internal_set_from_ts(int64_t value); + public: + + // sint64 to_ts = 5; + void clear_to_ts(); + int64_t to_ts() const; + void set_to_ts(int64_t value); + private: + int64_t _internal_to_ts() const; + void _internal_set_to_ts(int64_t value); + public: + + // sint64 limit = 7; + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // bool order_ascend = 6; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 8; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.HistoryRangeReq) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + uint64_t tx_id_; + int64_t from_ts_; + int64_t to_ts_; + int64_t limit_; + bool order_ascend_; + int32_t page_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class DomainRangeReq final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.DomainRangeReq) */ { + public: + inline DomainRangeReq() : DomainRangeReq(nullptr) {} + ~DomainRangeReq() override; + explicit PROTOBUF_CONSTEXPR DomainRangeReq(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DomainRangeReq(const DomainRangeReq& from); + DomainRangeReq(DomainRangeReq&& from) noexcept + : DomainRangeReq() { + *this = ::std::move(from); + } + + inline DomainRangeReq& operator=(const DomainRangeReq& from) { + CopyFrom(from); + return *this; + } + inline DomainRangeReq& operator=(DomainRangeReq&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const DomainRangeReq& default_instance() { + return *internal_default_instance(); + } + static inline const DomainRangeReq* internal_default_instance() { + return reinterpret_cast( + &_DomainRangeReq_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(DomainRangeReq& a, DomainRangeReq& b) { + a.Swap(&b); + } + inline void Swap(DomainRangeReq* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DomainRangeReq* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DomainRangeReq* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DomainRangeReq& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DomainRangeReq& from) { + DomainRangeReq::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DomainRangeReq* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.DomainRangeReq"; + } + protected: + explicit DomainRangeReq(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTableFieldNumber = 2, + kFromKeyFieldNumber = 3, + kToKeyFieldNumber = 4, + kPageTokenFieldNumber = 10, + kTxIdFieldNumber = 1, + kTsFieldNumber = 5, + kLatestFieldNumber = 6, + kOrderAscendFieldNumber = 7, + kPageSizeFieldNumber = 9, + kLimitFieldNumber = 8, + }; + // string table = 2; + void clear_table(); + const std::string& table() const; + template + void set_table(ArgT0&& arg0, ArgT... args); + std::string* mutable_table(); + PROTOBUF_NODISCARD std::string* release_table(); + void set_allocated_table(std::string* table); + private: + const std::string& _internal_table() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table(const std::string& value); + std::string* _internal_mutable_table(); + public: + + // bytes from_key = 3; + void clear_from_key(); + const std::string& from_key() const; + template + void set_from_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_from_key(); + PROTOBUF_NODISCARD std::string* release_from_key(); + void set_allocated_from_key(std::string* from_key); + private: + const std::string& _internal_from_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_from_key(const std::string& value); + std::string* _internal_mutable_from_key(); + public: + + // bytes to_key = 4; + void clear_to_key(); + const std::string& to_key() const; + template + void set_to_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_to_key(); + PROTOBUF_NODISCARD std::string* release_to_key(); + void set_allocated_to_key(std::string* to_key); + private: + const std::string& _internal_to_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_to_key(const std::string& value); + std::string* _internal_mutable_to_key(); + public: + + // string page_token = 10; + void clear_page_token(); + const std::string& page_token() const; + template + void set_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_page_token(); + PROTOBUF_NODISCARD std::string* release_page_token(); + void set_allocated_page_token(std::string* page_token); + private: + const std::string& _internal_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_page_token(const std::string& value); + std::string* _internal_mutable_page_token(); + public: + + // uint64 tx_id = 1; + void clear_tx_id(); + uint64_t tx_id() const; + void set_tx_id(uint64_t value); + private: + uint64_t _internal_tx_id() const; + void _internal_set_tx_id(uint64_t value); + public: + + // uint64 ts = 5; + void clear_ts(); + uint64_t ts() const; + void set_ts(uint64_t value); + private: + uint64_t _internal_ts() const; + void _internal_set_ts(uint64_t value); + public: + + // bool latest = 6; + void clear_latest(); + bool latest() const; + void set_latest(bool value); + private: + bool _internal_latest() const; + void _internal_set_latest(bool value); + public: + + // bool order_ascend = 7; + void clear_order_ascend(); + bool order_ascend() const; + void set_order_ascend(bool value); + private: + bool _internal_order_ascend() const; + void _internal_set_order_ascend(bool value); + public: + + // int32 page_size = 9; + void clear_page_size(); + int32_t page_size() const; + void set_page_size(int32_t value); + private: + int32_t _internal_page_size() const; + void _internal_set_page_size(int32_t value); + public: + + // sint64 limit = 8; + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.DomainRangeReq) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr from_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr to_key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr page_token_; + uint64_t tx_id_; + uint64_t ts_; + bool latest_; + bool order_ascend_; + int32_t page_size_; + int64_t limit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class Pairs final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.Pairs) */ { + public: + inline Pairs() : Pairs(nullptr) {} + ~Pairs() override; + explicit PROTOBUF_CONSTEXPR Pairs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Pairs(const Pairs& from); + Pairs(Pairs&& from) noexcept + : Pairs() { + *this = ::std::move(from); + } + + inline Pairs& operator=(const Pairs& from) { + CopyFrom(from); + return *this; + } + inline Pairs& operator=(Pairs&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Pairs& default_instance() { + return *internal_default_instance(); + } + static inline const Pairs* internal_default_instance() { + return reinterpret_cast( + &_Pairs_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(Pairs& a, Pairs& b) { + a.Swap(&b); + } + inline void Swap(Pairs* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Pairs* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Pairs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Pairs& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Pairs& from) { + Pairs::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Pairs* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.Pairs"; + } + protected: + explicit Pairs(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeysFieldNumber = 1, + kValuesFieldNumber = 2, + kNextPageTokenFieldNumber = 3, + }; + // repeated bytes keys = 1; + int keys_size() const; + private: + int _internal_keys_size() const; + public: + void clear_keys(); + const std::string& keys(int index) const; + std::string* mutable_keys(int index); + void set_keys(int index, const std::string& value); + void set_keys(int index, std::string&& value); + void set_keys(int index, const char* value); + void set_keys(int index, const void* value, size_t size); + std::string* add_keys(); + void add_keys(const std::string& value); + void add_keys(std::string&& value); + void add_keys(const char* value); + void add_keys(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& keys() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_keys(); + private: + const std::string& _internal_keys(int index) const; + std::string* _internal_add_keys(); + public: + + // repeated bytes values = 2; + int values_size() const; + private: + int _internal_values_size() const; + public: + void clear_values(); + const std::string& values(int index) const; + std::string* mutable_values(int index); + void set_values(int index, const std::string& value); + void set_values(int index, std::string&& value); + void set_values(int index, const char* value); + void set_values(int index, const void* value, size_t size); + std::string* add_values(); + void add_values(const std::string& value); + void add_values(std::string&& value); + void add_values(const char* value); + void add_values(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& values() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_values(); + private: + const std::string& _internal_values(int index) const; + std::string* _internal_add_values(); + public: + + // string next_page_token = 3; + void clear_next_page_token(); + const std::string& next_page_token() const; + template + void set_next_page_token(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_page_token(); + PROTOBUF_NODISCARD std::string* release_next_page_token(); + void set_allocated_next_page_token(std::string* next_page_token); + private: + const std::string& _internal_next_page_token() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_page_token(const std::string& value); + std::string* _internal_mutable_next_page_token(); + public: + + // @@protoc_insertion_point(class_scope:remote.Pairs) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField keys_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_page_token_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class ParisPagination final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.ParisPagination) */ { + public: + inline ParisPagination() : ParisPagination(nullptr) {} + ~ParisPagination() override; + explicit PROTOBUF_CONSTEXPR ParisPagination(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ParisPagination(const ParisPagination& from); + ParisPagination(ParisPagination&& from) noexcept + : ParisPagination() { + *this = ::std::move(from); + } + + inline ParisPagination& operator=(const ParisPagination& from) { + CopyFrom(from); + return *this; + } + inline ParisPagination& operator=(ParisPagination&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ParisPagination& default_instance() { + return *internal_default_instance(); + } + static inline const ParisPagination* internal_default_instance() { + return reinterpret_cast( + &_ParisPagination_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(ParisPagination& a, ParisPagination& b) { + a.Swap(&b); + } + inline void Swap(ParisPagination* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ParisPagination* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ParisPagination* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ParisPagination& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ParisPagination& from) { + ParisPagination::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParisPagination* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.ParisPagination"; + } + protected: + explicit ParisPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNextKeyFieldNumber = 1, + kLimitFieldNumber = 2, + }; + // bytes next_key = 1; + void clear_next_key(); + const std::string& next_key() const; + template + void set_next_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_next_key(); + PROTOBUF_NODISCARD std::string* release_next_key(); + void set_allocated_next_key(std::string* next_key); + private: + const std::string& _internal_next_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_key(const std::string& value); + std::string* _internal_mutable_next_key(); + public: + + // sint64 limit = 2; + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.ParisPagination) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_key_; + int64_t limit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexPagination final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:remote.IndexPagination) */ { + public: + inline IndexPagination() : IndexPagination(nullptr) {} + ~IndexPagination() override; + explicit PROTOBUF_CONSTEXPR IndexPagination(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IndexPagination(const IndexPagination& from); + IndexPagination(IndexPagination&& from) noexcept + : IndexPagination() { + *this = ::std::move(from); + } + + inline IndexPagination& operator=(const IndexPagination& from) { + CopyFrom(from); + return *this; + } + inline IndexPagination& operator=(IndexPagination&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const IndexPagination& default_instance() { + return *internal_default_instance(); + } + static inline const IndexPagination* internal_default_instance() { + return reinterpret_cast( + &_IndexPagination_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(IndexPagination& a, IndexPagination& b) { + a.Swap(&b); + } + inline void Swap(IndexPagination* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IndexPagination* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IndexPagination* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IndexPagination& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const IndexPagination& from) { + IndexPagination::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexPagination* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "remote.IndexPagination"; + } + protected: + explicit IndexPagination(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNextTimeStampFieldNumber = 1, + kLimitFieldNumber = 2, + }; + // sint64 next_time_stamp = 1; + void clear_next_time_stamp(); + int64_t next_time_stamp() const; + void set_next_time_stamp(int64_t value); + private: + int64_t _internal_next_time_stamp() const; + void _internal_set_next_time_stamp(int64_t value); + public: + + // sint64 limit = 2; + void clear_limit(); + int64_t limit() const; + void set_limit(int64_t value); + private: + int64_t _internal_limit() const; + void _internal_set_limit(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:remote.IndexPagination) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int64_t next_time_stamp_; + int64_t limit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_remote_2fkv_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Cursor + +// .remote.Op op = 1; +inline void Cursor::clear_op() { + _impl_.op_ = 0; +} +inline ::remote::Op Cursor::_internal_op() const { + return static_cast< ::remote::Op >(_impl_.op_); +} +inline ::remote::Op Cursor::op() const { + // @@protoc_insertion_point(field_get:remote.Cursor.op) + return _internal_op(); +} +inline void Cursor::_internal_set_op(::remote::Op value) { + + _impl_.op_ = value; +} +inline void Cursor::set_op(::remote::Op value) { + _internal_set_op(value); + // @@protoc_insertion_point(field_set:remote.Cursor.op) +} + +// string bucketName = 2; +inline void Cursor::clear_bucketname() { + _impl_.bucketname_.ClearToEmpty(); +} +inline const std::string& Cursor::bucketname() const { + // @@protoc_insertion_point(field_get:remote.Cursor.bucketName) + return _internal_bucketname(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Cursor::set_bucketname(ArgT0&& arg0, ArgT... args) { + + _impl_.bucketname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.Cursor.bucketName) +} +inline std::string* Cursor::mutable_bucketname() { + std::string* _s = _internal_mutable_bucketname(); + // @@protoc_insertion_point(field_mutable:remote.Cursor.bucketName) + return _s; +} +inline const std::string& Cursor::_internal_bucketname() const { + return _impl_.bucketname_.Get(); +} +inline void Cursor::_internal_set_bucketname(const std::string& value) { + + _impl_.bucketname_.Set(value, GetArenaForAllocation()); +} +inline std::string* Cursor::_internal_mutable_bucketname() { + + return _impl_.bucketname_.Mutable(GetArenaForAllocation()); +} +inline std::string* Cursor::release_bucketname() { + // @@protoc_insertion_point(field_release:remote.Cursor.bucketName) + return _impl_.bucketname_.Release(); +} +inline void Cursor::set_allocated_bucketname(std::string* bucketname) { + if (bucketname != nullptr) { + + } else { + + } + _impl_.bucketname_.SetAllocated(bucketname, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.bucketname_.IsDefault()) { + _impl_.bucketname_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.Cursor.bucketName) +} + +// uint32 cursor = 3; +inline void Cursor::clear_cursor() { + _impl_.cursor_ = 0u; +} +inline uint32_t Cursor::_internal_cursor() const { + return _impl_.cursor_; +} +inline uint32_t Cursor::cursor() const { + // @@protoc_insertion_point(field_get:remote.Cursor.cursor) + return _internal_cursor(); +} +inline void Cursor::_internal_set_cursor(uint32_t value) { + + _impl_.cursor_ = value; +} +inline void Cursor::set_cursor(uint32_t value) { + _internal_set_cursor(value); + // @@protoc_insertion_point(field_set:remote.Cursor.cursor) +} + +// bytes k = 4; +inline void Cursor::clear_k() { + _impl_.k_.ClearToEmpty(); +} +inline const std::string& Cursor::k() const { + // @@protoc_insertion_point(field_get:remote.Cursor.k) + return _internal_k(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Cursor::set_k(ArgT0&& arg0, ArgT... args) { + + _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.Cursor.k) +} +inline std::string* Cursor::mutable_k() { + std::string* _s = _internal_mutable_k(); + // @@protoc_insertion_point(field_mutable:remote.Cursor.k) + return _s; +} +inline const std::string& Cursor::_internal_k() const { + return _impl_.k_.Get(); +} +inline void Cursor::_internal_set_k(const std::string& value) { + + _impl_.k_.Set(value, GetArenaForAllocation()); +} +inline std::string* Cursor::_internal_mutable_k() { + + return _impl_.k_.Mutable(GetArenaForAllocation()); +} +inline std::string* Cursor::release_k() { + // @@protoc_insertion_point(field_release:remote.Cursor.k) + return _impl_.k_.Release(); +} +inline void Cursor::set_allocated_k(std::string* k) { + if (k != nullptr) { + + } else { + + } + _impl_.k_.SetAllocated(k, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.k_.IsDefault()) { + _impl_.k_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.Cursor.k) +} + +// bytes v = 5; +inline void Cursor::clear_v() { + _impl_.v_.ClearToEmpty(); +} +inline const std::string& Cursor::v() const { + // @@protoc_insertion_point(field_get:remote.Cursor.v) + return _internal_v(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Cursor::set_v(ArgT0&& arg0, ArgT... args) { + + _impl_.v_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.Cursor.v) +} +inline std::string* Cursor::mutable_v() { + std::string* _s = _internal_mutable_v(); + // @@protoc_insertion_point(field_mutable:remote.Cursor.v) + return _s; +} +inline const std::string& Cursor::_internal_v() const { + return _impl_.v_.Get(); +} +inline void Cursor::_internal_set_v(const std::string& value) { + + _impl_.v_.Set(value, GetArenaForAllocation()); +} +inline std::string* Cursor::_internal_mutable_v() { + + return _impl_.v_.Mutable(GetArenaForAllocation()); +} +inline std::string* Cursor::release_v() { + // @@protoc_insertion_point(field_release:remote.Cursor.v) + return _impl_.v_.Release(); +} +inline void Cursor::set_allocated_v(std::string* v) { + if (v != nullptr) { + + } else { + + } + _impl_.v_.SetAllocated(v, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.v_.IsDefault()) { + _impl_.v_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.Cursor.v) +} + +// ------------------------------------------------------------------- + +// Pair + +// bytes k = 1; +inline void Pair::clear_k() { + _impl_.k_.ClearToEmpty(); +} +inline const std::string& Pair::k() const { + // @@protoc_insertion_point(field_get:remote.Pair.k) + return _internal_k(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Pair::set_k(ArgT0&& arg0, ArgT... args) { + + _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.Pair.k) +} +inline std::string* Pair::mutable_k() { + std::string* _s = _internal_mutable_k(); + // @@protoc_insertion_point(field_mutable:remote.Pair.k) + return _s; +} +inline const std::string& Pair::_internal_k() const { return _impl_.k_.Get(); } -inline void Cursor::_internal_set_k(const std::string& value) { +inline void Pair::_internal_set_k(const std::string& value) { + + _impl_.k_.Set(value, GetArenaForAllocation()); +} +inline std::string* Pair::_internal_mutable_k() { + + return _impl_.k_.Mutable(GetArenaForAllocation()); +} +inline std::string* Pair::release_k() { + // @@protoc_insertion_point(field_release:remote.Pair.k) + return _impl_.k_.Release(); +} +inline void Pair::set_allocated_k(std::string* k) { + if (k != nullptr) { + + } else { + + } + _impl_.k_.SetAllocated(k, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.k_.IsDefault()) { + _impl_.k_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.Pair.k) +} + +// bytes v = 2; +inline void Pair::clear_v() { + _impl_.v_.ClearToEmpty(); +} +inline const std::string& Pair::v() const { + // @@protoc_insertion_point(field_get:remote.Pair.v) + return _internal_v(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void Pair::set_v(ArgT0&& arg0, ArgT... args) { + + _impl_.v_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.Pair.v) +} +inline std::string* Pair::mutable_v() { + std::string* _s = _internal_mutable_v(); + // @@protoc_insertion_point(field_mutable:remote.Pair.v) + return _s; +} +inline const std::string& Pair::_internal_v() const { + return _impl_.v_.Get(); +} +inline void Pair::_internal_set_v(const std::string& value) { + + _impl_.v_.Set(value, GetArenaForAllocation()); +} +inline std::string* Pair::_internal_mutable_v() { + + return _impl_.v_.Mutable(GetArenaForAllocation()); +} +inline std::string* Pair::release_v() { + // @@protoc_insertion_point(field_release:remote.Pair.v) + return _impl_.v_.Release(); +} +inline void Pair::set_allocated_v(std::string* v) { + if (v != nullptr) { + + } else { + + } + _impl_.v_.SetAllocated(v, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.v_.IsDefault()) { + _impl_.v_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.Pair.v) +} + +// uint32 cursorID = 3; +inline void Pair::clear_cursorid() { + _impl_.cursorid_ = 0u; +} +inline uint32_t Pair::_internal_cursorid() const { + return _impl_.cursorid_; +} +inline uint32_t Pair::cursorid() const { + // @@protoc_insertion_point(field_get:remote.Pair.cursorID) + return _internal_cursorid(); +} +inline void Pair::_internal_set_cursorid(uint32_t value) { + + _impl_.cursorid_ = value; +} +inline void Pair::set_cursorid(uint32_t value) { + _internal_set_cursorid(value); + // @@protoc_insertion_point(field_set:remote.Pair.cursorID) +} + +// uint64 viewID = 4; +inline void Pair::clear_viewid() { + _impl_.viewid_ = uint64_t{0u}; +} +inline uint64_t Pair::_internal_viewid() const { + return _impl_.viewid_; +} +inline uint64_t Pair::viewid() const { + // @@protoc_insertion_point(field_get:remote.Pair.viewID) + return _internal_viewid(); +} +inline void Pair::_internal_set_viewid(uint64_t value) { + + _impl_.viewid_ = value; +} +inline void Pair::set_viewid(uint64_t value) { + _internal_set_viewid(value); + // @@protoc_insertion_point(field_set:remote.Pair.viewID) +} + +// uint64 txID = 5; +inline void Pair::clear_txid() { + _impl_.txid_ = uint64_t{0u}; +} +inline uint64_t Pair::_internal_txid() const { + return _impl_.txid_; +} +inline uint64_t Pair::txid() const { + // @@protoc_insertion_point(field_get:remote.Pair.txID) + return _internal_txid(); +} +inline void Pair::_internal_set_txid(uint64_t value) { + + _impl_.txid_ = value; +} +inline void Pair::set_txid(uint64_t value) { + _internal_set_txid(value); + // @@protoc_insertion_point(field_set:remote.Pair.txID) +} + +// ------------------------------------------------------------------- + +// StorageChange + +// .types.H256 location = 1; +inline bool StorageChange::_internal_has_location() const { + return this != internal_default_instance() && _impl_.location_ != nullptr; +} +inline bool StorageChange::has_location() const { + return _internal_has_location(); +} +inline const ::types::H256& StorageChange::_internal_location() const { + const ::types::H256* p = _impl_.location_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& StorageChange::location() const { + // @@protoc_insertion_point(field_get:remote.StorageChange.location) + return _internal_location(); +} +inline void StorageChange::unsafe_arena_set_allocated_location( + ::types::H256* location) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + _impl_.location_ = location; + if (location) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StorageChange.location) +} +inline ::types::H256* StorageChange::release_location() { + + ::types::H256* temp = _impl_.location_; + _impl_.location_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::types::H256* StorageChange::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_release:remote.StorageChange.location) + + ::types::H256* temp = _impl_.location_; + _impl_.location_ = nullptr; + return temp; +} +inline ::types::H256* StorageChange::_internal_mutable_location() { + + if (_impl_.location_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.location_ = p; + } + return _impl_.location_; +} +inline ::types::H256* StorageChange::mutable_location() { + ::types::H256* _msg = _internal_mutable_location(); + // @@protoc_insertion_point(field_mutable:remote.StorageChange.location) + return _msg; +} +inline void StorageChange::set_allocated_location(::types::H256* location) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); + } + if (location) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); + if (message_arena != submessage_arena) { + location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, location, submessage_arena); + } + + } else { + + } + _impl_.location_ = location; + // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.location) +} + +// bytes data = 2; +inline void StorageChange::clear_data() { + _impl_.data_.ClearToEmpty(); +} +inline const std::string& StorageChange::data() const { + // @@protoc_insertion_point(field_get:remote.StorageChange.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void StorageChange::set_data(ArgT0&& arg0, ArgT... args) { + + _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.StorageChange.data) +} +inline std::string* StorageChange::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:remote.StorageChange.data) + return _s; +} +inline const std::string& StorageChange::_internal_data() const { + return _impl_.data_.Get(); +} +inline void StorageChange::_internal_set_data(const std::string& value) { + + _impl_.data_.Set(value, GetArenaForAllocation()); +} +inline std::string* StorageChange::_internal_mutable_data() { + + return _impl_.data_.Mutable(GetArenaForAllocation()); +} +inline std::string* StorageChange::release_data() { + // @@protoc_insertion_point(field_release:remote.StorageChange.data) + return _impl_.data_.Release(); +} +inline void StorageChange::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + _impl_.data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.data) +} + +// ------------------------------------------------------------------- + +// AccountChange + +// .types.H160 address = 1; +inline bool AccountChange::_internal_has_address() const { + return this != internal_default_instance() && _impl_.address_ != nullptr; +} +inline bool AccountChange::has_address() const { + return _internal_has_address(); +} +inline const ::types::H160& AccountChange::_internal_address() const { + const ::types::H160* p = _impl_.address_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H160_default_instance_); +} +inline const ::types::H160& AccountChange::address() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.address) + return _internal_address(); +} +inline void AccountChange::unsafe_arena_set_allocated_address( + ::types::H160* address) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); + } + _impl_.address_ = address; + if (address) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.AccountChange.address) +} +inline ::types::H160* AccountChange::release_address() { + + ::types::H160* temp = _impl_.address_; + _impl_.address_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::types::H160* AccountChange::unsafe_arena_release_address() { + // @@protoc_insertion_point(field_release:remote.AccountChange.address) + + ::types::H160* temp = _impl_.address_; + _impl_.address_ = nullptr; + return temp; +} +inline ::types::H160* AccountChange::_internal_mutable_address() { + + if (_impl_.address_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H160>(GetArenaForAllocation()); + _impl_.address_ = p; + } + return _impl_.address_; +} +inline ::types::H160* AccountChange::mutable_address() { + ::types::H160* _msg = _internal_mutable_address(); + // @@protoc_insertion_point(field_mutable:remote.AccountChange.address) + return _msg; +} +inline void AccountChange::set_allocated_address(::types::H160* address) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); + } + if (address) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address)); + if (message_arena != submessage_arena) { + address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, address, submessage_arena); + } + + } else { + + } + _impl_.address_ = address; + // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.address) +} + +// uint64 incarnation = 2; +inline void AccountChange::clear_incarnation() { + _impl_.incarnation_ = uint64_t{0u}; +} +inline uint64_t AccountChange::_internal_incarnation() const { + return _impl_.incarnation_; +} +inline uint64_t AccountChange::incarnation() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.incarnation) + return _internal_incarnation(); +} +inline void AccountChange::_internal_set_incarnation(uint64_t value) { + + _impl_.incarnation_ = value; +} +inline void AccountChange::set_incarnation(uint64_t value) { + _internal_set_incarnation(value); + // @@protoc_insertion_point(field_set:remote.AccountChange.incarnation) +} + +// .remote.Action action = 3; +inline void AccountChange::clear_action() { + _impl_.action_ = 0; +} +inline ::remote::Action AccountChange::_internal_action() const { + return static_cast< ::remote::Action >(_impl_.action_); +} +inline ::remote::Action AccountChange::action() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.action) + return _internal_action(); +} +inline void AccountChange::_internal_set_action(::remote::Action value) { + + _impl_.action_ = value; +} +inline void AccountChange::set_action(::remote::Action value) { + _internal_set_action(value); + // @@protoc_insertion_point(field_set:remote.AccountChange.action) +} + +// bytes data = 4; +inline void AccountChange::clear_data() { + _impl_.data_.ClearToEmpty(); +} +inline const std::string& AccountChange::data() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.data) + return _internal_data(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AccountChange::set_data(ArgT0&& arg0, ArgT... args) { + + _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.AccountChange.data) +} +inline std::string* AccountChange::mutable_data() { + std::string* _s = _internal_mutable_data(); + // @@protoc_insertion_point(field_mutable:remote.AccountChange.data) + return _s; +} +inline const std::string& AccountChange::_internal_data() const { + return _impl_.data_.Get(); +} +inline void AccountChange::_internal_set_data(const std::string& value) { + + _impl_.data_.Set(value, GetArenaForAllocation()); +} +inline std::string* AccountChange::_internal_mutable_data() { + + return _impl_.data_.Mutable(GetArenaForAllocation()); +} +inline std::string* AccountChange::release_data() { + // @@protoc_insertion_point(field_release:remote.AccountChange.data) + return _impl_.data_.Release(); +} +inline void AccountChange::set_allocated_data(std::string* data) { + if (data != nullptr) { + + } else { + + } + _impl_.data_.SetAllocated(data, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.data_.IsDefault()) { + _impl_.data_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.data) +} + +// bytes code = 5; +inline void AccountChange::clear_code() { + _impl_.code_.ClearToEmpty(); +} +inline const std::string& AccountChange::code() const { + // @@protoc_insertion_point(field_get:remote.AccountChange.code) + return _internal_code(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AccountChange::set_code(ArgT0&& arg0, ArgT... args) { + + _impl_.code_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.AccountChange.code) +} +inline std::string* AccountChange::mutable_code() { + std::string* _s = _internal_mutable_code(); + // @@protoc_insertion_point(field_mutable:remote.AccountChange.code) + return _s; +} +inline const std::string& AccountChange::_internal_code() const { + return _impl_.code_.Get(); +} +inline void AccountChange::_internal_set_code(const std::string& value) { + + _impl_.code_.Set(value, GetArenaForAllocation()); +} +inline std::string* AccountChange::_internal_mutable_code() { + + return _impl_.code_.Mutable(GetArenaForAllocation()); +} +inline std::string* AccountChange::release_code() { + // @@protoc_insertion_point(field_release:remote.AccountChange.code) + return _impl_.code_.Release(); +} +inline void AccountChange::set_allocated_code(std::string* code) { + if (code != nullptr) { + + } else { + + } + _impl_.code_.SetAllocated(code, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.code_.IsDefault()) { + _impl_.code_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.code) +} + +// repeated .remote.StorageChange storageChanges = 6; +inline int AccountChange::_internal_storagechanges_size() const { + return _impl_.storagechanges_.size(); +} +inline int AccountChange::storagechanges_size() const { + return _internal_storagechanges_size(); +} +inline void AccountChange::clear_storagechanges() { + _impl_.storagechanges_.Clear(); +} +inline ::remote::StorageChange* AccountChange::mutable_storagechanges(int index) { + // @@protoc_insertion_point(field_mutable:remote.AccountChange.storageChanges) + return _impl_.storagechanges_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >* +AccountChange::mutable_storagechanges() { + // @@protoc_insertion_point(field_mutable_list:remote.AccountChange.storageChanges) + return &_impl_.storagechanges_; +} +inline const ::remote::StorageChange& AccountChange::_internal_storagechanges(int index) const { + return _impl_.storagechanges_.Get(index); +} +inline const ::remote::StorageChange& AccountChange::storagechanges(int index) const { + // @@protoc_insertion_point(field_get:remote.AccountChange.storageChanges) + return _internal_storagechanges(index); +} +inline ::remote::StorageChange* AccountChange::_internal_add_storagechanges() { + return _impl_.storagechanges_.Add(); +} +inline ::remote::StorageChange* AccountChange::add_storagechanges() { + ::remote::StorageChange* _add = _internal_add_storagechanges(); + // @@protoc_insertion_point(field_add:remote.AccountChange.storageChanges) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >& +AccountChange::storagechanges() const { + // @@protoc_insertion_point(field_list:remote.AccountChange.storageChanges) + return _impl_.storagechanges_; +} + +// ------------------------------------------------------------------- + +// StateChangeBatch + +// uint64 stateVersionID = 1; +inline void StateChangeBatch::clear_stateversionid() { + _impl_.stateversionid_ = uint64_t{0u}; +} +inline uint64_t StateChangeBatch::_internal_stateversionid() const { + return _impl_.stateversionid_; +} +inline uint64_t StateChangeBatch::stateversionid() const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.stateVersionID) + return _internal_stateversionid(); +} +inline void StateChangeBatch::_internal_set_stateversionid(uint64_t value) { + + _impl_.stateversionid_ = value; +} +inline void StateChangeBatch::set_stateversionid(uint64_t value) { + _internal_set_stateversionid(value); + // @@protoc_insertion_point(field_set:remote.StateChangeBatch.stateVersionID) +} + +// repeated .remote.StateChange changeBatch = 2; +inline int StateChangeBatch::_internal_changebatch_size() const { + return _impl_.changebatch_.size(); +} +inline int StateChangeBatch::changebatch_size() const { + return _internal_changebatch_size(); +} +inline void StateChangeBatch::clear_changebatch() { + _impl_.changebatch_.Clear(); +} +inline ::remote::StateChange* StateChangeBatch::mutable_changebatch(int index) { + // @@protoc_insertion_point(field_mutable:remote.StateChangeBatch.changeBatch) + return _impl_.changebatch_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >* +StateChangeBatch::mutable_changebatch() { + // @@protoc_insertion_point(field_mutable_list:remote.StateChangeBatch.changeBatch) + return &_impl_.changebatch_; +} +inline const ::remote::StateChange& StateChangeBatch::_internal_changebatch(int index) const { + return _impl_.changebatch_.Get(index); +} +inline const ::remote::StateChange& StateChangeBatch::changebatch(int index) const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.changeBatch) + return _internal_changebatch(index); +} +inline ::remote::StateChange* StateChangeBatch::_internal_add_changebatch() { + return _impl_.changebatch_.Add(); +} +inline ::remote::StateChange* StateChangeBatch::add_changebatch() { + ::remote::StateChange* _add = _internal_add_changebatch(); + // @@protoc_insertion_point(field_add:remote.StateChangeBatch.changeBatch) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >& +StateChangeBatch::changebatch() const { + // @@protoc_insertion_point(field_list:remote.StateChangeBatch.changeBatch) + return _impl_.changebatch_; +} + +// uint64 pendingBlockBaseFee = 3; +inline void StateChangeBatch::clear_pendingblockbasefee() { + _impl_.pendingblockbasefee_ = uint64_t{0u}; +} +inline uint64_t StateChangeBatch::_internal_pendingblockbasefee() const { + return _impl_.pendingblockbasefee_; +} +inline uint64_t StateChangeBatch::pendingblockbasefee() const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.pendingBlockBaseFee) + return _internal_pendingblockbasefee(); +} +inline void StateChangeBatch::_internal_set_pendingblockbasefee(uint64_t value) { + + _impl_.pendingblockbasefee_ = value; +} +inline void StateChangeBatch::set_pendingblockbasefee(uint64_t value) { + _internal_set_pendingblockbasefee(value); + // @@protoc_insertion_point(field_set:remote.StateChangeBatch.pendingBlockBaseFee) +} + +// uint64 blockGasLimit = 4; +inline void StateChangeBatch::clear_blockgaslimit() { + _impl_.blockgaslimit_ = uint64_t{0u}; +} +inline uint64_t StateChangeBatch::_internal_blockgaslimit() const { + return _impl_.blockgaslimit_; +} +inline uint64_t StateChangeBatch::blockgaslimit() const { + // @@protoc_insertion_point(field_get:remote.StateChangeBatch.blockGasLimit) + return _internal_blockgaslimit(); +} +inline void StateChangeBatch::_internal_set_blockgaslimit(uint64_t value) { + + _impl_.blockgaslimit_ = value; +} +inline void StateChangeBatch::set_blockgaslimit(uint64_t value) { + _internal_set_blockgaslimit(value); + // @@protoc_insertion_point(field_set:remote.StateChangeBatch.blockGasLimit) +} + +// ------------------------------------------------------------------- + +// StateChange + +// .remote.Direction direction = 1; +inline void StateChange::clear_direction() { + _impl_.direction_ = 0; +} +inline ::remote::Direction StateChange::_internal_direction() const { + return static_cast< ::remote::Direction >(_impl_.direction_); +} +inline ::remote::Direction StateChange::direction() const { + // @@protoc_insertion_point(field_get:remote.StateChange.direction) + return _internal_direction(); +} +inline void StateChange::_internal_set_direction(::remote::Direction value) { + + _impl_.direction_ = value; +} +inline void StateChange::set_direction(::remote::Direction value) { + _internal_set_direction(value); + // @@protoc_insertion_point(field_set:remote.StateChange.direction) +} + +// uint64 blockHeight = 2; +inline void StateChange::clear_blockheight() { + _impl_.blockheight_ = uint64_t{0u}; +} +inline uint64_t StateChange::_internal_blockheight() const { + return _impl_.blockheight_; +} +inline uint64_t StateChange::blockheight() const { + // @@protoc_insertion_point(field_get:remote.StateChange.blockHeight) + return _internal_blockheight(); +} +inline void StateChange::_internal_set_blockheight(uint64_t value) { + + _impl_.blockheight_ = value; +} +inline void StateChange::set_blockheight(uint64_t value) { + _internal_set_blockheight(value); + // @@protoc_insertion_point(field_set:remote.StateChange.blockHeight) +} + +// .types.H256 blockHash = 3; +inline bool StateChange::_internal_has_blockhash() const { + return this != internal_default_instance() && _impl_.blockhash_ != nullptr; +} +inline bool StateChange::has_blockhash() const { + return _internal_has_blockhash(); +} +inline const ::types::H256& StateChange::_internal_blockhash() const { + const ::types::H256* p = _impl_.blockhash_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& StateChange::blockhash() const { + // @@protoc_insertion_point(field_get:remote.StateChange.blockHash) + return _internal_blockhash(); +} +inline void StateChange::unsafe_arena_set_allocated_blockhash( + ::types::H256* blockhash) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.blockhash_); + } + _impl_.blockhash_ = blockhash; + if (blockhash) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StateChange.blockHash) +} +inline ::types::H256* StateChange::release_blockhash() { + + ::types::H256* temp = _impl_.blockhash_; + _impl_.blockhash_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::types::H256* StateChange::unsafe_arena_release_blockhash() { + // @@protoc_insertion_point(field_release:remote.StateChange.blockHash) + + ::types::H256* temp = _impl_.blockhash_; + _impl_.blockhash_ = nullptr; + return temp; +} +inline ::types::H256* StateChange::_internal_mutable_blockhash() { + + if (_impl_.blockhash_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.blockhash_ = p; + } + return _impl_.blockhash_; +} +inline ::types::H256* StateChange::mutable_blockhash() { + ::types::H256* _msg = _internal_mutable_blockhash(); + // @@protoc_insertion_point(field_mutable:remote.StateChange.blockHash) + return _msg; +} +inline void StateChange::set_allocated_blockhash(::types::H256* blockhash) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.blockhash_); + } + if (blockhash) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash)); + if (message_arena != submessage_arena) { + blockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, blockhash, submessage_arena); + } + + } else { + + } + _impl_.blockhash_ = blockhash; + // @@protoc_insertion_point(field_set_allocated:remote.StateChange.blockHash) +} + +// repeated .remote.AccountChange changes = 4; +inline int StateChange::_internal_changes_size() const { + return _impl_.changes_.size(); +} +inline int StateChange::changes_size() const { + return _internal_changes_size(); +} +inline void StateChange::clear_changes() { + _impl_.changes_.Clear(); +} +inline ::remote::AccountChange* StateChange::mutable_changes(int index) { + // @@protoc_insertion_point(field_mutable:remote.StateChange.changes) + return _impl_.changes_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >* +StateChange::mutable_changes() { + // @@protoc_insertion_point(field_mutable_list:remote.StateChange.changes) + return &_impl_.changes_; +} +inline const ::remote::AccountChange& StateChange::_internal_changes(int index) const { + return _impl_.changes_.Get(index); +} +inline const ::remote::AccountChange& StateChange::changes(int index) const { + // @@protoc_insertion_point(field_get:remote.StateChange.changes) + return _internal_changes(index); +} +inline ::remote::AccountChange* StateChange::_internal_add_changes() { + return _impl_.changes_.Add(); +} +inline ::remote::AccountChange* StateChange::add_changes() { + ::remote::AccountChange* _add = _internal_add_changes(); + // @@protoc_insertion_point(field_add:remote.StateChange.changes) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >& +StateChange::changes() const { + // @@protoc_insertion_point(field_list:remote.StateChange.changes) + return _impl_.changes_; +} + +// repeated bytes txs = 5; +inline int StateChange::_internal_txs_size() const { + return _impl_.txs_.size(); +} +inline int StateChange::txs_size() const { + return _internal_txs_size(); +} +inline void StateChange::clear_txs() { + _impl_.txs_.Clear(); +} +inline std::string* StateChange::add_txs() { + std::string* _s = _internal_add_txs(); + // @@protoc_insertion_point(field_add_mutable:remote.StateChange.txs) + return _s; +} +inline const std::string& StateChange::_internal_txs(int index) const { + return _impl_.txs_.Get(index); +} +inline const std::string& StateChange::txs(int index) const { + // @@protoc_insertion_point(field_get:remote.StateChange.txs) + return _internal_txs(index); +} +inline std::string* StateChange::mutable_txs(int index) { + // @@protoc_insertion_point(field_mutable:remote.StateChange.txs) + return _impl_.txs_.Mutable(index); +} +inline void StateChange::set_txs(int index, const std::string& value) { + _impl_.txs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:remote.StateChange.txs) +} +inline void StateChange::set_txs(int index, std::string&& value) { + _impl_.txs_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:remote.StateChange.txs) +} +inline void StateChange::set_txs(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.txs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.StateChange.txs) +} +inline void StateChange::set_txs(int index, const void* value, size_t size) { + _impl_.txs_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.StateChange.txs) +} +inline std::string* StateChange::_internal_add_txs() { + return _impl_.txs_.Add(); +} +inline void StateChange::add_txs(const std::string& value) { + _impl_.txs_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.StateChange.txs) +} +inline void StateChange::add_txs(std::string&& value) { + _impl_.txs_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.StateChange.txs) +} +inline void StateChange::add_txs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.txs_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.StateChange.txs) +} +inline void StateChange::add_txs(const void* value, size_t size) { + _impl_.txs_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.StateChange.txs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +StateChange::txs() const { + // @@protoc_insertion_point(field_list:remote.StateChange.txs) + return _impl_.txs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +StateChange::mutable_txs() { + // @@protoc_insertion_point(field_mutable_list:remote.StateChange.txs) + return &_impl_.txs_; +} + +// ------------------------------------------------------------------- + +// StateChangeRequest + +// bool withStorage = 1; +inline void StateChangeRequest::clear_withstorage() { + _impl_.withstorage_ = false; +} +inline bool StateChangeRequest::_internal_withstorage() const { + return _impl_.withstorage_; +} +inline bool StateChangeRequest::withstorage() const { + // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withStorage) + return _internal_withstorage(); +} +inline void StateChangeRequest::_internal_set_withstorage(bool value) { - _impl_.k_.Set(value, GetArenaForAllocation()); + _impl_.withstorage_ = value; } -inline std::string* Cursor::_internal_mutable_k() { +inline void StateChangeRequest::set_withstorage(bool value) { + _internal_set_withstorage(value); + // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withStorage) +} + +// bool withTransactions = 2; +inline void StateChangeRequest::clear_withtransactions() { + _impl_.withtransactions_ = false; +} +inline bool StateChangeRequest::_internal_withtransactions() const { + return _impl_.withtransactions_; +} +inline bool StateChangeRequest::withtransactions() const { + // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withTransactions) + return _internal_withtransactions(); +} +inline void StateChangeRequest::_internal_set_withtransactions(bool value) { - return _impl_.k_.Mutable(GetArenaForAllocation()); + _impl_.withtransactions_ = value; } -inline std::string* Cursor::release_k() { - // @@protoc_insertion_point(field_release:remote.Cursor.k) - return _impl_.k_.Release(); +inline void StateChangeRequest::set_withtransactions(bool value) { + _internal_set_withtransactions(value); + // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withTransactions) } -inline void Cursor::set_allocated_k(std::string* k) { - if (k != nullptr) { + +// ------------------------------------------------------------------- + +// SnapshotsRequest + +// ------------------------------------------------------------------- + +// SnapshotsReply + +// repeated string blocks_files = 1; +inline int SnapshotsReply::_internal_blocks_files_size() const { + return _impl_.blocks_files_.size(); +} +inline int SnapshotsReply::blocks_files_size() const { + return _internal_blocks_files_size(); +} +inline void SnapshotsReply::clear_blocks_files() { + _impl_.blocks_files_.Clear(); +} +inline std::string* SnapshotsReply::add_blocks_files() { + std::string* _s = _internal_add_blocks_files(); + // @@protoc_insertion_point(field_add_mutable:remote.SnapshotsReply.blocks_files) + return _s; +} +inline const std::string& SnapshotsReply::_internal_blocks_files(int index) const { + return _impl_.blocks_files_.Get(index); +} +inline const std::string& SnapshotsReply::blocks_files(int index) const { + // @@protoc_insertion_point(field_get:remote.SnapshotsReply.blocks_files) + return _internal_blocks_files(index); +} +inline std::string* SnapshotsReply::mutable_blocks_files(int index) { + // @@protoc_insertion_point(field_mutable:remote.SnapshotsReply.blocks_files) + return _impl_.blocks_files_.Mutable(index); +} +inline void SnapshotsReply::set_blocks_files(int index, const std::string& value) { + _impl_.blocks_files_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::set_blocks_files(int index, std::string&& value) { + _impl_.blocks_files_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::set_blocks_files(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.blocks_files_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::set_blocks_files(int index, const char* value, size_t size) { + _impl_.blocks_files_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.SnapshotsReply.blocks_files) +} +inline std::string* SnapshotsReply::_internal_add_blocks_files() { + return _impl_.blocks_files_.Add(); +} +inline void SnapshotsReply::add_blocks_files(const std::string& value) { + _impl_.blocks_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::add_blocks_files(std::string&& value) { + _impl_.blocks_files_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::add_blocks_files(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.blocks_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.SnapshotsReply.blocks_files) +} +inline void SnapshotsReply::add_blocks_files(const char* value, size_t size) { + _impl_.blocks_files_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.SnapshotsReply.blocks_files) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +SnapshotsReply::blocks_files() const { + // @@protoc_insertion_point(field_list:remote.SnapshotsReply.blocks_files) + return _impl_.blocks_files_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +SnapshotsReply::mutable_blocks_files() { + // @@protoc_insertion_point(field_mutable_list:remote.SnapshotsReply.blocks_files) + return &_impl_.blocks_files_; +} + +// repeated string history_files = 2; +inline int SnapshotsReply::_internal_history_files_size() const { + return _impl_.history_files_.size(); +} +inline int SnapshotsReply::history_files_size() const { + return _internal_history_files_size(); +} +inline void SnapshotsReply::clear_history_files() { + _impl_.history_files_.Clear(); +} +inline std::string* SnapshotsReply::add_history_files() { + std::string* _s = _internal_add_history_files(); + // @@protoc_insertion_point(field_add_mutable:remote.SnapshotsReply.history_files) + return _s; +} +inline const std::string& SnapshotsReply::_internal_history_files(int index) const { + return _impl_.history_files_.Get(index); +} +inline const std::string& SnapshotsReply::history_files(int index) const { + // @@protoc_insertion_point(field_get:remote.SnapshotsReply.history_files) + return _internal_history_files(index); +} +inline std::string* SnapshotsReply::mutable_history_files(int index) { + // @@protoc_insertion_point(field_mutable:remote.SnapshotsReply.history_files) + return _impl_.history_files_.Mutable(index); +} +inline void SnapshotsReply::set_history_files(int index, const std::string& value) { + _impl_.history_files_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::set_history_files(int index, std::string&& value) { + _impl_.history_files_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::set_history_files(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.history_files_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::set_history_files(int index, const char* value, size_t size) { + _impl_.history_files_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.SnapshotsReply.history_files) +} +inline std::string* SnapshotsReply::_internal_add_history_files() { + return _impl_.history_files_.Add(); +} +inline void SnapshotsReply::add_history_files(const std::string& value) { + _impl_.history_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::add_history_files(std::string&& value) { + _impl_.history_files_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::add_history_files(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.history_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.SnapshotsReply.history_files) +} +inline void SnapshotsReply::add_history_files(const char* value, size_t size) { + _impl_.history_files_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.SnapshotsReply.history_files) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +SnapshotsReply::history_files() const { + // @@protoc_insertion_point(field_list:remote.SnapshotsReply.history_files) + return _impl_.history_files_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +SnapshotsReply::mutable_history_files() { + // @@protoc_insertion_point(field_mutable_list:remote.SnapshotsReply.history_files) + return &_impl_.history_files_; +} + +// ------------------------------------------------------------------- + +// RangeReq + +// uint64 tx_id = 1; +inline void RangeReq::clear_tx_id() { + _impl_.tx_id_ = uint64_t{0u}; +} +inline uint64_t RangeReq::_internal_tx_id() const { + return _impl_.tx_id_; +} +inline uint64_t RangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.tx_id) + return _internal_tx_id(); +} +inline void RangeReq::_internal_set_tx_id(uint64_t value) { + + _impl_.tx_id_ = value; +} +inline void RangeReq::set_tx_id(uint64_t value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.tx_id) +} + +// string table = 2; +inline void RangeReq::clear_table() { + _impl_.table_.ClearToEmpty(); +} +inline const std::string& RangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.table) + return _internal_table(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RangeReq::set_table(ArgT0&& arg0, ArgT... args) { + + _impl_.table_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.RangeReq.table) +} +inline std::string* RangeReq::mutable_table() { + std::string* _s = _internal_mutable_table(); + // @@protoc_insertion_point(field_mutable:remote.RangeReq.table) + return _s; +} +inline const std::string& RangeReq::_internal_table() const { + return _impl_.table_.Get(); +} +inline void RangeReq::_internal_set_table(const std::string& value) { + + _impl_.table_.Set(value, GetArenaForAllocation()); +} +inline std::string* RangeReq::_internal_mutable_table() { + + return _impl_.table_.Mutable(GetArenaForAllocation()); +} +inline std::string* RangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.RangeReq.table) + return _impl_.table_.Release(); +} +inline void RangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { + + } else { + + } + _impl_.table_.SetAllocated(table, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_.IsDefault()) { + _impl_.table_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.table) +} + +// bytes from_prefix = 3; +inline void RangeReq::clear_from_prefix() { + _impl_.from_prefix_.ClearToEmpty(); +} +inline const std::string& RangeReq::from_prefix() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.from_prefix) + return _internal_from_prefix(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RangeReq::set_from_prefix(ArgT0&& arg0, ArgT... args) { + + _impl_.from_prefix_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.RangeReq.from_prefix) +} +inline std::string* RangeReq::mutable_from_prefix() { + std::string* _s = _internal_mutable_from_prefix(); + // @@protoc_insertion_point(field_mutable:remote.RangeReq.from_prefix) + return _s; +} +inline const std::string& RangeReq::_internal_from_prefix() const { + return _impl_.from_prefix_.Get(); +} +inline void RangeReq::_internal_set_from_prefix(const std::string& value) { + + _impl_.from_prefix_.Set(value, GetArenaForAllocation()); +} +inline std::string* RangeReq::_internal_mutable_from_prefix() { + + return _impl_.from_prefix_.Mutable(GetArenaForAllocation()); +} +inline std::string* RangeReq::release_from_prefix() { + // @@protoc_insertion_point(field_release:remote.RangeReq.from_prefix) + return _impl_.from_prefix_.Release(); +} +inline void RangeReq::set_allocated_from_prefix(std::string* from_prefix) { + if (from_prefix != nullptr) { + + } else { + + } + _impl_.from_prefix_.SetAllocated(from_prefix, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.from_prefix_.IsDefault()) { + _impl_.from_prefix_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.from_prefix) +} + +// bytes to_prefix = 4; +inline void RangeReq::clear_to_prefix() { + _impl_.to_prefix_.ClearToEmpty(); +} +inline const std::string& RangeReq::to_prefix() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.to_prefix) + return _internal_to_prefix(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RangeReq::set_to_prefix(ArgT0&& arg0, ArgT... args) { + + _impl_.to_prefix_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.RangeReq.to_prefix) +} +inline std::string* RangeReq::mutable_to_prefix() { + std::string* _s = _internal_mutable_to_prefix(); + // @@protoc_insertion_point(field_mutable:remote.RangeReq.to_prefix) + return _s; +} +inline const std::string& RangeReq::_internal_to_prefix() const { + return _impl_.to_prefix_.Get(); +} +inline void RangeReq::_internal_set_to_prefix(const std::string& value) { + + _impl_.to_prefix_.Set(value, GetArenaForAllocation()); +} +inline std::string* RangeReq::_internal_mutable_to_prefix() { + + return _impl_.to_prefix_.Mutable(GetArenaForAllocation()); +} +inline std::string* RangeReq::release_to_prefix() { + // @@protoc_insertion_point(field_release:remote.RangeReq.to_prefix) + return _impl_.to_prefix_.Release(); +} +inline void RangeReq::set_allocated_to_prefix(std::string* to_prefix) { + if (to_prefix != nullptr) { + + } else { + + } + _impl_.to_prefix_.SetAllocated(to_prefix, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.to_prefix_.IsDefault()) { + _impl_.to_prefix_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.to_prefix) +} + +// bool order_ascend = 5; +inline void RangeReq::clear_order_ascend() { + _impl_.order_ascend_ = false; +} +inline bool RangeReq::_internal_order_ascend() const { + return _impl_.order_ascend_; +} +inline bool RangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.order_ascend) + return _internal_order_ascend(); +} +inline void RangeReq::_internal_set_order_ascend(bool value) { + + _impl_.order_ascend_ = value; +} +inline void RangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.order_ascend) +} + +// sint64 limit = 6; +inline void RangeReq::clear_limit() { + _impl_.limit_ = int64_t{0}; +} +inline int64_t RangeReq::_internal_limit() const { + return _impl_.limit_; +} +inline int64_t RangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.limit) + return _internal_limit(); +} +inline void RangeReq::_internal_set_limit(int64_t value) { + + _impl_.limit_ = value; +} +inline void RangeReq::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.limit) +} + +// int32 page_size = 7; +inline void RangeReq::clear_page_size() { + _impl_.page_size_ = 0; +} +inline int32_t RangeReq::_internal_page_size() const { + return _impl_.page_size_; +} +inline int32_t RangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.page_size) + return _internal_page_size(); +} +inline void RangeReq::_internal_set_page_size(int32_t value) { + + _impl_.page_size_ = value; +} +inline void RangeReq::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.RangeReq.page_size) +} + +// string page_token = 8; +inline void RangeReq::clear_page_token() { + _impl_.page_token_.ClearToEmpty(); +} +inline const std::string& RangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.RangeReq.page_token) + return _internal_page_token(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void RangeReq::set_page_token(ArgT0&& arg0, ArgT... args) { + + _impl_.page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.RangeReq.page_token) +} +inline std::string* RangeReq::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:remote.RangeReq.page_token) + return _s; +} +inline const std::string& RangeReq::_internal_page_token() const { + return _impl_.page_token_.Get(); +} +inline void RangeReq::_internal_set_page_token(const std::string& value) { + + _impl_.page_token_.Set(value, GetArenaForAllocation()); +} +inline std::string* RangeReq::_internal_mutable_page_token() { + + return _impl_.page_token_.Mutable(GetArenaForAllocation()); +} +inline std::string* RangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.RangeReq.page_token) + return _impl_.page_token_.Release(); +} +inline void RangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { } else { } - _impl_.k_.SetAllocated(k, GetArenaForAllocation()); + _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.k_.IsDefault()) { - _impl_.k_.Set("", GetArenaForAllocation()); + if (_impl_.page_token_.IsDefault()) { + _impl_.page_token_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.Cursor.k) + // @@protoc_insertion_point(field_set_allocated:remote.RangeReq.page_token) } -// bytes v = 5; -inline void Cursor::clear_v() { - _impl_.v_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// DomainGetReq + +// uint64 tx_id = 1; +inline void DomainGetReq::clear_tx_id() { + _impl_.tx_id_ = uint64_t{0u}; } -inline const std::string& Cursor::v() const { - // @@protoc_insertion_point(field_get:remote.Cursor.v) - return _internal_v(); +inline uint64_t DomainGetReq::_internal_tx_id() const { + return _impl_.tx_id_; +} +inline uint64_t DomainGetReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.tx_id) + return _internal_tx_id(); +} +inline void DomainGetReq::_internal_set_tx_id(uint64_t value) { + + _impl_.tx_id_ = value; +} +inline void DomainGetReq::set_tx_id(uint64_t value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.tx_id) +} + +// string table = 2; +inline void DomainGetReq::clear_table() { + _impl_.table_.ClearToEmpty(); +} +inline const std::string& DomainGetReq::table() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.table) + return _internal_table(); } template inline PROTOBUF_ALWAYS_INLINE -void Cursor::set_v(ArgT0&& arg0, ArgT... args) { +void DomainGetReq::set_table(ArgT0&& arg0, ArgT... args) { - _impl_.v_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.Cursor.v) + _impl_.table_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.table) } -inline std::string* Cursor::mutable_v() { - std::string* _s = _internal_mutable_v(); - // @@protoc_insertion_point(field_mutable:remote.Cursor.v) +inline std::string* DomainGetReq::mutable_table() { + std::string* _s = _internal_mutable_table(); + // @@protoc_insertion_point(field_mutable:remote.DomainGetReq.table) return _s; } -inline const std::string& Cursor::_internal_v() const { - return _impl_.v_.Get(); +inline const std::string& DomainGetReq::_internal_table() const { + return _impl_.table_.Get(); } -inline void Cursor::_internal_set_v(const std::string& value) { +inline void DomainGetReq::_internal_set_table(const std::string& value) { - _impl_.v_.Set(value, GetArenaForAllocation()); + _impl_.table_.Set(value, GetArenaForAllocation()); } -inline std::string* Cursor::_internal_mutable_v() { +inline std::string* DomainGetReq::_internal_mutable_table() { - return _impl_.v_.Mutable(GetArenaForAllocation()); + return _impl_.table_.Mutable(GetArenaForAllocation()); } -inline std::string* Cursor::release_v() { - // @@protoc_insertion_point(field_release:remote.Cursor.v) - return _impl_.v_.Release(); +inline std::string* DomainGetReq::release_table() { + // @@protoc_insertion_point(field_release:remote.DomainGetReq.table) + return _impl_.table_.Release(); } -inline void Cursor::set_allocated_v(std::string* v) { - if (v != nullptr) { +inline void DomainGetReq::set_allocated_table(std::string* table) { + if (table != nullptr) { } else { } - _impl_.v_.SetAllocated(v, GetArenaForAllocation()); + _impl_.table_.SetAllocated(table, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.v_.IsDefault()) { - _impl_.v_.Set("", GetArenaForAllocation()); + if (_impl_.table_.IsDefault()) { + _impl_.table_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.Cursor.v) + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReq.table) } -// ------------------------------------------------------------------- - -// Pair - -// bytes k = 1; -inline void Pair::clear_k() { +// bytes k = 3; +inline void DomainGetReq::clear_k() { _impl_.k_.ClearToEmpty(); } -inline const std::string& Pair::k() const { - // @@protoc_insertion_point(field_get:remote.Pair.k) +inline const std::string& DomainGetReq::k() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.k) return _internal_k(); } template inline PROTOBUF_ALWAYS_INLINE -void Pair::set_k(ArgT0&& arg0, ArgT... args) { +void DomainGetReq::set_k(ArgT0&& arg0, ArgT... args) { _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.Pair.k) + // @@protoc_insertion_point(field_set:remote.DomainGetReq.k) } -inline std::string* Pair::mutable_k() { +inline std::string* DomainGetReq::mutable_k() { std::string* _s = _internal_mutable_k(); - // @@protoc_insertion_point(field_mutable:remote.Pair.k) + // @@protoc_insertion_point(field_mutable:remote.DomainGetReq.k) return _s; } -inline const std::string& Pair::_internal_k() const { +inline const std::string& DomainGetReq::_internal_k() const { return _impl_.k_.Get(); } -inline void Pair::_internal_set_k(const std::string& value) { +inline void DomainGetReq::_internal_set_k(const std::string& value) { _impl_.k_.Set(value, GetArenaForAllocation()); } -inline std::string* Pair::_internal_mutable_k() { +inline std::string* DomainGetReq::_internal_mutable_k() { return _impl_.k_.Mutable(GetArenaForAllocation()); } -inline std::string* Pair::release_k() { - // @@protoc_insertion_point(field_release:remote.Pair.k) +inline std::string* DomainGetReq::release_k() { + // @@protoc_insertion_point(field_release:remote.DomainGetReq.k) return _impl_.k_.Release(); } -inline void Pair::set_allocated_k(std::string* k) { +inline void DomainGetReq::set_allocated_k(std::string* k) { if (k != nullptr) { } else { @@ -2840,1433 +6096,1634 @@ inline void Pair::set_allocated_k(std::string* k) { _impl_.k_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.Pair.k) + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReq.k) } -// bytes v = 2; -inline void Pair::clear_v() { - _impl_.v_.ClearToEmpty(); +// uint64 ts = 4; +inline void DomainGetReq::clear_ts() { + _impl_.ts_ = uint64_t{0u}; } -inline const std::string& Pair::v() const { - // @@protoc_insertion_point(field_get:remote.Pair.v) - return _internal_v(); +inline uint64_t DomainGetReq::_internal_ts() const { + return _impl_.ts_; +} +inline uint64_t DomainGetReq::ts() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.ts) + return _internal_ts(); +} +inline void DomainGetReq::_internal_set_ts(uint64_t value) { + + _impl_.ts_ = value; +} +inline void DomainGetReq::set_ts(uint64_t value) { + _internal_set_ts(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.ts) +} + +// bytes k2 = 5; +inline void DomainGetReq::clear_k2() { + _impl_.k2_.ClearToEmpty(); +} +inline const std::string& DomainGetReq::k2() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.k2) + return _internal_k2(); } template inline PROTOBUF_ALWAYS_INLINE -void Pair::set_v(ArgT0&& arg0, ArgT... args) { +void DomainGetReq::set_k2(ArgT0&& arg0, ArgT... args) { - _impl_.v_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.Pair.v) + _impl_.k2_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.k2) } -inline std::string* Pair::mutable_v() { - std::string* _s = _internal_mutable_v(); - // @@protoc_insertion_point(field_mutable:remote.Pair.v) +inline std::string* DomainGetReq::mutable_k2() { + std::string* _s = _internal_mutable_k2(); + // @@protoc_insertion_point(field_mutable:remote.DomainGetReq.k2) return _s; } -inline const std::string& Pair::_internal_v() const { - return _impl_.v_.Get(); +inline const std::string& DomainGetReq::_internal_k2() const { + return _impl_.k2_.Get(); } -inline void Pair::_internal_set_v(const std::string& value) { +inline void DomainGetReq::_internal_set_k2(const std::string& value) { - _impl_.v_.Set(value, GetArenaForAllocation()); + _impl_.k2_.Set(value, GetArenaForAllocation()); } -inline std::string* Pair::_internal_mutable_v() { +inline std::string* DomainGetReq::_internal_mutable_k2() { - return _impl_.v_.Mutable(GetArenaForAllocation()); + return _impl_.k2_.Mutable(GetArenaForAllocation()); } -inline std::string* Pair::release_v() { - // @@protoc_insertion_point(field_release:remote.Pair.v) - return _impl_.v_.Release(); +inline std::string* DomainGetReq::release_k2() { + // @@protoc_insertion_point(field_release:remote.DomainGetReq.k2) + return _impl_.k2_.Release(); } -inline void Pair::set_allocated_v(std::string* v) { - if (v != nullptr) { +inline void DomainGetReq::set_allocated_k2(std::string* k2) { + if (k2 != nullptr) { } else { } - _impl_.v_.SetAllocated(v, GetArenaForAllocation()); + _impl_.k2_.SetAllocated(k2, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.v_.IsDefault()) { - _impl_.v_.Set("", GetArenaForAllocation()); + if (_impl_.k2_.IsDefault()) { + _impl_.k2_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.Pair.v) + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReq.k2) } -// uint32 cursorID = 3; -inline void Pair::clear_cursorid() { - _impl_.cursorid_ = 0u; +// bool latest = 6; +inline void DomainGetReq::clear_latest() { + _impl_.latest_ = false; } -inline uint32_t Pair::_internal_cursorid() const { - return _impl_.cursorid_; +inline bool DomainGetReq::_internal_latest() const { + return _impl_.latest_; } -inline uint32_t Pair::cursorid() const { - // @@protoc_insertion_point(field_get:remote.Pair.cursorID) - return _internal_cursorid(); +inline bool DomainGetReq::latest() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReq.latest) + return _internal_latest(); } -inline void Pair::_internal_set_cursorid(uint32_t value) { +inline void DomainGetReq::_internal_set_latest(bool value) { - _impl_.cursorid_ = value; + _impl_.latest_ = value; } -inline void Pair::set_cursorid(uint32_t value) { - _internal_set_cursorid(value); - // @@protoc_insertion_point(field_set:remote.Pair.cursorID) +inline void DomainGetReq::set_latest(bool value) { + _internal_set_latest(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReq.latest) } -// uint64 viewID = 4; -inline void Pair::clear_viewid() { - _impl_.viewid_ = uint64_t{0u}; +// ------------------------------------------------------------------- + +// DomainGetReply + +// bytes v = 1; +inline void DomainGetReply::clear_v() { + _impl_.v_.ClearToEmpty(); } -inline uint64_t Pair::_internal_viewid() const { - return _impl_.viewid_; +inline const std::string& DomainGetReply::v() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReply.v) + return _internal_v(); } -inline uint64_t Pair::viewid() const { - // @@protoc_insertion_point(field_get:remote.Pair.viewID) - return _internal_viewid(); +template +inline PROTOBUF_ALWAYS_INLINE +void DomainGetReply::set_v(ArgT0&& arg0, ArgT... args) { + + _impl_.v_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.DomainGetReply.v) } -inline void Pair::_internal_set_viewid(uint64_t value) { +inline std::string* DomainGetReply::mutable_v() { + std::string* _s = _internal_mutable_v(); + // @@protoc_insertion_point(field_mutable:remote.DomainGetReply.v) + return _s; +} +inline const std::string& DomainGetReply::_internal_v() const { + return _impl_.v_.Get(); +} +inline void DomainGetReply::_internal_set_v(const std::string& value) { - _impl_.viewid_ = value; + _impl_.v_.Set(value, GetArenaForAllocation()); } -inline void Pair::set_viewid(uint64_t value) { - _internal_set_viewid(value); - // @@protoc_insertion_point(field_set:remote.Pair.viewID) +inline std::string* DomainGetReply::_internal_mutable_v() { + + return _impl_.v_.Mutable(GetArenaForAllocation()); +} +inline std::string* DomainGetReply::release_v() { + // @@protoc_insertion_point(field_release:remote.DomainGetReply.v) + return _impl_.v_.Release(); +} +inline void DomainGetReply::set_allocated_v(std::string* v) { + if (v != nullptr) { + + } else { + + } + _impl_.v_.SetAllocated(v, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.v_.IsDefault()) { + _impl_.v_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.DomainGetReply.v) } -// uint64 txID = 5; -inline void Pair::clear_txid() { - _impl_.txid_ = uint64_t{0u}; +// bool ok = 2; +inline void DomainGetReply::clear_ok() { + _impl_.ok_ = false; } -inline uint64_t Pair::_internal_txid() const { - return _impl_.txid_; +inline bool DomainGetReply::_internal_ok() const { + return _impl_.ok_; } -inline uint64_t Pair::txid() const { - // @@protoc_insertion_point(field_get:remote.Pair.txID) - return _internal_txid(); +inline bool DomainGetReply::ok() const { + // @@protoc_insertion_point(field_get:remote.DomainGetReply.ok) + return _internal_ok(); } -inline void Pair::_internal_set_txid(uint64_t value) { +inline void DomainGetReply::_internal_set_ok(bool value) { - _impl_.txid_ = value; + _impl_.ok_ = value; } -inline void Pair::set_txid(uint64_t value) { - _internal_set_txid(value); - // @@protoc_insertion_point(field_set:remote.Pair.txID) +inline void DomainGetReply::set_ok(bool value) { + _internal_set_ok(value); + // @@protoc_insertion_point(field_set:remote.DomainGetReply.ok) } // ------------------------------------------------------------------- -// StorageChange +// HistoryGetReq -// .types.H256 location = 1; -inline bool StorageChange::_internal_has_location() const { - return this != internal_default_instance() && _impl_.location_ != nullptr; +// uint64 tx_id = 1; +inline void HistoryGetReq::clear_tx_id() { + _impl_.tx_id_ = uint64_t{0u}; } -inline bool StorageChange::has_location() const { - return _internal_has_location(); +inline uint64_t HistoryGetReq::_internal_tx_id() const { + return _impl_.tx_id_; } -inline const ::types::H256& StorageChange::_internal_location() const { - const ::types::H256* p = _impl_.location_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H256_default_instance_); +inline uint64_t HistoryGetReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.tx_id) + return _internal_tx_id(); } -inline const ::types::H256& StorageChange::location() const { - // @@protoc_insertion_point(field_get:remote.StorageChange.location) - return _internal_location(); +inline void HistoryGetReq::_internal_set_tx_id(uint64_t value) { + + _impl_.tx_id_ = value; } -inline void StorageChange::unsafe_arena_set_allocated_location( - ::types::H256* location) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); - } - _impl_.location_ = location; - if (location) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StorageChange.location) +inline void HistoryGetReq::set_tx_id(uint64_t value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.tx_id) } -inline ::types::H256* StorageChange::release_location() { - - ::types::H256* temp = _impl_.location_; - _impl_.location_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + +// string table = 2; +inline void HistoryGetReq::clear_table() { + _impl_.table_.ClearToEmpty(); } -inline ::types::H256* StorageChange::unsafe_arena_release_location() { - // @@protoc_insertion_point(field_release:remote.StorageChange.location) - - ::types::H256* temp = _impl_.location_; - _impl_.location_ = nullptr; - return temp; +inline const std::string& HistoryGetReq::table() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.table) + return _internal_table(); } -inline ::types::H256* StorageChange::_internal_mutable_location() { - - if (_impl_.location_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.location_ = p; - } - return _impl_.location_; +template +inline PROTOBUF_ALWAYS_INLINE +void HistoryGetReq::set_table(ArgT0&& arg0, ArgT... args) { + + _impl_.table_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.table) } -inline ::types::H256* StorageChange::mutable_location() { - ::types::H256* _msg = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:remote.StorageChange.location) - return _msg; +inline std::string* HistoryGetReq::mutable_table() { + std::string* _s = _internal_mutable_table(); + // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.table) + return _s; } -inline void StorageChange::set_allocated_location(::types::H256* location) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.location_); - } - if (location) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location)); - if (message_arena != submessage_arena) { - location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, location, submessage_arena); - } +inline const std::string& HistoryGetReq::_internal_table() const { + return _impl_.table_.Get(); +} +inline void HistoryGetReq::_internal_set_table(const std::string& value) { + + _impl_.table_.Set(value, GetArenaForAllocation()); +} +inline std::string* HistoryGetReq::_internal_mutable_table() { + + return _impl_.table_.Mutable(GetArenaForAllocation()); +} +inline std::string* HistoryGetReq::release_table() { + // @@protoc_insertion_point(field_release:remote.HistoryGetReq.table) + return _impl_.table_.Release(); +} +inline void HistoryGetReq::set_allocated_table(std::string* table) { + if (table != nullptr) { } else { } - _impl_.location_ = location; - // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.location) + _impl_.table_.SetAllocated(table, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_.IsDefault()) { + _impl_.table_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.table) } -// bytes data = 2; -inline void StorageChange::clear_data() { - _impl_.data_.ClearToEmpty(); +// bytes k = 3; +inline void HistoryGetReq::clear_k() { + _impl_.k_.ClearToEmpty(); } -inline const std::string& StorageChange::data() const { - // @@protoc_insertion_point(field_get:remote.StorageChange.data) - return _internal_data(); +inline const std::string& HistoryGetReq::k() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.k) + return _internal_k(); } template inline PROTOBUF_ALWAYS_INLINE -void StorageChange::set_data(ArgT0&& arg0, ArgT... args) { +void HistoryGetReq::set_k(ArgT0&& arg0, ArgT... args) { - _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.StorageChange.data) + _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.k) } -inline std::string* StorageChange::mutable_data() { - std::string* _s = _internal_mutable_data(); - // @@protoc_insertion_point(field_mutable:remote.StorageChange.data) +inline std::string* HistoryGetReq::mutable_k() { + std::string* _s = _internal_mutable_k(); + // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.k) return _s; } -inline const std::string& StorageChange::_internal_data() const { - return _impl_.data_.Get(); +inline const std::string& HistoryGetReq::_internal_k() const { + return _impl_.k_.Get(); } -inline void StorageChange::_internal_set_data(const std::string& value) { +inline void HistoryGetReq::_internal_set_k(const std::string& value) { - _impl_.data_.Set(value, GetArenaForAllocation()); + _impl_.k_.Set(value, GetArenaForAllocation()); } -inline std::string* StorageChange::_internal_mutable_data() { +inline std::string* HistoryGetReq::_internal_mutable_k() { - return _impl_.data_.Mutable(GetArenaForAllocation()); + return _impl_.k_.Mutable(GetArenaForAllocation()); } -inline std::string* StorageChange::release_data() { - // @@protoc_insertion_point(field_release:remote.StorageChange.data) - return _impl_.data_.Release(); +inline std::string* HistoryGetReq::release_k() { + // @@protoc_insertion_point(field_release:remote.HistoryGetReq.k) + return _impl_.k_.Release(); } -inline void StorageChange::set_allocated_data(std::string* data) { - if (data != nullptr) { +inline void HistoryGetReq::set_allocated_k(std::string* k) { + if (k != nullptr) { } else { } - _impl_.data_.SetAllocated(data, GetArenaForAllocation()); + _impl_.k_.SetAllocated(k, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArenaForAllocation()); + if (_impl_.k_.IsDefault()) { + _impl_.k_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.StorageChange.data) + // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.k) +} + +// uint64 ts = 4; +inline void HistoryGetReq::clear_ts() { + _impl_.ts_ = uint64_t{0u}; +} +inline uint64_t HistoryGetReq::_internal_ts() const { + return _impl_.ts_; +} +inline uint64_t HistoryGetReq::ts() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReq.ts) + return _internal_ts(); +} +inline void HistoryGetReq::_internal_set_ts(uint64_t value) { + + _impl_.ts_ = value; +} +inline void HistoryGetReq::set_ts(uint64_t value) { + _internal_set_ts(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReq.ts) } // ------------------------------------------------------------------- -// AccountChange +// HistoryGetReply -// .types.H160 address = 1; -inline bool AccountChange::_internal_has_address() const { - return this != internal_default_instance() && _impl_.address_ != nullptr; -} -inline bool AccountChange::has_address() const { - return _internal_has_address(); +// bytes v = 1; +inline void HistoryGetReply::clear_v() { + _impl_.v_.ClearToEmpty(); } -inline const ::types::H160& AccountChange::_internal_address() const { - const ::types::H160* p = _impl_.address_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H160_default_instance_); +inline const std::string& HistoryGetReply::v() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReply.v) + return _internal_v(); } -inline const ::types::H160& AccountChange::address() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.address) - return _internal_address(); +template +inline PROTOBUF_ALWAYS_INLINE +void HistoryGetReply::set_v(ArgT0&& arg0, ArgT... args) { + + _impl_.v_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.HistoryGetReply.v) } -inline void AccountChange::unsafe_arena_set_allocated_address( - ::types::H160* address) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); - } - _impl_.address_ = address; - if (address) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.AccountChange.address) +inline std::string* HistoryGetReply::mutable_v() { + std::string* _s = _internal_mutable_v(); + // @@protoc_insertion_point(field_mutable:remote.HistoryGetReply.v) + return _s; } -inline ::types::H160* AccountChange::release_address() { - - ::types::H160* temp = _impl_.address_; - _impl_.address_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline const std::string& HistoryGetReply::_internal_v() const { + return _impl_.v_.Get(); } -inline ::types::H160* AccountChange::unsafe_arena_release_address() { - // @@protoc_insertion_point(field_release:remote.AccountChange.address) +inline void HistoryGetReply::_internal_set_v(const std::string& value) { - ::types::H160* temp = _impl_.address_; - _impl_.address_ = nullptr; - return temp; + _impl_.v_.Set(value, GetArenaForAllocation()); } -inline ::types::H160* AccountChange::_internal_mutable_address() { +inline std::string* HistoryGetReply::_internal_mutable_v() { - if (_impl_.address_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H160>(GetArenaForAllocation()); - _impl_.address_ = p; - } - return _impl_.address_; + return _impl_.v_.Mutable(GetArenaForAllocation()); } -inline ::types::H160* AccountChange::mutable_address() { - ::types::H160* _msg = _internal_mutable_address(); - // @@protoc_insertion_point(field_mutable:remote.AccountChange.address) - return _msg; +inline std::string* HistoryGetReply::release_v() { + // @@protoc_insertion_point(field_release:remote.HistoryGetReply.v) + return _impl_.v_.Release(); } -inline void AccountChange::set_allocated_address(::types::H160* address) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_); - } - if (address) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(address)); - if (message_arena != submessage_arena) { - address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, address, submessage_arena); - } +inline void HistoryGetReply::set_allocated_v(std::string* v) { + if (v != nullptr) { } else { } - _impl_.address_ = address; - // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.address) + _impl_.v_.SetAllocated(v, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.v_.IsDefault()) { + _impl_.v_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReply.v) } -// uint64 incarnation = 2; -inline void AccountChange::clear_incarnation() { - _impl_.incarnation_ = uint64_t{0u}; +// bool ok = 2; +inline void HistoryGetReply::clear_ok() { + _impl_.ok_ = false; } -inline uint64_t AccountChange::_internal_incarnation() const { - return _impl_.incarnation_; +inline bool HistoryGetReply::_internal_ok() const { + return _impl_.ok_; } -inline uint64_t AccountChange::incarnation() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.incarnation) - return _internal_incarnation(); +inline bool HistoryGetReply::ok() const { + // @@protoc_insertion_point(field_get:remote.HistoryGetReply.ok) + return _internal_ok(); } -inline void AccountChange::_internal_set_incarnation(uint64_t value) { +inline void HistoryGetReply::_internal_set_ok(bool value) { - _impl_.incarnation_ = value; + _impl_.ok_ = value; } -inline void AccountChange::set_incarnation(uint64_t value) { - _internal_set_incarnation(value); - // @@protoc_insertion_point(field_set:remote.AccountChange.incarnation) +inline void HistoryGetReply::set_ok(bool value) { + _internal_set_ok(value); + // @@protoc_insertion_point(field_set:remote.HistoryGetReply.ok) } -// .remote.Action action = 3; -inline void AccountChange::clear_action() { - _impl_.action_ = 0; +// ------------------------------------------------------------------- + +// IndexRangeReq + +// uint64 tx_id = 1; +inline void IndexRangeReq::clear_tx_id() { + _impl_.tx_id_ = uint64_t{0u}; } -inline ::remote::Action AccountChange::_internal_action() const { - return static_cast< ::remote::Action >(_impl_.action_); +inline uint64_t IndexRangeReq::_internal_tx_id() const { + return _impl_.tx_id_; } -inline ::remote::Action AccountChange::action() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.action) - return _internal_action(); +inline uint64_t IndexRangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.tx_id) + return _internal_tx_id(); } -inline void AccountChange::_internal_set_action(::remote::Action value) { +inline void IndexRangeReq::_internal_set_tx_id(uint64_t value) { - _impl_.action_ = value; + _impl_.tx_id_ = value; } -inline void AccountChange::set_action(::remote::Action value) { - _internal_set_action(value); - // @@protoc_insertion_point(field_set:remote.AccountChange.action) +inline void IndexRangeReq::set_tx_id(uint64_t value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.tx_id) } -// bytes data = 4; -inline void AccountChange::clear_data() { - _impl_.data_.ClearToEmpty(); +// string table = 2; +inline void IndexRangeReq::clear_table() { + _impl_.table_.ClearToEmpty(); } -inline const std::string& AccountChange::data() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.data) - return _internal_data(); +inline const std::string& IndexRangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.table) + return _internal_table(); } template inline PROTOBUF_ALWAYS_INLINE -void AccountChange::set_data(ArgT0&& arg0, ArgT... args) { +void IndexRangeReq::set_table(ArgT0&& arg0, ArgT... args) { - _impl_.data_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.AccountChange.data) + _impl_.table_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.table) } -inline std::string* AccountChange::mutable_data() { - std::string* _s = _internal_mutable_data(); - // @@protoc_insertion_point(field_mutable:remote.AccountChange.data) +inline std::string* IndexRangeReq::mutable_table() { + std::string* _s = _internal_mutable_table(); + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.table) return _s; } -inline const std::string& AccountChange::_internal_data() const { - return _impl_.data_.Get(); +inline const std::string& IndexRangeReq::_internal_table() const { + return _impl_.table_.Get(); } -inline void AccountChange::_internal_set_data(const std::string& value) { +inline void IndexRangeReq::_internal_set_table(const std::string& value) { - _impl_.data_.Set(value, GetArenaForAllocation()); + _impl_.table_.Set(value, GetArenaForAllocation()); } -inline std::string* AccountChange::_internal_mutable_data() { +inline std::string* IndexRangeReq::_internal_mutable_table() { - return _impl_.data_.Mutable(GetArenaForAllocation()); + return _impl_.table_.Mutable(GetArenaForAllocation()); } -inline std::string* AccountChange::release_data() { - // @@protoc_insertion_point(field_release:remote.AccountChange.data) - return _impl_.data_.Release(); +inline std::string* IndexRangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReq.table) + return _impl_.table_.Release(); } -inline void AccountChange::set_allocated_data(std::string* data) { - if (data != nullptr) { +inline void IndexRangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { } else { } - _impl_.data_.SetAllocated(data, GetArenaForAllocation()); + _impl_.table_.SetAllocated(table, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArenaForAllocation()); + if (_impl_.table_.IsDefault()) { + _impl_.table_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.data) + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.table) } -// bytes code = 5; -inline void AccountChange::clear_code() { - _impl_.code_.ClearToEmpty(); +// bytes k = 3; +inline void IndexRangeReq::clear_k() { + _impl_.k_.ClearToEmpty(); } -inline const std::string& AccountChange::code() const { - // @@protoc_insertion_point(field_get:remote.AccountChange.code) - return _internal_code(); +inline const std::string& IndexRangeReq::k() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.k) + return _internal_k(); } template inline PROTOBUF_ALWAYS_INLINE -void AccountChange::set_code(ArgT0&& arg0, ArgT... args) { +void IndexRangeReq::set_k(ArgT0&& arg0, ArgT... args) { - _impl_.code_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.AccountChange.code) + _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.k) } -inline std::string* AccountChange::mutable_code() { - std::string* _s = _internal_mutable_code(); - // @@protoc_insertion_point(field_mutable:remote.AccountChange.code) +inline std::string* IndexRangeReq::mutable_k() { + std::string* _s = _internal_mutable_k(); + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.k) return _s; } -inline const std::string& AccountChange::_internal_code() const { - return _impl_.code_.Get(); +inline const std::string& IndexRangeReq::_internal_k() const { + return _impl_.k_.Get(); } -inline void AccountChange::_internal_set_code(const std::string& value) { +inline void IndexRangeReq::_internal_set_k(const std::string& value) { - _impl_.code_.Set(value, GetArenaForAllocation()); + _impl_.k_.Set(value, GetArenaForAllocation()); } -inline std::string* AccountChange::_internal_mutable_code() { +inline std::string* IndexRangeReq::_internal_mutable_k() { - return _impl_.code_.Mutable(GetArenaForAllocation()); + return _impl_.k_.Mutable(GetArenaForAllocation()); } -inline std::string* AccountChange::release_code() { - // @@protoc_insertion_point(field_release:remote.AccountChange.code) - return _impl_.code_.Release(); +inline std::string* IndexRangeReq::release_k() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReq.k) + return _impl_.k_.Release(); } -inline void AccountChange::set_allocated_code(std::string* code) { - if (code != nullptr) { +inline void IndexRangeReq::set_allocated_k(std::string* k) { + if (k != nullptr) { } else { } - _impl_.code_.SetAllocated(code, GetArenaForAllocation()); + _impl_.k_.SetAllocated(k, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.code_.IsDefault()) { - _impl_.code_.Set("", GetArenaForAllocation()); + if (_impl_.k_.IsDefault()) { + _impl_.k_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.AccountChange.code) + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.k) } -// repeated .remote.StorageChange storageChanges = 6; -inline int AccountChange::_internal_storagechanges_size() const { - return _impl_.storagechanges_.size(); +// sint64 from_ts = 4; +inline void IndexRangeReq::clear_from_ts() { + _impl_.from_ts_ = int64_t{0}; } -inline int AccountChange::storagechanges_size() const { - return _internal_storagechanges_size(); +inline int64_t IndexRangeReq::_internal_from_ts() const { + return _impl_.from_ts_; } -inline void AccountChange::clear_storagechanges() { - _impl_.storagechanges_.Clear(); +inline int64_t IndexRangeReq::from_ts() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.from_ts) + return _internal_from_ts(); } -inline ::remote::StorageChange* AccountChange::mutable_storagechanges(int index) { - // @@protoc_insertion_point(field_mutable:remote.AccountChange.storageChanges) - return _impl_.storagechanges_.Mutable(index); +inline void IndexRangeReq::_internal_set_from_ts(int64_t value) { + + _impl_.from_ts_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >* -AccountChange::mutable_storagechanges() { - // @@protoc_insertion_point(field_mutable_list:remote.AccountChange.storageChanges) - return &_impl_.storagechanges_; +inline void IndexRangeReq::set_from_ts(int64_t value) { + _internal_set_from_ts(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.from_ts) } -inline const ::remote::StorageChange& AccountChange::_internal_storagechanges(int index) const { - return _impl_.storagechanges_.Get(index); + +// sint64 to_ts = 5; +inline void IndexRangeReq::clear_to_ts() { + _impl_.to_ts_ = int64_t{0}; } -inline const ::remote::StorageChange& AccountChange::storagechanges(int index) const { - // @@protoc_insertion_point(field_get:remote.AccountChange.storageChanges) - return _internal_storagechanges(index); +inline int64_t IndexRangeReq::_internal_to_ts() const { + return _impl_.to_ts_; } -inline ::remote::StorageChange* AccountChange::_internal_add_storagechanges() { - return _impl_.storagechanges_.Add(); +inline int64_t IndexRangeReq::to_ts() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.to_ts) + return _internal_to_ts(); } -inline ::remote::StorageChange* AccountChange::add_storagechanges() { - ::remote::StorageChange* _add = _internal_add_storagechanges(); - // @@protoc_insertion_point(field_add:remote.AccountChange.storageChanges) - return _add; +inline void IndexRangeReq::_internal_set_to_ts(int64_t value) { + + _impl_.to_ts_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StorageChange >& -AccountChange::storagechanges() const { - // @@protoc_insertion_point(field_list:remote.AccountChange.storageChanges) - return _impl_.storagechanges_; +inline void IndexRangeReq::set_to_ts(int64_t value) { + _internal_set_to_ts(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.to_ts) } -// ------------------------------------------------------------------- - -// StateChangeBatch - -// uint64 stateVersionID = 1; -inline void StateChangeBatch::clear_stateversionid() { - _impl_.stateversionid_ = uint64_t{0u}; +// bool order_ascend = 6; +inline void IndexRangeReq::clear_order_ascend() { + _impl_.order_ascend_ = false; } -inline uint64_t StateChangeBatch::_internal_stateversionid() const { - return _impl_.stateversionid_; +inline bool IndexRangeReq::_internal_order_ascend() const { + return _impl_.order_ascend_; } -inline uint64_t StateChangeBatch::stateversionid() const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.stateVersionID) - return _internal_stateversionid(); +inline bool IndexRangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.order_ascend) + return _internal_order_ascend(); } -inline void StateChangeBatch::_internal_set_stateversionid(uint64_t value) { +inline void IndexRangeReq::_internal_set_order_ascend(bool value) { - _impl_.stateversionid_ = value; + _impl_.order_ascend_ = value; } -inline void StateChangeBatch::set_stateversionid(uint64_t value) { - _internal_set_stateversionid(value); - // @@protoc_insertion_point(field_set:remote.StateChangeBatch.stateVersionID) +inline void IndexRangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.order_ascend) } -// repeated .remote.StateChange changeBatch = 2; -inline int StateChangeBatch::_internal_changebatch_size() const { - return _impl_.changebatch_.size(); +// sint64 limit = 7; +inline void IndexRangeReq::clear_limit() { + _impl_.limit_ = int64_t{0}; } -inline int StateChangeBatch::changebatch_size() const { - return _internal_changebatch_size(); +inline int64_t IndexRangeReq::_internal_limit() const { + return _impl_.limit_; } -inline void StateChangeBatch::clear_changebatch() { - _impl_.changebatch_.Clear(); +inline int64_t IndexRangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.limit) + return _internal_limit(); } -inline ::remote::StateChange* StateChangeBatch::mutable_changebatch(int index) { - // @@protoc_insertion_point(field_mutable:remote.StateChangeBatch.changeBatch) - return _impl_.changebatch_.Mutable(index); +inline void IndexRangeReq::_internal_set_limit(int64_t value) { + + _impl_.limit_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >* -StateChangeBatch::mutable_changebatch() { - // @@protoc_insertion_point(field_mutable_list:remote.StateChangeBatch.changeBatch) - return &_impl_.changebatch_; +inline void IndexRangeReq::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.limit) } -inline const ::remote::StateChange& StateChangeBatch::_internal_changebatch(int index) const { - return _impl_.changebatch_.Get(index); + +// int32 page_size = 8; +inline void IndexRangeReq::clear_page_size() { + _impl_.page_size_ = 0; } -inline const ::remote::StateChange& StateChangeBatch::changebatch(int index) const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.changeBatch) - return _internal_changebatch(index); +inline int32_t IndexRangeReq::_internal_page_size() const { + return _impl_.page_size_; } -inline ::remote::StateChange* StateChangeBatch::_internal_add_changebatch() { - return _impl_.changebatch_.Add(); +inline int32_t IndexRangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.page_size) + return _internal_page_size(); } -inline ::remote::StateChange* StateChangeBatch::add_changebatch() { - ::remote::StateChange* _add = _internal_add_changebatch(); - // @@protoc_insertion_point(field_add:remote.StateChangeBatch.changeBatch) - return _add; +inline void IndexRangeReq::_internal_set_page_size(int32_t value) { + + _impl_.page_size_ = value; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::StateChange >& -StateChangeBatch::changebatch() const { - // @@protoc_insertion_point(field_list:remote.StateChangeBatch.changeBatch) - return _impl_.changebatch_; +inline void IndexRangeReq::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.page_size) } -// uint64 pendingBlockBaseFee = 3; -inline void StateChangeBatch::clear_pendingblockbasefee() { - _impl_.pendingblockbasefee_ = uint64_t{0u}; -} -inline uint64_t StateChangeBatch::_internal_pendingblockbasefee() const { - return _impl_.pendingblockbasefee_; +// string page_token = 9; +inline void IndexRangeReq::clear_page_token() { + _impl_.page_token_.ClearToEmpty(); } -inline uint64_t StateChangeBatch::pendingblockbasefee() const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.pendingBlockBaseFee) - return _internal_pendingblockbasefee(); -} -inline void StateChangeBatch::_internal_set_pendingblockbasefee(uint64_t value) { - - _impl_.pendingblockbasefee_ = value; +inline const std::string& IndexRangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReq.page_token) + return _internal_page_token(); } -inline void StateChangeBatch::set_pendingblockbasefee(uint64_t value) { - _internal_set_pendingblockbasefee(value); - // @@protoc_insertion_point(field_set:remote.StateChangeBatch.pendingBlockBaseFee) +template +inline PROTOBUF_ALWAYS_INLINE +void IndexRangeReq::set_page_token(ArgT0&& arg0, ArgT... args) { + + _impl_.page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.IndexRangeReq.page_token) } - -// uint64 blockGasLimit = 4; -inline void StateChangeBatch::clear_blockgaslimit() { - _impl_.blockgaslimit_ = uint64_t{0u}; +inline std::string* IndexRangeReq::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.page_token) + return _s; } -inline uint64_t StateChangeBatch::_internal_blockgaslimit() const { - return _impl_.blockgaslimit_; +inline const std::string& IndexRangeReq::_internal_page_token() const { + return _impl_.page_token_.Get(); } -inline uint64_t StateChangeBatch::blockgaslimit() const { - // @@protoc_insertion_point(field_get:remote.StateChangeBatch.blockGasLimit) - return _internal_blockgaslimit(); +inline void IndexRangeReq::_internal_set_page_token(const std::string& value) { + + _impl_.page_token_.Set(value, GetArenaForAllocation()); } -inline void StateChangeBatch::_internal_set_blockgaslimit(uint64_t value) { +inline std::string* IndexRangeReq::_internal_mutable_page_token() { - _impl_.blockgaslimit_ = value; + return _impl_.page_token_.Mutable(GetArenaForAllocation()); } -inline void StateChangeBatch::set_blockgaslimit(uint64_t value) { - _internal_set_blockgaslimit(value); - // @@protoc_insertion_point(field_set:remote.StateChangeBatch.blockGasLimit) +inline std::string* IndexRangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReq.page_token) + return _impl_.page_token_.Release(); +} +inline void IndexRangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.page_token_.IsDefault()) { + _impl_.page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.page_token) } // ------------------------------------------------------------------- -// StateChange +// IndexRangeReply -// .remote.Direction direction = 1; -inline void StateChange::clear_direction() { - _impl_.direction_ = 0; +// repeated uint64 timestamps = 1; +inline int IndexRangeReply::_internal_timestamps_size() const { + return _impl_.timestamps_.size(); } -inline ::remote::Direction StateChange::_internal_direction() const { - return static_cast< ::remote::Direction >(_impl_.direction_); +inline int IndexRangeReply::timestamps_size() const { + return _internal_timestamps_size(); } -inline ::remote::Direction StateChange::direction() const { - // @@protoc_insertion_point(field_get:remote.StateChange.direction) - return _internal_direction(); +inline void IndexRangeReply::clear_timestamps() { + _impl_.timestamps_.Clear(); } -inline void StateChange::_internal_set_direction(::remote::Direction value) { - - _impl_.direction_ = value; +inline uint64_t IndexRangeReply::_internal_timestamps(int index) const { + return _impl_.timestamps_.Get(index); } -inline void StateChange::set_direction(::remote::Direction value) { - _internal_set_direction(value); - // @@protoc_insertion_point(field_set:remote.StateChange.direction) +inline uint64_t IndexRangeReply::timestamps(int index) const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReply.timestamps) + return _internal_timestamps(index); } - -// uint64 blockHeight = 2; -inline void StateChange::clear_blockheight() { - _impl_.blockheight_ = uint64_t{0u}; +inline void IndexRangeReply::set_timestamps(int index, uint64_t value) { + _impl_.timestamps_.Set(index, value); + // @@protoc_insertion_point(field_set:remote.IndexRangeReply.timestamps) } -inline uint64_t StateChange::_internal_blockheight() const { - return _impl_.blockheight_; +inline void IndexRangeReply::_internal_add_timestamps(uint64_t value) { + _impl_.timestamps_.Add(value); } -inline uint64_t StateChange::blockheight() const { - // @@protoc_insertion_point(field_get:remote.StateChange.blockHeight) - return _internal_blockheight(); +inline void IndexRangeReply::add_timestamps(uint64_t value) { + _internal_add_timestamps(value); + // @@protoc_insertion_point(field_add:remote.IndexRangeReply.timestamps) } -inline void StateChange::_internal_set_blockheight(uint64_t value) { - - _impl_.blockheight_ = value; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +IndexRangeReply::_internal_timestamps() const { + return _impl_.timestamps_; } -inline void StateChange::set_blockheight(uint64_t value) { - _internal_set_blockheight(value); - // @@protoc_insertion_point(field_set:remote.StateChange.blockHeight) +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& +IndexRangeReply::timestamps() const { + // @@protoc_insertion_point(field_list:remote.IndexRangeReply.timestamps) + return _internal_timestamps(); } - -// .types.H256 blockHash = 3; -inline bool StateChange::_internal_has_blockhash() const { - return this != internal_default_instance() && _impl_.blockhash_ != nullptr; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +IndexRangeReply::_internal_mutable_timestamps() { + return &_impl_.timestamps_; } -inline bool StateChange::has_blockhash() const { - return _internal_has_blockhash(); +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* +IndexRangeReply::mutable_timestamps() { + // @@protoc_insertion_point(field_mutable_list:remote.IndexRangeReply.timestamps) + return _internal_mutable_timestamps(); } -inline const ::types::H256& StateChange::_internal_blockhash() const { - const ::types::H256* p = _impl_.blockhash_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_H256_default_instance_); + +// string next_page_token = 2; +inline void IndexRangeReply::clear_next_page_token() { + _impl_.next_page_token_.ClearToEmpty(); } -inline const ::types::H256& StateChange::blockhash() const { - // @@protoc_insertion_point(field_get:remote.StateChange.blockHash) - return _internal_blockhash(); +inline const std::string& IndexRangeReply::next_page_token() const { + // @@protoc_insertion_point(field_get:remote.IndexRangeReply.next_page_token) + return _internal_next_page_token(); } -inline void StateChange::unsafe_arena_set_allocated_blockhash( - ::types::H256* blockhash) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.blockhash_); - } - _impl_.blockhash_ = blockhash; - if (blockhash) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:remote.StateChange.blockHash) +template +inline PROTOBUF_ALWAYS_INLINE +void IndexRangeReply::set_next_page_token(ArgT0&& arg0, ArgT... args) { + + _impl_.next_page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.IndexRangeReply.next_page_token) } -inline ::types::H256* StateChange::release_blockhash() { - - ::types::H256* temp = _impl_.blockhash_; - _impl_.blockhash_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline std::string* IndexRangeReply::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:remote.IndexRangeReply.next_page_token) + return _s; } -inline ::types::H256* StateChange::unsafe_arena_release_blockhash() { - // @@protoc_insertion_point(field_release:remote.StateChange.blockHash) +inline const std::string& IndexRangeReply::_internal_next_page_token() const { + return _impl_.next_page_token_.Get(); +} +inline void IndexRangeReply::_internal_set_next_page_token(const std::string& value) { - ::types::H256* temp = _impl_.blockhash_; - _impl_.blockhash_ = nullptr; - return temp; + _impl_.next_page_token_.Set(value, GetArenaForAllocation()); } -inline ::types::H256* StateChange::_internal_mutable_blockhash() { +inline std::string* IndexRangeReply::_internal_mutable_next_page_token() { - if (_impl_.blockhash_ == nullptr) { - auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.blockhash_ = p; - } - return _impl_.blockhash_; + return _impl_.next_page_token_.Mutable(GetArenaForAllocation()); } -inline ::types::H256* StateChange::mutable_blockhash() { - ::types::H256* _msg = _internal_mutable_blockhash(); - // @@protoc_insertion_point(field_mutable:remote.StateChange.blockHash) - return _msg; +inline std::string* IndexRangeReply::release_next_page_token() { + // @@protoc_insertion_point(field_release:remote.IndexRangeReply.next_page_token) + return _impl_.next_page_token_.Release(); } -inline void StateChange::set_allocated_blockhash(::types::H256* blockhash) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.blockhash_); - } - if (blockhash) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(blockhash)); - if (message_arena != submessage_arena) { - blockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, blockhash, submessage_arena); - } +inline void IndexRangeReply::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { } else { } - _impl_.blockhash_ = blockhash; - // @@protoc_insertion_point(field_set_allocated:remote.StateChange.blockHash) + _impl_.next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.next_page_token_.IsDefault()) { + _impl_.next_page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReply.next_page_token) } -// repeated .remote.AccountChange changes = 4; -inline int StateChange::_internal_changes_size() const { - return _impl_.changes_.size(); +// ------------------------------------------------------------------- + +// HistoryRangeReq + +// uint64 tx_id = 1; +inline void HistoryRangeReq::clear_tx_id() { + _impl_.tx_id_ = uint64_t{0u}; } -inline int StateChange::changes_size() const { - return _internal_changes_size(); +inline uint64_t HistoryRangeReq::_internal_tx_id() const { + return _impl_.tx_id_; } -inline void StateChange::clear_changes() { - _impl_.changes_.Clear(); +inline uint64_t HistoryRangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.tx_id) + return _internal_tx_id(); } -inline ::remote::AccountChange* StateChange::mutable_changes(int index) { - // @@protoc_insertion_point(field_mutable:remote.StateChange.changes) - return _impl_.changes_.Mutable(index); +inline void HistoryRangeReq::_internal_set_tx_id(uint64_t value) { + + _impl_.tx_id_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >* -StateChange::mutable_changes() { - // @@protoc_insertion_point(field_mutable_list:remote.StateChange.changes) - return &_impl_.changes_; +inline void HistoryRangeReq::set_tx_id(uint64_t value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.tx_id) } -inline const ::remote::AccountChange& StateChange::_internal_changes(int index) const { - return _impl_.changes_.Get(index); + +// string table = 2; +inline void HistoryRangeReq::clear_table() { + _impl_.table_.ClearToEmpty(); } -inline const ::remote::AccountChange& StateChange::changes(int index) const { - // @@protoc_insertion_point(field_get:remote.StateChange.changes) - return _internal_changes(index); +inline const std::string& HistoryRangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.table) + return _internal_table(); } -inline ::remote::AccountChange* StateChange::_internal_add_changes() { - return _impl_.changes_.Add(); +template +inline PROTOBUF_ALWAYS_INLINE +void HistoryRangeReq::set_table(ArgT0&& arg0, ArgT... args) { + + _impl_.table_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.table) } -inline ::remote::AccountChange* StateChange::add_changes() { - ::remote::AccountChange* _add = _internal_add_changes(); - // @@protoc_insertion_point(field_add:remote.StateChange.changes) - return _add; +inline std::string* HistoryRangeReq::mutable_table() { + std::string* _s = _internal_mutable_table(); + // @@protoc_insertion_point(field_mutable:remote.HistoryRangeReq.table) + return _s; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::remote::AccountChange >& -StateChange::changes() const { - // @@protoc_insertion_point(field_list:remote.StateChange.changes) - return _impl_.changes_; +inline const std::string& HistoryRangeReq::_internal_table() const { + return _impl_.table_.Get(); } - -// repeated bytes txs = 5; -inline int StateChange::_internal_txs_size() const { - return _impl_.txs_.size(); +inline void HistoryRangeReq::_internal_set_table(const std::string& value) { + + _impl_.table_.Set(value, GetArenaForAllocation()); } -inline int StateChange::txs_size() const { - return _internal_txs_size(); +inline std::string* HistoryRangeReq::_internal_mutable_table() { + + return _impl_.table_.Mutable(GetArenaForAllocation()); } -inline void StateChange::clear_txs() { - _impl_.txs_.Clear(); +inline std::string* HistoryRangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.HistoryRangeReq.table) + return _impl_.table_.Release(); } -inline std::string* StateChange::add_txs() { - std::string* _s = _internal_add_txs(); - // @@protoc_insertion_point(field_add_mutable:remote.StateChange.txs) - return _s; +inline void HistoryRangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { + + } else { + + } + _impl_.table_.SetAllocated(table, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_.IsDefault()) { + _impl_.table_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.HistoryRangeReq.table) } -inline const std::string& StateChange::_internal_txs(int index) const { - return _impl_.txs_.Get(index); + +// sint64 from_ts = 4; +inline void HistoryRangeReq::clear_from_ts() { + _impl_.from_ts_ = int64_t{0}; } -inline const std::string& StateChange::txs(int index) const { - // @@protoc_insertion_point(field_get:remote.StateChange.txs) - return _internal_txs(index); +inline int64_t HistoryRangeReq::_internal_from_ts() const { + return _impl_.from_ts_; } -inline std::string* StateChange::mutable_txs(int index) { - // @@protoc_insertion_point(field_mutable:remote.StateChange.txs) - return _impl_.txs_.Mutable(index); +inline int64_t HistoryRangeReq::from_ts() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.from_ts) + return _internal_from_ts(); } -inline void StateChange::set_txs(int index, const std::string& value) { - _impl_.txs_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:remote.StateChange.txs) +inline void HistoryRangeReq::_internal_set_from_ts(int64_t value) { + + _impl_.from_ts_ = value; } -inline void StateChange::set_txs(int index, std::string&& value) { - _impl_.txs_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:remote.StateChange.txs) +inline void HistoryRangeReq::set_from_ts(int64_t value) { + _internal_set_from_ts(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.from_ts) } -inline void StateChange::set_txs(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.txs_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:remote.StateChange.txs) + +// sint64 to_ts = 5; +inline void HistoryRangeReq::clear_to_ts() { + _impl_.to_ts_ = int64_t{0}; } -inline void StateChange::set_txs(int index, const void* value, size_t size) { - _impl_.txs_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:remote.StateChange.txs) +inline int64_t HistoryRangeReq::_internal_to_ts() const { + return _impl_.to_ts_; } -inline std::string* StateChange::_internal_add_txs() { - return _impl_.txs_.Add(); +inline int64_t HistoryRangeReq::to_ts() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.to_ts) + return _internal_to_ts(); } -inline void StateChange::add_txs(const std::string& value) { - _impl_.txs_.Add()->assign(value); - // @@protoc_insertion_point(field_add:remote.StateChange.txs) +inline void HistoryRangeReq::_internal_set_to_ts(int64_t value) { + + _impl_.to_ts_ = value; } -inline void StateChange::add_txs(std::string&& value) { - _impl_.txs_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:remote.StateChange.txs) +inline void HistoryRangeReq::set_to_ts(int64_t value) { + _internal_set_to_ts(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.to_ts) } -inline void StateChange::add_txs(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.txs_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:remote.StateChange.txs) + +// bool order_ascend = 6; +inline void HistoryRangeReq::clear_order_ascend() { + _impl_.order_ascend_ = false; } -inline void StateChange::add_txs(const void* value, size_t size) { - _impl_.txs_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:remote.StateChange.txs) +inline bool HistoryRangeReq::_internal_order_ascend() const { + return _impl_.order_ascend_; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -StateChange::txs() const { - // @@protoc_insertion_point(field_list:remote.StateChange.txs) - return _impl_.txs_; +inline bool HistoryRangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.order_ascend) + return _internal_order_ascend(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -StateChange::mutable_txs() { - // @@protoc_insertion_point(field_mutable_list:remote.StateChange.txs) - return &_impl_.txs_; +inline void HistoryRangeReq::_internal_set_order_ascend(bool value) { + + _impl_.order_ascend_ = value; +} +inline void HistoryRangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.order_ascend) } -// ------------------------------------------------------------------- - -// StateChangeRequest - -// bool withStorage = 1; -inline void StateChangeRequest::clear_withstorage() { - _impl_.withstorage_ = false; +// sint64 limit = 7; +inline void HistoryRangeReq::clear_limit() { + _impl_.limit_ = int64_t{0}; } -inline bool StateChangeRequest::_internal_withstorage() const { - return _impl_.withstorage_; +inline int64_t HistoryRangeReq::_internal_limit() const { + return _impl_.limit_; } -inline bool StateChangeRequest::withstorage() const { - // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withStorage) - return _internal_withstorage(); +inline int64_t HistoryRangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.limit) + return _internal_limit(); } -inline void StateChangeRequest::_internal_set_withstorage(bool value) { +inline void HistoryRangeReq::_internal_set_limit(int64_t value) { - _impl_.withstorage_ = value; + _impl_.limit_ = value; } -inline void StateChangeRequest::set_withstorage(bool value) { - _internal_set_withstorage(value); - // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withStorage) +inline void HistoryRangeReq::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.limit) } -// bool withTransactions = 2; -inline void StateChangeRequest::clear_withtransactions() { - _impl_.withtransactions_ = false; +// int32 page_size = 8; +inline void HistoryRangeReq::clear_page_size() { + _impl_.page_size_ = 0; } -inline bool StateChangeRequest::_internal_withtransactions() const { - return _impl_.withtransactions_; +inline int32_t HistoryRangeReq::_internal_page_size() const { + return _impl_.page_size_; } -inline bool StateChangeRequest::withtransactions() const { - // @@protoc_insertion_point(field_get:remote.StateChangeRequest.withTransactions) - return _internal_withtransactions(); +inline int32_t HistoryRangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.page_size) + return _internal_page_size(); } -inline void StateChangeRequest::_internal_set_withtransactions(bool value) { +inline void HistoryRangeReq::_internal_set_page_size(int32_t value) { - _impl_.withtransactions_ = value; + _impl_.page_size_ = value; } -inline void StateChangeRequest::set_withtransactions(bool value) { - _internal_set_withtransactions(value); - // @@protoc_insertion_point(field_set:remote.StateChangeRequest.withTransactions) +inline void HistoryRangeReq::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.page_size) } -// ------------------------------------------------------------------- - -// SnapshotsRequest - -// ------------------------------------------------------------------- - -// SnapshotsReply - -// repeated string files = 1; -inline int SnapshotsReply::_internal_files_size() const { - return _impl_.files_.size(); +// string page_token = 9; +inline void HistoryRangeReq::clear_page_token() { + _impl_.page_token_.ClearToEmpty(); } -inline int SnapshotsReply::files_size() const { - return _internal_files_size(); +inline const std::string& HistoryRangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.HistoryRangeReq.page_token) + return _internal_page_token(); } -inline void SnapshotsReply::clear_files() { - _impl_.files_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void HistoryRangeReq::set_page_token(ArgT0&& arg0, ArgT... args) { + + _impl_.page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.HistoryRangeReq.page_token) } -inline std::string* SnapshotsReply::add_files() { - std::string* _s = _internal_add_files(); - // @@protoc_insertion_point(field_add_mutable:remote.SnapshotsReply.files) +inline std::string* HistoryRangeReq::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:remote.HistoryRangeReq.page_token) return _s; } -inline const std::string& SnapshotsReply::_internal_files(int index) const { - return _impl_.files_.Get(index); +inline const std::string& HistoryRangeReq::_internal_page_token() const { + return _impl_.page_token_.Get(); } -inline const std::string& SnapshotsReply::files(int index) const { - // @@protoc_insertion_point(field_get:remote.SnapshotsReply.files) - return _internal_files(index); -} -inline std::string* SnapshotsReply::mutable_files(int index) { - // @@protoc_insertion_point(field_mutable:remote.SnapshotsReply.files) - return _impl_.files_.Mutable(index); +inline void HistoryRangeReq::_internal_set_page_token(const std::string& value) { + + _impl_.page_token_.Set(value, GetArenaForAllocation()); } -inline void SnapshotsReply::set_files(int index, const std::string& value) { - _impl_.files_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:remote.SnapshotsReply.files) +inline std::string* HistoryRangeReq::_internal_mutable_page_token() { + + return _impl_.page_token_.Mutable(GetArenaForAllocation()); } -inline void SnapshotsReply::set_files(int index, std::string&& value) { - _impl_.files_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:remote.SnapshotsReply.files) +inline std::string* HistoryRangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.HistoryRangeReq.page_token) + return _impl_.page_token_.Release(); } -inline void SnapshotsReply::set_files(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.files_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:remote.SnapshotsReply.files) +inline void HistoryRangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { + + } else { + + } + _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.page_token_.IsDefault()) { + _impl_.page_token_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.HistoryRangeReq.page_token) } -inline void SnapshotsReply::set_files(int index, const char* value, size_t size) { - _impl_.files_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:remote.SnapshotsReply.files) + +// ------------------------------------------------------------------- + +// DomainRangeReq + +// uint64 tx_id = 1; +inline void DomainRangeReq::clear_tx_id() { + _impl_.tx_id_ = uint64_t{0u}; } -inline std::string* SnapshotsReply::_internal_add_files() { - return _impl_.files_.Add(); +inline uint64_t DomainRangeReq::_internal_tx_id() const { + return _impl_.tx_id_; } -inline void SnapshotsReply::add_files(const std::string& value) { - _impl_.files_.Add()->assign(value); - // @@protoc_insertion_point(field_add:remote.SnapshotsReply.files) +inline uint64_t DomainRangeReq::tx_id() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.tx_id) + return _internal_tx_id(); } -inline void SnapshotsReply::add_files(std::string&& value) { - _impl_.files_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:remote.SnapshotsReply.files) +inline void DomainRangeReq::_internal_set_tx_id(uint64_t value) { + + _impl_.tx_id_ = value; } -inline void SnapshotsReply::add_files(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.files_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:remote.SnapshotsReply.files) +inline void DomainRangeReq::set_tx_id(uint64_t value) { + _internal_set_tx_id(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.tx_id) } -inline void SnapshotsReply::add_files(const char* value, size_t size) { - _impl_.files_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:remote.SnapshotsReply.files) + +// string table = 2; +inline void DomainRangeReq::clear_table() { + _impl_.table_.ClearToEmpty(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SnapshotsReply::files() const { - // @@protoc_insertion_point(field_list:remote.SnapshotsReply.files) - return _impl_.files_; +inline const std::string& DomainRangeReq::table() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.table) + return _internal_table(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SnapshotsReply::mutable_files() { - // @@protoc_insertion_point(field_mutable_list:remote.SnapshotsReply.files) - return &_impl_.files_; +template +inline PROTOBUF_ALWAYS_INLINE +void DomainRangeReq::set_table(ArgT0&& arg0, ArgT... args) { + + _impl_.table_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.table) } - -// ------------------------------------------------------------------- - -// HistoryGetReq - -// uint64 txID = 1; -inline void HistoryGetReq::clear_txid() { - _impl_.txid_ = uint64_t{0u}; +inline std::string* DomainRangeReq::mutable_table() { + std::string* _s = _internal_mutable_table(); + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.table) + return _s; } -inline uint64_t HistoryGetReq::_internal_txid() const { - return _impl_.txid_; +inline const std::string& DomainRangeReq::_internal_table() const { + return _impl_.table_.Get(); } -inline uint64_t HistoryGetReq::txid() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.txID) - return _internal_txid(); +inline void DomainRangeReq::_internal_set_table(const std::string& value) { + + _impl_.table_.Set(value, GetArenaForAllocation()); } -inline void HistoryGetReq::_internal_set_txid(uint64_t value) { +inline std::string* DomainRangeReq::_internal_mutable_table() { - _impl_.txid_ = value; + return _impl_.table_.Mutable(GetArenaForAllocation()); +} +inline std::string* DomainRangeReq::release_table() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.table) + return _impl_.table_.Release(); } -inline void HistoryGetReq::set_txid(uint64_t value) { - _internal_set_txid(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.txID) +inline void DomainRangeReq::set_allocated_table(std::string* table) { + if (table != nullptr) { + + } else { + + } + _impl_.table_.SetAllocated(table, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_.IsDefault()) { + _impl_.table_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.table) } -// string name = 2; -inline void HistoryGetReq::clear_name() { - _impl_.name_.ClearToEmpty(); +// bytes from_key = 3; +inline void DomainRangeReq::clear_from_key() { + _impl_.from_key_.ClearToEmpty(); } -inline const std::string& HistoryGetReq::name() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.name) - return _internal_name(); +inline const std::string& DomainRangeReq::from_key() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.from_key) + return _internal_from_key(); } template inline PROTOBUF_ALWAYS_INLINE -void HistoryGetReq::set_name(ArgT0&& arg0, ArgT... args) { +void DomainRangeReq::set_from_key(ArgT0&& arg0, ArgT... args) { - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.name) + _impl_.from_key_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.from_key) } -inline std::string* HistoryGetReq::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.name) +inline std::string* DomainRangeReq::mutable_from_key() { + std::string* _s = _internal_mutable_from_key(); + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.from_key) return _s; } -inline const std::string& HistoryGetReq::_internal_name() const { - return _impl_.name_.Get(); +inline const std::string& DomainRangeReq::_internal_from_key() const { + return _impl_.from_key_.Get(); } -inline void HistoryGetReq::_internal_set_name(const std::string& value) { +inline void DomainRangeReq::_internal_set_from_key(const std::string& value) { - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.from_key_.Set(value, GetArenaForAllocation()); } -inline std::string* HistoryGetReq::_internal_mutable_name() { +inline std::string* DomainRangeReq::_internal_mutable_from_key() { - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.from_key_.Mutable(GetArenaForAllocation()); } -inline std::string* HistoryGetReq::release_name() { - // @@protoc_insertion_point(field_release:remote.HistoryGetReq.name) - return _impl_.name_.Release(); +inline std::string* DomainRangeReq::release_from_key() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.from_key) + return _impl_.from_key_.Release(); } -inline void HistoryGetReq::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void DomainRangeReq::set_allocated_from_key(std::string* from_key) { + if (from_key != nullptr) { } else { } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); + _impl_.from_key_.SetAllocated(from_key, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + if (_impl_.from_key_.IsDefault()) { + _impl_.from_key_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.name) + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.from_key) } -// bytes k = 3; -inline void HistoryGetReq::clear_k() { - _impl_.k_.ClearToEmpty(); +// bytes to_key = 4; +inline void DomainRangeReq::clear_to_key() { + _impl_.to_key_.ClearToEmpty(); } -inline const std::string& HistoryGetReq::k() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.k) - return _internal_k(); +inline const std::string& DomainRangeReq::to_key() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.to_key) + return _internal_to_key(); } template inline PROTOBUF_ALWAYS_INLINE -void HistoryGetReq::set_k(ArgT0&& arg0, ArgT... args) { +void DomainRangeReq::set_to_key(ArgT0&& arg0, ArgT... args) { - _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.k) + _impl_.to_key_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.to_key) } -inline std::string* HistoryGetReq::mutable_k() { - std::string* _s = _internal_mutable_k(); - // @@protoc_insertion_point(field_mutable:remote.HistoryGetReq.k) +inline std::string* DomainRangeReq::mutable_to_key() { + std::string* _s = _internal_mutable_to_key(); + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.to_key) return _s; } -inline const std::string& HistoryGetReq::_internal_k() const { - return _impl_.k_.Get(); +inline const std::string& DomainRangeReq::_internal_to_key() const { + return _impl_.to_key_.Get(); } -inline void HistoryGetReq::_internal_set_k(const std::string& value) { +inline void DomainRangeReq::_internal_set_to_key(const std::string& value) { - _impl_.k_.Set(value, GetArenaForAllocation()); + _impl_.to_key_.Set(value, GetArenaForAllocation()); } -inline std::string* HistoryGetReq::_internal_mutable_k() { +inline std::string* DomainRangeReq::_internal_mutable_to_key() { - return _impl_.k_.Mutable(GetArenaForAllocation()); + return _impl_.to_key_.Mutable(GetArenaForAllocation()); } -inline std::string* HistoryGetReq::release_k() { - // @@protoc_insertion_point(field_release:remote.HistoryGetReq.k) - return _impl_.k_.Release(); +inline std::string* DomainRangeReq::release_to_key() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.to_key) + return _impl_.to_key_.Release(); } -inline void HistoryGetReq::set_allocated_k(std::string* k) { - if (k != nullptr) { +inline void DomainRangeReq::set_allocated_to_key(std::string* to_key) { + if (to_key != nullptr) { } else { } - _impl_.k_.SetAllocated(k, GetArenaForAllocation()); + _impl_.to_key_.SetAllocated(to_key, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.k_.IsDefault()) { - _impl_.k_.Set("", GetArenaForAllocation()); + if (_impl_.to_key_.IsDefault()) { + _impl_.to_key_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReq.k) + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.to_key) } -// uint64 ts = 4; -inline void HistoryGetReq::clear_ts() { +// uint64 ts = 5; +inline void DomainRangeReq::clear_ts() { _impl_.ts_ = uint64_t{0u}; } -inline uint64_t HistoryGetReq::_internal_ts() const { +inline uint64_t DomainRangeReq::_internal_ts() const { return _impl_.ts_; } -inline uint64_t HistoryGetReq::ts() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReq.ts) +inline uint64_t DomainRangeReq::ts() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.ts) return _internal_ts(); } -inline void HistoryGetReq::_internal_set_ts(uint64_t value) { +inline void DomainRangeReq::_internal_set_ts(uint64_t value) { _impl_.ts_ = value; } -inline void HistoryGetReq::set_ts(uint64_t value) { +inline void DomainRangeReq::set_ts(uint64_t value) { _internal_set_ts(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReq.ts) + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.ts) } -// ------------------------------------------------------------------- +// bool latest = 6; +inline void DomainRangeReq::clear_latest() { + _impl_.latest_ = false; +} +inline bool DomainRangeReq::_internal_latest() const { + return _impl_.latest_; +} +inline bool DomainRangeReq::latest() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.latest) + return _internal_latest(); +} +inline void DomainRangeReq::_internal_set_latest(bool value) { + + _impl_.latest_ = value; +} +inline void DomainRangeReq::set_latest(bool value) { + _internal_set_latest(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.latest) +} -// HistoryGetReply +// bool order_ascend = 7; +inline void DomainRangeReq::clear_order_ascend() { + _impl_.order_ascend_ = false; +} +inline bool DomainRangeReq::_internal_order_ascend() const { + return _impl_.order_ascend_; +} +inline bool DomainRangeReq::order_ascend() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.order_ascend) + return _internal_order_ascend(); +} +inline void DomainRangeReq::_internal_set_order_ascend(bool value) { + + _impl_.order_ascend_ = value; +} +inline void DomainRangeReq::set_order_ascend(bool value) { + _internal_set_order_ascend(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.order_ascend) +} -// bytes v = 1; -inline void HistoryGetReply::clear_v() { - _impl_.v_.ClearToEmpty(); +// sint64 limit = 8; +inline void DomainRangeReq::clear_limit() { + _impl_.limit_ = int64_t{0}; } -inline const std::string& HistoryGetReply::v() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReply.v) - return _internal_v(); +inline int64_t DomainRangeReq::_internal_limit() const { + return _impl_.limit_; +} +inline int64_t DomainRangeReq::limit() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.limit) + return _internal_limit(); +} +inline void DomainRangeReq::_internal_set_limit(int64_t value) { + + _impl_.limit_ = value; +} +inline void DomainRangeReq::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.limit) +} + +// int32 page_size = 9; +inline void DomainRangeReq::clear_page_size() { + _impl_.page_size_ = 0; +} +inline int32_t DomainRangeReq::_internal_page_size() const { + return _impl_.page_size_; +} +inline int32_t DomainRangeReq::page_size() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.page_size) + return _internal_page_size(); +} +inline void DomainRangeReq::_internal_set_page_size(int32_t value) { + + _impl_.page_size_ = value; +} +inline void DomainRangeReq::set_page_size(int32_t value) { + _internal_set_page_size(value); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.page_size) +} + +// string page_token = 10; +inline void DomainRangeReq::clear_page_token() { + _impl_.page_token_.ClearToEmpty(); +} +inline const std::string& DomainRangeReq::page_token() const { + // @@protoc_insertion_point(field_get:remote.DomainRangeReq.page_token) + return _internal_page_token(); } template inline PROTOBUF_ALWAYS_INLINE -void HistoryGetReply::set_v(ArgT0&& arg0, ArgT... args) { +void DomainRangeReq::set_page_token(ArgT0&& arg0, ArgT... args) { - _impl_.v_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.HistoryGetReply.v) + _impl_.page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.DomainRangeReq.page_token) } -inline std::string* HistoryGetReply::mutable_v() { - std::string* _s = _internal_mutable_v(); - // @@protoc_insertion_point(field_mutable:remote.HistoryGetReply.v) +inline std::string* DomainRangeReq::mutable_page_token() { + std::string* _s = _internal_mutable_page_token(); + // @@protoc_insertion_point(field_mutable:remote.DomainRangeReq.page_token) return _s; } -inline const std::string& HistoryGetReply::_internal_v() const { - return _impl_.v_.Get(); +inline const std::string& DomainRangeReq::_internal_page_token() const { + return _impl_.page_token_.Get(); } -inline void HistoryGetReply::_internal_set_v(const std::string& value) { +inline void DomainRangeReq::_internal_set_page_token(const std::string& value) { - _impl_.v_.Set(value, GetArenaForAllocation()); + _impl_.page_token_.Set(value, GetArenaForAllocation()); } -inline std::string* HistoryGetReply::_internal_mutable_v() { +inline std::string* DomainRangeReq::_internal_mutable_page_token() { - return _impl_.v_.Mutable(GetArenaForAllocation()); + return _impl_.page_token_.Mutable(GetArenaForAllocation()); } -inline std::string* HistoryGetReply::release_v() { - // @@protoc_insertion_point(field_release:remote.HistoryGetReply.v) - return _impl_.v_.Release(); +inline std::string* DomainRangeReq::release_page_token() { + // @@protoc_insertion_point(field_release:remote.DomainRangeReq.page_token) + return _impl_.page_token_.Release(); } -inline void HistoryGetReply::set_allocated_v(std::string* v) { - if (v != nullptr) { +inline void DomainRangeReq::set_allocated_page_token(std::string* page_token) { + if (page_token != nullptr) { } else { } - _impl_.v_.SetAllocated(v, GetArenaForAllocation()); + _impl_.page_token_.SetAllocated(page_token, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.v_.IsDefault()) { - _impl_.v_.Set("", GetArenaForAllocation()); + if (_impl_.page_token_.IsDefault()) { + _impl_.page_token_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.HistoryGetReply.v) + // @@protoc_insertion_point(field_set_allocated:remote.DomainRangeReq.page_token) } -// bool ok = 2; -inline void HistoryGetReply::clear_ok() { - _impl_.ok_ = false; +// ------------------------------------------------------------------- + +// Pairs + +// repeated bytes keys = 1; +inline int Pairs::_internal_keys_size() const { + return _impl_.keys_.size(); } -inline bool HistoryGetReply::_internal_ok() const { - return _impl_.ok_; +inline int Pairs::keys_size() const { + return _internal_keys_size(); } -inline bool HistoryGetReply::ok() const { - // @@protoc_insertion_point(field_get:remote.HistoryGetReply.ok) - return _internal_ok(); +inline void Pairs::clear_keys() { + _impl_.keys_.Clear(); } -inline void HistoryGetReply::_internal_set_ok(bool value) { - - _impl_.ok_ = value; +inline std::string* Pairs::add_keys() { + std::string* _s = _internal_add_keys(); + // @@protoc_insertion_point(field_add_mutable:remote.Pairs.keys) + return _s; } -inline void HistoryGetReply::set_ok(bool value) { - _internal_set_ok(value); - // @@protoc_insertion_point(field_set:remote.HistoryGetReply.ok) +inline const std::string& Pairs::_internal_keys(int index) const { + return _impl_.keys_.Get(index); +} +inline const std::string& Pairs::keys(int index) const { + // @@protoc_insertion_point(field_get:remote.Pairs.keys) + return _internal_keys(index); +} +inline std::string* Pairs::mutable_keys(int index) { + // @@protoc_insertion_point(field_mutable:remote.Pairs.keys) + return _impl_.keys_.Mutable(index); +} +inline void Pairs::set_keys(int index, const std::string& value) { + _impl_.keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:remote.Pairs.keys) +} +inline void Pairs::set_keys(int index, std::string&& value) { + _impl_.keys_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:remote.Pairs.keys) +} +inline void Pairs::set_keys(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.Pairs.keys) +} +inline void Pairs::set_keys(int index, const void* value, size_t size) { + _impl_.keys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.Pairs.keys) +} +inline std::string* Pairs::_internal_add_keys() { + return _impl_.keys_.Add(); +} +inline void Pairs::add_keys(const std::string& value) { + _impl_.keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.Pairs.keys) +} +inline void Pairs::add_keys(std::string&& value) { + _impl_.keys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.Pairs.keys) +} +inline void Pairs::add_keys(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.Pairs.keys) +} +inline void Pairs::add_keys(const void* value, size_t size) { + _impl_.keys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.Pairs.keys) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Pairs::keys() const { + // @@protoc_insertion_point(field_list:remote.Pairs.keys) + return _impl_.keys_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Pairs::mutable_keys() { + // @@protoc_insertion_point(field_mutable_list:remote.Pairs.keys) + return &_impl_.keys_; } -// ------------------------------------------------------------------- - -// IndexRangeReq - -// uint64 txID = 1; -inline void IndexRangeReq::clear_txid() { - _impl_.txid_ = uint64_t{0u}; +// repeated bytes values = 2; +inline int Pairs::_internal_values_size() const { + return _impl_.values_.size(); } -inline uint64_t IndexRangeReq::_internal_txid() const { - return _impl_.txid_; +inline int Pairs::values_size() const { + return _internal_values_size(); } -inline uint64_t IndexRangeReq::txid() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.txID) - return _internal_txid(); +inline void Pairs::clear_values() { + _impl_.values_.Clear(); } -inline void IndexRangeReq::_internal_set_txid(uint64_t value) { - - _impl_.txid_ = value; +inline std::string* Pairs::add_values() { + std::string* _s = _internal_add_values(); + // @@protoc_insertion_point(field_add_mutable:remote.Pairs.values) + return _s; } -inline void IndexRangeReq::set_txid(uint64_t value) { - _internal_set_txid(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.txID) +inline const std::string& Pairs::_internal_values(int index) const { + return _impl_.values_.Get(index); +} +inline const std::string& Pairs::values(int index) const { + // @@protoc_insertion_point(field_get:remote.Pairs.values) + return _internal_values(index); +} +inline std::string* Pairs::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:remote.Pairs.values) + return _impl_.values_.Mutable(index); +} +inline void Pairs::set_values(int index, const std::string& value) { + _impl_.values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:remote.Pairs.values) +} +inline void Pairs::set_values(int index, std::string&& value) { + _impl_.values_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:remote.Pairs.values) +} +inline void Pairs::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:remote.Pairs.values) +} +inline void Pairs::set_values(int index, const void* value, size_t size) { + _impl_.values_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:remote.Pairs.values) +} +inline std::string* Pairs::_internal_add_values() { + return _impl_.values_.Add(); +} +inline void Pairs::add_values(const std::string& value) { + _impl_.values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:remote.Pairs.values) +} +inline void Pairs::add_values(std::string&& value) { + _impl_.values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:remote.Pairs.values) +} +inline void Pairs::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:remote.Pairs.values) +} +inline void Pairs::add_values(const void* value, size_t size) { + _impl_.values_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:remote.Pairs.values) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +Pairs::values() const { + // @@protoc_insertion_point(field_list:remote.Pairs.values) + return _impl_.values_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +Pairs::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:remote.Pairs.values) + return &_impl_.values_; } -// string name = 2; -inline void IndexRangeReq::clear_name() { - _impl_.name_.ClearToEmpty(); +// string next_page_token = 3; +inline void Pairs::clear_next_page_token() { + _impl_.next_page_token_.ClearToEmpty(); } -inline const std::string& IndexRangeReq::name() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.name) - return _internal_name(); +inline const std::string& Pairs::next_page_token() const { + // @@protoc_insertion_point(field_get:remote.Pairs.next_page_token) + return _internal_next_page_token(); } template inline PROTOBUF_ALWAYS_INLINE -void IndexRangeReq::set_name(ArgT0&& arg0, ArgT... args) { +void Pairs::set_next_page_token(ArgT0&& arg0, ArgT... args) { - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.name) + _impl_.next_page_token_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.Pairs.next_page_token) } -inline std::string* IndexRangeReq::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.name) +inline std::string* Pairs::mutable_next_page_token() { + std::string* _s = _internal_mutable_next_page_token(); + // @@protoc_insertion_point(field_mutable:remote.Pairs.next_page_token) return _s; } -inline const std::string& IndexRangeReq::_internal_name() const { - return _impl_.name_.Get(); +inline const std::string& Pairs::_internal_next_page_token() const { + return _impl_.next_page_token_.Get(); } -inline void IndexRangeReq::_internal_set_name(const std::string& value) { +inline void Pairs::_internal_set_next_page_token(const std::string& value) { - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.next_page_token_.Set(value, GetArenaForAllocation()); } -inline std::string* IndexRangeReq::_internal_mutable_name() { +inline std::string* Pairs::_internal_mutable_next_page_token() { - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.next_page_token_.Mutable(GetArenaForAllocation()); } -inline std::string* IndexRangeReq::release_name() { - // @@protoc_insertion_point(field_release:remote.IndexRangeReq.name) - return _impl_.name_.Release(); +inline std::string* Pairs::release_next_page_token() { + // @@protoc_insertion_point(field_release:remote.Pairs.next_page_token) + return _impl_.next_page_token_.Release(); } -inline void IndexRangeReq::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Pairs::set_allocated_next_page_token(std::string* next_page_token) { + if (next_page_token != nullptr) { } else { } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); + _impl_.next_page_token_.SetAllocated(next_page_token, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + if (_impl_.next_page_token_.IsDefault()) { + _impl_.next_page_token_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.name) + // @@protoc_insertion_point(field_set_allocated:remote.Pairs.next_page_token) } -// bytes k = 3; -inline void IndexRangeReq::clear_k() { - _impl_.k_.ClearToEmpty(); +// ------------------------------------------------------------------- + +// ParisPagination + +// bytes next_key = 1; +inline void ParisPagination::clear_next_key() { + _impl_.next_key_.ClearToEmpty(); } -inline const std::string& IndexRangeReq::k() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.k) - return _internal_k(); +inline const std::string& ParisPagination::next_key() const { + // @@protoc_insertion_point(field_get:remote.ParisPagination.next_key) + return _internal_next_key(); } template inline PROTOBUF_ALWAYS_INLINE -void IndexRangeReq::set_k(ArgT0&& arg0, ArgT... args) { +void ParisPagination::set_next_key(ArgT0&& arg0, ArgT... args) { - _impl_.k_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.k) + _impl_.next_key_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:remote.ParisPagination.next_key) } -inline std::string* IndexRangeReq::mutable_k() { - std::string* _s = _internal_mutable_k(); - // @@protoc_insertion_point(field_mutable:remote.IndexRangeReq.k) +inline std::string* ParisPagination::mutable_next_key() { + std::string* _s = _internal_mutable_next_key(); + // @@protoc_insertion_point(field_mutable:remote.ParisPagination.next_key) return _s; } -inline const std::string& IndexRangeReq::_internal_k() const { - return _impl_.k_.Get(); +inline const std::string& ParisPagination::_internal_next_key() const { + return _impl_.next_key_.Get(); } -inline void IndexRangeReq::_internal_set_k(const std::string& value) { +inline void ParisPagination::_internal_set_next_key(const std::string& value) { - _impl_.k_.Set(value, GetArenaForAllocation()); + _impl_.next_key_.Set(value, GetArenaForAllocation()); } -inline std::string* IndexRangeReq::_internal_mutable_k() { +inline std::string* ParisPagination::_internal_mutable_next_key() { - return _impl_.k_.Mutable(GetArenaForAllocation()); + return _impl_.next_key_.Mutable(GetArenaForAllocation()); } -inline std::string* IndexRangeReq::release_k() { - // @@protoc_insertion_point(field_release:remote.IndexRangeReq.k) - return _impl_.k_.Release(); +inline std::string* ParisPagination::release_next_key() { + // @@protoc_insertion_point(field_release:remote.ParisPagination.next_key) + return _impl_.next_key_.Release(); } -inline void IndexRangeReq::set_allocated_k(std::string* k) { - if (k != nullptr) { +inline void ParisPagination::set_allocated_next_key(std::string* next_key) { + if (next_key != nullptr) { } else { } - _impl_.k_.SetAllocated(k, GetArenaForAllocation()); + _impl_.next_key_.SetAllocated(next_key, GetArenaForAllocation()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.k_.IsDefault()) { - _impl_.k_.Set("", GetArenaForAllocation()); + if (_impl_.next_key_.IsDefault()) { + _impl_.next_key_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:remote.IndexRangeReq.k) -} - -// uint64 fromTs = 4; -inline void IndexRangeReq::clear_fromts() { - _impl_.fromts_ = uint64_t{0u}; -} -inline uint64_t IndexRangeReq::_internal_fromts() const { - return _impl_.fromts_; -} -inline uint64_t IndexRangeReq::fromts() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.fromTs) - return _internal_fromts(); -} -inline void IndexRangeReq::_internal_set_fromts(uint64_t value) { - - _impl_.fromts_ = value; -} -inline void IndexRangeReq::set_fromts(uint64_t value) { - _internal_set_fromts(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.fromTs) + // @@protoc_insertion_point(field_set_allocated:remote.ParisPagination.next_key) } -// uint64 toTs = 5; -inline void IndexRangeReq::clear_tots() { - _impl_.tots_ = uint64_t{0u}; +// sint64 limit = 2; +inline void ParisPagination::clear_limit() { + _impl_.limit_ = int64_t{0}; } -inline uint64_t IndexRangeReq::_internal_tots() const { - return _impl_.tots_; +inline int64_t ParisPagination::_internal_limit() const { + return _impl_.limit_; } -inline uint64_t IndexRangeReq::tots() const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReq.toTs) - return _internal_tots(); +inline int64_t ParisPagination::limit() const { + // @@protoc_insertion_point(field_get:remote.ParisPagination.limit) + return _internal_limit(); } -inline void IndexRangeReq::_internal_set_tots(uint64_t value) { +inline void ParisPagination::_internal_set_limit(int64_t value) { - _impl_.tots_ = value; + _impl_.limit_ = value; } -inline void IndexRangeReq::set_tots(uint64_t value) { - _internal_set_tots(value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReq.toTs) +inline void ParisPagination::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.ParisPagination.limit) } // ------------------------------------------------------------------- -// IndexRangeReply +// IndexPagination -// repeated uint64 timestamps = 1; -inline int IndexRangeReply::_internal_timestamps_size() const { - return _impl_.timestamps_.size(); -} -inline int IndexRangeReply::timestamps_size() const { - return _internal_timestamps_size(); -} -inline void IndexRangeReply::clear_timestamps() { - _impl_.timestamps_.Clear(); +// sint64 next_time_stamp = 1; +inline void IndexPagination::clear_next_time_stamp() { + _impl_.next_time_stamp_ = int64_t{0}; } -inline uint64_t IndexRangeReply::_internal_timestamps(int index) const { - return _impl_.timestamps_.Get(index); +inline int64_t IndexPagination::_internal_next_time_stamp() const { + return _impl_.next_time_stamp_; } -inline uint64_t IndexRangeReply::timestamps(int index) const { - // @@protoc_insertion_point(field_get:remote.IndexRangeReply.timestamps) - return _internal_timestamps(index); +inline int64_t IndexPagination::next_time_stamp() const { + // @@protoc_insertion_point(field_get:remote.IndexPagination.next_time_stamp) + return _internal_next_time_stamp(); } -inline void IndexRangeReply::set_timestamps(int index, uint64_t value) { - _impl_.timestamps_.Set(index, value); - // @@protoc_insertion_point(field_set:remote.IndexRangeReply.timestamps) +inline void IndexPagination::_internal_set_next_time_stamp(int64_t value) { + + _impl_.next_time_stamp_ = value; } -inline void IndexRangeReply::_internal_add_timestamps(uint64_t value) { - _impl_.timestamps_.Add(value); +inline void IndexPagination::set_next_time_stamp(int64_t value) { + _internal_set_next_time_stamp(value); + // @@protoc_insertion_point(field_set:remote.IndexPagination.next_time_stamp) } -inline void IndexRangeReply::add_timestamps(uint64_t value) { - _internal_add_timestamps(value); - // @@protoc_insertion_point(field_add:remote.IndexRangeReply.timestamps) + +// sint64 limit = 2; +inline void IndexPagination::clear_limit() { + _impl_.limit_ = int64_t{0}; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -IndexRangeReply::_internal_timestamps() const { - return _impl_.timestamps_; +inline int64_t IndexPagination::_internal_limit() const { + return _impl_.limit_; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& -IndexRangeReply::timestamps() const { - // @@protoc_insertion_point(field_list:remote.IndexRangeReply.timestamps) - return _internal_timestamps(); +inline int64_t IndexPagination::limit() const { + // @@protoc_insertion_point(field_get:remote.IndexPagination.limit) + return _internal_limit(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -IndexRangeReply::_internal_mutable_timestamps() { - return &_impl_.timestamps_; +inline void IndexPagination::_internal_set_limit(int64_t value) { + + _impl_.limit_ = value; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* -IndexRangeReply::mutable_timestamps() { - // @@protoc_insertion_point(field_mutable_list:remote.IndexRangeReply.timestamps) - return _internal_mutable_timestamps(); +inline void IndexPagination::set_limit(int64_t value) { + _internal_set_limit(value); + // @@protoc_insertion_point(field_set:remote.IndexPagination.limit) } #ifdef __GNUC__ @@ -4296,6 +7753,22 @@ IndexRangeReply::mutable_timestamps() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/silkworm/interfaces/3.21.4/remote/kv_mock.grpc.pb.h b/silkworm/interfaces/3.21.4/remote/kv_mock.grpc.pb.h index 19b7f0ffa9..15009f09b0 100644 --- a/silkworm/interfaces/3.21.4/remote/kv_mock.grpc.pb.h +++ b/silkworm/interfaces/3.21.4/remote/kv_mock.grpc.pb.h @@ -24,12 +24,24 @@ class MockKVStub : public KV::StubInterface { MOCK_METHOD3(Snapshots, ::grpc::Status(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::remote::SnapshotsReply* response)); MOCK_METHOD3(AsyncSnapshotsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>*(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncSnapshotsRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::SnapshotsReply>*(::grpc::ClientContext* context, const ::remote::SnapshotsRequest& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(Range, ::grpc::Status(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::remote::Pairs* response)); + MOCK_METHOD3(AsyncRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::RangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(DomainGet, ::grpc::Status(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::remote::DomainGetReply* response)); + MOCK_METHOD3(AsyncDomainGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>*(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncDomainGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::DomainGetReply>*(::grpc::ClientContext* context, const ::remote::DomainGetReq& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(HistoryGet, ::grpc::Status(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::remote::HistoryGetReply* response)); MOCK_METHOD3(AsyncHistoryGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>*(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq)); MOCK_METHOD3(PrepareAsyncHistoryGetRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::HistoryGetReply>*(::grpc::ClientContext* context, const ::remote::HistoryGetReq& request, ::grpc::CompletionQueue* cq)); - MOCK_METHOD2(IndexRangeRaw, ::grpc::ClientReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request)); - MOCK_METHOD4(AsyncIndexRangeRaw, ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq, void* tag)); - MOCK_METHOD3(PrepareAsyncIndexRangeRaw, ::grpc::ClientAsyncReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(IndexRange, ::grpc::Status(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::remote::IndexRangeReply* response)); + MOCK_METHOD3(AsyncIndexRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncIndexRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::IndexRangeReply>*(::grpc::ClientContext* context, const ::remote::IndexRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(HistoryRange, ::grpc::Status(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::remote::Pairs* response)); + MOCK_METHOD3(AsyncHistoryRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncHistoryRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::HistoryRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(DomainRange, ::grpc::Status(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::remote::Pairs* response)); + MOCK_METHOD3(AsyncDomainRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq)); + MOCK_METHOD3(PrepareAsyncDomainRangeRaw, ::grpc::ClientAsyncResponseReaderInterface< ::remote::Pairs>*(::grpc::ClientContext* context, const ::remote::DomainRangeReq& request, ::grpc::CompletionQueue* cq)); }; } // namespace remote diff --git a/silkworm/interfaces/3.21.4/types/types.pb.cc b/silkworm/interfaces/3.21.4/types/types.pb.cc index 6f4127dfde..57f817188b 100644 --- a/silkworm/interfaces/3.21.4/types/types.pb.cc +++ b/silkworm/interfaces/3.21.4/types/types.pb.cc @@ -123,6 +123,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT PROTOBUF_CONSTEXPR ExecutionPayload::ExecutionPayload( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.transactions_)*/{} + , /*decltype(_impl_.withdrawals_)*/{} , /*decltype(_impl_.extradata_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.parenthash_)*/nullptr , /*decltype(_impl_.coinbase_)*/nullptr @@ -132,10 +133,12 @@ PROTOBUF_CONSTEXPR ExecutionPayload::ExecutionPayload( , /*decltype(_impl_.prevrandao_)*/nullptr , /*decltype(_impl_.basefeepergas_)*/nullptr , /*decltype(_impl_.blockhash_)*/nullptr + , /*decltype(_impl_.excessdatagas_)*/nullptr , /*decltype(_impl_.blocknumber_)*/uint64_t{0u} , /*decltype(_impl_.gaslimit_)*/uint64_t{0u} , /*decltype(_impl_.gasused_)*/uint64_t{0u} , /*decltype(_impl_.timestamp_)*/uint64_t{0u} + , /*decltype(_impl_.version_)*/0u , /*decltype(_impl_._cached_size_)*/{}} {} struct ExecutionPayloadDefaultTypeInternal { PROTOBUF_CONSTEXPR ExecutionPayloadDefaultTypeInternal() @@ -149,9 +152,9 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT PROTOBUF_CONSTEXPR Withdrawal::Withdrawal( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.address_)*/nullptr - , /*decltype(_impl_.amount_)*/nullptr , /*decltype(_impl_.index_)*/uint64_t{0u} , /*decltype(_impl_.validatorindex_)*/uint64_t{0u} + , /*decltype(_impl_.amount_)*/uint64_t{0u} , /*decltype(_impl_._cached_size_)*/{}} {} struct WithdrawalDefaultTypeInternal { PROTOBUF_CONSTEXPR WithdrawalDefaultTypeInternal() @@ -162,20 +165,21 @@ struct WithdrawalDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WithdrawalDefaultTypeInternal _Withdrawal_default_instance_; -PROTOBUF_CONSTEXPR ExecutionPayloadV2::ExecutionPayloadV2( +PROTOBUF_CONSTEXPR BlobsBundleV1::BlobsBundleV1( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.withdrawals_)*/{} - , /*decltype(_impl_.payload_)*/nullptr + /*decltype(_impl_.kzgs_)*/{} + , /*decltype(_impl_.blobs_)*/{} + , /*decltype(_impl_.blockhash_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} -struct ExecutionPayloadV2DefaultTypeInternal { - PROTOBUF_CONSTEXPR ExecutionPayloadV2DefaultTypeInternal() +struct BlobsBundleV1DefaultTypeInternal { + PROTOBUF_CONSTEXPR BlobsBundleV1DefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ExecutionPayloadV2DefaultTypeInternal() {} + ~BlobsBundleV1DefaultTypeInternal() {} union { - ExecutionPayloadV2 _instance; + BlobsBundleV1 _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExecutionPayloadV2DefaultTypeInternal _ExecutionPayloadV2_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlobsBundleV1DefaultTypeInternal _BlobsBundleV1_default_instance_; PROTOBUF_CONSTEXPR NodeInfoPorts::NodeInfoPorts( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.discovery_)*/0u @@ -231,8 +235,22 @@ struct PeerInfoDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerInfoDefaultTypeInternal _PeerInfo_default_instance_; +PROTOBUF_CONSTEXPR ExecutionPayloadBodyV1::ExecutionPayloadBodyV1( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.transactions_)*/{} + , /*decltype(_impl_.withdrawals_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ExecutionPayloadBodyV1DefaultTypeInternal { + PROTOBUF_CONSTEXPR ExecutionPayloadBodyV1DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ExecutionPayloadBodyV1DefaultTypeInternal() {} + union { + ExecutionPayloadBodyV1 _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExecutionPayloadBodyV1DefaultTypeInternal _ExecutionPayloadBodyV1_default_instance_; } // namespace types -static ::_pb::Metadata file_level_metadata_types_2ftypes_2eproto[13]; +static ::_pb::Metadata file_level_metadata_types_2ftypes_2eproto[14]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_types_2ftypes_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_types_2ftypes_2eproto = nullptr; @@ -300,6 +318,7 @@ const uint32_t TableStruct_types_2ftypes_2eproto::offsets[] PROTOBUF_SECTION_VAR ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.version_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.parenthash_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.coinbase_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.stateroot_), @@ -314,6 +333,8 @@ const uint32_t TableStruct_types_2ftypes_2eproto::offsets[] PROTOBUF_SECTION_VAR PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.basefeepergas_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.blockhash_), PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.transactions_), + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.withdrawals_), + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayload, _impl_.excessdatagas_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::types::Withdrawal, _internal_metadata_), ~0u, // no _extensions_ @@ -325,13 +346,14 @@ const uint32_t TableStruct_types_2ftypes_2eproto::offsets[] PROTOBUF_SECTION_VAR PROTOBUF_FIELD_OFFSET(::types::Withdrawal, _impl_.address_), PROTOBUF_FIELD_OFFSET(::types::Withdrawal, _impl_.amount_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadV2, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadV2, _impl_.payload_), - PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadV2, _impl_.withdrawals_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, _impl_.blockhash_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, _impl_.kzgs_), + PROTOBUF_FIELD_OFFSET(::types::BlobsBundleV1, _impl_.blobs_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::types::NodeInfoPorts, _internal_metadata_), ~0u, // no _extensions_ @@ -369,6 +391,14 @@ const uint32_t TableStruct_types_2ftypes_2eproto::offsets[] PROTOBUF_SECTION_VAR PROTOBUF_FIELD_OFFSET(::types::PeerInfo, _impl_.connisinbound_), PROTOBUF_FIELD_OFFSET(::types::PeerInfo, _impl_.connistrusted_), PROTOBUF_FIELD_OFFSET(::types::PeerInfo, _impl_.connisstatic_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadBodyV1, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadBodyV1, _impl_.transactions_), + PROTOBUF_FIELD_OFFSET(::types::ExecutionPayloadBodyV1, _impl_.withdrawals_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::types::H128)}, @@ -379,11 +409,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 40, -1, -1, sizeof(::types::H2048)}, { 48, -1, -1, sizeof(::types::VersionReply)}, { 57, -1, -1, sizeof(::types::ExecutionPayload)}, - { 77, -1, -1, sizeof(::types::Withdrawal)}, - { 87, -1, -1, sizeof(::types::ExecutionPayloadV2)}, - { 95, -1, -1, sizeof(::types::NodeInfoPorts)}, - { 103, -1, -1, sizeof(::types::NodeInfoReply)}, - { 116, -1, -1, sizeof(::types::PeerInfo)}, + { 80, -1, -1, sizeof(::types::Withdrawal)}, + { 90, -1, -1, sizeof(::types::BlobsBundleV1)}, + { 99, -1, -1, sizeof(::types::NodeInfoPorts)}, + { 107, -1, -1, sizeof(::types::NodeInfoReply)}, + { 120, -1, -1, sizeof(::types::PeerInfo)}, + { 136, -1, -1, sizeof(::types::ExecutionPayloadBodyV1)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -396,10 +427,11 @@ static const ::_pb::Message* const file_default_instances[] = { &::types::_VersionReply_default_instance_._instance, &::types::_ExecutionPayload_default_instance_._instance, &::types::_Withdrawal_default_instance_._instance, - &::types::_ExecutionPayloadV2_default_instance_._instance, + &::types::_BlobsBundleV1_default_instance_._instance, &::types::_NodeInfoPorts_default_instance_._instance, &::types::_NodeInfoReply_default_instance_._instance, &::types::_PeerInfo_default_instance_._instance, + &::types::_ExecutionPayloadBodyV1_default_instance_._instance, }; const char descriptor_table_protodef_types_2ftypes_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -413,47 +445,51 @@ const char descriptor_table_protodef_types_2ftypes_2eproto[] PROTOBUF_SECTION_VA "es.H512\022\027\n\002lo\030\002 \001(\0132\013.types.H512\";\n\005H204" "8\022\030\n\002hi\030\001 \001(\0132\014.types.H1024\022\030\n\002lo\030\002 \001(\0132" "\014.types.H1024\";\n\014VersionReply\022\r\n\005major\030\001" - " \001(\r\022\r\n\005minor\030\002 \001(\r\022\r\n\005patch\030\003 \001(\r\"\216\003\n\020E" - "xecutionPayload\022\037\n\nparentHash\030\001 \001(\0132\013.ty" - "pes.H256\022\035\n\010coinbase\030\002 \001(\0132\013.types.H160\022" - "\036\n\tstateRoot\030\003 \001(\0132\013.types.H256\022 \n\013recei" - "ptRoot\030\004 \001(\0132\013.types.H256\022\037\n\tlogsBloom\030\005" - " \001(\0132\014.types.H2048\022\037\n\nprevRandao\030\006 \001(\0132\013" - ".types.H256\022\023\n\013blockNumber\030\007 \001(\004\022\020\n\010gasL" - "imit\030\010 \001(\004\022\017\n\007gasUsed\030\t \001(\004\022\021\n\ttimestamp" - "\030\n \001(\004\022\021\n\textraData\030\013 \001(\014\022\"\n\rbaseFeePerG" - "as\030\014 \001(\0132\013.types.H256\022\036\n\tblockHash\030\r \001(\013" - "2\013.types.H256\022\024\n\014transactions\030\016 \003(\014\"n\n\nW" - "ithdrawal\022\r\n\005index\030\001 \001(\004\022\026\n\016validatorInd" - "ex\030\002 \001(\004\022\034\n\007address\030\003 \001(\0132\013.types.H160\022\033" - "\n\006amount\030\004 \001(\0132\013.types.H256\"f\n\022Execution" - "PayloadV2\022(\n\007payload\030\001 \001(\0132\027.types.Execu" - "tionPayload\022&\n\013withdrawals\030\002 \003(\0132\021.types" - ".Withdrawal\"4\n\rNodeInfoPorts\022\021\n\tdiscover" - "y\030\001 \001(\r\022\020\n\010listener\030\002 \001(\r\"\223\001\n\rNodeInfoRe" - "ply\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005enode\030\003" - " \001(\t\022\013\n\003enr\030\004 \001(\t\022#\n\005ports\030\005 \001(\0132\024.types" - ".NodeInfoPorts\022\024\n\014listenerAddr\030\006 \001(\t\022\021\n\t" - "protocols\030\007 \001(\014\"\301\001\n\010PeerInfo\022\n\n\002id\030\001 \001(\t" - "\022\014\n\004name\030\002 \001(\t\022\r\n\005enode\030\003 \001(\t\022\013\n\003enr\030\004 \001" - "(\t\022\014\n\004caps\030\005 \003(\t\022\025\n\rconnLocalAddr\030\006 \001(\t\022" - "\026\n\016connRemoteAddr\030\007 \001(\t\022\025\n\rconnIsInbound" - "\030\010 \001(\010\022\025\n\rconnIsTrusted\030\t \001(\010\022\024\n\014connIsS" - "tatic\030\n \001(\010:=\n\025service_major_version\022\034.g" - "oogle.protobuf.FileOptions\030\321\206\003 \001(\r:=\n\025se" - "rvice_minor_version\022\034.google.protobuf.Fi" - "leOptions\030\322\206\003 \001(\r:=\n\025service_patch_versi" - "on\022\034.google.protobuf.FileOptions\030\323\206\003 \001(\r" - "B\017Z\r./types;typesb\006proto3" + " \001(\r\022\r\n\005minor\030\002 \001(\r\022\r\n\005patch\030\003 \001(\r\"\353\003\n\020E" + "xecutionPayload\022\017\n\007version\030\001 \001(\r\022\037\n\npare" + "ntHash\030\002 \001(\0132\013.types.H256\022\035\n\010coinbase\030\003 " + "\001(\0132\013.types.H160\022\036\n\tstateRoot\030\004 \001(\0132\013.ty" + "pes.H256\022 \n\013receiptRoot\030\005 \001(\0132\013.types.H2" + "56\022\037\n\tlogsBloom\030\006 \001(\0132\014.types.H2048\022\037\n\np" + "revRandao\030\007 \001(\0132\013.types.H256\022\023\n\013blockNum" + "ber\030\010 \001(\004\022\020\n\010gasLimit\030\t \001(\004\022\017\n\007gasUsed\030\n" + " \001(\004\022\021\n\ttimestamp\030\013 \001(\004\022\021\n\textraData\030\014 \001" + "(\014\022\"\n\rbaseFeePerGas\030\r \001(\0132\013.types.H256\022\036" + "\n\tblockHash\030\016 \001(\0132\013.types.H256\022\024\n\014transa" + "ctions\030\017 \003(\014\022&\n\013withdrawals\030\020 \003(\0132\021.type" + "s.Withdrawal\022\"\n\rexcessDataGas\030\021 \001(\0132\013.ty" + "pes.H256\"a\n\nWithdrawal\022\r\n\005index\030\001 \001(\004\022\026\n" + "\016validatorIndex\030\002 \001(\004\022\034\n\007address\030\003 \001(\0132\013" + ".types.H160\022\016\n\006amount\030\004 \001(\004\"L\n\rBlobsBund" + "leV1\022\036\n\tblockHash\030\001 \001(\0132\013.types.H256\022\014\n\004" + "kzgs\030\002 \003(\014\022\r\n\005blobs\030\003 \003(\014\"4\n\rNodeInfoPor" + "ts\022\021\n\tdiscovery\030\001 \001(\r\022\020\n\010listener\030\002 \001(\r\"" + "\223\001\n\rNodeInfoReply\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 " + "\001(\t\022\r\n\005enode\030\003 \001(\t\022\013\n\003enr\030\004 \001(\t\022#\n\005ports" + "\030\005 \001(\0132\024.types.NodeInfoPorts\022\024\n\014listener" + "Addr\030\006 \001(\t\022\021\n\tprotocols\030\007 \001(\014\"\301\001\n\010PeerIn" + "fo\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005enode\030\003 " + "\001(\t\022\013\n\003enr\030\004 \001(\t\022\014\n\004caps\030\005 \003(\t\022\025\n\rconnLo" + "calAddr\030\006 \001(\t\022\026\n\016connRemoteAddr\030\007 \001(\t\022\025\n" + "\rconnIsInbound\030\010 \001(\010\022\025\n\rconnIsTrusted\030\t " + "\001(\010\022\024\n\014connIsStatic\030\n \001(\010\"V\n\026ExecutionPa" + "yloadBodyV1\022\024\n\014transactions\030\001 \003(\014\022&\n\013wit" + "hdrawals\030\002 \003(\0132\021.types.Withdrawal:=\n\025ser" + "vice_major_version\022\034.google.protobuf.Fil" + "eOptions\030\321\206\003 \001(\r:=\n\025service_minor_versio" + "n\022\034.google.protobuf.FileOptions\030\322\206\003 \001(\r:" + "=\n\025service_patch_version\022\034.google.protob" + "uf.FileOptions\030\323\206\003 \001(\rB\017Z\r./types;typesb" + "\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_types_2ftypes_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, }; static ::_pbi::once_flag descriptor_table_types_2ftypes_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_types_2ftypes_2eproto = { - false, false, 1665, descriptor_table_protodef_types_2ftypes_2eproto, + false, false, 1807, descriptor_table_protodef_types_2ftypes_2eproto, "types/types.proto", - &descriptor_table_types_2ftypes_2eproto_once, descriptor_table_types_2ftypes_2eproto_deps, 1, 13, + &descriptor_table_types_2ftypes_2eproto_once, descriptor_table_types_2ftypes_2eproto_deps, 1, 14, schemas, file_default_instances, TableStruct_types_2ftypes_2eproto::offsets, file_level_metadata_types_2ftypes_2eproto, file_level_enum_descriptors_types_2ftypes_2eproto, file_level_service_descriptors_types_2ftypes_2eproto, @@ -2104,6 +2140,7 @@ class ExecutionPayload::_Internal { static const ::types::H256& prevrandao(const ExecutionPayload* msg); static const ::types::H256& basefeepergas(const ExecutionPayload* msg); static const ::types::H256& blockhash(const ExecutionPayload* msg); + static const ::types::H256& excessdatagas(const ExecutionPayload* msg); }; const ::types::H256& @@ -2138,6 +2175,10 @@ const ::types::H256& ExecutionPayload::_Internal::blockhash(const ExecutionPayload* msg) { return *msg->_impl_.blockhash_; } +const ::types::H256& +ExecutionPayload::_Internal::excessdatagas(const ExecutionPayload* msg) { + return *msg->_impl_.excessdatagas_; +} ExecutionPayload::ExecutionPayload(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -2149,6 +2190,7 @@ ExecutionPayload::ExecutionPayload(const ExecutionPayload& from) ExecutionPayload* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.transactions_){from._impl_.transactions_} + , decltype(_impl_.withdrawals_){from._impl_.withdrawals_} , decltype(_impl_.extradata_){} , decltype(_impl_.parenthash_){nullptr} , decltype(_impl_.coinbase_){nullptr} @@ -2158,10 +2200,12 @@ ExecutionPayload::ExecutionPayload(const ExecutionPayload& from) , decltype(_impl_.prevrandao_){nullptr} , decltype(_impl_.basefeepergas_){nullptr} , decltype(_impl_.blockhash_){nullptr} + , decltype(_impl_.excessdatagas_){nullptr} , decltype(_impl_.blocknumber_){} , decltype(_impl_.gaslimit_){} , decltype(_impl_.gasused_){} , decltype(_impl_.timestamp_){} + , decltype(_impl_.version_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -2197,9 +2241,12 @@ ExecutionPayload::ExecutionPayload(const ExecutionPayload& from) if (from._internal_has_blockhash()) { _this->_impl_.blockhash_ = new ::types::H256(*from._impl_.blockhash_); } + if (from._internal_has_excessdatagas()) { + _this->_impl_.excessdatagas_ = new ::types::H256(*from._impl_.excessdatagas_); + } ::memcpy(&_impl_.blocknumber_, &from._impl_.blocknumber_, - static_cast(reinterpret_cast(&_impl_.timestamp_) - - reinterpret_cast(&_impl_.blocknumber_)) + sizeof(_impl_.timestamp_)); + static_cast(reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.blocknumber_)) + sizeof(_impl_.version_)); // @@protoc_insertion_point(copy_constructor:types.ExecutionPayload) } @@ -2209,6 +2256,7 @@ inline void ExecutionPayload::SharedCtor( (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.transactions_){arena} + , decltype(_impl_.withdrawals_){arena} , decltype(_impl_.extradata_){} , decltype(_impl_.parenthash_){nullptr} , decltype(_impl_.coinbase_){nullptr} @@ -2218,10 +2266,12 @@ inline void ExecutionPayload::SharedCtor( , decltype(_impl_.prevrandao_){nullptr} , decltype(_impl_.basefeepergas_){nullptr} , decltype(_impl_.blockhash_){nullptr} + , decltype(_impl_.excessdatagas_){nullptr} , decltype(_impl_.blocknumber_){uint64_t{0u}} , decltype(_impl_.gaslimit_){uint64_t{0u}} , decltype(_impl_.gasused_){uint64_t{0u}} , decltype(_impl_.timestamp_){uint64_t{0u}} + , decltype(_impl_.version_){0u} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.extradata_.InitDefault(); @@ -2242,6 +2292,7 @@ ExecutionPayload::~ExecutionPayload() { inline void ExecutionPayload::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.transactions_.~RepeatedPtrField(); + _impl_.withdrawals_.~RepeatedPtrField(); _impl_.extradata_.Destroy(); if (this != internal_default_instance()) delete _impl_.parenthash_; if (this != internal_default_instance()) delete _impl_.coinbase_; @@ -2251,6 +2302,7 @@ inline void ExecutionPayload::SharedDtor() { if (this != internal_default_instance()) delete _impl_.prevrandao_; if (this != internal_default_instance()) delete _impl_.basefeepergas_; if (this != internal_default_instance()) delete _impl_.blockhash_; + if (this != internal_default_instance()) delete _impl_.excessdatagas_; } void ExecutionPayload::SetCachedSize(int size) const { @@ -2264,6 +2316,7 @@ void ExecutionPayload::Clear() { (void) cached_has_bits; _impl_.transactions_.Clear(); + _impl_.withdrawals_.Clear(); _impl_.extradata_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && _impl_.parenthash_ != nullptr) { delete _impl_.parenthash_; @@ -2297,9 +2350,13 @@ void ExecutionPayload::Clear() { delete _impl_.blockhash_; } _impl_.blockhash_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.excessdatagas_ != nullptr) { + delete _impl_.excessdatagas_; + } + _impl_.excessdatagas_ = nullptr; ::memset(&_impl_.blocknumber_, 0, static_cast( - reinterpret_cast(&_impl_.timestamp_) - - reinterpret_cast(&_impl_.blocknumber_)) + sizeof(_impl_.timestamp_)); + reinterpret_cast(&_impl_.version_) - + reinterpret_cast(&_impl_.blocknumber_)) + sizeof(_impl_.version_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2309,114 +2366,122 @@ const char* ExecutionPayload::_InternalParse(const char* ptr, ::_pbi::ParseConte uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .types.H256 parentHash = 1; + // uint32 version = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_parenthash(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H160 coinbase = 2; + // .types.H256 parentHash = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_coinbase(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_parenthash(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 stateRoot = 3; + // .types.H160 coinbase = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_stateroot(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_coinbase(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 receiptRoot = 4; + // .types.H256 stateRoot = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_receiptroot(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_stateroot(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H2048 logsBloom = 5; + // .types.H256 receiptRoot = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_logsbloom(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_receiptroot(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 prevRandao = 6; + // .types.H2048 logsBloom = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_logsbloom(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 blockNumber = 7; + // .types.H256 prevRandao = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _impl_.blocknumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_prevrandao(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 gasLimit = 8; + // uint64 blockNumber = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _impl_.gaslimit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.blocknumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 gasUsed = 9; + // uint64 gasLimit = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _impl_.gasused_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.gaslimit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // uint64 timestamp = 10; + // uint64 gasUsed = 10; case 10: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.gasused_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // bytes extraData = 11; + // uint64 timestamp = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - auto str = _internal_mutable_extradata(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { + _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 baseFeePerGas = 12; + // bytes extraData = 12; case 12: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr = ctx->ParseMessage(_internal_mutable_basefeepergas(), ptr); + auto str = _internal_mutable_extradata(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; - // .types.H256 blockHash = 13; + // .types.H256 baseFeePerGas = 13; case 13: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ctx->ParseMessage(_internal_mutable_blockhash(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_basefeepergas(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // repeated bytes transactions = 14; + // .types.H256 blockHash = 14; case 14: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_blockhash(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated bytes transactions = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { ptr -= 1; do { ptr += 1; @@ -2424,7 +2489,28 @@ const char* ExecutionPayload::_InternalParse(const char* ptr, ::_pbi::ParseConte ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<114>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .types.Withdrawal withdrawals = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<130>(ptr)); + } else + goto handle_unusual; + continue; + // .types.H256 excessDataGas = 17; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { + ptr = ctx->ParseMessage(_internal_mutable_excessdatagas(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -2457,96 +2543,117 @@ uint8_t* ExecutionPayload::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .types.H256 parentHash = 1; + // uint32 version = 1; + if (this->_internal_version() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_version(), target); + } + + // .types.H256 parentHash = 2; if (this->_internal_has_parenthash()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::parenthash(this), + InternalWriteMessage(2, _Internal::parenthash(this), _Internal::parenthash(this).GetCachedSize(), target, stream); } - // .types.H160 coinbase = 2; + // .types.H160 coinbase = 3; if (this->_internal_has_coinbase()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::coinbase(this), + InternalWriteMessage(3, _Internal::coinbase(this), _Internal::coinbase(this).GetCachedSize(), target, stream); } - // .types.H256 stateRoot = 3; + // .types.H256 stateRoot = 4; if (this->_internal_has_stateroot()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::stateroot(this), + InternalWriteMessage(4, _Internal::stateroot(this), _Internal::stateroot(this).GetCachedSize(), target, stream); } - // .types.H256 receiptRoot = 4; + // .types.H256 receiptRoot = 5; if (this->_internal_has_receiptroot()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::receiptroot(this), + InternalWriteMessage(5, _Internal::receiptroot(this), _Internal::receiptroot(this).GetCachedSize(), target, stream); } - // .types.H2048 logsBloom = 5; + // .types.H2048 logsBloom = 6; if (this->_internal_has_logsbloom()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::logsbloom(this), + InternalWriteMessage(6, _Internal::logsbloom(this), _Internal::logsbloom(this).GetCachedSize(), target, stream); } - // .types.H256 prevRandao = 6; + // .types.H256 prevRandao = 7; if (this->_internal_has_prevrandao()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::prevrandao(this), + InternalWriteMessage(7, _Internal::prevrandao(this), _Internal::prevrandao(this).GetCachedSize(), target, stream); } - // uint64 blockNumber = 7; + // uint64 blockNumber = 8; if (this->_internal_blocknumber() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_blocknumber(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(8, this->_internal_blocknumber(), target); } - // uint64 gasLimit = 8; + // uint64 gasLimit = 9; if (this->_internal_gaslimit() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(8, this->_internal_gaslimit(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(9, this->_internal_gaslimit(), target); } - // uint64 gasUsed = 9; + // uint64 gasUsed = 10; if (this->_internal_gasused() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(9, this->_internal_gasused(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(10, this->_internal_gasused(), target); } - // uint64 timestamp = 10; + // uint64 timestamp = 11; if (this->_internal_timestamp() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(10, this->_internal_timestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(11, this->_internal_timestamp(), target); } - // bytes extraData = 11; + // bytes extraData = 12; if (!this->_internal_extradata().empty()) { target = stream->WriteBytesMaybeAliased( - 11, this->_internal_extradata(), target); + 12, this->_internal_extradata(), target); } - // .types.H256 baseFeePerGas = 12; + // .types.H256 baseFeePerGas = 13; if (this->_internal_has_basefeepergas()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(12, _Internal::basefeepergas(this), + InternalWriteMessage(13, _Internal::basefeepergas(this), _Internal::basefeepergas(this).GetCachedSize(), target, stream); } - // .types.H256 blockHash = 13; + // .types.H256 blockHash = 14; if (this->_internal_has_blockhash()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(13, _Internal::blockhash(this), + InternalWriteMessage(14, _Internal::blockhash(this), _Internal::blockhash(this).GetCachedSize(), target, stream); } - // repeated bytes transactions = 14; + // repeated bytes transactions = 15; for (int i = 0, n = this->_internal_transactions_size(); i < n; i++) { const auto& s = this->_internal_transactions(i); - target = stream->WriteBytes(14, s, target); + target = stream->WriteBytes(15, s, target); + } + + // repeated .types.Withdrawal withdrawals = 16; + for (unsigned i = 0, + n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { + const auto& repfield = this->_internal_withdrawals(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(16, repfield, repfield.GetCachedSize(), target, stream); + } + + // .types.H256 excessDataGas = 17; + if (this->_internal_has_excessdatagas()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(17, _Internal::excessdatagas(this), + _Internal::excessdatagas(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2565,7 +2672,7 @@ size_t ExecutionPayload::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated bytes transactions = 14; + // repeated bytes transactions = 15; total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.transactions_.size()); for (int i = 0, n = _impl_.transactions_.size(); i < n; i++) { @@ -2573,89 +2680,108 @@ size_t ExecutionPayload::ByteSizeLong() const { _impl_.transactions_.Get(i)); } - // bytes extraData = 11; + // repeated .types.Withdrawal withdrawals = 16; + total_size += 2UL * this->_internal_withdrawals_size(); + for (const auto& msg : this->_impl_.withdrawals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // bytes extraData = 12; if (!this->_internal_extradata().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_extradata()); } - // .types.H256 parentHash = 1; + // .types.H256 parentHash = 2; if (this->_internal_has_parenthash()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.parenthash_); } - // .types.H160 coinbase = 2; + // .types.H160 coinbase = 3; if (this->_internal_has_coinbase()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.coinbase_); } - // .types.H256 stateRoot = 3; + // .types.H256 stateRoot = 4; if (this->_internal_has_stateroot()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.stateroot_); } - // .types.H256 receiptRoot = 4; + // .types.H256 receiptRoot = 5; if (this->_internal_has_receiptroot()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.receiptroot_); } - // .types.H2048 logsBloom = 5; + // .types.H2048 logsBloom = 6; if (this->_internal_has_logsbloom()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.logsbloom_); } - // .types.H256 prevRandao = 6; + // .types.H256 prevRandao = 7; if (this->_internal_has_prevrandao()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.prevrandao_); } - // .types.H256 baseFeePerGas = 12; + // .types.H256 baseFeePerGas = 13; if (this->_internal_has_basefeepergas()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.basefeepergas_); } - // .types.H256 blockHash = 13; + // .types.H256 blockHash = 14; if (this->_internal_has_blockhash()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.blockhash_); } - // uint64 blockNumber = 7; + // .types.H256 excessDataGas = 17; + if (this->_internal_has_excessdatagas()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.excessdatagas_); + } + + // uint64 blockNumber = 8; if (this->_internal_blocknumber() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_blocknumber()); } - // uint64 gasLimit = 8; + // uint64 gasLimit = 9; if (this->_internal_gaslimit() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_gaslimit()); } - // uint64 gasUsed = 9; + // uint64 gasUsed = 10; if (this->_internal_gasused() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_gasused()); } - // uint64 timestamp = 10; + // uint64 timestamp = 11; if (this->_internal_timestamp() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp()); } + // uint32 version = 1; + if (this->_internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_version()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -2675,6 +2801,7 @@ void ExecutionPayload::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const (void) cached_has_bits; _this->_impl_.transactions_.MergeFrom(from._impl_.transactions_); + _this->_impl_.withdrawals_.MergeFrom(from._impl_.withdrawals_); if (!from._internal_extradata().empty()) { _this->_internal_set_extradata(from._internal_extradata()); } @@ -2710,6 +2837,10 @@ void ExecutionPayload::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_blockhash()->::types::H256::MergeFrom( from._internal_blockhash()); } + if (from._internal_has_excessdatagas()) { + _this->_internal_mutable_excessdatagas()->::types::H256::MergeFrom( + from._internal_excessdatagas()); + } if (from._internal_blocknumber() != 0) { _this->_internal_set_blocknumber(from._internal_blocknumber()); } @@ -2722,6 +2853,9 @@ void ExecutionPayload::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const if (from._internal_timestamp() != 0) { _this->_internal_set_timestamp(from._internal_timestamp()); } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -2742,13 +2876,14 @@ void ExecutionPayload::InternalSwap(ExecutionPayload* other) { auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.transactions_.InternalSwap(&other->_impl_.transactions_); + _impl_.withdrawals_.InternalSwap(&other->_impl_.withdrawals_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.extradata_, lhs_arena, &other->_impl_.extradata_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ExecutionPayload, _impl_.timestamp_) - + sizeof(ExecutionPayload::_impl_.timestamp_) + PROTOBUF_FIELD_OFFSET(ExecutionPayload, _impl_.version_) + + sizeof(ExecutionPayload::_impl_.version_) - PROTOBUF_FIELD_OFFSET(ExecutionPayload, _impl_.parenthash_)>( reinterpret_cast(&_impl_.parenthash_), reinterpret_cast(&other->_impl_.parenthash_)); @@ -2765,17 +2900,12 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ExecutionPayload::GetMetadata() const { class Withdrawal::_Internal { public: static const ::types::H160& address(const Withdrawal* msg); - static const ::types::H256& amount(const Withdrawal* msg); }; const ::types::H160& Withdrawal::_Internal::address(const Withdrawal* msg) { return *msg->_impl_.address_; } -const ::types::H256& -Withdrawal::_Internal::amount(const Withdrawal* msg) { - return *msg->_impl_.amount_; -} Withdrawal::Withdrawal(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -2787,21 +2917,18 @@ Withdrawal::Withdrawal(const Withdrawal& from) Withdrawal* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.address_){nullptr} - , decltype(_impl_.amount_){nullptr} , decltype(_impl_.index_){} , decltype(_impl_.validatorindex_){} + , decltype(_impl_.amount_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_address()) { _this->_impl_.address_ = new ::types::H160(*from._impl_.address_); } - if (from._internal_has_amount()) { - _this->_impl_.amount_ = new ::types::H256(*from._impl_.amount_); - } ::memcpy(&_impl_.index_, &from._impl_.index_, - static_cast(reinterpret_cast(&_impl_.validatorindex_) - - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.validatorindex_)); + static_cast(reinterpret_cast(&_impl_.amount_) - + reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.amount_)); // @@protoc_insertion_point(copy_constructor:types.Withdrawal) } @@ -2811,9 +2938,9 @@ inline void Withdrawal::SharedCtor( (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.address_){nullptr} - , decltype(_impl_.amount_){nullptr} , decltype(_impl_.index_){uint64_t{0u}} , decltype(_impl_.validatorindex_){uint64_t{0u}} + , decltype(_impl_.amount_){uint64_t{0u}} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -2830,7 +2957,6 @@ Withdrawal::~Withdrawal() { inline void Withdrawal::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.address_; - if (this != internal_default_instance()) delete _impl_.amount_; } void Withdrawal::SetCachedSize(int size) const { @@ -2847,13 +2973,9 @@ void Withdrawal::Clear() { delete _impl_.address_; } _impl_.address_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.amount_ != nullptr) { - delete _impl_.amount_; - } - _impl_.amount_ = nullptr; ::memset(&_impl_.index_, 0, static_cast( - reinterpret_cast(&_impl_.validatorindex_) - - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.validatorindex_)); + reinterpret_cast(&_impl_.amount_) - + reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.amount_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -2887,10 +3009,10 @@ const char* Withdrawal::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct } else goto handle_unusual; continue; - // .types.H256 amount = 4; + // uint64 amount = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_amount(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.amount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -2943,11 +3065,10 @@ uint8_t* Withdrawal::_InternalSerialize( _Internal::address(this).GetCachedSize(), target, stream); } - // .types.H256 amount = 4; - if (this->_internal_has_amount()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::amount(this), - _Internal::amount(this).GetCachedSize(), target, stream); + // uint64 amount = 4; + if (this->_internal_amount() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_amount(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -2973,13 +3094,6 @@ size_t Withdrawal::ByteSizeLong() const { *_impl_.address_); } - // .types.H256 amount = 4; - if (this->_internal_has_amount()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.amount_); - } - // uint64 index = 1; if (this->_internal_index() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_index()); @@ -2990,6 +3104,11 @@ size_t Withdrawal::ByteSizeLong() const { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_validatorindex()); } + // uint64 amount = 4; + if (this->_internal_amount() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_amount()); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -3012,16 +3131,15 @@ void Withdrawal::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO _this->_internal_mutable_address()->::types::H160::MergeFrom( from._internal_address()); } - if (from._internal_has_amount()) { - _this->_internal_mutable_amount()->::types::H256::MergeFrom( - from._internal_amount()); - } if (from._internal_index() != 0) { _this->_internal_set_index(from._internal_index()); } if (from._internal_validatorindex() != 0) { _this->_internal_set_validatorindex(from._internal_validatorindex()); } + if (from._internal_amount() != 0) { + _this->_internal_set_amount(from._internal_amount()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -3040,8 +3158,8 @@ void Withdrawal::InternalSwap(Withdrawal* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Withdrawal, _impl_.validatorindex_) - + sizeof(Withdrawal::_impl_.validatorindex_) + PROTOBUF_FIELD_OFFSET(Withdrawal, _impl_.amount_) + + sizeof(Withdrawal::_impl_.amount_) - PROTOBUF_FIELD_OFFSET(Withdrawal, _impl_.address_)>( reinterpret_cast(&_impl_.address_), reinterpret_cast(&other->_impl_.address_)); @@ -3055,49 +3173,51 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Withdrawal::GetMetadata() const { // =================================================================== -class ExecutionPayloadV2::_Internal { +class BlobsBundleV1::_Internal { public: - static const ::types::ExecutionPayload& payload(const ExecutionPayloadV2* msg); + static const ::types::H256& blockhash(const BlobsBundleV1* msg); }; -const ::types::ExecutionPayload& -ExecutionPayloadV2::_Internal::payload(const ExecutionPayloadV2* msg) { - return *msg->_impl_.payload_; +const ::types::H256& +BlobsBundleV1::_Internal::blockhash(const BlobsBundleV1* msg) { + return *msg->_impl_.blockhash_; } -ExecutionPayloadV2::ExecutionPayloadV2(::PROTOBUF_NAMESPACE_ID::Arena* arena, +BlobsBundleV1::BlobsBundleV1(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:types.ExecutionPayloadV2) + // @@protoc_insertion_point(arena_constructor:types.BlobsBundleV1) } -ExecutionPayloadV2::ExecutionPayloadV2(const ExecutionPayloadV2& from) +BlobsBundleV1::BlobsBundleV1(const BlobsBundleV1& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ExecutionPayloadV2* const _this = this; (void)_this; + BlobsBundleV1* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.withdrawals_){from._impl_.withdrawals_} - , decltype(_impl_.payload_){nullptr} + decltype(_impl_.kzgs_){from._impl_.kzgs_} + , decltype(_impl_.blobs_){from._impl_.blobs_} + , decltype(_impl_.blockhash_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_payload()) { - _this->_impl_.payload_ = new ::types::ExecutionPayload(*from._impl_.payload_); + if (from._internal_has_blockhash()) { + _this->_impl_.blockhash_ = new ::types::H256(*from._impl_.blockhash_); } - // @@protoc_insertion_point(copy_constructor:types.ExecutionPayloadV2) + // @@protoc_insertion_point(copy_constructor:types.BlobsBundleV1) } -inline void ExecutionPayloadV2::SharedCtor( +inline void BlobsBundleV1::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.withdrawals_){arena} - , decltype(_impl_.payload_){nullptr} + decltype(_impl_.kzgs_){arena} + , decltype(_impl_.blobs_){arena} + , decltype(_impl_.blockhash_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } -ExecutionPayloadV2::~ExecutionPayloadV2() { - // @@protoc_insertion_point(destructor:types.ExecutionPayloadV2) +BlobsBundleV1::~BlobsBundleV1() { + // @@protoc_insertion_point(destructor:types.BlobsBundleV1) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -3105,57 +3225,74 @@ ExecutionPayloadV2::~ExecutionPayloadV2() { SharedDtor(); } -inline void ExecutionPayloadV2::SharedDtor() { +inline void BlobsBundleV1::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.withdrawals_.~RepeatedPtrField(); - if (this != internal_default_instance()) delete _impl_.payload_; + _impl_.kzgs_.~RepeatedPtrField(); + _impl_.blobs_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.blockhash_; } -void ExecutionPayloadV2::SetCachedSize(int size) const { +void BlobsBundleV1::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ExecutionPayloadV2::Clear() { -// @@protoc_insertion_point(message_clear_start:types.ExecutionPayloadV2) +void BlobsBundleV1::Clear() { +// @@protoc_insertion_point(message_clear_start:types.BlobsBundleV1) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.withdrawals_.Clear(); - if (GetArenaForAllocation() == nullptr && _impl_.payload_ != nullptr) { - delete _impl_.payload_; + _impl_.kzgs_.Clear(); + _impl_.blobs_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.blockhash_ != nullptr) { + delete _impl_.blockhash_; } - _impl_.payload_ = nullptr; + _impl_.blockhash_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ExecutionPayloadV2::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* BlobsBundleV1::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // .types.ExecutionPayload payload = 1; + // .types.H256 blockHash = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_payload(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_blockhash(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // repeated .types.Withdrawal withdrawals = 2; + // repeated bytes kzgs = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + auto str = _internal_add_kzgs(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; + // repeated bytes blobs = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_blobs(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -3179,102 +3316,117 @@ const char* ExecutionPayloadV2::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* ExecutionPayloadV2::_InternalSerialize( +uint8_t* BlobsBundleV1::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:types.ExecutionPayloadV2) + // @@protoc_insertion_point(serialize_to_array_start:types.BlobsBundleV1) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .types.ExecutionPayload payload = 1; - if (this->_internal_has_payload()) { + // .types.H256 blockHash = 1; + if (this->_internal_has_blockhash()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::payload(this), - _Internal::payload(this).GetCachedSize(), target, stream); + InternalWriteMessage(1, _Internal::blockhash(this), + _Internal::blockhash(this).GetCachedSize(), target, stream); } - // repeated .types.Withdrawal withdrawals = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { - const auto& repfield = this->_internal_withdrawals(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + // repeated bytes kzgs = 2; + for (int i = 0, n = this->_internal_kzgs_size(); i < n; i++) { + const auto& s = this->_internal_kzgs(i); + target = stream->WriteBytes(2, s, target); + } + + // repeated bytes blobs = 3; + for (int i = 0, n = this->_internal_blobs_size(); i < n; i++) { + const auto& s = this->_internal_blobs(i); + target = stream->WriteBytes(3, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:types.ExecutionPayloadV2) + // @@protoc_insertion_point(serialize_to_array_end:types.BlobsBundleV1) return target; } -size_t ExecutionPayloadV2::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:types.ExecutionPayloadV2) +size_t BlobsBundleV1::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:types.BlobsBundleV1) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .types.Withdrawal withdrawals = 2; - total_size += 1UL * this->_internal_withdrawals_size(); - for (const auto& msg : this->_impl_.withdrawals_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // repeated bytes kzgs = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.kzgs_.size()); + for (int i = 0, n = _impl_.kzgs_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + _impl_.kzgs_.Get(i)); } - // .types.ExecutionPayload payload = 1; - if (this->_internal_has_payload()) { + // repeated bytes blobs = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.blobs_.size()); + for (int i = 0, n = _impl_.blobs_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + _impl_.blobs_.Get(i)); + } + + // .types.H256 blockHash = 1; + if (this->_internal_has_blockhash()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.payload_); + *_impl_.blockhash_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExecutionPayloadV2::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BlobsBundleV1::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ExecutionPayloadV2::MergeImpl + BlobsBundleV1::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExecutionPayloadV2::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BlobsBundleV1::GetClassData() const { return &_class_data_; } -void ExecutionPayloadV2::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:types.ExecutionPayloadV2) +void BlobsBundleV1::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:types.BlobsBundleV1) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.withdrawals_.MergeFrom(from._impl_.withdrawals_); - if (from._internal_has_payload()) { - _this->_internal_mutable_payload()->::types::ExecutionPayload::MergeFrom( - from._internal_payload()); + _this->_impl_.kzgs_.MergeFrom(from._impl_.kzgs_); + _this->_impl_.blobs_.MergeFrom(from._impl_.blobs_); + if (from._internal_has_blockhash()) { + _this->_internal_mutable_blockhash()->::types::H256::MergeFrom( + from._internal_blockhash()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ExecutionPayloadV2::CopyFrom(const ExecutionPayloadV2& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:types.ExecutionPayloadV2) +void BlobsBundleV1::CopyFrom(const BlobsBundleV1& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:types.BlobsBundleV1) if (&from == this) return; Clear(); MergeFrom(from); } -bool ExecutionPayloadV2::IsInitialized() const { +bool BlobsBundleV1::IsInitialized() const { return true; } -void ExecutionPayloadV2::InternalSwap(ExecutionPayloadV2* other) { +void BlobsBundleV1::InternalSwap(BlobsBundleV1* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.withdrawals_.InternalSwap(&other->_impl_.withdrawals_); - swap(_impl_.payload_, other->_impl_.payload_); + _impl_.kzgs_.InternalSwap(&other->_impl_.kzgs_); + _impl_.blobs_.InternalSwap(&other->_impl_.blobs_); + swap(_impl_.blockhash_, other->_impl_.blockhash_); } -::PROTOBUF_NAMESPACE_ID::Metadata ExecutionPayloadV2::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata BlobsBundleV1::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_types_2ftypes_2eproto_getter, &descriptor_table_types_2ftypes_2eproto_once, file_level_metadata_types_2ftypes_2eproto[9]); @@ -4556,6 +4708,225 @@ ::PROTOBUF_NAMESPACE_ID::Metadata PeerInfo::GetMetadata() const { &descriptor_table_types_2ftypes_2eproto_getter, &descriptor_table_types_2ftypes_2eproto_once, file_level_metadata_types_2ftypes_2eproto[12]); } + +// =================================================================== + +class ExecutionPayloadBodyV1::_Internal { + public: +}; + +ExecutionPayloadBodyV1::ExecutionPayloadBodyV1(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:types.ExecutionPayloadBodyV1) +} +ExecutionPayloadBodyV1::ExecutionPayloadBodyV1(const ExecutionPayloadBodyV1& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ExecutionPayloadBodyV1* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.transactions_){from._impl_.transactions_} + , decltype(_impl_.withdrawals_){from._impl_.withdrawals_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:types.ExecutionPayloadBodyV1) +} + +inline void ExecutionPayloadBodyV1::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.transactions_){arena} + , decltype(_impl_.withdrawals_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ExecutionPayloadBodyV1::~ExecutionPayloadBodyV1() { + // @@protoc_insertion_point(destructor:types.ExecutionPayloadBodyV1) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ExecutionPayloadBodyV1::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.transactions_.~RepeatedPtrField(); + _impl_.withdrawals_.~RepeatedPtrField(); +} + +void ExecutionPayloadBodyV1::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ExecutionPayloadBodyV1::Clear() { +// @@protoc_insertion_point(message_clear_start:types.ExecutionPayloadBodyV1) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.transactions_.Clear(); + _impl_.withdrawals_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ExecutionPayloadBodyV1::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated bytes transactions = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_transactions(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .types.Withdrawal withdrawals = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_withdrawals(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ExecutionPayloadBodyV1::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:types.ExecutionPayloadBodyV1) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated bytes transactions = 1; + for (int i = 0, n = this->_internal_transactions_size(); i < n; i++) { + const auto& s = this->_internal_transactions(i); + target = stream->WriteBytes(1, s, target); + } + + // repeated .types.Withdrawal withdrawals = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_withdrawals_size()); i < n; i++) { + const auto& repfield = this->_internal_withdrawals(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:types.ExecutionPayloadBodyV1) + return target; +} + +size_t ExecutionPayloadBodyV1::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:types.ExecutionPayloadBodyV1) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated bytes transactions = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.transactions_.size()); + for (int i = 0, n = _impl_.transactions_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + _impl_.transactions_.Get(i)); + } + + // repeated .types.Withdrawal withdrawals = 2; + total_size += 1UL * this->_internal_withdrawals_size(); + for (const auto& msg : this->_impl_.withdrawals_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExecutionPayloadBodyV1::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ExecutionPayloadBodyV1::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExecutionPayloadBodyV1::GetClassData() const { return &_class_data_; } + + +void ExecutionPayloadBodyV1::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:types.ExecutionPayloadBodyV1) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.transactions_.MergeFrom(from._impl_.transactions_); + _this->_impl_.withdrawals_.MergeFrom(from._impl_.withdrawals_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ExecutionPayloadBodyV1::CopyFrom(const ExecutionPayloadBodyV1& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:types.ExecutionPayloadBodyV1) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionPayloadBodyV1::IsInitialized() const { + return true; +} + +void ExecutionPayloadBodyV1::InternalSwap(ExecutionPayloadBodyV1* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.transactions_.InternalSwap(&other->_impl_.transactions_); + _impl_.withdrawals_.InternalSwap(&other->_impl_.withdrawals_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ExecutionPayloadBodyV1::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_types_2ftypes_2eproto_getter, &descriptor_table_types_2ftypes_2eproto_once, + file_level_metadata_types_2ftypes_2eproto[13]); +} PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions, ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< uint32_t >, 13, false> service_major_version(kServiceMajorVersionFieldNumber, 0u, nullptr); @@ -4605,9 +4976,9 @@ template<> PROTOBUF_NOINLINE ::types::Withdrawal* Arena::CreateMaybeMessage< ::types::Withdrawal >(Arena* arena) { return Arena::CreateMessageInternal< ::types::Withdrawal >(arena); } -template<> PROTOBUF_NOINLINE ::types::ExecutionPayloadV2* -Arena::CreateMaybeMessage< ::types::ExecutionPayloadV2 >(Arena* arena) { - return Arena::CreateMessageInternal< ::types::ExecutionPayloadV2 >(arena); +template<> PROTOBUF_NOINLINE ::types::BlobsBundleV1* +Arena::CreateMaybeMessage< ::types::BlobsBundleV1 >(Arena* arena) { + return Arena::CreateMessageInternal< ::types::BlobsBundleV1 >(arena); } template<> PROTOBUF_NOINLINE ::types::NodeInfoPorts* Arena::CreateMaybeMessage< ::types::NodeInfoPorts >(Arena* arena) { @@ -4621,6 +4992,10 @@ template<> PROTOBUF_NOINLINE ::types::PeerInfo* Arena::CreateMaybeMessage< ::types::PeerInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::types::PeerInfo >(arena); } +template<> PROTOBUF_NOINLINE ::types::ExecutionPayloadBodyV1* +Arena::CreateMaybeMessage< ::types::ExecutionPayloadBodyV1 >(Arena* arena) { + return Arena::CreateMessageInternal< ::types::ExecutionPayloadBodyV1 >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/silkworm/interfaces/3.21.4/types/types.pb.h b/silkworm/interfaces/3.21.4/types/types.pb.h index 6e714237f3..c110dd8f6d 100644 --- a/silkworm/interfaces/3.21.4/types/types.pb.h +++ b/silkworm/interfaces/3.21.4/types/types.pb.h @@ -46,12 +46,15 @@ struct TableStruct_types_2ftypes_2eproto { }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_types_2ftypes_2eproto; namespace types { +class BlobsBundleV1; +struct BlobsBundleV1DefaultTypeInternal; +extern BlobsBundleV1DefaultTypeInternal _BlobsBundleV1_default_instance_; class ExecutionPayload; struct ExecutionPayloadDefaultTypeInternal; extern ExecutionPayloadDefaultTypeInternal _ExecutionPayload_default_instance_; -class ExecutionPayloadV2; -struct ExecutionPayloadV2DefaultTypeInternal; -extern ExecutionPayloadV2DefaultTypeInternal _ExecutionPayloadV2_default_instance_; +class ExecutionPayloadBodyV1; +struct ExecutionPayloadBodyV1DefaultTypeInternal; +extern ExecutionPayloadBodyV1DefaultTypeInternal _ExecutionPayloadBodyV1_default_instance_; class H1024; struct H1024DefaultTypeInternal; extern H1024DefaultTypeInternal _H1024_default_instance_; @@ -87,8 +90,9 @@ struct WithdrawalDefaultTypeInternal; extern WithdrawalDefaultTypeInternal _Withdrawal_default_instance_; } // namespace types PROTOBUF_NAMESPACE_OPEN +template<> ::types::BlobsBundleV1* Arena::CreateMaybeMessage<::types::BlobsBundleV1>(Arena*); template<> ::types::ExecutionPayload* Arena::CreateMaybeMessage<::types::ExecutionPayload>(Arena*); -template<> ::types::ExecutionPayloadV2* Arena::CreateMaybeMessage<::types::ExecutionPayloadV2>(Arena*); +template<> ::types::ExecutionPayloadBodyV1* Arena::CreateMaybeMessage<::types::ExecutionPayloadBodyV1>(Arena*); template<> ::types::H1024* Arena::CreateMaybeMessage<::types::H1024>(Arena*); template<> ::types::H128* Arena::CreateMaybeMessage<::types::H128>(Arena*); template<> ::types::H160* Arena::CreateMaybeMessage<::types::H160>(Arena*); @@ -1431,22 +1435,25 @@ class ExecutionPayload final : // accessors ------------------------------------------------------- enum : int { - kTransactionsFieldNumber = 14, - kExtraDataFieldNumber = 11, - kParentHashFieldNumber = 1, - kCoinbaseFieldNumber = 2, - kStateRootFieldNumber = 3, - kReceiptRootFieldNumber = 4, - kLogsBloomFieldNumber = 5, - kPrevRandaoFieldNumber = 6, - kBaseFeePerGasFieldNumber = 12, - kBlockHashFieldNumber = 13, - kBlockNumberFieldNumber = 7, - kGasLimitFieldNumber = 8, - kGasUsedFieldNumber = 9, - kTimestampFieldNumber = 10, + kTransactionsFieldNumber = 15, + kWithdrawalsFieldNumber = 16, + kExtraDataFieldNumber = 12, + kParentHashFieldNumber = 2, + kCoinbaseFieldNumber = 3, + kStateRootFieldNumber = 4, + kReceiptRootFieldNumber = 5, + kLogsBloomFieldNumber = 6, + kPrevRandaoFieldNumber = 7, + kBaseFeePerGasFieldNumber = 13, + kBlockHashFieldNumber = 14, + kExcessDataGasFieldNumber = 17, + kBlockNumberFieldNumber = 8, + kGasLimitFieldNumber = 9, + kGasUsedFieldNumber = 10, + kTimestampFieldNumber = 11, + kVersionFieldNumber = 1, }; - // repeated bytes transactions = 14; + // repeated bytes transactions = 15; int transactions_size() const; private: int _internal_transactions_size() const; @@ -1470,7 +1477,25 @@ class ExecutionPayload final : std::string* _internal_add_transactions(); public: - // bytes extraData = 11; + // repeated .types.Withdrawal withdrawals = 16; + int withdrawals_size() const; + private: + int _internal_withdrawals_size() const; + public: + void clear_withdrawals(); + ::types::Withdrawal* mutable_withdrawals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* + mutable_withdrawals(); + private: + const ::types::Withdrawal& _internal_withdrawals(int index) const; + ::types::Withdrawal* _internal_add_withdrawals(); + public: + const ::types::Withdrawal& withdrawals(int index) const; + ::types::Withdrawal* add_withdrawals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& + withdrawals() const; + + // bytes extraData = 12; void clear_extradata(); const std::string& extradata() const; template @@ -1484,7 +1509,7 @@ class ExecutionPayload final : std::string* _internal_mutable_extradata(); public: - // .types.H256 parentHash = 1; + // .types.H256 parentHash = 2; bool has_parenthash() const; private: bool _internal_has_parenthash() const; @@ -1502,7 +1527,7 @@ class ExecutionPayload final : ::types::H256* parenthash); ::types::H256* unsafe_arena_release_parenthash(); - // .types.H160 coinbase = 2; + // .types.H160 coinbase = 3; bool has_coinbase() const; private: bool _internal_has_coinbase() const; @@ -1520,7 +1545,7 @@ class ExecutionPayload final : ::types::H160* coinbase); ::types::H160* unsafe_arena_release_coinbase(); - // .types.H256 stateRoot = 3; + // .types.H256 stateRoot = 4; bool has_stateroot() const; private: bool _internal_has_stateroot() const; @@ -1538,7 +1563,7 @@ class ExecutionPayload final : ::types::H256* stateroot); ::types::H256* unsafe_arena_release_stateroot(); - // .types.H256 receiptRoot = 4; + // .types.H256 receiptRoot = 5; bool has_receiptroot() const; private: bool _internal_has_receiptroot() const; @@ -1556,7 +1581,7 @@ class ExecutionPayload final : ::types::H256* receiptroot); ::types::H256* unsafe_arena_release_receiptroot(); - // .types.H2048 logsBloom = 5; + // .types.H2048 logsBloom = 6; bool has_logsbloom() const; private: bool _internal_has_logsbloom() const; @@ -1574,7 +1599,7 @@ class ExecutionPayload final : ::types::H2048* logsbloom); ::types::H2048* unsafe_arena_release_logsbloom(); - // .types.H256 prevRandao = 6; + // .types.H256 prevRandao = 7; bool has_prevrandao() const; private: bool _internal_has_prevrandao() const; @@ -1592,7 +1617,7 @@ class ExecutionPayload final : ::types::H256* prevrandao); ::types::H256* unsafe_arena_release_prevrandao(); - // .types.H256 baseFeePerGas = 12; + // .types.H256 baseFeePerGas = 13; bool has_basefeepergas() const; private: bool _internal_has_basefeepergas() const; @@ -1610,7 +1635,7 @@ class ExecutionPayload final : ::types::H256* basefeepergas); ::types::H256* unsafe_arena_release_basefeepergas(); - // .types.H256 blockHash = 13; + // .types.H256 blockHash = 14; bool has_blockhash() const; private: bool _internal_has_blockhash() const; @@ -1628,7 +1653,25 @@ class ExecutionPayload final : ::types::H256* blockhash); ::types::H256* unsafe_arena_release_blockhash(); - // uint64 blockNumber = 7; + // .types.H256 excessDataGas = 17; + bool has_excessdatagas() const; + private: + bool _internal_has_excessdatagas() const; + public: + void clear_excessdatagas(); + const ::types::H256& excessdatagas() const; + PROTOBUF_NODISCARD ::types::H256* release_excessdatagas(); + ::types::H256* mutable_excessdatagas(); + void set_allocated_excessdatagas(::types::H256* excessdatagas); + private: + const ::types::H256& _internal_excessdatagas() const; + ::types::H256* _internal_mutable_excessdatagas(); + public: + void unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas); + ::types::H256* unsafe_arena_release_excessdatagas(); + + // uint64 blockNumber = 8; void clear_blocknumber(); uint64_t blocknumber() const; void set_blocknumber(uint64_t value); @@ -1637,7 +1680,7 @@ class ExecutionPayload final : void _internal_set_blocknumber(uint64_t value); public: - // uint64 gasLimit = 8; + // uint64 gasLimit = 9; void clear_gaslimit(); uint64_t gaslimit() const; void set_gaslimit(uint64_t value); @@ -1646,7 +1689,7 @@ class ExecutionPayload final : void _internal_set_gaslimit(uint64_t value); public: - // uint64 gasUsed = 9; + // uint64 gasUsed = 10; void clear_gasused(); uint64_t gasused() const; void set_gasused(uint64_t value); @@ -1655,7 +1698,7 @@ class ExecutionPayload final : void _internal_set_gasused(uint64_t value); public: - // uint64 timestamp = 10; + // uint64 timestamp = 11; void clear_timestamp(); uint64_t timestamp() const; void set_timestamp(uint64_t value); @@ -1664,6 +1707,15 @@ class ExecutionPayload final : void _internal_set_timestamp(uint64_t value); public: + // uint32 version = 1; + void clear_version(); + uint32_t version() const; + void set_version(uint32_t value); + private: + uint32_t _internal_version() const; + void _internal_set_version(uint32_t value); + public: + // @@protoc_insertion_point(class_scope:types.ExecutionPayload) private: class _Internal; @@ -1673,6 +1725,7 @@ class ExecutionPayload final : typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField transactions_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extradata_; ::types::H256* parenthash_; ::types::H160* coinbase_; @@ -1682,10 +1735,12 @@ class ExecutionPayload final : ::types::H256* prevrandao_; ::types::H256* basefeepergas_; ::types::H256* blockhash_; + ::types::H256* excessdatagas_; uint64_t blocknumber_; uint64_t gaslimit_; uint64_t gasused_; uint64_t timestamp_; + uint32_t version_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1815,9 +1870,9 @@ class Withdrawal final : enum : int { kAddressFieldNumber = 3, - kAmountFieldNumber = 4, kIndexFieldNumber = 1, kValidatorIndexFieldNumber = 2, + kAmountFieldNumber = 4, }; // .types.H160 address = 3; bool has_address() const; @@ -1837,24 +1892,6 @@ class Withdrawal final : ::types::H160* address); ::types::H160* unsafe_arena_release_address(); - // .types.H256 amount = 4; - bool has_amount() const; - private: - bool _internal_has_amount() const; - public: - void clear_amount(); - const ::types::H256& amount() const; - PROTOBUF_NODISCARD ::types::H256* release_amount(); - ::types::H256* mutable_amount(); - void set_allocated_amount(::types::H256* amount); - private: - const ::types::H256& _internal_amount() const; - ::types::H256* _internal_mutable_amount(); - public: - void unsafe_arena_set_allocated_amount( - ::types::H256* amount); - ::types::H256* unsafe_arena_release_amount(); - // uint64 index = 1; void clear_index(); uint64_t index() const; @@ -1873,6 +1910,15 @@ class Withdrawal final : void _internal_set_validatorindex(uint64_t value); public: + // uint64 amount = 4; + void clear_amount(); + uint64_t amount() const; + void set_amount(uint64_t value); + private: + uint64_t _internal_amount() const; + void _internal_set_amount(uint64_t value); + public: + // @@protoc_insertion_point(class_scope:types.Withdrawal) private: class _Internal; @@ -1882,9 +1928,9 @@ class Withdrawal final : typedef void DestructorSkippable_; struct Impl_ { ::types::H160* address_; - ::types::H256* amount_; uint64_t index_; uint64_t validatorindex_; + uint64_t amount_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1892,24 +1938,24 @@ class Withdrawal final : }; // ------------------------------------------------------------------- -class ExecutionPayloadV2 final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:types.ExecutionPayloadV2) */ { +class BlobsBundleV1 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:types.BlobsBundleV1) */ { public: - inline ExecutionPayloadV2() : ExecutionPayloadV2(nullptr) {} - ~ExecutionPayloadV2() override; - explicit PROTOBUF_CONSTEXPR ExecutionPayloadV2(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline BlobsBundleV1() : BlobsBundleV1(nullptr) {} + ~BlobsBundleV1() override; + explicit PROTOBUF_CONSTEXPR BlobsBundleV1(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ExecutionPayloadV2(const ExecutionPayloadV2& from); - ExecutionPayloadV2(ExecutionPayloadV2&& from) noexcept - : ExecutionPayloadV2() { + BlobsBundleV1(const BlobsBundleV1& from); + BlobsBundleV1(BlobsBundleV1&& from) noexcept + : BlobsBundleV1() { *this = ::std::move(from); } - inline ExecutionPayloadV2& operator=(const ExecutionPayloadV2& from) { + inline BlobsBundleV1& operator=(const BlobsBundleV1& from) { CopyFrom(from); return *this; } - inline ExecutionPayloadV2& operator=(ExecutionPayloadV2&& from) noexcept { + inline BlobsBundleV1& operator=(BlobsBundleV1&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1932,20 +1978,20 @@ class ExecutionPayloadV2 final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ExecutionPayloadV2& default_instance() { + static const BlobsBundleV1& default_instance() { return *internal_default_instance(); } - static inline const ExecutionPayloadV2* internal_default_instance() { - return reinterpret_cast( - &_ExecutionPayloadV2_default_instance_); + static inline const BlobsBundleV1* internal_default_instance() { + return reinterpret_cast( + &_BlobsBundleV1_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(ExecutionPayloadV2& a, ExecutionPayloadV2& b) { + friend void swap(BlobsBundleV1& a, BlobsBundleV1& b) { a.Swap(&b); } - inline void Swap(ExecutionPayloadV2* other) { + inline void Swap(BlobsBundleV1* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1958,7 +2004,7 @@ class ExecutionPayloadV2 final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ExecutionPayloadV2* other) { + void UnsafeArenaSwap(BlobsBundleV1* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1966,14 +2012,14 @@ class ExecutionPayloadV2 final : // implements Message ---------------------------------------------- - ExecutionPayloadV2* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + BlobsBundleV1* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ExecutionPayloadV2& from); + void CopyFrom(const BlobsBundleV1& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ExecutionPayloadV2& from) { - ExecutionPayloadV2::MergeImpl(*this, from); + void MergeFrom( const BlobsBundleV1& from) { + BlobsBundleV1::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -1991,15 +2037,15 @@ class ExecutionPayloadV2 final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ExecutionPayloadV2* other); + void InternalSwap(BlobsBundleV1* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "types.ExecutionPayloadV2"; + return "types.BlobsBundleV1"; } protected: - explicit ExecutionPayloadV2(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit BlobsBundleV1(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2013,46 +2059,77 @@ class ExecutionPayloadV2 final : // accessors ------------------------------------------------------- enum : int { - kWithdrawalsFieldNumber = 2, - kPayloadFieldNumber = 1, + kKzgsFieldNumber = 2, + kBlobsFieldNumber = 3, + kBlockHashFieldNumber = 1, }; - // repeated .types.Withdrawal withdrawals = 2; - int withdrawals_size() const; + // repeated bytes kzgs = 2; + int kzgs_size() const; private: - int _internal_withdrawals_size() const; + int _internal_kzgs_size() const; public: - void clear_withdrawals(); - ::types::Withdrawal* mutable_withdrawals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* - mutable_withdrawals(); + void clear_kzgs(); + const std::string& kzgs(int index) const; + std::string* mutable_kzgs(int index); + void set_kzgs(int index, const std::string& value); + void set_kzgs(int index, std::string&& value); + void set_kzgs(int index, const char* value); + void set_kzgs(int index, const void* value, size_t size); + std::string* add_kzgs(); + void add_kzgs(const std::string& value); + void add_kzgs(std::string&& value); + void add_kzgs(const char* value); + void add_kzgs(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& kzgs() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_kzgs(); private: - const ::types::Withdrawal& _internal_withdrawals(int index) const; - ::types::Withdrawal* _internal_add_withdrawals(); + const std::string& _internal_kzgs(int index) const; + std::string* _internal_add_kzgs(); public: - const ::types::Withdrawal& withdrawals(int index) const; - ::types::Withdrawal* add_withdrawals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& - withdrawals() const; - // .types.ExecutionPayload payload = 1; - bool has_payload() const; + // repeated bytes blobs = 3; + int blobs_size() const; private: - bool _internal_has_payload() const; + int _internal_blobs_size() const; public: - void clear_payload(); - const ::types::ExecutionPayload& payload() const; - PROTOBUF_NODISCARD ::types::ExecutionPayload* release_payload(); - ::types::ExecutionPayload* mutable_payload(); - void set_allocated_payload(::types::ExecutionPayload* payload); - private: - const ::types::ExecutionPayload& _internal_payload() const; - ::types::ExecutionPayload* _internal_mutable_payload(); + void clear_blobs(); + const std::string& blobs(int index) const; + std::string* mutable_blobs(int index); + void set_blobs(int index, const std::string& value); + void set_blobs(int index, std::string&& value); + void set_blobs(int index, const char* value); + void set_blobs(int index, const void* value, size_t size); + std::string* add_blobs(); + void add_blobs(const std::string& value); + void add_blobs(std::string&& value); + void add_blobs(const char* value); + void add_blobs(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& blobs() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_blobs(); + private: + const std::string& _internal_blobs(int index) const; + std::string* _internal_add_blobs(); public: - void unsafe_arena_set_allocated_payload( - ::types::ExecutionPayload* payload); - ::types::ExecutionPayload* unsafe_arena_release_payload(); - // @@protoc_insertion_point(class_scope:types.ExecutionPayloadV2) + // .types.H256 blockHash = 1; + bool has_blockhash() const; + private: + bool _internal_has_blockhash() const; + public: + void clear_blockhash(); + const ::types::H256& blockhash() const; + PROTOBUF_NODISCARD ::types::H256* release_blockhash(); + ::types::H256* mutable_blockhash(); + void set_allocated_blockhash(::types::H256* blockhash); + private: + const ::types::H256& _internal_blockhash() const; + ::types::H256* _internal_mutable_blockhash(); + public: + void unsafe_arena_set_allocated_blockhash( + ::types::H256* blockhash); + ::types::H256* unsafe_arena_release_blockhash(); + + // @@protoc_insertion_point(class_scope:types.BlobsBundleV1) private: class _Internal; @@ -2060,8 +2137,9 @@ class ExecutionPayloadV2 final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; - ::types::ExecutionPayload* payload_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField kzgs_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField blobs_; + ::types::H256* blockhash_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2771,6 +2849,189 @@ class PeerInfo final : union { Impl_ _impl_; }; friend struct ::TableStruct_types_2ftypes_2eproto; }; +// ------------------------------------------------------------------- + +class ExecutionPayloadBodyV1 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:types.ExecutionPayloadBodyV1) */ { + public: + inline ExecutionPayloadBodyV1() : ExecutionPayloadBodyV1(nullptr) {} + ~ExecutionPayloadBodyV1() override; + explicit PROTOBUF_CONSTEXPR ExecutionPayloadBodyV1(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ExecutionPayloadBodyV1(const ExecutionPayloadBodyV1& from); + ExecutionPayloadBodyV1(ExecutionPayloadBodyV1&& from) noexcept + : ExecutionPayloadBodyV1() { + *this = ::std::move(from); + } + + inline ExecutionPayloadBodyV1& operator=(const ExecutionPayloadBodyV1& from) { + CopyFrom(from); + return *this; + } + inline ExecutionPayloadBodyV1& operator=(ExecutionPayloadBodyV1&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ExecutionPayloadBodyV1& default_instance() { + return *internal_default_instance(); + } + static inline const ExecutionPayloadBodyV1* internal_default_instance() { + return reinterpret_cast( + &_ExecutionPayloadBodyV1_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(ExecutionPayloadBodyV1& a, ExecutionPayloadBodyV1& b) { + a.Swap(&b); + } + inline void Swap(ExecutionPayloadBodyV1* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ExecutionPayloadBodyV1* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ExecutionPayloadBodyV1* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ExecutionPayloadBodyV1& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ExecutionPayloadBodyV1& from) { + ExecutionPayloadBodyV1::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionPayloadBodyV1* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "types.ExecutionPayloadBodyV1"; + } + protected: + explicit ExecutionPayloadBodyV1(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTransactionsFieldNumber = 1, + kWithdrawalsFieldNumber = 2, + }; + // repeated bytes transactions = 1; + int transactions_size() const; + private: + int _internal_transactions_size() const; + public: + void clear_transactions(); + const std::string& transactions(int index) const; + std::string* mutable_transactions(int index); + void set_transactions(int index, const std::string& value); + void set_transactions(int index, std::string&& value); + void set_transactions(int index, const char* value); + void set_transactions(int index, const void* value, size_t size); + std::string* add_transactions(); + void add_transactions(const std::string& value); + void add_transactions(std::string&& value); + void add_transactions(const char* value); + void add_transactions(const void* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& transactions() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_transactions(); + private: + const std::string& _internal_transactions(int index) const; + std::string* _internal_add_transactions(); + public: + + // repeated .types.Withdrawal withdrawals = 2; + int withdrawals_size() const; + private: + int _internal_withdrawals_size() const; + public: + void clear_withdrawals(); + ::types::Withdrawal* mutable_withdrawals(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* + mutable_withdrawals(); + private: + const ::types::Withdrawal& _internal_withdrawals(int index) const; + ::types::Withdrawal* _internal_add_withdrawals(); + public: + const ::types::Withdrawal& withdrawals(int index) const; + ::types::Withdrawal* add_withdrawals(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& + withdrawals() const; + + // @@protoc_insertion_point(class_scope:types.ExecutionPayloadBodyV1) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField transactions_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal > withdrawals_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_types_2ftypes_2eproto; +}; // =================================================================== static const int kServiceMajorVersionFieldNumber = 50001; @@ -3752,7 +4013,27 @@ inline void VersionReply::set_patch(uint32_t value) { // ExecutionPayload -// .types.H256 parentHash = 1; +// uint32 version = 1; +inline void ExecutionPayload::clear_version() { + _impl_.version_ = 0u; +} +inline uint32_t ExecutionPayload::_internal_version() const { + return _impl_.version_; +} +inline uint32_t ExecutionPayload::version() const { + // @@protoc_insertion_point(field_get:types.ExecutionPayload.version) + return _internal_version(); +} +inline void ExecutionPayload::_internal_set_version(uint32_t value) { + + _impl_.version_ = value; +} +inline void ExecutionPayload::set_version(uint32_t value) { + _internal_set_version(value); + // @@protoc_insertion_point(field_set:types.ExecutionPayload.version) +} + +// .types.H256 parentHash = 2; inline bool ExecutionPayload::_internal_has_parenthash() const { return this != internal_default_instance() && _impl_.parenthash_ != nullptr; } @@ -3842,7 +4123,7 @@ inline void ExecutionPayload::set_allocated_parenthash(::types::H256* parenthash // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.parentHash) } -// .types.H160 coinbase = 2; +// .types.H160 coinbase = 3; inline bool ExecutionPayload::_internal_has_coinbase() const { return this != internal_default_instance() && _impl_.coinbase_ != nullptr; } @@ -3932,7 +4213,7 @@ inline void ExecutionPayload::set_allocated_coinbase(::types::H160* coinbase) { // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.coinbase) } -// .types.H256 stateRoot = 3; +// .types.H256 stateRoot = 4; inline bool ExecutionPayload::_internal_has_stateroot() const { return this != internal_default_instance() && _impl_.stateroot_ != nullptr; } @@ -4022,7 +4303,7 @@ inline void ExecutionPayload::set_allocated_stateroot(::types::H256* stateroot) // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.stateRoot) } -// .types.H256 receiptRoot = 4; +// .types.H256 receiptRoot = 5; inline bool ExecutionPayload::_internal_has_receiptroot() const { return this != internal_default_instance() && _impl_.receiptroot_ != nullptr; } @@ -4112,7 +4393,7 @@ inline void ExecutionPayload::set_allocated_receiptroot(::types::H256* receiptro // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.receiptRoot) } -// .types.H2048 logsBloom = 5; +// .types.H2048 logsBloom = 6; inline bool ExecutionPayload::_internal_has_logsbloom() const { return this != internal_default_instance() && _impl_.logsbloom_ != nullptr; } @@ -4202,7 +4483,7 @@ inline void ExecutionPayload::set_allocated_logsbloom(::types::H2048* logsbloom) // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.logsBloom) } -// .types.H256 prevRandao = 6; +// .types.H256 prevRandao = 7; inline bool ExecutionPayload::_internal_has_prevrandao() const { return this != internal_default_instance() && _impl_.prevrandao_ != nullptr; } @@ -4292,7 +4573,7 @@ inline void ExecutionPayload::set_allocated_prevrandao(::types::H256* prevrandao // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.prevRandao) } -// uint64 blockNumber = 7; +// uint64 blockNumber = 8; inline void ExecutionPayload::clear_blocknumber() { _impl_.blocknumber_ = uint64_t{0u}; } @@ -4312,7 +4593,7 @@ inline void ExecutionPayload::set_blocknumber(uint64_t value) { // @@protoc_insertion_point(field_set:types.ExecutionPayload.blockNumber) } -// uint64 gasLimit = 8; +// uint64 gasLimit = 9; inline void ExecutionPayload::clear_gaslimit() { _impl_.gaslimit_ = uint64_t{0u}; } @@ -4332,7 +4613,7 @@ inline void ExecutionPayload::set_gaslimit(uint64_t value) { // @@protoc_insertion_point(field_set:types.ExecutionPayload.gasLimit) } -// uint64 gasUsed = 9; +// uint64 gasUsed = 10; inline void ExecutionPayload::clear_gasused() { _impl_.gasused_ = uint64_t{0u}; } @@ -4352,7 +4633,7 @@ inline void ExecutionPayload::set_gasused(uint64_t value) { // @@protoc_insertion_point(field_set:types.ExecutionPayload.gasUsed) } -// uint64 timestamp = 10; +// uint64 timestamp = 11; inline void ExecutionPayload::clear_timestamp() { _impl_.timestamp_ = uint64_t{0u}; } @@ -4372,7 +4653,7 @@ inline void ExecutionPayload::set_timestamp(uint64_t value) { // @@protoc_insertion_point(field_set:types.ExecutionPayload.timestamp) } -// bytes extraData = 11; +// bytes extraData = 12; inline void ExecutionPayload::clear_extradata() { _impl_.extradata_.ClearToEmpty(); } @@ -4422,7 +4703,7 @@ inline void ExecutionPayload::set_allocated_extradata(std::string* extradata) { // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.extraData) } -// .types.H256 baseFeePerGas = 12; +// .types.H256 baseFeePerGas = 13; inline bool ExecutionPayload::_internal_has_basefeepergas() const { return this != internal_default_instance() && _impl_.basefeepergas_ != nullptr; } @@ -4512,7 +4793,7 @@ inline void ExecutionPayload::set_allocated_basefeepergas(::types::H256* basefee // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.baseFeePerGas) } -// .types.H256 blockHash = 13; +// .types.H256 blockHash = 14; inline bool ExecutionPayload::_internal_has_blockhash() const { return this != internal_default_instance() && _impl_.blockhash_ != nullptr; } @@ -4602,7 +4883,7 @@ inline void ExecutionPayload::set_allocated_blockhash(::types::H256* blockhash) // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.blockHash) } -// repeated bytes transactions = 14; +// repeated bytes transactions = 15; inline int ExecutionPayload::_internal_transactions_size() const { return _impl_.transactions_.size(); } @@ -4677,6 +4958,136 @@ ExecutionPayload::mutable_transactions() { return &_impl_.transactions_; } +// repeated .types.Withdrawal withdrawals = 16; +inline int ExecutionPayload::_internal_withdrawals_size() const { + return _impl_.withdrawals_.size(); +} +inline int ExecutionPayload::withdrawals_size() const { + return _internal_withdrawals_size(); +} +inline void ExecutionPayload::clear_withdrawals() { + _impl_.withdrawals_.Clear(); +} +inline ::types::Withdrawal* ExecutionPayload::mutable_withdrawals(int index) { + // @@protoc_insertion_point(field_mutable:types.ExecutionPayload.withdrawals) + return _impl_.withdrawals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* +ExecutionPayload::mutable_withdrawals() { + // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayload.withdrawals) + return &_impl_.withdrawals_; +} +inline const ::types::Withdrawal& ExecutionPayload::_internal_withdrawals(int index) const { + return _impl_.withdrawals_.Get(index); +} +inline const ::types::Withdrawal& ExecutionPayload::withdrawals(int index) const { + // @@protoc_insertion_point(field_get:types.ExecutionPayload.withdrawals) + return _internal_withdrawals(index); +} +inline ::types::Withdrawal* ExecutionPayload::_internal_add_withdrawals() { + return _impl_.withdrawals_.Add(); +} +inline ::types::Withdrawal* ExecutionPayload::add_withdrawals() { + ::types::Withdrawal* _add = _internal_add_withdrawals(); + // @@protoc_insertion_point(field_add:types.ExecutionPayload.withdrawals) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& +ExecutionPayload::withdrawals() const { + // @@protoc_insertion_point(field_list:types.ExecutionPayload.withdrawals) + return _impl_.withdrawals_; +} + +// .types.H256 excessDataGas = 17; +inline bool ExecutionPayload::_internal_has_excessdatagas() const { + return this != internal_default_instance() && _impl_.excessdatagas_ != nullptr; +} +inline bool ExecutionPayload::has_excessdatagas() const { + return _internal_has_excessdatagas(); +} +inline void ExecutionPayload::clear_excessdatagas() { + if (GetArenaForAllocation() == nullptr && _impl_.excessdatagas_ != nullptr) { + delete _impl_.excessdatagas_; + } + _impl_.excessdatagas_ = nullptr; +} +inline const ::types::H256& ExecutionPayload::_internal_excessdatagas() const { + const ::types::H256* p = _impl_.excessdatagas_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& ExecutionPayload::excessdatagas() const { + // @@protoc_insertion_point(field_get:types.ExecutionPayload.excessDataGas) + return _internal_excessdatagas(); +} +inline void ExecutionPayload::unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.excessdatagas_); + } + _impl_.excessdatagas_ = excessdatagas; + if (excessdatagas) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.ExecutionPayload.excessDataGas) +} +inline ::types::H256* ExecutionPayload::release_excessdatagas() { + + ::types::H256* temp = _impl_.excessdatagas_; + _impl_.excessdatagas_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::types::H256* ExecutionPayload::unsafe_arena_release_excessdatagas() { + // @@protoc_insertion_point(field_release:types.ExecutionPayload.excessDataGas) + + ::types::H256* temp = _impl_.excessdatagas_; + _impl_.excessdatagas_ = nullptr; + return temp; +} +inline ::types::H256* ExecutionPayload::_internal_mutable_excessdatagas() { + + if (_impl_.excessdatagas_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.excessdatagas_ = p; + } + return _impl_.excessdatagas_; +} +inline ::types::H256* ExecutionPayload::mutable_excessdatagas() { + ::types::H256* _msg = _internal_mutable_excessdatagas(); + // @@protoc_insertion_point(field_mutable:types.ExecutionPayload.excessDataGas) + return _msg; +} +inline void ExecutionPayload::set_allocated_excessdatagas(::types::H256* excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.excessdatagas_; + } + if (excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(excessdatagas); + if (message_arena != submessage_arena) { + excessdatagas = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, excessdatagas, submessage_arena); + } + + } else { + + } + _impl_.excessdatagas_ = excessdatagas; + // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayload.excessDataGas) +} + // ------------------------------------------------------------------- // Withdrawal @@ -4811,45 +5222,69 @@ inline void Withdrawal::set_allocated_address(::types::H160* address) { // @@protoc_insertion_point(field_set_allocated:types.Withdrawal.address) } -// .types.H256 amount = 4; -inline bool Withdrawal::_internal_has_amount() const { - return this != internal_default_instance() && _impl_.amount_ != nullptr; +// uint64 amount = 4; +inline void Withdrawal::clear_amount() { + _impl_.amount_ = uint64_t{0u}; } -inline bool Withdrawal::has_amount() const { - return _internal_has_amount(); +inline uint64_t Withdrawal::_internal_amount() const { + return _impl_.amount_; } -inline void Withdrawal::clear_amount() { - if (GetArenaForAllocation() == nullptr && _impl_.amount_ != nullptr) { - delete _impl_.amount_; +inline uint64_t Withdrawal::amount() const { + // @@protoc_insertion_point(field_get:types.Withdrawal.amount) + return _internal_amount(); +} +inline void Withdrawal::_internal_set_amount(uint64_t value) { + + _impl_.amount_ = value; +} +inline void Withdrawal::set_amount(uint64_t value) { + _internal_set_amount(value); + // @@protoc_insertion_point(field_set:types.Withdrawal.amount) +} + +// ------------------------------------------------------------------- + +// BlobsBundleV1 + +// .types.H256 blockHash = 1; +inline bool BlobsBundleV1::_internal_has_blockhash() const { + return this != internal_default_instance() && _impl_.blockhash_ != nullptr; +} +inline bool BlobsBundleV1::has_blockhash() const { + return _internal_has_blockhash(); +} +inline void BlobsBundleV1::clear_blockhash() { + if (GetArenaForAllocation() == nullptr && _impl_.blockhash_ != nullptr) { + delete _impl_.blockhash_; } - _impl_.amount_ = nullptr; + _impl_.blockhash_ = nullptr; } -inline const ::types::H256& Withdrawal::_internal_amount() const { - const ::types::H256* p = _impl_.amount_; +inline const ::types::H256& BlobsBundleV1::_internal_blockhash() const { + const ::types::H256* p = _impl_.blockhash_; return p != nullptr ? *p : reinterpret_cast( ::types::_H256_default_instance_); } -inline const ::types::H256& Withdrawal::amount() const { - // @@protoc_insertion_point(field_get:types.Withdrawal.amount) - return _internal_amount(); +inline const ::types::H256& BlobsBundleV1::blockhash() const { + // @@protoc_insertion_point(field_get:types.BlobsBundleV1.blockHash) + return _internal_blockhash(); } -inline void Withdrawal::unsafe_arena_set_allocated_amount( - ::types::H256* amount) { +inline void BlobsBundleV1::unsafe_arena_set_allocated_blockhash( + ::types::H256* blockhash) { if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.amount_); + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.blockhash_); } - _impl_.amount_ = amount; - if (amount) { + _impl_.blockhash_ = blockhash; + if (blockhash) { } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.Withdrawal.amount) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.BlobsBundleV1.blockHash) } -inline ::types::H256* Withdrawal::release_amount() { +inline ::types::H256* BlobsBundleV1::release_blockhash() { - ::types::H256* temp = _impl_.amount_; - _impl_.amount_ = nullptr; + ::types::H256* temp = _impl_.blockhash_; + _impl_.blockhash_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); @@ -4861,178 +5296,194 @@ inline ::types::H256* Withdrawal::release_amount() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::types::H256* Withdrawal::unsafe_arena_release_amount() { - // @@protoc_insertion_point(field_release:types.Withdrawal.amount) +inline ::types::H256* BlobsBundleV1::unsafe_arena_release_blockhash() { + // @@protoc_insertion_point(field_release:types.BlobsBundleV1.blockHash) - ::types::H256* temp = _impl_.amount_; - _impl_.amount_ = nullptr; + ::types::H256* temp = _impl_.blockhash_; + _impl_.blockhash_ = nullptr; return temp; } -inline ::types::H256* Withdrawal::_internal_mutable_amount() { +inline ::types::H256* BlobsBundleV1::_internal_mutable_blockhash() { - if (_impl_.amount_ == nullptr) { + if (_impl_.blockhash_ == nullptr) { auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); - _impl_.amount_ = p; + _impl_.blockhash_ = p; } - return _impl_.amount_; + return _impl_.blockhash_; } -inline ::types::H256* Withdrawal::mutable_amount() { - ::types::H256* _msg = _internal_mutable_amount(); - // @@protoc_insertion_point(field_mutable:types.Withdrawal.amount) +inline ::types::H256* BlobsBundleV1::mutable_blockhash() { + ::types::H256* _msg = _internal_mutable_blockhash(); + // @@protoc_insertion_point(field_mutable:types.BlobsBundleV1.blockHash) return _msg; } -inline void Withdrawal::set_allocated_amount(::types::H256* amount) { +inline void BlobsBundleV1::set_allocated_blockhash(::types::H256* blockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete _impl_.amount_; + delete _impl_.blockhash_; } - if (amount) { + if (blockhash) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(amount); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(blockhash); if (message_arena != submessage_arena) { - amount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, amount, submessage_arena); + blockhash = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, blockhash, submessage_arena); } } else { } - _impl_.amount_ = amount; - // @@protoc_insertion_point(field_set_allocated:types.Withdrawal.amount) + _impl_.blockhash_ = blockhash; + // @@protoc_insertion_point(field_set_allocated:types.BlobsBundleV1.blockHash) } -// ------------------------------------------------------------------- - -// ExecutionPayloadV2 - -// .types.ExecutionPayload payload = 1; -inline bool ExecutionPayloadV2::_internal_has_payload() const { - return this != internal_default_instance() && _impl_.payload_ != nullptr; +// repeated bytes kzgs = 2; +inline int BlobsBundleV1::_internal_kzgs_size() const { + return _impl_.kzgs_.size(); } -inline bool ExecutionPayloadV2::has_payload() const { - return _internal_has_payload(); +inline int BlobsBundleV1::kzgs_size() const { + return _internal_kzgs_size(); } -inline void ExecutionPayloadV2::clear_payload() { - if (GetArenaForAllocation() == nullptr && _impl_.payload_ != nullptr) { - delete _impl_.payload_; - } - _impl_.payload_ = nullptr; +inline void BlobsBundleV1::clear_kzgs() { + _impl_.kzgs_.Clear(); } -inline const ::types::ExecutionPayload& ExecutionPayloadV2::_internal_payload() const { - const ::types::ExecutionPayload* p = _impl_.payload_; - return p != nullptr ? *p : reinterpret_cast( - ::types::_ExecutionPayload_default_instance_); +inline std::string* BlobsBundleV1::add_kzgs() { + std::string* _s = _internal_add_kzgs(); + // @@protoc_insertion_point(field_add_mutable:types.BlobsBundleV1.kzgs) + return _s; } -inline const ::types::ExecutionPayload& ExecutionPayloadV2::payload() const { - // @@protoc_insertion_point(field_get:types.ExecutionPayloadV2.payload) - return _internal_payload(); +inline const std::string& BlobsBundleV1::_internal_kzgs(int index) const { + return _impl_.kzgs_.Get(index); } -inline void ExecutionPayloadV2::unsafe_arena_set_allocated_payload( - ::types::ExecutionPayload* payload) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.payload_); - } - _impl_.payload_ = payload; - if (payload) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:types.ExecutionPayloadV2.payload) +inline const std::string& BlobsBundleV1::kzgs(int index) const { + // @@protoc_insertion_point(field_get:types.BlobsBundleV1.kzgs) + return _internal_kzgs(index); } -inline ::types::ExecutionPayload* ExecutionPayloadV2::release_payload() { - - ::types::ExecutionPayload* temp = _impl_.payload_; - _impl_.payload_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; +inline std::string* BlobsBundleV1::mutable_kzgs(int index) { + // @@protoc_insertion_point(field_mutable:types.BlobsBundleV1.kzgs) + return _impl_.kzgs_.Mutable(index); } -inline ::types::ExecutionPayload* ExecutionPayloadV2::unsafe_arena_release_payload() { - // @@protoc_insertion_point(field_release:types.ExecutionPayloadV2.payload) - - ::types::ExecutionPayload* temp = _impl_.payload_; - _impl_.payload_ = nullptr; - return temp; +inline void BlobsBundleV1::set_kzgs(int index, const std::string& value) { + _impl_.kzgs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.kzgs) } -inline ::types::ExecutionPayload* ExecutionPayloadV2::_internal_mutable_payload() { - - if (_impl_.payload_ == nullptr) { - auto* p = CreateMaybeMessage<::types::ExecutionPayload>(GetArenaForAllocation()); - _impl_.payload_ = p; - } - return _impl_.payload_; +inline void BlobsBundleV1::set_kzgs(int index, std::string&& value) { + _impl_.kzgs_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.kzgs) } -inline ::types::ExecutionPayload* ExecutionPayloadV2::mutable_payload() { - ::types::ExecutionPayload* _msg = _internal_mutable_payload(); - // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadV2.payload) - return _msg; +inline void BlobsBundleV1::set_kzgs(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.kzgs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:types.BlobsBundleV1.kzgs) } -inline void ExecutionPayloadV2::set_allocated_payload(::types::ExecutionPayload* payload) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete _impl_.payload_; - } - if (payload) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(payload); - if (message_arena != submessage_arena) { - payload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload, submessage_arena); - } - - } else { - - } - _impl_.payload_ = payload; - // @@protoc_insertion_point(field_set_allocated:types.ExecutionPayloadV2.payload) +inline void BlobsBundleV1::set_kzgs(int index, const void* value, size_t size) { + _impl_.kzgs_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:types.BlobsBundleV1.kzgs) +} +inline std::string* BlobsBundleV1::_internal_add_kzgs() { + return _impl_.kzgs_.Add(); +} +inline void BlobsBundleV1::add_kzgs(const std::string& value) { + _impl_.kzgs_.Add()->assign(value); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.kzgs) +} +inline void BlobsBundleV1::add_kzgs(std::string&& value) { + _impl_.kzgs_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.kzgs) +} +inline void BlobsBundleV1::add_kzgs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.kzgs_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:types.BlobsBundleV1.kzgs) +} +inline void BlobsBundleV1::add_kzgs(const void* value, size_t size) { + _impl_.kzgs_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:types.BlobsBundleV1.kzgs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BlobsBundleV1::kzgs() const { + // @@protoc_insertion_point(field_list:types.BlobsBundleV1.kzgs) + return _impl_.kzgs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BlobsBundleV1::mutable_kzgs() { + // @@protoc_insertion_point(field_mutable_list:types.BlobsBundleV1.kzgs) + return &_impl_.kzgs_; } -// repeated .types.Withdrawal withdrawals = 2; -inline int ExecutionPayloadV2::_internal_withdrawals_size() const { - return _impl_.withdrawals_.size(); +// repeated bytes blobs = 3; +inline int BlobsBundleV1::_internal_blobs_size() const { + return _impl_.blobs_.size(); } -inline int ExecutionPayloadV2::withdrawals_size() const { - return _internal_withdrawals_size(); +inline int BlobsBundleV1::blobs_size() const { + return _internal_blobs_size(); } -inline void ExecutionPayloadV2::clear_withdrawals() { - _impl_.withdrawals_.Clear(); +inline void BlobsBundleV1::clear_blobs() { + _impl_.blobs_.Clear(); } -inline ::types::Withdrawal* ExecutionPayloadV2::mutable_withdrawals(int index) { - // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadV2.withdrawals) - return _impl_.withdrawals_.Mutable(index); +inline std::string* BlobsBundleV1::add_blobs() { + std::string* _s = _internal_add_blobs(); + // @@protoc_insertion_point(field_add_mutable:types.BlobsBundleV1.blobs) + return _s; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* -ExecutionPayloadV2::mutable_withdrawals() { - // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayloadV2.withdrawals) - return &_impl_.withdrawals_; +inline const std::string& BlobsBundleV1::_internal_blobs(int index) const { + return _impl_.blobs_.Get(index); } -inline const ::types::Withdrawal& ExecutionPayloadV2::_internal_withdrawals(int index) const { - return _impl_.withdrawals_.Get(index); +inline const std::string& BlobsBundleV1::blobs(int index) const { + // @@protoc_insertion_point(field_get:types.BlobsBundleV1.blobs) + return _internal_blobs(index); } -inline const ::types::Withdrawal& ExecutionPayloadV2::withdrawals(int index) const { - // @@protoc_insertion_point(field_get:types.ExecutionPayloadV2.withdrawals) - return _internal_withdrawals(index); +inline std::string* BlobsBundleV1::mutable_blobs(int index) { + // @@protoc_insertion_point(field_mutable:types.BlobsBundleV1.blobs) + return _impl_.blobs_.Mutable(index); } -inline ::types::Withdrawal* ExecutionPayloadV2::_internal_add_withdrawals() { - return _impl_.withdrawals_.Add(); +inline void BlobsBundleV1::set_blobs(int index, const std::string& value) { + _impl_.blobs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.blobs) } -inline ::types::Withdrawal* ExecutionPayloadV2::add_withdrawals() { - ::types::Withdrawal* _add = _internal_add_withdrawals(); - // @@protoc_insertion_point(field_add:types.ExecutionPayloadV2.withdrawals) - return _add; +inline void BlobsBundleV1::set_blobs(int index, std::string&& value) { + _impl_.blobs_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:types.BlobsBundleV1.blobs) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& -ExecutionPayloadV2::withdrawals() const { - // @@protoc_insertion_point(field_list:types.ExecutionPayloadV2.withdrawals) - return _impl_.withdrawals_; +inline void BlobsBundleV1::set_blobs(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.blobs_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::set_blobs(int index, const void* value, size_t size) { + _impl_.blobs_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:types.BlobsBundleV1.blobs) +} +inline std::string* BlobsBundleV1::_internal_add_blobs() { + return _impl_.blobs_.Add(); +} +inline void BlobsBundleV1::add_blobs(const std::string& value) { + _impl_.blobs_.Add()->assign(value); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::add_blobs(std::string&& value) { + _impl_.blobs_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::add_blobs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.blobs_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:types.BlobsBundleV1.blobs) +} +inline void BlobsBundleV1::add_blobs(const void* value, size_t size) { + _impl_.blobs_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:types.BlobsBundleV1.blobs) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BlobsBundleV1::blobs() const { + // @@protoc_insertion_point(field_list:types.BlobsBundleV1.blobs) + return _impl_.blobs_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BlobsBundleV1::mutable_blobs() { + // @@protoc_insertion_point(field_mutable_list:types.BlobsBundleV1.blobs) + return &_impl_.blobs_; } // ------------------------------------------------------------------- @@ -5912,6 +6363,125 @@ inline void PeerInfo::set_connisstatic(bool value) { // @@protoc_insertion_point(field_set:types.PeerInfo.connIsStatic) } +// ------------------------------------------------------------------- + +// ExecutionPayloadBodyV1 + +// repeated bytes transactions = 1; +inline int ExecutionPayloadBodyV1::_internal_transactions_size() const { + return _impl_.transactions_.size(); +} +inline int ExecutionPayloadBodyV1::transactions_size() const { + return _internal_transactions_size(); +} +inline void ExecutionPayloadBodyV1::clear_transactions() { + _impl_.transactions_.Clear(); +} +inline std::string* ExecutionPayloadBodyV1::add_transactions() { + std::string* _s = _internal_add_transactions(); + // @@protoc_insertion_point(field_add_mutable:types.ExecutionPayloadBodyV1.transactions) + return _s; +} +inline const std::string& ExecutionPayloadBodyV1::_internal_transactions(int index) const { + return _impl_.transactions_.Get(index); +} +inline const std::string& ExecutionPayloadBodyV1::transactions(int index) const { + // @@protoc_insertion_point(field_get:types.ExecutionPayloadBodyV1.transactions) + return _internal_transactions(index); +} +inline std::string* ExecutionPayloadBodyV1::mutable_transactions(int index) { + // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadBodyV1.transactions) + return _impl_.transactions_.Mutable(index); +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, const std::string& value) { + _impl_.transactions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, std::string&& value) { + _impl_.transactions_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.transactions_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::set_transactions(int index, const void* value, size_t size) { + _impl_.transactions_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:types.ExecutionPayloadBodyV1.transactions) +} +inline std::string* ExecutionPayloadBodyV1::_internal_add_transactions() { + return _impl_.transactions_.Add(); +} +inline void ExecutionPayloadBodyV1::add_transactions(const std::string& value) { + _impl_.transactions_.Add()->assign(value); + // @@protoc_insertion_point(field_add:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::add_transactions(std::string&& value) { + _impl_.transactions_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::add_transactions(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.transactions_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:types.ExecutionPayloadBodyV1.transactions) +} +inline void ExecutionPayloadBodyV1::add_transactions(const void* value, size_t size) { + _impl_.transactions_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:types.ExecutionPayloadBodyV1.transactions) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +ExecutionPayloadBodyV1::transactions() const { + // @@protoc_insertion_point(field_list:types.ExecutionPayloadBodyV1.transactions) + return _impl_.transactions_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +ExecutionPayloadBodyV1::mutable_transactions() { + // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayloadBodyV1.transactions) + return &_impl_.transactions_; +} + +// repeated .types.Withdrawal withdrawals = 2; +inline int ExecutionPayloadBodyV1::_internal_withdrawals_size() const { + return _impl_.withdrawals_.size(); +} +inline int ExecutionPayloadBodyV1::withdrawals_size() const { + return _internal_withdrawals_size(); +} +inline void ExecutionPayloadBodyV1::clear_withdrawals() { + _impl_.withdrawals_.Clear(); +} +inline ::types::Withdrawal* ExecutionPayloadBodyV1::mutable_withdrawals(int index) { + // @@protoc_insertion_point(field_mutable:types.ExecutionPayloadBodyV1.withdrawals) + return _impl_.withdrawals_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >* +ExecutionPayloadBodyV1::mutable_withdrawals() { + // @@protoc_insertion_point(field_mutable_list:types.ExecutionPayloadBodyV1.withdrawals) + return &_impl_.withdrawals_; +} +inline const ::types::Withdrawal& ExecutionPayloadBodyV1::_internal_withdrawals(int index) const { + return _impl_.withdrawals_.Get(index); +} +inline const ::types::Withdrawal& ExecutionPayloadBodyV1::withdrawals(int index) const { + // @@protoc_insertion_point(field_get:types.ExecutionPayloadBodyV1.withdrawals) + return _internal_withdrawals(index); +} +inline ::types::Withdrawal* ExecutionPayloadBodyV1::_internal_add_withdrawals() { + return _impl_.withdrawals_.Add(); +} +inline ::types::Withdrawal* ExecutionPayloadBodyV1::add_withdrawals() { + ::types::Withdrawal* _add = _internal_add_withdrawals(); + // @@protoc_insertion_point(field_add:types.ExecutionPayloadBodyV1.withdrawals) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::types::Withdrawal >& +ExecutionPayloadBodyV1::withdrawals() const { + // @@protoc_insertion_point(field_list:types.ExecutionPayloadBodyV1.withdrawals) + return _impl_.withdrawals_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -5939,6 +6509,8 @@ inline void PeerInfo::set_connisstatic(bool value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) From 85ba1111243f06e7b07b048e2efae22964166ea8 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 10 Apr 2023 12:58:39 +0200 Subject: [PATCH 05/21] Simplify generate_grpc.cmake --- silkworm/interfaces/generate_grpc.cmake | 119 ++++-------------------- 1 file changed, 19 insertions(+), 100 deletions(-) diff --git a/silkworm/interfaces/generate_grpc.cmake b/silkworm/interfaces/generate_grpc.cmake index 8cff29fff8..fc97b995b8 100644 --- a/silkworm/interfaces/generate_grpc.cmake +++ b/silkworm/interfaces/generate_grpc.cmake @@ -79,22 +79,15 @@ endmacro() # gRPC protocol interface file set(TYPES_PROTO "${PROTO_PATH}/types/types.proto") -set(TYPES_SOURCES_OUT "${OUT_PATH}/types/types.pb.cc" "${OUT_PATH}/types/types.pb.h") set(TYPES_SOURCES_SYMLINK "${OUT_PATH_SYMLINK}/types/types.pb.cc" "${OUT_PATH_SYMLINK}/types/types.pb.h") -add_custom_command( - OUTPUT ${TYPES_SOURCES_OUT} - COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS} "${TYPES_PROTO}" - DEPENDS "${TYPES_PROTO}" - BYPRODUCTS ${TYPES_SOURCES_SYMLINK} - COMMENT "Running C++ gRPC compiler on ${TYPES_PROTO}" -) - create_symlink_target(generate_types_proto_symlink "${OUT_PATH_SYMLINK}/types" "${OUT_PATH}/types") add_custom_command( OUTPUT ${TYPES_SOURCES_SYMLINK} - DEPENDS ${TYPES_SOURCES_OUT} generate_types_proto_symlink + COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS} "${TYPES_PROTO}" + DEPENDS ${TYPES_PROTO} generate_types_proto_symlink + COMMENT "Running C++ gRPC compiler on ${TYPES_PROTO}" ) # --------------------------------------------------------------------------------------------------------------------- @@ -104,27 +97,18 @@ add_custom_command( set(EXECUTION_PROTO "${PROTO_PATH}/execution/execution.proto") # Generate sources -set(EXECUTION_SOURCES_OUT "${OUT_PATH}/execution/execution.grpc.pb.cc" "${OUT_PATH}/execution/execution.grpc.pb.h" - "${OUT_PATH}/execution/execution.pb.cc" "${OUT_PATH}/execution/execution.pb.h" -) set(EXECUTION_SOURCES_SYMLINK "${OUT_PATH_SYMLINK}/execution/execution.grpc.pb.cc" "${OUT_PATH_SYMLINK}/execution/execution.grpc.pb.h" "${OUT_PATH_SYMLINK}/execution/execution.pb.cc" "${OUT_PATH_SYMLINK}/execution/execution.pb.h" ) -add_custom_command( - OUTPUT ${EXECUTION_SOURCES_OUT} - COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${EXECUTION_PROTO}" - DEPENDS "${EXECUTION_PROTO}" - BYPRODUCTS ${EXECUTION_SOURCES_SYMLINK} - COMMENT "Running C++ gRPC compiler on ${EXECUTION_PROTO}" -) - create_symlink_target(generate_execution_grpc_symlink "${OUT_PATH_SYMLINK}/execution" "${OUT_PATH}/execution") add_custom_command( OUTPUT ${EXECUTION_SOURCES_SYMLINK} - DEPENDS ${EXECUTION_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_execution_grpc_symlink + COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${EXECUTION_PROTO}" + DEPENDS ${EXECUTION_PROTO} generate_execution_grpc_symlink + COMMENT "Running C++ gRPC compiler on ${EXECUTION_PROTO}" ) # --------------------------------------------------------------------------------------------------------------------- @@ -134,13 +118,6 @@ add_custom_command( set(SENTRY_PROTO "${PROTO_PATH}/p2psentry/sentry.proto") # cmake-format: off -set(SENTRY_SOURCES_OUT - "${OUT_PATH}/p2psentry/sentry.grpc.pb.cc" - "${OUT_PATH}/p2psentry/sentry.grpc.pb.h" - "${OUT_PATH}/p2psentry/sentry.pb.cc" - "${OUT_PATH}/p2psentry/sentry.pb.h" - "${OUT_PATH}/p2psentry/sentry_mock.grpc.pb.h" -) set(SENTRY_SOURCES_SYMLINK "${OUT_PATH_SYMLINK}/p2psentry/sentry.grpc.pb.cc" "${OUT_PATH_SYMLINK}/p2psentry/sentry.grpc.pb.h" @@ -150,19 +127,13 @@ set(SENTRY_SOURCES_SYMLINK ) # cmake-format: on -add_custom_command( - OUTPUT ${SENTRY_SOURCES_OUT} - COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${SENTRY_PROTO}" - DEPENDS "${SENTRY_PROTO}" - BYPRODUCTS ${SENTRY_SOURCES_SYMLINK} - COMMENT "Running C++ gRPC compiler on ${SENTRY_PROTO}" -) - create_symlink_target(generate_sentry_grpc_symlink "${OUT_PATH_SYMLINK}/p2psentry" "${OUT_PATH}/p2psentry") add_custom_command( OUTPUT ${SENTRY_SOURCES_SYMLINK} - DEPENDS ${SENTRY_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_sentry_grpc_symlink + COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${SENTRY_PROTO}" + DEPENDS ${SENTRY_PROTO} generate_sentry_grpc_symlink + COMMENT "Running C++ gRPC compiler on ${SENTRY_PROTO}" ) # --------------------------------------------------------------------------------------------------------------------- @@ -172,13 +143,6 @@ add_custom_command( set(KV_PROTO "${PROTO_PATH}/remote/kv.proto") # cmake-format: off -set(KV_SOURCES_OUT - "${OUT_PATH}/remote/kv.grpc.pb.cc" - "${OUT_PATH}/remote/kv.grpc.pb.h" - "${OUT_PATH}/remote/kv.pb.cc" - "${OUT_PATH}/remote/kv.pb.h" - "${OUT_PATH}/remote/kv_mock.grpc.pb.h" -) set(KV_SOURCES_SYMLINK "${OUT_PATH_SYMLINK}/remote/kv.grpc.pb.cc" "${OUT_PATH_SYMLINK}/remote/kv.grpc.pb.h" @@ -188,19 +152,13 @@ set(KV_SOURCES_SYMLINK ) # cmake-format: on -add_custom_command( - OUTPUT ${KV_SOURCES_OUT} - COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${KV_PROTO}" - DEPENDS "${KV_PROTO}" - BYPRODUCTS ${KV_SOURCES_SYMLINK} - COMMENT "Running C++ gRPC compiler on ${KV_PROTO}" -) - create_symlink_target(generate_remote_grpc_symlink "${OUT_PATH_SYMLINK}/remote" "${OUT_PATH}/remote") add_custom_command( OUTPUT ${KV_SOURCES_SYMLINK} - DEPENDS ${KV_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_remote_grpc_symlink + COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${KV_PROTO}" + DEPENDS ${KV_PROTO} generate_remote_grpc_symlink + COMMENT "Running C++ gRPC compiler on ${KV_PROTO}" ) # --------------------------------------------------------------------------------------------------------------------- @@ -210,13 +168,6 @@ add_custom_command( set(ETHBACKEND_PROTO "${PROTO_PATH}/remote/ethbackend.proto") # cmake-format: off -set(ETHBACKEND_SOURCES_OUT - "${OUT_PATH}/remote/ethbackend.grpc.pb.cc" - "${OUT_PATH}/remote/ethbackend.grpc.pb.h" - "${OUT_PATH}/remote/ethbackend.pb.cc" - "${OUT_PATH}/remote/ethbackend.pb.h" - "${OUT_PATH}/remote/ethbackend_mock.grpc.pb.h" -) set(ETHBACKEND_SOURCES_SYMLINK "${OUT_PATH_SYMLINK}/remote/ethbackend.grpc.pb.cc" "${OUT_PATH_SYMLINK}/remote/ethbackend.grpc.pb.h" @@ -227,18 +178,12 @@ set(ETHBACKEND_SOURCES_SYMLINK # cmake-format: on add_custom_command( - OUTPUT ${ETHBACKEND_SOURCES_OUT} + OUTPUT ${ETHBACKEND_SOURCES_SYMLINK} COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${ETHBACKEND_PROTO}" - DEPENDS "${ETHBACKEND_PROTO}" - BYPRODUCTS ${ETHBACKEND_SOURCES_SYMLINK} + DEPENDS ${ETHBACKEND_PROTO} generate_remote_grpc_symlink COMMENT "Running C++ gRPC compiler on ${ETHBACKEND_PROTO}" ) -add_custom_command( - OUTPUT ${ETHBACKEND_SOURCES_SYMLINK} - DEPENDS ${ETHBACKEND_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_remote_grpc_symlink -) - # --------------------------------------------------------------------------------------------------------------------- # MINING # --------------------------------------------------------------------------------------------------------------------- @@ -246,13 +191,6 @@ add_custom_command( set(MINING_PROTO "${PROTO_PATH}/txpool/mining.proto") # cmake-format: off -set(MINING_SOURCES_OUT - "${OUT_PATH}/txpool/mining.grpc.pb.cc" - "${OUT_PATH}/txpool/mining.grpc.pb.h" - "${OUT_PATH}/txpool/mining.pb.cc" - "${OUT_PATH}/txpool/mining.pb.h" - "${OUT_PATH}/txpool/mining_mock.grpc.pb.h" -) set(MINING_SOURCES_SYMLINK "${OUT_PATH_SYMLINK}/txpool/mining.grpc.pb.cc" "${OUT_PATH_SYMLINK}/txpool/mining.grpc.pb.h" @@ -262,19 +200,13 @@ set(MINING_SOURCES_SYMLINK ) # cmake-format: on -add_custom_command( - OUTPUT ${MINING_SOURCES_OUT} - COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${MINING_PROTO}" - DEPENDS "${MINING_PROTO}" - BYPRODUCTS ${MINING_SOURCES_SYMLINK} - COMMENT "Running C++ gRPC compiler on ${KV_PROTO}" -) - create_symlink_target(generate_txpool_grpc_symlink "${OUT_PATH_SYMLINK}/txpool" "${OUT_PATH}/txpool") add_custom_command( OUTPUT ${MINING_SOURCES_SYMLINK} - DEPENDS ${MINING_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_txpool_grpc_symlink + COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${MINING_PROTO}" + DEPENDS ${MINING_PROTO} generate_txpool_grpc_symlink + COMMENT "Running C++ gRPC compiler on ${KV_PROTO}" ) # --------------------------------------------------------------------------------------------------------------------- @@ -284,13 +216,6 @@ add_custom_command( set(TXPOOL_PROTO "${PROTO_PATH}/txpool/txpool.proto") # cmake-format: off -set(TXPOOL_SOURCES_OUT - "${OUT_PATH}/txpool/txpool.grpc.pb.cc" - "${OUT_PATH}/txpool/txpool.grpc.pb.h" - "${OUT_PATH}/txpool/txpool.pb.cc" - "${OUT_PATH}/txpool/txpool.pb.h" - "${OUT_PATH}/txpool/txpool_mock.grpc.pb.h" -) set(TXPOOL_SOURCES_SYMLINK "${OUT_PATH_SYMLINK}/txpool/txpool.grpc.pb.cc" "${OUT_PATH_SYMLINK}/txpool/txpool.grpc.pb.h" @@ -301,14 +226,8 @@ set(TXPOOL_SOURCES_SYMLINK # cmake-format: on add_custom_command( - OUTPUT ${TXPOOL_SOURCES_OUT} + OUTPUT ${TXPOOL_SOURCES_SYMLINK} COMMAND ${PROTOBUF_PROTOC} ARGS ${PROTOC_ARGS_GRPC} "${TXPOOL_PROTO}" - DEPENDS "${TXPOOL_PROTO}" - BYPRODUCTS ${TXPOOL_SOURCES_SYMLINK} + DEPENDS ${TXPOOL_PROTO} generate_txpool_grpc_symlink COMMENT "Running C++ gRPC compiler on ${TXPOOL_PROTO}" ) - -add_custom_command( - OUTPUT ${TXPOOL_SOURCES_SYMLINK} - DEPENDS ${TXPOOL_SOURCES_OUT} ${TYPES_SOURCES_SYMLINK} generate_txpool_grpc_symlink -) From 2d57589739829b5d85e4ff6e40a0016834f69ee3 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 10 Apr 2023 13:27:16 +0200 Subject: [PATCH 06/21] Update proto again --- .../3.14.0/execution/execution.pb.cc | 157 ++++++++++++------ .../3.14.0/execution/execution.pb.h | 99 +++++++++++ silkworm/interfaces/proto | 2 +- 3 files changed, 206 insertions(+), 52 deletions(-) diff --git a/silkworm/interfaces/3.14.0/execution/execution.pb.cc b/silkworm/interfaces/3.14.0/execution/execution.pb.cc index c70d37807c..a06360c066 100644 --- a/silkworm/interfaces/3.14.0/execution/execution.pb.cc +++ b/silkworm/interfaces/3.14.0/execution/execution.pb.cc @@ -291,6 +291,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_execution_2fexecution_2eproto: PROTOBUF_FIELD_OFFSET(::execution::Header, transactionhash_), PROTOBUF_FIELD_OFFSET(::execution::Header, basefeepergas_), PROTOBUF_FIELD_OFFSET(::execution::Header, withdrawalhash_), + PROTOBUF_FIELD_OFFSET(::execution::Header, excessdatagas_), ~0u, ~0u, ~0u, @@ -309,6 +310,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_execution_2fexecution_2eproto: ~0u, 0, 1, + 2, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::execution::BlockBody, _internal_metadata_), ~0u, // no _extensions_ @@ -371,15 +373,15 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 0, -1, sizeof(::execution::ForkChoiceReceipt)}, { 7, 15, sizeof(::execution::ValidationReceipt)}, { 18, -1, sizeof(::execution::IsCanonicalResponse)}, - { 24, 47, sizeof(::execution::Header)}, - { 65, -1, sizeof(::execution::BlockBody)}, - { 75, 81, sizeof(::execution::GetHeaderResponse)}, - { 82, 88, sizeof(::execution::GetBodyResponse)}, - { 89, 95, sizeof(::execution::GetHeaderHashNumberResponse)}, - { 96, 103, sizeof(::execution::GetSegmentRequest)}, - { 105, -1, sizeof(::execution::InsertHeadersRequest)}, - { 111, -1, sizeof(::execution::InsertBodiesRequest)}, - { 117, -1, sizeof(::execution::EmptyMessage)}, + { 24, 48, sizeof(::execution::Header)}, + { 67, -1, sizeof(::execution::BlockBody)}, + { 77, 83, sizeof(::execution::GetHeaderResponse)}, + { 84, 90, sizeof(::execution::GetBodyResponse)}, + { 91, 97, sizeof(::execution::GetHeaderHashNumberResponse)}, + { 98, 105, sizeof(::execution::GetSegmentRequest)}, + { 107, -1, sizeof(::execution::InsertHeadersRequest)}, + { 113, -1, sizeof(::execution::InsertBodiesRequest)}, + { 119, -1, sizeof(::execution::EmptyMessage)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -406,7 +408,7 @@ const char descriptor_table_protodef_execution_2fexecution_2eproto[] PROTOBUF_SE "tionStatus\022$\n\017latestValidHash\030\002 \001(\0132\013.ty" "pes.H256\022%\n\013missingHash\030\003 \001(\0132\013.types.H2" "56H\000\210\001\001B\016\n\014_missingHash\"(\n\023IsCanonicalRe" - "sponse\022\021\n\tcanonical\030\001 \001(\010\"\267\004\n\006Header\022\037\n\n" + "sponse\022\021\n\tcanonical\030\001 \001(\010\"\362\004\n\006Header\022\037\n\n" "parentHash\030\001 \001(\0132\013.types.H256\022\035\n\010coinbas" "e\030\002 \001(\0132\013.types.H160\022\036\n\tstateRoot\030\003 \001(\0132" "\013.types.H256\022 \n\013receiptRoot\030\004 \001(\0132\013.type" @@ -419,43 +421,44 @@ const char descriptor_table_protodef_execution_2fexecution_2eproto[] PROTOBUF_SE ".H256\022\036\n\tommerHash\030\017 \001(\0132\013.types.H256\022$\n" "\017transactionHash\030\020 \001(\0132\013.types.H256\022\'\n\rb" "aseFeePerGas\030\021 \001(\0132\013.types.H256H\000\210\001\001\022(\n\016" - "withdrawalHash\030\022 \001(\0132\013.types.H256H\001\210\001\001B\020" - "\n\016_baseFeePerGasB\021\n\017_withdrawalHash\"\241\001\n\t" - "BlockBody\022\036\n\tblockHash\030\001 \001(\0132\013.types.H25" - "6\022\023\n\013blockNumber\030\002 \001(\004\022\024\n\014transactions\030\003" - " \003(\014\022!\n\006uncles\030\004 \003(\0132\021.execution.Header\022" - "&\n\013withdrawals\030\005 \003(\0132\021.types.Withdrawal\"" - "F\n\021GetHeaderResponse\022&\n\006header\030\001 \001(\0132\021.e" - "xecution.HeaderH\000\210\001\001B\t\n\007_header\"C\n\017GetBo" - "dyResponse\022\'\n\004body\030\001 \001(\0132\024.execution.Blo" - "ckBodyH\000\210\001\001B\007\n\005_body\"G\n\033GetHeaderHashNum" - "berResponse\022\030\n\013blockNumber\030\001 \001(\004H\000\210\001\001B\016\n" - "\014_blockNumber\"p\n\021GetSegmentRequest\022\030\n\013bl" - "ockNumber\030\001 \001(\004H\000\210\001\001\022#\n\tblockHash\030\002 \001(\0132" - "\013.types.H256H\001\210\001\001B\016\n\014_blockNumberB\014\n\n_bl" - "ockHash\":\n\024InsertHeadersRequest\022\"\n\007heade" - "rs\030\001 \003(\0132\021.execution.Header\";\n\023InsertBod" - "iesRequest\022$\n\006bodies\030\001 \003(\0132\024.execution.B" - "lockBody\"\016\n\014EmptyMessage*U\n\020ValidationSt" - "atus\022\013\n\007Success\020\000\022\020\n\014InvalidChain\020\001\022\016\n\nT" - "ooFarAway\020\002\022\022\n\016MissingSegment\020\0032\367\004\n\tExec" - "ution\022I\n\rInsertHeaders\022\037.execution.Inser" - "tHeadersRequest\032\027.execution.EmptyMessage" - "\022G\n\014InsertBodies\022\036.execution.InsertBodie" - "sRequest\032\027.execution.EmptyMessage\022:\n\rVal" - "idateChain\022\013.types.H256\032\034.execution.Vali" - "dationReceipt\022=\n\020UpdateForkChoice\022\013.type" - "s.H256\032\034.execution.ForkChoiceReceipt\022A\n\r" - "AssembleBlock\022\027.execution.EmptyMessage\032\027" - ".types.ExecutionPayload\022G\n\tGetHeader\022\034.e" - "xecution.GetSegmentRequest\032\034.execution.G" - "etHeaderResponse\022C\n\007GetBody\022\034.execution." - "GetSegmentRequest\032\032.execution.GetBodyRes" - "ponse\022>\n\017IsCanonicalHash\022\013.types.H256\032\036." - "execution.IsCanonicalResponse\022J\n\023GetHead" - "erHashNumber\022\013.types.H256\032&.execution.Ge" - "tHeaderHashNumberResponseB\027Z\025./execution" - ";executionb\006proto3" + "withdrawalHash\030\022 \001(\0132\013.types.H256H\001\210\001\001\022\'" + "\n\rexcessDataGas\030\023 \001(\0132\013.types.H256H\002\210\001\001B" + "\020\n\016_baseFeePerGasB\021\n\017_withdrawalHashB\020\n\016" + "_excessDataGas\"\241\001\n\tBlockBody\022\036\n\tblockHas" + "h\030\001 \001(\0132\013.types.H256\022\023\n\013blockNumber\030\002 \001(" + "\004\022\024\n\014transactions\030\003 \003(\014\022!\n\006uncles\030\004 \003(\0132" + "\021.execution.Header\022&\n\013withdrawals\030\005 \003(\0132" + "\021.types.Withdrawal\"F\n\021GetHeaderResponse\022" + "&\n\006header\030\001 \001(\0132\021.execution.HeaderH\000\210\001\001B" + "\t\n\007_header\"C\n\017GetBodyResponse\022\'\n\004body\030\001 " + "\001(\0132\024.execution.BlockBodyH\000\210\001\001B\007\n\005_body\"" + "G\n\033GetHeaderHashNumberResponse\022\030\n\013blockN" + "umber\030\001 \001(\004H\000\210\001\001B\016\n\014_blockNumber\"p\n\021GetS" + "egmentRequest\022\030\n\013blockNumber\030\001 \001(\004H\000\210\001\001\022" + "#\n\tblockHash\030\002 \001(\0132\013.types.H256H\001\210\001\001B\016\n\014" + "_blockNumberB\014\n\n_blockHash\":\n\024InsertHead" + "ersRequest\022\"\n\007headers\030\001 \003(\0132\021.execution." + "Header\";\n\023InsertBodiesRequest\022$\n\006bodies\030" + "\001 \003(\0132\024.execution.BlockBody\"\016\n\014EmptyMess" + "age*U\n\020ValidationStatus\022\013\n\007Success\020\000\022\020\n\014" + "InvalidChain\020\001\022\016\n\nTooFarAway\020\002\022\022\n\016Missin" + "gSegment\020\0032\367\004\n\tExecution\022I\n\rInsertHeader" + "s\022\037.execution.InsertHeadersRequest\032\027.exe" + "cution.EmptyMessage\022G\n\014InsertBodies\022\036.ex" + "ecution.InsertBodiesRequest\032\027.execution." + "EmptyMessage\022:\n\rValidateChain\022\013.types.H2" + "56\032\034.execution.ValidationReceipt\022=\n\020Upda" + "teForkChoice\022\013.types.H256\032\034.execution.Fo" + "rkChoiceReceipt\022A\n\rAssembleBlock\022\027.execu" + "tion.EmptyMessage\032\027.types.ExecutionPaylo" + "ad\022G\n\tGetHeader\022\034.execution.GetSegmentRe" + "quest\032\034.execution.GetHeaderResponse\022C\n\007G" + "etBody\022\034.execution.GetSegmentRequest\032\032.e" + "xecution.GetBodyResponse\022>\n\017IsCanonicalH" + "ash\022\013.types.H256\032\036.execution.IsCanonical" + "Response\022J\n\023GetHeaderHashNumber\022\013.types." + "H256\032&.execution.GetHeaderHashNumberResp" + "onseB\027Z\025./execution;executionb\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_execution_2fexecution_2eproto_deps[1] = { &::descriptor_table_types_2ftypes_2eproto, @@ -476,7 +479,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_exe }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_execution_2fexecution_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_execution_2fexecution_2eproto = { - false, false, descriptor_table_protodef_execution_2fexecution_2eproto, "execution/execution.proto", 2298, + false, false, descriptor_table_protodef_execution_2fexecution_2eproto, "execution/execution.proto", 2357, &descriptor_table_execution_2fexecution_2eproto_once, descriptor_table_execution_2fexecution_2eproto_sccs, descriptor_table_execution_2fexecution_2eproto_deps, 12, 1, schemas, file_default_instances, TableStruct_execution_2fexecution_2eproto::offsets, file_level_metadata_execution_2fexecution_2eproto, 12, file_level_enum_descriptors_execution_2fexecution_2eproto, file_level_service_descriptors_execution_2fexecution_2eproto, @@ -1274,6 +1277,10 @@ class Header::_Internal { static void set_has_withdrawalhash(HasBits* has_bits) { (*has_bits)[0] |= 2u; } + static const ::types::H256& excessdatagas(const Header* msg); + static void set_has_excessdatagas(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } }; const ::types::H256& @@ -1324,6 +1331,10 @@ const ::types::H256& Header::_Internal::withdrawalhash(const Header* msg) { return *msg->withdrawalhash_; } +const ::types::H256& +Header::_Internal::excessdatagas(const Header* msg) { + return *msg->excessdatagas_; +} void Header::clear_parenthash() { if (GetArena() == nullptr && parenthash_ != nullptr) { delete parenthash_; @@ -1398,6 +1409,13 @@ void Header::clear_withdrawalhash() { withdrawalhash_ = nullptr; _has_bits_[0] &= ~0x00000002u; } +void Header::clear_excessdatagas() { + if (GetArena() == nullptr && excessdatagas_ != nullptr) { + delete excessdatagas_; + } + excessdatagas_ = nullptr; + _has_bits_[0] &= ~0x00000004u; +} Header::Header(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); @@ -1473,6 +1491,11 @@ Header::Header(const Header& from) } else { withdrawalhash_ = nullptr; } + if (from._internal_has_excessdatagas()) { + excessdatagas_ = new ::types::H256(*from.excessdatagas_); + } else { + excessdatagas_ = nullptr; + } ::memcpy(&blocknumber_, &from.blocknumber_, static_cast(reinterpret_cast(&nonce_) - reinterpret_cast(&blocknumber_)) + sizeof(nonce_)); @@ -1509,6 +1532,7 @@ void Header::SharedDtor() { if (this != internal_default_instance()) delete transactionhash_; if (this != internal_default_instance()) delete basefeepergas_; if (this != internal_default_instance()) delete withdrawalhash_; + if (this != internal_default_instance()) delete excessdatagas_; } void Header::ArenaDtor(void* object) { @@ -1574,7 +1598,7 @@ void Header::Clear() { } transactionhash_ = nullptr; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { if (GetArena() == nullptr && basefeepergas_ != nullptr) { delete basefeepergas_; @@ -1587,6 +1611,12 @@ void Header::Clear() { } withdrawalhash_ = nullptr; } + if (cached_has_bits & 0x00000004u) { + if (GetArena() == nullptr && excessdatagas_ != nullptr) { + delete excessdatagas_; + } + excessdatagas_ = nullptr; + } } ::memset(&blocknumber_, 0, static_cast( reinterpret_cast(&nonce_) - @@ -1730,6 +1760,13 @@ const char* Header::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int CHK_(ptr); } else goto handle_unusual; continue; + // .types.H256 excessDataGas = 19; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 154)) { + ptr = ctx->ParseMessage(_internal_mutable_excessdatagas(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1891,6 +1928,14 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Header::_InternalSerialize( 18, _Internal::withdrawalhash(this), target, stream); } + // .types.H256 excessDataGas = 19; + if (_internal_has_excessdatagas()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 19, _Internal::excessdatagas(this), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1985,7 +2030,7 @@ size_t Header::ByteSizeLong() const { } cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { // .types.H256 baseFeePerGas = 17; if (cached_has_bits & 0x00000001u) { total_size += 2 + @@ -2000,6 +2045,13 @@ size_t Header::ByteSizeLong() const { *withdrawalhash_); } + // .types.H256 excessDataGas = 19; + if (cached_has_bits & 0x00000004u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *excessdatagas_); + } + } // uint64 blockNumber = 7; if (this->blocknumber() != 0) { @@ -2101,13 +2153,16 @@ void Header::MergeFrom(const Header& from) { _internal_mutable_transactionhash()->::types::H256::MergeFrom(from._internal_transactionhash()); } cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_mutable_basefeepergas()->::types::H256::MergeFrom(from._internal_basefeepergas()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_withdrawalhash()->::types::H256::MergeFrom(from._internal_withdrawalhash()); } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_excessdatagas()->::types::H256::MergeFrom(from._internal_excessdatagas()); + } } if (from.blocknumber() != 0) { _internal_set_blocknumber(from._internal_blocknumber()); diff --git a/silkworm/interfaces/3.14.0/execution/execution.pb.h b/silkworm/interfaces/3.14.0/execution/execution.pb.h index 4b8f6cfdc1..f0e340dde5 100644 --- a/silkworm/interfaces/3.14.0/execution/execution.pb.h +++ b/silkworm/interfaces/3.14.0/execution/execution.pb.h @@ -732,6 +732,7 @@ class Header PROTOBUF_FINAL : kTransactionHashFieldNumber = 16, kBaseFeePerGasFieldNumber = 17, kWithdrawalHashFieldNumber = 18, + kExcessDataGasFieldNumber = 19, kBlockNumberFieldNumber = 7, kGasLimitFieldNumber = 8, kGasUsedFieldNumber = 9, @@ -970,6 +971,24 @@ class Header PROTOBUF_FINAL : ::types::H256* withdrawalhash); ::types::H256* unsafe_arena_release_withdrawalhash(); + // .types.H256 excessDataGas = 19; + bool has_excessdatagas() const; + private: + bool _internal_has_excessdatagas() const; + public: + void clear_excessdatagas(); + const ::types::H256& excessdatagas() const; + ::types::H256* release_excessdatagas(); + ::types::H256* mutable_excessdatagas(); + void set_allocated_excessdatagas(::types::H256* excessdatagas); + private: + const ::types::H256& _internal_excessdatagas() const; + ::types::H256* _internal_mutable_excessdatagas(); + public: + void unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas); + ::types::H256* unsafe_arena_release_excessdatagas(); + // uint64 blockNumber = 7; void clear_blocknumber(); ::PROTOBUF_NAMESPACE_ID::uint64 blocknumber() const; @@ -1037,6 +1056,7 @@ class Header PROTOBUF_FINAL : ::types::H256* transactionhash_; ::types::H256* basefeepergas_; ::types::H256* withdrawalhash_; + ::types::H256* excessdatagas_; ::PROTOBUF_NAMESPACE_ID::uint64 blocknumber_; ::PROTOBUF_NAMESPACE_ID::uint64 gaslimit_; ::PROTOBUF_NAMESPACE_ID::uint64 gasused_; @@ -3678,6 +3698,85 @@ inline void Header::set_allocated_withdrawalhash(::types::H256* withdrawalhash) // @@protoc_insertion_point(field_set_allocated:execution.Header.withdrawalHash) } +// .types.H256 excessDataGas = 19; +inline bool Header::_internal_has_excessdatagas() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || excessdatagas_ != nullptr); + return value; +} +inline bool Header::has_excessdatagas() const { + return _internal_has_excessdatagas(); +} +inline const ::types::H256& Header::_internal_excessdatagas() const { + const ::types::H256* p = excessdatagas_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& Header::excessdatagas() const { + // @@protoc_insertion_point(field_get:execution.Header.excessDataGas) + return _internal_excessdatagas(); +} +inline void Header::unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(excessdatagas_); + } + excessdatagas_ = excessdatagas; + if (excessdatagas) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:execution.Header.excessDataGas) +} +inline ::types::H256* Header::release_excessdatagas() { + _has_bits_[0] &= ~0x00000004u; + ::types::H256* temp = excessdatagas_; + excessdatagas_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::types::H256* Header::unsafe_arena_release_excessdatagas() { + // @@protoc_insertion_point(field_release:execution.Header.excessDataGas) + _has_bits_[0] &= ~0x00000004u; + ::types::H256* temp = excessdatagas_; + excessdatagas_ = nullptr; + return temp; +} +inline ::types::H256* Header::_internal_mutable_excessdatagas() { + _has_bits_[0] |= 0x00000004u; + if (excessdatagas_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArena()); + excessdatagas_ = p; + } + return excessdatagas_; +} +inline ::types::H256* Header::mutable_excessdatagas() { + // @@protoc_insertion_point(field_mutable:execution.Header.excessDataGas) + return _internal_mutable_excessdatagas(); +} +inline void Header::set_allocated_excessdatagas(::types::H256* excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(excessdatagas_); + } + if (excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(excessdatagas)->GetArena(); + if (message_arena != submessage_arena) { + excessdatagas = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, excessdatagas, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + excessdatagas_ = excessdatagas; + // @@protoc_insertion_point(field_set_allocated:execution.Header.excessDataGas) +} + // ------------------------------------------------------------------- // BlockBody diff --git a/silkworm/interfaces/proto b/silkworm/interfaces/proto index 6d05f5fed6..450af48d1e 160000 --- a/silkworm/interfaces/proto +++ b/silkworm/interfaces/proto @@ -1 +1 @@ -Subproject commit 6d05f5fed66ae2ce84d97c7440f32151e5b581a2 +Subproject commit 450af48d1ea2cc5b83ea89c4e8abf4814ddf9a50 From 529f136574ebf16c5794f5e0d6b1eec2cd3cd7d7 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 10 Apr 2023 13:31:48 +0200 Subject: [PATCH 07/21] Excess data gas in remote client --- silkworm/node/stagedsync/remote_client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/silkworm/node/stagedsync/remote_client.cpp b/silkworm/node/stagedsync/remote_client.cpp index ef61fc5b67..2cf620a507 100644 --- a/silkworm/node/stagedsync/remote_client.cpp +++ b/silkworm/node/stagedsync/remote_client.cpp @@ -52,6 +52,9 @@ static void serialize_header(const BlockHeader& bh, ::execution::Header* header) if (bh.withdrawals_root) { header->set_allocated_withdrawalhash(rpc::H256_from_bytes32(*bh.withdrawals_root).release()); } + if (bh.excess_data_gas) { + header->set_allocated_excessdatagas(rpc::H256_from_uint256(*bh.excess_data_gas).release()); + } } static void deserialize_header(const ::execution::Header& received_header, BlockHeader& header) { @@ -77,6 +80,9 @@ static void deserialize_header(const ::execution::Header& received_header, Block if (received_header.has_withdrawalhash()) { header.withdrawals_root = rpc::bytes32_from_H256(received_header.withdrawalhash()); } + if (received_header.has_excessdatagas()) { + header.excess_data_gas = rpc::uint256_from_H256(received_header.excessdatagas()); + } } static void match_or_throw(const Hash& block_hash, const types::H256& received_hash) { From 2e43e3bc2b2581e649d69763fa662466a89051a5 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 10 Apr 2023 13:40:49 +0200 Subject: [PATCH 08/21] Update 3.21.4 again --- .../3.21.4/execution/execution.pb.cc | 154 ++++++++++++------ .../3.21.4/execution/execution.pb.h | 107 ++++++++++++ 2 files changed, 210 insertions(+), 51 deletions(-) diff --git a/silkworm/interfaces/3.21.4/execution/execution.pb.cc b/silkworm/interfaces/3.21.4/execution/execution.pb.cc index 14aac5aacf..57ff8463ef 100644 --- a/silkworm/interfaces/3.21.4/execution/execution.pb.cc +++ b/silkworm/interfaces/3.21.4/execution/execution.pb.cc @@ -81,6 +81,7 @@ PROTOBUF_CONSTEXPR Header::Header( , /*decltype(_impl_.transactionhash_)*/nullptr , /*decltype(_impl_.basefeepergas_)*/nullptr , /*decltype(_impl_.withdrawalhash_)*/nullptr + , /*decltype(_impl_.excessdatagas_)*/nullptr , /*decltype(_impl_.blocknumber_)*/uint64_t{0u} , /*decltype(_impl_.gaslimit_)*/uint64_t{0u} , /*decltype(_impl_.gasused_)*/uint64_t{0u} @@ -263,6 +264,7 @@ const uint32_t TableStruct_execution_2fexecution_2eproto::offsets[] PROTOBUF_SEC PROTOBUF_FIELD_OFFSET(::execution::Header, _impl_.transactionhash_), PROTOBUF_FIELD_OFFSET(::execution::Header, _impl_.basefeepergas_), PROTOBUF_FIELD_OFFSET(::execution::Header, _impl_.withdrawalhash_), + PROTOBUF_FIELD_OFFSET(::execution::Header, _impl_.excessdatagas_), ~0u, ~0u, ~0u, @@ -281,6 +283,7 @@ const uint32_t TableStruct_execution_2fexecution_2eproto::offsets[] PROTOBUF_SEC ~0u, 0, 1, + 2, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::execution::BlockBody, _internal_metadata_), ~0u, // no _extensions_ @@ -351,15 +354,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 0, -1, -1, sizeof(::execution::ForkChoiceReceipt)}, { 8, 17, -1, sizeof(::execution::ValidationReceipt)}, { 20, -1, -1, sizeof(::execution::IsCanonicalResponse)}, - { 27, 51, -1, sizeof(::execution::Header)}, - { 69, -1, -1, sizeof(::execution::BlockBody)}, - { 80, 87, -1, sizeof(::execution::GetHeaderResponse)}, - { 88, 95, -1, sizeof(::execution::GetBodyResponse)}, - { 96, 103, -1, sizeof(::execution::GetHeaderHashNumberResponse)}, - { 104, 112, -1, sizeof(::execution::GetSegmentRequest)}, - { 114, -1, -1, sizeof(::execution::InsertHeadersRequest)}, - { 121, -1, -1, sizeof(::execution::InsertBodiesRequest)}, - { 128, -1, -1, sizeof(::execution::EmptyMessage)}, + { 27, 52, -1, sizeof(::execution::Header)}, + { 71, -1, -1, sizeof(::execution::BlockBody)}, + { 82, 89, -1, sizeof(::execution::GetHeaderResponse)}, + { 90, 97, -1, sizeof(::execution::GetBodyResponse)}, + { 98, 105, -1, sizeof(::execution::GetHeaderHashNumberResponse)}, + { 106, 114, -1, sizeof(::execution::GetSegmentRequest)}, + { 116, -1, -1, sizeof(::execution::InsertHeadersRequest)}, + { 123, -1, -1, sizeof(::execution::InsertBodiesRequest)}, + { 130, -1, -1, sizeof(::execution::EmptyMessage)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -386,7 +389,7 @@ const char descriptor_table_protodef_execution_2fexecution_2eproto[] PROTOBUF_SE "tionStatus\022$\n\017latestValidHash\030\002 \001(\0132\013.ty" "pes.H256\022%\n\013missingHash\030\003 \001(\0132\013.types.H2" "56H\000\210\001\001B\016\n\014_missingHash\"(\n\023IsCanonicalRe" - "sponse\022\021\n\tcanonical\030\001 \001(\010\"\267\004\n\006Header\022\037\n\n" + "sponse\022\021\n\tcanonical\030\001 \001(\010\"\362\004\n\006Header\022\037\n\n" "parentHash\030\001 \001(\0132\013.types.H256\022\035\n\010coinbas" "e\030\002 \001(\0132\013.types.H160\022\036\n\tstateRoot\030\003 \001(\0132" "\013.types.H256\022 \n\013receiptRoot\030\004 \001(\0132\013.type" @@ -399,50 +402,51 @@ const char descriptor_table_protodef_execution_2fexecution_2eproto[] PROTOBUF_SE ".H256\022\036\n\tommerHash\030\017 \001(\0132\013.types.H256\022$\n" "\017transactionHash\030\020 \001(\0132\013.types.H256\022\'\n\rb" "aseFeePerGas\030\021 \001(\0132\013.types.H256H\000\210\001\001\022(\n\016" - "withdrawalHash\030\022 \001(\0132\013.types.H256H\001\210\001\001B\020" - "\n\016_baseFeePerGasB\021\n\017_withdrawalHash\"\241\001\n\t" - "BlockBody\022\036\n\tblockHash\030\001 \001(\0132\013.types.H25" - "6\022\023\n\013blockNumber\030\002 \001(\004\022\024\n\014transactions\030\003" - " \003(\014\022!\n\006uncles\030\004 \003(\0132\021.execution.Header\022" - "&\n\013withdrawals\030\005 \003(\0132\021.types.Withdrawal\"" - "F\n\021GetHeaderResponse\022&\n\006header\030\001 \001(\0132\021.e" - "xecution.HeaderH\000\210\001\001B\t\n\007_header\"C\n\017GetBo" - "dyResponse\022\'\n\004body\030\001 \001(\0132\024.execution.Blo" - "ckBodyH\000\210\001\001B\007\n\005_body\"G\n\033GetHeaderHashNum" - "berResponse\022\030\n\013blockNumber\030\001 \001(\004H\000\210\001\001B\016\n" - "\014_blockNumber\"p\n\021GetSegmentRequest\022\030\n\013bl" - "ockNumber\030\001 \001(\004H\000\210\001\001\022#\n\tblockHash\030\002 \001(\0132" - "\013.types.H256H\001\210\001\001B\016\n\014_blockNumberB\014\n\n_bl" - "ockHash\":\n\024InsertHeadersRequest\022\"\n\007heade" - "rs\030\001 \003(\0132\021.execution.Header\";\n\023InsertBod" - "iesRequest\022$\n\006bodies\030\001 \003(\0132\024.execution.B" - "lockBody\"\016\n\014EmptyMessage*U\n\020ValidationSt" - "atus\022\013\n\007Success\020\000\022\020\n\014InvalidChain\020\001\022\016\n\nT" - "ooFarAway\020\002\022\022\n\016MissingSegment\020\0032\367\004\n\tExec" - "ution\022I\n\rInsertHeaders\022\037.execution.Inser" - "tHeadersRequest\032\027.execution.EmptyMessage" - "\022G\n\014InsertBodies\022\036.execution.InsertBodie" - "sRequest\032\027.execution.EmptyMessage\022:\n\rVal" - "idateChain\022\013.types.H256\032\034.execution.Vali" - "dationReceipt\022=\n\020UpdateForkChoice\022\013.type" - "s.H256\032\034.execution.ForkChoiceReceipt\022A\n\r" - "AssembleBlock\022\027.execution.EmptyMessage\032\027" - ".types.ExecutionPayload\022G\n\tGetHeader\022\034.e" - "xecution.GetSegmentRequest\032\034.execution.G" - "etHeaderResponse\022C\n\007GetBody\022\034.execution." - "GetSegmentRequest\032\032.execution.GetBodyRes" - "ponse\022>\n\017IsCanonicalHash\022\013.types.H256\032\036." - "execution.IsCanonicalResponse\022J\n\023GetHead" - "erHashNumber\022\013.types.H256\032&.execution.Ge" - "tHeaderHashNumberResponseB\027Z\025./execution" - ";executionb\006proto3" + "withdrawalHash\030\022 \001(\0132\013.types.H256H\001\210\001\001\022\'" + "\n\rexcessDataGas\030\023 \001(\0132\013.types.H256H\002\210\001\001B" + "\020\n\016_baseFeePerGasB\021\n\017_withdrawalHashB\020\n\016" + "_excessDataGas\"\241\001\n\tBlockBody\022\036\n\tblockHas" + "h\030\001 \001(\0132\013.types.H256\022\023\n\013blockNumber\030\002 \001(" + "\004\022\024\n\014transactions\030\003 \003(\014\022!\n\006uncles\030\004 \003(\0132" + "\021.execution.Header\022&\n\013withdrawals\030\005 \003(\0132" + "\021.types.Withdrawal\"F\n\021GetHeaderResponse\022" + "&\n\006header\030\001 \001(\0132\021.execution.HeaderH\000\210\001\001B" + "\t\n\007_header\"C\n\017GetBodyResponse\022\'\n\004body\030\001 " + "\001(\0132\024.execution.BlockBodyH\000\210\001\001B\007\n\005_body\"" + "G\n\033GetHeaderHashNumberResponse\022\030\n\013blockN" + "umber\030\001 \001(\004H\000\210\001\001B\016\n\014_blockNumber\"p\n\021GetS" + "egmentRequest\022\030\n\013blockNumber\030\001 \001(\004H\000\210\001\001\022" + "#\n\tblockHash\030\002 \001(\0132\013.types.H256H\001\210\001\001B\016\n\014" + "_blockNumberB\014\n\n_blockHash\":\n\024InsertHead" + "ersRequest\022\"\n\007headers\030\001 \003(\0132\021.execution." + "Header\";\n\023InsertBodiesRequest\022$\n\006bodies\030" + "\001 \003(\0132\024.execution.BlockBody\"\016\n\014EmptyMess" + "age*U\n\020ValidationStatus\022\013\n\007Success\020\000\022\020\n\014" + "InvalidChain\020\001\022\016\n\nTooFarAway\020\002\022\022\n\016Missin" + "gSegment\020\0032\367\004\n\tExecution\022I\n\rInsertHeader" + "s\022\037.execution.InsertHeadersRequest\032\027.exe" + "cution.EmptyMessage\022G\n\014InsertBodies\022\036.ex" + "ecution.InsertBodiesRequest\032\027.execution." + "EmptyMessage\022:\n\rValidateChain\022\013.types.H2" + "56\032\034.execution.ValidationReceipt\022=\n\020Upda" + "teForkChoice\022\013.types.H256\032\034.execution.Fo" + "rkChoiceReceipt\022A\n\rAssembleBlock\022\027.execu" + "tion.EmptyMessage\032\027.types.ExecutionPaylo" + "ad\022G\n\tGetHeader\022\034.execution.GetSegmentRe" + "quest\032\034.execution.GetHeaderResponse\022C\n\007G" + "etBody\022\034.execution.GetSegmentRequest\032\032.e" + "xecution.GetBodyResponse\022>\n\017IsCanonicalH" + "ash\022\013.types.H256\032\036.execution.IsCanonical" + "Response\022J\n\023GetHeaderHashNumber\022\013.types." + "H256\032&.execution.GetHeaderHashNumberResp" + "onseB\027Z\025./execution;executionb\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_execution_2fexecution_2eproto_deps[1] = { &::descriptor_table_types_2ftypes_2eproto, }; static ::_pbi::once_flag descriptor_table_execution_2fexecution_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_execution_2fexecution_2eproto = { - false, false, 2298, descriptor_table_protodef_execution_2fexecution_2eproto, + false, false, 2357, descriptor_table_protodef_execution_2fexecution_2eproto, "execution/execution.proto", &descriptor_table_execution_2fexecution_2eproto_once, descriptor_table_execution_2fexecution_2eproto_deps, 1, 12, schemas, file_default_instances, TableStruct_execution_2fexecution_2eproto::offsets, @@ -1194,6 +1198,10 @@ class Header::_Internal { static void set_has_withdrawalhash(HasBits* has_bits) { (*has_bits)[0] |= 2u; } + static const ::types::H256& excessdatagas(const Header* msg); + static void set_has_excessdatagas(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } }; const ::types::H256& @@ -1244,6 +1252,10 @@ const ::types::H256& Header::_Internal::withdrawalhash(const Header* msg) { return *msg->_impl_.withdrawalhash_; } +const ::types::H256& +Header::_Internal::excessdatagas(const Header* msg) { + return *msg->_impl_.excessdatagas_; +} void Header::clear_parenthash() { if (GetArenaForAllocation() == nullptr && _impl_.parenthash_ != nullptr) { delete _impl_.parenthash_; @@ -1312,6 +1324,10 @@ void Header::clear_withdrawalhash() { if (_impl_.withdrawalhash_ != nullptr) _impl_.withdrawalhash_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } +void Header::clear_excessdatagas() { + if (_impl_.excessdatagas_ != nullptr) _impl_.excessdatagas_->Clear(); + _impl_._has_bits_[0] &= ~0x00000004u; +} Header::Header(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1337,6 +1353,7 @@ Header::Header(const Header& from) , decltype(_impl_.transactionhash_){nullptr} , decltype(_impl_.basefeepergas_){nullptr} , decltype(_impl_.withdrawalhash_){nullptr} + , decltype(_impl_.excessdatagas_){nullptr} , decltype(_impl_.blocknumber_){} , decltype(_impl_.gaslimit_){} , decltype(_impl_.gasused_){} @@ -1388,6 +1405,9 @@ Header::Header(const Header& from) if (from._internal_has_withdrawalhash()) { _this->_impl_.withdrawalhash_ = new ::types::H256(*from._impl_.withdrawalhash_); } + if (from._internal_has_excessdatagas()) { + _this->_impl_.excessdatagas_ = new ::types::H256(*from._impl_.excessdatagas_); + } ::memcpy(&_impl_.blocknumber_, &from._impl_.blocknumber_, static_cast(reinterpret_cast(&_impl_.nonce_) - reinterpret_cast(&_impl_.blocknumber_)) + sizeof(_impl_.nonce_)); @@ -1414,6 +1434,7 @@ inline void Header::SharedCtor( , decltype(_impl_.transactionhash_){nullptr} , decltype(_impl_.basefeepergas_){nullptr} , decltype(_impl_.withdrawalhash_){nullptr} + , decltype(_impl_.excessdatagas_){nullptr} , decltype(_impl_.blocknumber_){uint64_t{0u}} , decltype(_impl_.gaslimit_){uint64_t{0u}} , decltype(_impl_.gasused_){uint64_t{0u}} @@ -1450,6 +1471,7 @@ inline void Header::SharedDtor() { if (this != internal_default_instance()) delete _impl_.transactionhash_; if (this != internal_default_instance()) delete _impl_.basefeepergas_; if (this != internal_default_instance()) delete _impl_.withdrawalhash_; + if (this != internal_default_instance()) delete _impl_.excessdatagas_; } void Header::SetCachedSize(int size) const { @@ -1504,7 +1526,7 @@ void Header::Clear() { } _impl_.transactionhash_ = nullptr; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(_impl_.basefeepergas_ != nullptr); _impl_.basefeepergas_->Clear(); @@ -1513,6 +1535,10 @@ void Header::Clear() { GOOGLE_DCHECK(_impl_.withdrawalhash_ != nullptr); _impl_.withdrawalhash_->Clear(); } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(_impl_.excessdatagas_ != nullptr); + _impl_.excessdatagas_->Clear(); + } } ::memset(&_impl_.blocknumber_, 0, static_cast( reinterpret_cast(&_impl_.nonce_) - @@ -1673,6 +1699,14 @@ const char* Header::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; + // optional .types.H256 excessDataGas = 19; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 154)) { + ptr = ctx->ParseMessage(_internal_mutable_excessdatagas(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1823,6 +1857,13 @@ uint8_t* Header::_InternalSerialize( _Internal::withdrawalhash(this).GetCachedSize(), target, stream); } + // optional .types.H256 excessDataGas = 19; + if (_internal_has_excessdatagas()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(19, _Internal::excessdatagas(this), + _Internal::excessdatagas(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1917,7 +1958,7 @@ size_t Header::ByteSizeLong() const { } cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { // optional .types.H256 baseFeePerGas = 17; if (cached_has_bits & 0x00000001u) { total_size += 2 + @@ -1932,6 +1973,13 @@ size_t Header::ByteSizeLong() const { *_impl_.withdrawalhash_); } + // optional .types.H256 excessDataGas = 19; + if (cached_has_bits & 0x00000004u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.excessdatagas_); + } + } // uint64 blockNumber = 7; if (this->_internal_blocknumber() != 0) { @@ -2020,7 +2068,7 @@ void Header::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU from._internal_transactionhash()); } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _this->_internal_mutable_basefeepergas()->::types::H256::MergeFrom( from._internal_basefeepergas()); @@ -2029,6 +2077,10 @@ void Header::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU _this->_internal_mutable_withdrawalhash()->::types::H256::MergeFrom( from._internal_withdrawalhash()); } + if (cached_has_bits & 0x00000004u) { + _this->_internal_mutable_excessdatagas()->::types::H256::MergeFrom( + from._internal_excessdatagas()); + } } if (from._internal_blocknumber() != 0) { _this->_internal_set_blocknumber(from._internal_blocknumber()); diff --git a/silkworm/interfaces/3.21.4/execution/execution.pb.h b/silkworm/interfaces/3.21.4/execution/execution.pb.h index ae37f0b836..d6eb15d356 100644 --- a/silkworm/interfaces/3.21.4/execution/execution.pb.h +++ b/silkworm/interfaces/3.21.4/execution/execution.pb.h @@ -769,6 +769,7 @@ class Header final : kTransactionHashFieldNumber = 16, kBaseFeePerGasFieldNumber = 17, kWithdrawalHashFieldNumber = 18, + kExcessDataGasFieldNumber = 19, kBlockNumberFieldNumber = 7, kGasLimitFieldNumber = 8, kGasUsedFieldNumber = 9, @@ -1005,6 +1006,24 @@ class Header final : ::types::H256* withdrawalhash); ::types::H256* unsafe_arena_release_withdrawalhash(); + // optional .types.H256 excessDataGas = 19; + bool has_excessdatagas() const; + private: + bool _internal_has_excessdatagas() const; + public: + void clear_excessdatagas(); + const ::types::H256& excessdatagas() const; + PROTOBUF_NODISCARD ::types::H256* release_excessdatagas(); + ::types::H256* mutable_excessdatagas(); + void set_allocated_excessdatagas(::types::H256* excessdatagas); + private: + const ::types::H256& _internal_excessdatagas() const; + ::types::H256* _internal_mutable_excessdatagas(); + public: + void unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas); + ::types::H256* unsafe_arena_release_excessdatagas(); + // uint64 blockNumber = 7; void clear_blocknumber(); uint64_t blocknumber() const; @@ -1073,6 +1092,7 @@ class Header final : ::types::H256* transactionhash_; ::types::H256* basefeepergas_; ::types::H256* withdrawalhash_; + ::types::H256* excessdatagas_; uint64_t blocknumber_; uint64_t gaslimit_; uint64_t gasused_; @@ -3904,6 +3924,93 @@ inline void Header::set_allocated_withdrawalhash(::types::H256* withdrawalhash) // @@protoc_insertion_point(field_set_allocated:execution.Header.withdrawalHash) } +// optional .types.H256 excessDataGas = 19; +inline bool Header::_internal_has_excessdatagas() const { + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || _impl_.excessdatagas_ != nullptr); + return value; +} +inline bool Header::has_excessdatagas() const { + return _internal_has_excessdatagas(); +} +inline const ::types::H256& Header::_internal_excessdatagas() const { + const ::types::H256* p = _impl_.excessdatagas_; + return p != nullptr ? *p : reinterpret_cast( + ::types::_H256_default_instance_); +} +inline const ::types::H256& Header::excessdatagas() const { + // @@protoc_insertion_point(field_get:execution.Header.excessDataGas) + return _internal_excessdatagas(); +} +inline void Header::unsafe_arena_set_allocated_excessdatagas( + ::types::H256* excessdatagas) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.excessdatagas_); + } + _impl_.excessdatagas_ = excessdatagas; + if (excessdatagas) { + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:execution.Header.excessDataGas) +} +inline ::types::H256* Header::release_excessdatagas() { + _impl_._has_bits_[0] &= ~0x00000004u; + ::types::H256* temp = _impl_.excessdatagas_; + _impl_.excessdatagas_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::types::H256* Header::unsafe_arena_release_excessdatagas() { + // @@protoc_insertion_point(field_release:execution.Header.excessDataGas) + _impl_._has_bits_[0] &= ~0x00000004u; + ::types::H256* temp = _impl_.excessdatagas_; + _impl_.excessdatagas_ = nullptr; + return temp; +} +inline ::types::H256* Header::_internal_mutable_excessdatagas() { + _impl_._has_bits_[0] |= 0x00000004u; + if (_impl_.excessdatagas_ == nullptr) { + auto* p = CreateMaybeMessage<::types::H256>(GetArenaForAllocation()); + _impl_.excessdatagas_ = p; + } + return _impl_.excessdatagas_; +} +inline ::types::H256* Header::mutable_excessdatagas() { + ::types::H256* _msg = _internal_mutable_excessdatagas(); + // @@protoc_insertion_point(field_mutable:execution.Header.excessDataGas) + return _msg; +} +inline void Header::set_allocated_excessdatagas(::types::H256* excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.excessdatagas_); + } + if (excessdatagas) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(excessdatagas)); + if (message_arena != submessage_arena) { + excessdatagas = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, excessdatagas, submessage_arena); + } + _impl_._has_bits_[0] |= 0x00000004u; + } else { + _impl_._has_bits_[0] &= ~0x00000004u; + } + _impl_.excessdatagas_ = excessdatagas; + // @@protoc_insertion_point(field_set_allocated:execution.Header.excessDataGas) +} + // ------------------------------------------------------------------- // BlockBody From 8d26902e4085a416e61d66ab14b5b7e460569f57 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Thu, 13 Apr 2023 11:03:54 +0200 Subject: [PATCH 09/21] post-merge fix --- silkworm/node/stagedsync/remote_client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/silkworm/node/stagedsync/remote_client.cpp b/silkworm/node/stagedsync/remote_client.cpp index 0fee721a11..1ae152a0a7 100644 --- a/silkworm/node/stagedsync/remote_client.cpp +++ b/silkworm/node/stagedsync/remote_client.cpp @@ -53,7 +53,7 @@ static void serialize_header(const BlockHeader& bh, ::execution::Header* header) header->set_allocated_withdrawal_hash(rpc::H256_from_bytes32(*bh.withdrawals_root).release()); } if (bh.excess_data_gas) { - header->set_allocated_excessdatagas(rpc::H256_from_uint256(*bh.excess_data_gas).release()); + header->set_allocated_excess_data_gas(rpc::H256_from_uint256(*bh.excess_data_gas).release()); } } @@ -80,8 +80,8 @@ static void deserialize_header(const ::execution::Header& received_header, Block if (received_header.has_withdrawal_hash()) { header.withdrawals_root = rpc::bytes32_from_H256(received_header.withdrawal_hash()); } - if (received_header.has_excessdatagas()) { - header.excess_data_gas = rpc::uint256_from_H256(received_header.excessdatagas()); + if (received_header.has_excess_data_gas()) { + header.excess_data_gas = rpc::uint256_from_H256(received_header.excess_data_gas()); } } From b24454c65f603c425f810d4a7ce9b49024955bcb Mon Sep 17 00:00:00 2001 From: yperbasis Date: Sun, 16 Apr 2023 09:38:55 +0200 Subject: [PATCH 10/21] Add EIP-4844 transaction type --- silkworm/core/consensus/engine.cpp | 21 +-- silkworm/core/consensus/engine.hpp | 2 + silkworm/core/types/transaction.cpp | 2 +- silkworm/core/types/transaction.hpp | 4 + .../node/stagedsync/stages/stage_senders.cpp | 24 +--- silkworm/silkrpc/common/util_test.cpp | 80 +++++------ silkworm/silkrpc/json/types_test.cpp | 135 +++++++++--------- silkworm/silkrpc/types/transaction_test.cpp | 106 +++++++------- 8 files changed, 178 insertions(+), 196 deletions(-) diff --git a/silkworm/core/consensus/engine.cpp b/silkworm/core/consensus/engine.cpp index fcdd344b71..bed311137f 100644 --- a/silkworm/core/consensus/engine.cpp +++ b/silkworm/core/consensus/engine.cpp @@ -28,6 +28,17 @@ namespace silkworm::consensus { +bool transaction_type_is_supported(Transaction::Type type, evmc_revision rev) { + static constexpr evmc_revision kMinRevisionByType[]{ + EVMC_FRONTIER, // kLegacy + EVMC_BERLIN, // kEip2930 + EVMC_LONDON, // kEip1559 + EVMC_CANCUN, // kEip4844 + }; + const auto n{static_cast(type)}; + return n < std::size(kMinRevisionByType) && rev >= kMinRevisionByType[n]; +} + ValidationResult pre_validate_transaction(const Transaction& txn, const evmc_revision rev, const uint64_t chain_id, const std::optional& base_fee_per_gas) { if (txn.chain_id.has_value()) { @@ -36,15 +47,7 @@ ValidationResult pre_validate_transaction(const Transaction& txn, const evmc_rev } } - if (txn.type == Transaction::Type::kEip2930) { - if (rev < EVMC_BERLIN) { - return ValidationResult::kUnsupportedTransactionType; - } - } else if (txn.type == Transaction::Type::kEip1559) { - if (rev < EVMC_LONDON) { - return ValidationResult::kUnsupportedTransactionType; - } - } else if (txn.type != Transaction::Type::kLegacy) { + if (!transaction_type_is_supported(txn.type, rev)) { return ValidationResult::kUnsupportedTransactionType; } diff --git a/silkworm/core/consensus/engine.hpp b/silkworm/core/consensus/engine.hpp index 7837a42530..7939a0d069 100644 --- a/silkworm/core/consensus/engine.hpp +++ b/silkworm/core/consensus/engine.hpp @@ -71,6 +71,8 @@ class IEngine { virtual evmc::address get_beneficiary(const BlockHeader& header) = 0; }; +bool transaction_type_is_supported(Transaction::Type, evmc_revision); + //! \brief Performs validation of a transaction that can be done prior to sender recovery and block execution. //! \return Any of kIntrinsicGas, kInvalidSignature, kWrongChainId, kUnsupportedTransactionType, or kOk. //! \remarks Should sender of transaction not yet recovered a check on signature's validity is performed diff --git a/silkworm/core/types/transaction.cpp b/silkworm/core/types/transaction.cpp index 16a95694c5..14900e229b 100644 --- a/silkworm/core/types/transaction.cpp +++ b/silkworm/core/types/transaction.cpp @@ -33,7 +33,7 @@ bool operator==(const Transaction& a, const Transaction& b) { return a.type == b.type && a.nonce == b.nonce && a.max_priority_fee_per_gas == b.max_priority_fee_per_gas && a.max_fee_per_gas == b.max_fee_per_gas && a.gas_limit == b.gas_limit && a.to == b.to && a.value == b.value && a.data == b.data && a.odd_y_parity == b.odd_y_parity && a.chain_id == b.chain_id && a.r == b.r && - a.s == b.s && a.access_list == b.access_list; + a.s == b.s && a.access_list == b.access_list && a.blob_versioned_hashes == b.blob_versioned_hashes; } // https://eips.ethereum.org/EIPS/eip-155 diff --git a/silkworm/core/types/transaction.hpp b/silkworm/core/types/transaction.hpp index 48e9a3299e..6efef9b71a 100644 --- a/silkworm/core/types/transaction.hpp +++ b/silkworm/core/types/transaction.hpp @@ -23,6 +23,7 @@ #include #include +#include namespace silkworm { @@ -41,6 +42,7 @@ struct Transaction { kLegacy = 0, kEip2930 = 1, kEip1559 = 2, + kEip4844 = 3, }; Type type{Type::kLegacy}; @@ -59,6 +61,8 @@ struct Transaction { std::vector access_list{}; // EIP-2930 + std::vector blob_versioned_hashes{}; // EIP-4844 + std::optional from{std::nullopt}; // sender recovered from the signature [[nodiscard]] intx::uint256 v() const; // EIP-155 diff --git a/silkworm/node/stagedsync/stages/stage_senders.cpp b/silkworm/node/stagedsync/stages/stage_senders.cpp index 74f3b05cb7..0807528b9e 100644 --- a/silkworm/node/stagedsync/stages/stage_senders.cpp +++ b/silkworm/node/stagedsync/stages/stage_senders.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -453,28 +454,13 @@ Stage::Result Senders::add_to_batch(BlockNum block_num, std::vector const evmc_revision rev{node_settings_->chain_config->revision(block_num, /*block_time=*/0)}; const bool has_homestead{rev >= EVMC_HOMESTEAD}; const bool has_spurious_dragon{rev >= EVMC_SPURIOUS_DRAGON}; - const bool has_berlin{rev >= EVMC_BERLIN}; - const bool has_london{rev >= EVMC_LONDON}; uint32_t tx_id{0}; for (const auto& transaction : transactions) { - switch (transaction.type) { - case Transaction::Type::kLegacy: - break; - case Transaction::Type::kEip2930: - if (!has_berlin) { - log::Error(log_prefix_) << "Transaction type " << magic_enum::enum_name(transaction.type) - << " for transaction #" << tx_id << " in block #" << block_num << " before Berlin"; - return Stage::Result::kInvalidTransaction; - } - break; - case Transaction::Type::kEip1559: - if (!has_london) { - log::Error(log_prefix_) << "Transaction type " << magic_enum::enum_name(transaction.type) - << " for transaction #" << tx_id << " in block #" << block_num << " before London"; - return Stage::Result::kInvalidTransaction; - } - break; + if (!consensus::transaction_type_is_supported(transaction.type, rev)) { + log::Error(log_prefix_) << "Transaction type " << magic_enum::enum_name(transaction.type) + << " for transaction #" << tx_id << " in block #" << block_num << " before it's supported"; + return Stage::Result::kInvalidTransaction; } if (!is_valid_signature(transaction.r, transaction.s, has_homestead)) { diff --git a/silkworm/silkrpc/common/util_test.cpp b/silkworm/silkrpc/common/util_test.cpp index 133bfe5c87..aa715aae99 100644 --- a/silkworm/silkrpc/common/util_test.cpp +++ b/silkworm/silkrpc/common/util_test.cpp @@ -133,19 +133,18 @@ TEST_CASE("check_tx_fee_less_cap returns false", "[silkrpc][common][util]") { } TEST_CASE("is_replay_protected(tx legacy) returns true", "[silkrpc][common][util]") { - const silkworm::Transaction txn{ - silkworm::Transaction::Type::kEip2930, - 0, // nonce - 50'000 * kGiga, // max_priority_fee_per_gas - 50'000 * kGiga, // max_fee_per_gas - 21'000, // gas_limit - 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, // to - 31337, // value - {}, // data - true, // odd_y_parity - std::nullopt, // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s + const Transaction txn{ + .type = Transaction::Type::kEip2930, + .nonce = 0, + .max_priority_fee_per_gas = 50'000 * kGiga, + .max_fee_per_gas = 50'000 * kGiga, + .gas_limit = 21'000, + .to = 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, + .value = 31337, + .odd_y_parity = true, + .chain_id = std::nullopt, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), }; auto check = is_replay_protected(txn); @@ -153,39 +152,38 @@ TEST_CASE("is_replay_protected(tx legacy) returns true", "[silkrpc][common][util } TEST_CASE("is_replay_protected returns true", "[silkrpc][common][util]") { - silkworm::Transaction txn{ - silkworm::Transaction::Type::kLegacy, // type - 0, - 20000000000, - 20000000000, - uint64_t{0}, - 0x0715a7794a1dc8e42615f059dd6e406a6594651a_address, - intx::uint256{8}, - *silkworm::from_hex("001122aabbcc"), - false, - intx::uint256{9}, - intx::uint256{18}, - intx::uint256{36}, - std::vector{}, - 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address}; + Transaction txn{ + .type = Transaction::Type::kLegacy, + .nonce = 0, + .max_priority_fee_per_gas = 20000000000, + .max_fee_per_gas = 20000000000, + .gas_limit = 0, + .to = 0x0715a7794a1dc8e42615f059dd6e406a6594651a_address, + .value = 8, + .data = *from_hex("001122aabbcc"), + .odd_y_parity = false, + .chain_id = 9, + .r = 18, + .s = 36, + .from = 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, + }; auto check = is_replay_protected(txn); CHECK(check == true); } TEST_CASE("is_replay_protected returns false", "[silkrpc][common][util]") { - const silkworm::Transaction txn{ - silkworm::Transaction::Type::kLegacy, // type - 0, // nonce - 50'000 * kGiga, // max_priority_fee_per_gas - 50'000 * kGiga, // max_fee_per_gas - 21'000, // gas_limit - 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, // to - 31337, // value - {}, // data - true, // odd_y_parity - std::nullopt, // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s + const Transaction txn{ + .type = Transaction::Type::kLegacy, + .nonce = 0, + .max_priority_fee_per_gas = 50'000 * kGiga, + .max_fee_per_gas = 50'000 * kGiga, + .gas_limit = 21'000, + .to = 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, + .value = 31337, + .odd_y_parity = true, + .chain_id = std::nullopt, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), }; auto check = is_replay_protected(txn); diff --git a/silkworm/silkrpc/json/types_test.cpp b/silkworm/silkrpc/json/types_test.cpp index da6b4e4554..8e18c8f128 100644 --- a/silkworm/silkrpc/json/types_test.cpp +++ b/silkworm/silkrpc/json/types_test.cpp @@ -799,20 +799,18 @@ TEST_CASE("serialize legacy transaction (type=0)", "[silkrpc][to_json]") { silkworm::rpc::Transaction txn2{ { - silkworm::Transaction::Type::kLegacy, // type - 0, // nonce - 50'000 * kGiga, // max_priority_fee_per_gas - 50'000 * kGiga, // max_fee_per_gas - 21'000, // gas_limit - 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, // to - 31337, // value - {}, // data - true, // odd_y_parity - std::nullopt, // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s - std::vector{}, // access_list - 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, // from + .type = Transaction::Type::kLegacy, + .nonce = 0, + .max_priority_fee_per_gas = 50'000 * kGiga, + .max_fee_per_gas = 50'000 * kGiga, + .gas_limit = 21'000, + .to = 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, + .value = 31337, + .odd_y_parity = true, + .chain_id = std::nullopt, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), + .from = 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, }, 0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd_bytes32, // block_hash 46147, // block_number @@ -839,20 +837,18 @@ TEST_CASE("serialize legacy transaction (type=0)", "[silkrpc][to_json]") { })"_json); silkworm::rpc::Transaction txn3{ { - silkworm::Transaction::Type::kLegacy, // type - 0, // nonce - 50'000 * kGiga, // max_priority_fee_per_gas - 50'000 * kGiga, // max_fee_per_gas - 21'000, // gas_limit - 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, // to - 31337, // value - {}, // data - true, // odd_y_parity - std::nullopt, // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s - std::vector{}, // access_list - 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, // from + .type = Transaction::Type::kLegacy, + .nonce = 0, + .max_priority_fee_per_gas = 50'000 * kGiga, + .max_fee_per_gas = 50'000 * kGiga, + .gas_limit = 21'000, + .to = 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, + .value = 31337, + .odd_y_parity = true, + .chain_id = std::nullopt, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), + .from = 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, }, 0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd_bytes32, // block_hash 46147, // block_number @@ -882,20 +878,20 @@ TEST_CASE("serialize legacy transaction (type=0)", "[silkrpc][to_json]") { TEST_CASE("serialize EIP-2930 transaction (type=1)", "[silkrpc][to_json]") { silkworm::Transaction txn1{ - silkworm::Transaction::Type::kEip2930, - 0, - 20000000000, - 20000000000, - uint64_t{0}, - 0x0715a7794a1dc8e42615f059dd6e406a6594651a_address, - intx::uint256{0}, - *silkworm::from_hex("001122aabbcc"), - false, - intx::uint256{1}, - intx::uint256{18}, - intx::uint256{36}, - std::vector{}, - 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address}; + .type = Transaction::Type::kEip2930, + .nonce = 0, + .max_priority_fee_per_gas = 20000000000, + .max_fee_per_gas = 20000000000, + .gas_limit = 0, + .to = 0x0715a7794a1dc8e42615f059dd6e406a6594651a_address, + .value = 0, + .data = *from_hex("001122aabbcc"), + .odd_y_parity = false, + .chain_id = 1, + .r = 18, + .s = 36, + .from = 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, + }; nlohmann::json j1 = txn1; CHECK(j1 == R"({ "nonce":"0x0", @@ -924,20 +920,20 @@ TEST_CASE("serialize EIP-2930 transaction (type=1)", "[silkrpc][to_json]") { silkworm::rpc::Transaction txn2{ { - silkworm::Transaction::Type::kEip2930, - 0, - 20000000000, - 30000000000, - uint64_t{0}, - 0x0715a7794a1dc8e42615f059dd6e406a6594651a_address, - intx::uint256{0}, - *silkworm::from_hex("001122aabbcc"), - false, - intx::uint256{1}, - intx::uint256{18}, - intx::uint256{36}, - access_list, - 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, + .type = Transaction::Type::kEip2930, + .nonce = 0, + .max_priority_fee_per_gas = 20000000000, + .max_fee_per_gas = 30000000000, + .gas_limit = 0, + .to = 0x0715a7794a1dc8e42615f059dd6e406a6594651a_address, + .value = 0, + .data = *from_hex("001122aabbcc"), + .odd_y_parity = false, + .chain_id = 1, + .r = 18, + .s = 36, + .access_list = access_list, + .from = 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, }, 0x374f3a049e006f36f6cf91b02a3b0ee16c858af2f75858733eb0e927b5b7126c_bytes32, 123123, @@ -979,20 +975,19 @@ TEST_CASE("serialize EIP-2930 transaction (type=1)", "[silkrpc][to_json]") { TEST_CASE("serialize EIP-1559 transaction (type=2)", "[silkrpc][to_json]") { silkworm::Transaction txn1{ - silkworm::Transaction::Type::kEip1559, // type - 0, // nonce - 50'000 * kGiga, // max_priority_fee_per_gas - 50'000 * kGiga, // max_fee_per_gas - 21'000, // gas_limit - 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, // to - 31337, // value - *silkworm::from_hex("001122aabbcc"), // data - true, // odd_y_parity - intx::uint256{1}, // chainId - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s - std::vector{}, - 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address // + .type = Transaction::Type::kEip1559, + .nonce = 0, + .max_priority_fee_per_gas = 50'000 * kGiga, + .max_fee_per_gas = 50'000 * kGiga, + .gas_limit = 21'000, + .to = 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, + .value = 31337, + .data = *from_hex("001122aabbcc"), + .odd_y_parity = true, + .chain_id = intx::uint256{1}, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), + .from = 0x007fb8417eb9ad4d958b050fc3720d5b46a2c053_address, }; nlohmann::json j1 = txn1; CHECK(j1 == R"({ diff --git a/silkworm/silkrpc/types/transaction_test.cpp b/silkworm/silkrpc/types/transaction_test.cpp index d86669d993..a2d6b38c41 100644 --- a/silkworm/silkrpc/types/transaction_test.cpp +++ b/silkworm/silkrpc/types/transaction_test.cpp @@ -52,20 +52,19 @@ TEST_CASE("print type-2 transaction", "[silkrpc][types][transaction]") { // https://etherscan.io/tx/0x4b408a48f927f03a63502fb63f7d42c5c4783737ebe8d084cef157575d40f344 Transaction txn{ { - silkworm::Transaction::Type::kEip1559, // type - 371, // nonce - 1 * kGiga, // max_priority_fee_per_gas - 217'914'097'876, // max_fee_per_gas - 613'991, // gas_limit - 0x14efa0d4b0f9850ba1787edc730324962446d7cc_address, // to - 210'000'000 * kGiga, // value - *silkworm::from_hex("0x6ecd23060000000000000000000000000000000000000000000000000000000000000005"), // data - true, // odd_y_parity - intx::from_string("0x1"), // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s - std::vector{}, // access list - 0x7ad75fdb6244111753822140dad3337f5535f718_address, // from + .type = Transaction::Type::kEip1559, + .nonce = 371, + .max_priority_fee_per_gas = 1 * kGiga, + .max_fee_per_gas = 217'914'097'876, + .gas_limit = 613'991, + .to = 0x14efa0d4b0f9850ba1787edc730324962446d7cc_address, + .value = 210'000'000 * kGiga, + .data = *from_hex("0x6ecd23060000000000000000000000000000000000000000000000000000000000000005"), + .odd_y_parity = true, + .chain_id = 1, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), + .from = 0x7ad75fdb6244111753822140dad3337f5535f718_address, }, 0x007fe79ccdd5365f46c34336b8a15b36e05c249a0c62596878236a38034edc21_bytes32, // block hash 13116571, // block number @@ -78,20 +77,19 @@ TEST_CASE("print type-2 transaction", "[silkrpc][types][transaction]") { TEST_CASE("print type-2 silkworm::transaction", "[silkrpc][types][silkworm::transaction]") { // https://etherscan.io/tx/0x4b408a48f927f03a63502fb63f7d42c5c4783737ebe8d084cef157575d40f344 silkworm::Transaction txn{ - silkworm::Transaction::Type::kEip1559, // type - 371, // nonce - 1 * kGiga, // max_priority_fee_per_gas - 217'914'097'876, // max_fee_per_gas - 613'991, // gas_limit - 0x14efa0d4b0f9850ba1787edc730324962446d7cc_address, // to - 210'000'000 * kGiga, // value - *silkworm::from_hex("0x6ecd23060000000000000000000000000000000000000000000000000000000000000005"), // data - true, // odd_y_parity - intx::from_string("0x1"), // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s - std::vector{}, // access list - 0x7ad75fdb6244111753822140dad3337f5535f718_address, // from + .type = Transaction::Type::kEip1559, + .nonce = 371, + .max_priority_fee_per_gas = 1 * kGiga, + .max_fee_per_gas = 217'914'097'876, + .gas_limit = 613'991, + .to = 0x14efa0d4b0f9850ba1787edc730324962446d7cc_address, + .value = 210'000'000 * kGiga, + .data = *from_hex("0x6ecd23060000000000000000000000000000000000000000000000000000000000000005"), + .odd_y_parity = true, + .chain_id = 1, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), + .from = 0x7ad75fdb6244111753822140dad3337f5535f718_address, }; CHECK_NOTHROW(null_stream() << txn); } @@ -100,20 +98,18 @@ TEST_CASE("create legacy transaction", "[silkrpc][types][transaction]") { // https://etherscan.io/tx/0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060 Transaction txn{ { - silkworm::Transaction::Type::kLegacy, // type - 0, // nonce - 50'000 * kGiga, // max_priority_fee_per_gas - 50'000 * kGiga, // max_fee_per_gas - 21'000, // gas_limit - 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, // to - 31337, // value - {}, // data - true, // odd_y_parity - std::nullopt, // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s - std::vector{}, // access list - 0xa1e4380a3b1f749673e270229993ee55f35663b4_address, // from + .type = Transaction::Type::kLegacy, + .nonce = 0, + .max_priority_fee_per_gas = 50'000 * kGiga, + .max_fee_per_gas = 50'000 * kGiga, + .gas_limit = 21'000, + .to = 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, + .value = 31337, + .odd_y_parity = true, + .chain_id = std::nullopt, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), + .from = 0xa1e4380a3b1f749673e270229993ee55f35663b4_address, }, 0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd_bytes32, // block hash 46147, // block number @@ -127,20 +123,18 @@ TEST_CASE("create legacy transaction", "[silkrpc][types][transaction]") { TEST_CASE("create legacy silkworm::transaction", "[silkrpc][types][silkworm::transaction]") { // https://etherscan.io/tx/0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060 silkworm::Transaction txn{ - silkworm::Transaction::Type::kLegacy, // type - 0, // nonce - 50'000 * kGiga, // max_priority_fee_per_gas - 50'000 * kGiga, // max_fee_per_gas - 21'000, // gas_limit - 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, // to - 31337, // value - {}, // data - true, // odd_y_parity - std::nullopt, // chain_id - intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), // r - intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), // s - std::vector{}, // access list - 0xa1e4380a3b1f749673e270229993ee55f35663b4_address, // from + .type = Transaction::Type::kLegacy, + .nonce = 0, + .max_priority_fee_per_gas = 50'000 * kGiga, + .max_fee_per_gas = 50'000 * kGiga, + .gas_limit = 21'000, + .to = 0x5df9b87991262f6ba471f09758cde1c0fc1de734_address, + .value = 31337, + .odd_y_parity = true, + .chain_id = std::nullopt, + .r = intx::from_string("0x88ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0"), + .s = intx::from_string("0x45e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33a"), + .from = 0xa1e4380a3b1f749673e270229993ee55f35663b4_address, }; CHECK_NOTHROW(null_stream() << txn); From 492e53f6e014b66daffbbdb8ea885337ef4b6573 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Sun, 16 Apr 2023 11:52:04 +0200 Subject: [PATCH 11/21] Basic transaction validation --- silkworm/core/chain/protocol_param.hpp | 5 +++++ silkworm/core/consensus/base/engine.cpp | 8 ++++++++ silkworm/core/consensus/engine.cpp | 15 +++++++++++++++ silkworm/core/consensus/validation.hpp | 3 +++ silkworm/core/crypto/kzg.cpp | 3 ++- 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a/silkworm/core/chain/protocol_param.hpp b/silkworm/core/chain/protocol_param.hpp index 3b51a0109f..90c66b93ae 100644 --- a/silkworm/core/chain/protocol_param.hpp +++ b/silkworm/core/chain/protocol_param.hpp @@ -61,6 +61,11 @@ namespace param { inline constexpr uint64_t kBaseFeeMaxChangeDenominator{8}; inline constexpr uint64_t kElasticityMultiplier{2}; + // EIP-4844: Shard Blob Transactions + inline constexpr uint8_t kBlobCommitmentVersionKzg{1}; + inline constexpr uint64_t kMaxDataGasPerBlock{0x80000}; // 2^19 + inline constexpr uint64_t kDataGasPerBlock{0x20000}; // 2^17 + } // namespace param } // namespace silkworm diff --git a/silkworm/core/consensus/base/engine.cpp b/silkworm/core/consensus/base/engine.cpp index 194664c43a..279ba68b74 100644 --- a/silkworm/core/consensus/base/engine.cpp +++ b/silkworm/core/consensus/base/engine.cpp @@ -53,6 +53,14 @@ ValidationResult EngineBase::pre_validate_block_body(const Block& block, const B } } + size_t total_blobs{0}; + for (const Transaction& tx : block.transactions) { + total_blobs += tx.blob_versioned_hashes.size(); + } + if (total_blobs > param::kMaxDataGasPerBlock / param::kDataGasPerBlock) { + return ValidationResult::kTooManyBlobs; + } + if (block.ommers.empty()) { return header.ommers_hash == kEmptyListHash ? ValidationResult::kOk : ValidationResult::kWrongOmmersHash; } else if (prohibit_ommers_) { diff --git a/silkworm/core/consensus/engine.cpp b/silkworm/core/consensus/engine.cpp index bed311137f..7ebcb50f07 100644 --- a/silkworm/core/consensus/engine.cpp +++ b/silkworm/core/consensus/engine.cpp @@ -83,6 +83,21 @@ ValidationResult pre_validate_transaction(const Transaction& txn, const evmc_rev return ValidationResult::kMaxInitCodeSizeExceeded; } + // EIP-4844: Shard Blob Transactions + if (txn.type == Transaction::Type::kEip4844) { + if (txn.blob_versioned_hashes.empty()) { + return ValidationResult::kNoBlobs; + } + for (const Hash& h : txn.blob_versioned_hashes) { + if (h.bytes[0] != param::kBlobCommitmentVersionKzg) { + return ValidationResult::kWrongBlobCommitmentVersion; + } + } + // TODO(yperbasis): There is an equal amount of versioned hashes, kzg commitments and blobs. + // The KZG commitments hash to the versioned hashes, i.e. kzg_to_versioned_hash(kzg[i]) == versioned_hash[i] + // The KZG commitments match the blob contents. + } + return ValidationResult::kOk; } diff --git a/silkworm/core/consensus/validation.hpp b/silkworm/core/consensus/validation.hpp index 213f803cd3..0354f70afd 100644 --- a/silkworm/core/consensus/validation.hpp +++ b/silkworm/core/consensus/validation.hpp @@ -84,6 +84,9 @@ enum class [[nodiscard]] ValidationResult{ // EIP-4844: Shard Blob Transactions kMissingExcessDataGas, kUnexpectedExcessDataGas, + kNoBlobs, + kTooManyBlobs, + kWrongBlobCommitmentVersion, }; } // namespace silkworm diff --git a/silkworm/core/crypto/kzg.cpp b/silkworm/core/crypto/kzg.cpp index ec7082c496..ced590724d 100644 --- a/silkworm/core/crypto/kzg.cpp +++ b/silkworm/core/crypto/kzg.cpp @@ -18,6 +18,7 @@ #include +#include #include // Based on https://github.com/ethereum/c-kzg-4844/blob/main/src/c_kzg_4844.c @@ -61,7 +62,7 @@ static const G2 kKzgSetupG2_1{ Hash kzg_to_versioned_hash(ByteView kzg) { Hash hash; silkworm_sha256(hash.bytes, kzg.data(), kzg.length(), /*use_cpu_extensions=*/true); - hash.bytes[0] = 0x1; + hash.bytes[0] = param::kBlobCommitmentVersionKzg; return hash; } From 7d58cdb920452962a06d3c0a5632feb28bd8ccbc Mon Sep 17 00:00:00 2001 From: yperbasis Date: Sun, 16 Apr 2023 12:53:03 +0200 Subject: [PATCH 12/21] Add max_fee_per_data_gas to Transaction --- silkworm/core/types/transaction.cpp | 3 ++- silkworm/core/types/transaction.hpp | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/silkworm/core/types/transaction.cpp b/silkworm/core/types/transaction.cpp index 14900e229b..3e0d774868 100644 --- a/silkworm/core/types/transaction.cpp +++ b/silkworm/core/types/transaction.cpp @@ -33,7 +33,8 @@ bool operator==(const Transaction& a, const Transaction& b) { return a.type == b.type && a.nonce == b.nonce && a.max_priority_fee_per_gas == b.max_priority_fee_per_gas && a.max_fee_per_gas == b.max_fee_per_gas && a.gas_limit == b.gas_limit && a.to == b.to && a.value == b.value && a.data == b.data && a.odd_y_parity == b.odd_y_parity && a.chain_id == b.chain_id && a.r == b.r && - a.s == b.s && a.access_list == b.access_list && a.blob_versioned_hashes == b.blob_versioned_hashes; + a.s == b.s && a.access_list == b.access_list && a.max_fee_per_data_gas == b.max_fee_per_data_gas && + a.blob_versioned_hashes == b.blob_versioned_hashes; } // https://eips.ethereum.org/EIPS/eip-155 diff --git a/silkworm/core/types/transaction.hpp b/silkworm/core/types/transaction.hpp index 6efef9b71a..8ef3d84246 100644 --- a/silkworm/core/types/transaction.hpp +++ b/silkworm/core/types/transaction.hpp @@ -61,9 +61,12 @@ struct Transaction { std::vector access_list{}; // EIP-2930 - std::vector blob_versioned_hashes{}; // EIP-4844 + // EIP-4844: Shard Blob Transactions + std::optional max_fee_per_data_gas{std::nullopt}; + std::vector blob_versioned_hashes{}; - std::optional from{std::nullopt}; // sender recovered from the signature + // sender recovered from the signature + std::optional from{std::nullopt}; [[nodiscard]] intx::uint256 v() const; // EIP-155 From bf7eec4e72abd31eda6c15b8fc9d81b51f17eb9c Mon Sep 17 00:00:00 2001 From: yperbasis Date: Sun, 16 Apr 2023 12:58:46 +0200 Subject: [PATCH 13/21] calc_excess_data_gas --- silkworm/core/chain/protocol_param.hpp | 5 ++-- silkworm/core/consensus/base/engine.cpp | 39 +++++++++++++++++++------ silkworm/core/consensus/base/engine.hpp | 6 +++- silkworm/core/consensus/validation.hpp | 3 +- 4 files changed, 39 insertions(+), 14 deletions(-) diff --git a/silkworm/core/chain/protocol_param.hpp b/silkworm/core/chain/protocol_param.hpp index 90c66b93ae..a6b276e1e5 100644 --- a/silkworm/core/chain/protocol_param.hpp +++ b/silkworm/core/chain/protocol_param.hpp @@ -63,8 +63,9 @@ namespace param { // EIP-4844: Shard Blob Transactions inline constexpr uint8_t kBlobCommitmentVersionKzg{1}; - inline constexpr uint64_t kMaxDataGasPerBlock{0x80000}; // 2^19 - inline constexpr uint64_t kDataGasPerBlock{0x20000}; // 2^17 + inline constexpr uint64_t kMaxDataGasPerBlock{0x80000}; // 2^19 + inline constexpr uint64_t kTargetDataGasPerBlock{0x40000}; // 2^18 + inline constexpr uint64_t kDataGasPerBlob{0x20000}; // 2^17 } // namespace param diff --git a/silkworm/core/consensus/base/engine.cpp b/silkworm/core/consensus/base/engine.cpp index 279ba68b74..fd24cff079 100644 --- a/silkworm/core/consensus/base/engine.cpp +++ b/silkworm/core/consensus/base/engine.cpp @@ -57,10 +57,19 @@ ValidationResult EngineBase::pre_validate_block_body(const Block& block, const B for (const Transaction& tx : block.transactions) { total_blobs += tx.blob_versioned_hashes.size(); } - if (total_blobs > param::kMaxDataGasPerBlock / param::kDataGasPerBlock) { + if (total_blobs > param::kMaxDataGasPerBlock / param::kDataGasPerBlob) { return ValidationResult::kTooManyBlobs; } + const std::optional parent{get_parent_header(state, header)}; + if (!parent) { + return ValidationResult::kUnknownParent; + } + + if (header.excess_data_gas != calc_excess_data_gas(header, *parent, total_blobs)) { + return ValidationResult::kWrongExcessDataGas; + } + if (block.ommers.empty()) { return header.ommers_hash == kEmptyListHash ? ValidationResult::kOk : ValidationResult::kWrongOmmersHash; } else if (prohibit_ommers_) { @@ -197,13 +206,6 @@ ValidationResult EngineBase::validate_block_header(const BlockHeader& header, co return ValidationResult::kMissingWithdrawals; } - if (rev < EVMC_CANCUN && header.excess_data_gas) { - return ValidationResult::kUnexpectedExcessDataGas; - } - if (rev >= EVMC_CANCUN && !header.excess_data_gas) { - return ValidationResult::kMissingExcessDataGas; - } - return validate_seal(header); } @@ -245,7 +247,8 @@ evmc::address EngineBase::get_beneficiary(const BlockHeader& header) { return he std::optional EngineBase::expected_base_fee_per_gas(const BlockHeader& header, const BlockHeader& parent) { - if (chain_config_.revision(header.number, header.timestamp) < EVMC_LONDON) { + const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; + if (rev < EVMC_LONDON) { return std::nullopt; } @@ -282,6 +285,24 @@ std::optional EngineBase::expected_base_fee_per_gas(const BlockHe } } +std::optional EngineBase::calc_excess_data_gas(const BlockHeader& header, + const BlockHeader& parent, + std::size_t num_blobs) { + const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; + if (rev < EVMC_CANCUN) { + return std::nullopt; + } + + const uint64_t consumed_data_gas{num_blobs * param::kDataGasPerBlob}; + const intx::uint256 parent_excess_data_gas{parent.excess_data_gas.value_or(0)}; + + if (parent_excess_data_gas + consumed_data_gas < param::kTargetDataGasPerBlock) { + return 0; + } else { + return parent_excess_data_gas + consumed_data_gas - param::kTargetDataGasPerBlock; + } +} + evmc::bytes32 EngineBase::compute_transaction_root(const BlockBody& body) { static constexpr auto kEncoder = [](Bytes& to, const Transaction& txn) { rlp::encode(to, txn, /*for_signing=*/false, /*wrap_eip2718_into_string=*/false); diff --git a/silkworm/core/consensus/base/engine.hpp b/silkworm/core/consensus/base/engine.hpp index 0cd302e0e5..87313437ab 100644 --- a/silkworm/core/consensus/base/engine.hpp +++ b/silkworm/core/consensus/base/engine.hpp @@ -58,9 +58,13 @@ class EngineBase : public IEngine { //! \brief Validates the difficulty of the header virtual ValidationResult validate_difficulty(const BlockHeader& header, const BlockHeader& parent) = 0; - //! \brief See https://eips.ethereum.org/EIPS/eip-1559 + //! \see EIP-1559: Fee market change for ETH 1.0 chain std::optional expected_base_fee_per_gas(const BlockHeader& header, const BlockHeader& parent); + //! \see EIP-4844: Shard Blob Transactions + std::optional calc_excess_data_gas(const BlockHeader& header, const BlockHeader& parent, + std::size_t num_blobs); + //! \brief Returns parent header (if any) of provided header static std::optional get_parent_header(const BlockState& state, const BlockHeader& header); diff --git a/silkworm/core/consensus/validation.hpp b/silkworm/core/consensus/validation.hpp index 0354f70afd..ec2c183ab3 100644 --- a/silkworm/core/consensus/validation.hpp +++ b/silkworm/core/consensus/validation.hpp @@ -82,8 +82,7 @@ enum class [[nodiscard]] ValidationResult{ kWrongWithdrawalsRoot, // EIP-4844: Shard Blob Transactions - kMissingExcessDataGas, - kUnexpectedExcessDataGas, + kWrongExcessDataGas, kNoBlobs, kTooManyBlobs, kWrongBlobCommitmentVersion, From 16b09e17843a05be1420a3dab6df35f1306b6c8e Mon Sep 17 00:00:00 2001 From: yperbasis Date: Sun, 16 Apr 2023 16:46:43 +0200 Subject: [PATCH 14/21] Turn some EngineBase methods into free-standing functions --- silkworm/core/consensus/base/engine.cpp | 31 +++++++++------------ silkworm/core/consensus/base/engine.hpp | 26 ++++++++--------- silkworm/core/consensus/pos/engine_test.cpp | 2 +- silkworm/sync/internals/body_sequence.cpp | 10 ++++--- silkworm/sync/sync_engine_pos.cpp | 2 +- 5 files changed, 34 insertions(+), 37 deletions(-) diff --git a/silkworm/core/consensus/base/engine.cpp b/silkworm/core/consensus/base/engine.cpp index fd24cff079..489e428561 100644 --- a/silkworm/core/consensus/base/engine.cpp +++ b/silkworm/core/consensus/base/engine.cpp @@ -26,6 +26,7 @@ namespace silkworm::consensus { ValidationResult EngineBase::pre_validate_block_body(const Block& block, const BlockState& state) { const BlockHeader& header{block.header}; + const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; const evmc::bytes32 txn_root{compute_transaction_root(block)}; if (txn_root != header.transactions_root) { @@ -36,7 +37,6 @@ ValidationResult EngineBase::pre_validate_block_body(const Block& block, const B return err; } - const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; if (rev < EVMC_SHANGHAI && block.withdrawals) { return ValidationResult::kUnexpectedWithdrawals; } @@ -66,7 +66,7 @@ ValidationResult EngineBase::pre_validate_block_body(const Block& block, const B return ValidationResult::kUnknownParent; } - if (header.excess_data_gas != calc_excess_data_gas(header, *parent, total_blobs)) { + if (header.excess_data_gas != calc_excess_data_gas(*parent, total_blobs, rev)) { return ValidationResult::kWrongExcessDataGas; } @@ -193,12 +193,12 @@ ValidationResult EngineBase::validate_block_header(const BlockHeader& header, co } } - if (header.base_fee_per_gas != expected_base_fee_per_gas(header, parent.value())) { + const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; + + if (header.base_fee_per_gas != expected_base_fee_per_gas(*parent, rev)) { return ValidationResult::kWrongBaseFee; } - const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; - if (rev < EVMC_SHANGHAI && header.withdrawals_root) { return ValidationResult::kUnexpectedWithdrawals; } @@ -245,21 +245,17 @@ bool EngineBase::is_kin(const BlockHeader& branch_header, const BlockHeader& mai evmc::address EngineBase::get_beneficiary(const BlockHeader& header) { return header.beneficiary; } -std::optional EngineBase::expected_base_fee_per_gas(const BlockHeader& header, - const BlockHeader& parent) { - const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; +std::optional expected_base_fee_per_gas(const BlockHeader& parent, const evmc_revision rev) { if (rev < EVMC_LONDON) { return std::nullopt; } - if (header.number == chain_config_.london_block) { + if (!parent.base_fee_per_gas) { return param::kInitialBaseFee; } const uint64_t parent_gas_target{parent.gas_limit / param::kElasticityMultiplier}; - - assert(parent.base_fee_per_gas.has_value()); - const intx::uint256 parent_base_fee_per_gas{parent.base_fee_per_gas.value()}; + const intx::uint256& parent_base_fee_per_gas{*parent.base_fee_per_gas}; if (parent.gas_used == parent_gas_target) { return parent_base_fee_per_gas; @@ -285,10 +281,9 @@ std::optional EngineBase::expected_base_fee_per_gas(const BlockHe } } -std::optional EngineBase::calc_excess_data_gas(const BlockHeader& header, - const BlockHeader& parent, - std::size_t num_blobs) { - const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; +std::optional calc_excess_data_gas(const BlockHeader& parent, + std::size_t num_blobs, + const evmc_revision rev) { if (rev < EVMC_CANCUN) { return std::nullopt; } @@ -303,14 +298,14 @@ std::optional EngineBase::calc_excess_data_gas(const BlockHeader& } } -evmc::bytes32 EngineBase::compute_transaction_root(const BlockBody& body) { +evmc::bytes32 compute_transaction_root(const BlockBody& body) { static constexpr auto kEncoder = [](Bytes& to, const Transaction& txn) { rlp::encode(to, txn, /*for_signing=*/false, /*wrap_eip2718_into_string=*/false); }; return trie::root_hash(body.transactions, kEncoder); } -evmc::bytes32 EngineBase::compute_ommers_hash(const BlockBody& body) { +evmc::bytes32 compute_ommers_hash(const BlockBody& body) { if (body.ommers.empty()) { return kEmptyListHash; } diff --git a/silkworm/core/consensus/base/engine.hpp b/silkworm/core/consensus/base/engine.hpp index 87313437ab..8d1cf5356a 100644 --- a/silkworm/core/consensus/base/engine.hpp +++ b/silkworm/core/consensus/base/engine.hpp @@ -58,22 +58,9 @@ class EngineBase : public IEngine { //! \brief Validates the difficulty of the header virtual ValidationResult validate_difficulty(const BlockHeader& header, const BlockHeader& parent) = 0; - //! \see EIP-1559: Fee market change for ETH 1.0 chain - std::optional expected_base_fee_per_gas(const BlockHeader& header, const BlockHeader& parent); - - //! \see EIP-4844: Shard Blob Transactions - std::optional calc_excess_data_gas(const BlockHeader& header, const BlockHeader& parent, - std::size_t num_blobs); - //! \brief Returns parent header (if any) of provided header static std::optional get_parent_header(const BlockState& state, const BlockHeader& header); - //! \brief Calculate the transaction root of a block body - static evmc::bytes32 compute_transaction_root(const BlockBody& body); - - //! \brief Calculate the hash of ommers of a block body - static evmc::bytes32 compute_ommers_hash(const BlockBody& body); - protected: const ChainConfig& chain_config_; bool prohibit_ommers_{false}; @@ -84,4 +71,17 @@ class EngineBase : public IEngine { std::vector& old_ommers); }; +//! \see EIP-1559: Fee market change for ETH 1.0 chain +std::optional expected_base_fee_per_gas(const BlockHeader& parent, const evmc_revision); + +//! \see EIP-4844: Shard Blob Transactions +std::optional calc_excess_data_gas(const BlockHeader& parent, std::size_t num_blobs, + const evmc_revision); + +//! \brief Calculate the transaction root of a block body +evmc::bytes32 compute_transaction_root(const BlockBody& body); + +//! \brief Calculate the hash of ommers of a block body +evmc::bytes32 compute_ommers_hash(const BlockBody& body); + } // namespace silkworm::consensus diff --git a/silkworm/core/consensus/pos/engine_test.cpp b/silkworm/core/consensus/pos/engine_test.cpp index fb214247e2..74134e3fe4 100644 --- a/silkworm/core/consensus/pos/engine_test.cpp +++ b/silkworm/core/consensus/pos/engine_test.cpp @@ -47,7 +47,7 @@ TEST_CASE("Proof-of-Stake consensus engine") { EthashEngine ethash_engine{kMainnetConfig}; ProofOfStakeEngine pos_engine{kMainnetConfig}; - header.base_fee_per_gas = pos_engine.expected_base_fee_per_gas(header, parent.header); + header.base_fee_per_gas = expected_base_fee_per_gas(parent.header, EVMC_LONDON); InMemoryState state; state.insert_block(parent, header.parent_hash); diff --git a/silkworm/sync/internals/body_sequence.cpp b/silkworm/sync/internals/body_sequence.cpp index e18bd8124a..4e10cf5afb 100644 --- a/silkworm/sync/internals/body_sequence.cpp +++ b/silkworm/sync/internals/body_sequence.cpp @@ -71,8 +71,8 @@ Penalty BodySequence::accept_requested_bodies(BlockBodiesPacket66& packet, const auto matching_requests = body_requests_.find_by_request_id(packet.requestId); for (auto& body : packet.request) { - Hash oh = consensus::EngineBase::compute_ommers_hash(body); - Hash tr = consensus::EngineBase::compute_transaction_root(body); + Hash oh = consensus::compute_ommers_hash(body); + Hash tr = consensus::compute_transaction_root(body); auto exact_request = body_requests_.end(); // = no request @@ -283,10 +283,12 @@ void BodySequence::request_nack(const GetBlockBodiesPacket66& packet) { } bool BodySequence::is_valid_body(const BlockHeader& header, const BlockBody& body) { - if (header.ommers_hash != consensus::EngineBase::compute_ommers_hash(body)) + if (header.ommers_hash != consensus::compute_ommers_hash(body)) { return false; - if (header.transactions_root != consensus::EngineBase::compute_transaction_root(body)) + } + if (header.transactions_root != consensus::compute_transaction_root(body)) { return false; + } return true; } diff --git a/silkworm/sync/sync_engine_pos.cpp b/silkworm/sync/sync_engine_pos.cpp index f26ee94390..46f84522b3 100644 --- a/silkworm/sync/sync_engine_pos.cpp +++ b/silkworm/sync/sync_engine_pos.cpp @@ -117,7 +117,7 @@ Block PoSSync::make_execution_block(const ExecutionPayload& payload) { } block.transactions.push_back(tx); } - header.transactions_root = consensus::EngineBase::compute_transaction_root(block); + header.transactions_root = consensus::compute_transaction_root(block); // as per EIP-3675 header.ommers_hash = kEmptyListHash; // = Keccak256(RLP([])) From 10883e697ee8a4dc3dd59f7fdf6d1a68ffdefd4e Mon Sep 17 00:00:00 2001 From: yperbasis Date: Sun, 16 Apr 2023 17:17:34 +0200 Subject: [PATCH 15/21] Gas accounting part 1 --- silkworm/core/execution/processor.cpp | 11 +++++++++-- silkworm/core/types/transaction.cpp | 5 +++++ silkworm/core/types/transaction.hpp | 4 +++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/silkworm/core/execution/processor.cpp b/silkworm/core/execution/processor.cpp index 373b2310ea..ec94721bb5 100644 --- a/silkworm/core/execution/processor.cpp +++ b/silkworm/core/execution/processor.cpp @@ -45,8 +45,13 @@ ValidationResult ExecutionProcessor::validate_transaction(const Transaction& txn return ValidationResult::kWrongNonce; } - // https://github.com/ethereum/EIPs/pull/3594 - const intx::uint512 max_gas_cost{intx::umul(intx::uint256{txn.gas_limit}, txn.max_fee_per_gas)}; + // See https://github.com/ethereum/EIPs/pull/3594 + intx::uint512 max_gas_cost{intx::umul(intx::uint256{txn.gas_limit}, txn.max_fee_per_gas)}; + // and https://eips.ethereum.org/EIPS/eip-4844#gas-accounting + if (txn.max_fee_per_data_gas) { + max_gas_cost += intx::umul(intx::uint256{txn.total_data_gas()}, *txn.max_fee_per_data_gas); + } + // See YP, Eq (57) in Section 6.2 "Execution" const intx::uint512 v0{max_gas_cost + txn.value}; if (state_.get_balance(*txn.from) < v0) { @@ -93,6 +98,8 @@ void ExecutionProcessor::execute_transaction(const Transaction& txn, Receipt& re state_.access_account(evm_.beneficiary); } + // TODO(yperbasis): EIP-4844 data_gasprice + const intx::uint256 base_fee_per_gas{evm_.block().header.base_fee_per_gas.value_or(0)}; const intx::uint256 effective_gas_price{txn.effective_gas_price(base_fee_per_gas)}; state_.subtract_from_balance(*txn.from, txn.gas_limit * effective_gas_price); diff --git a/silkworm/core/types/transaction.cpp b/silkworm/core/types/transaction.cpp index 3e0d774868..0b6d21e0a5 100644 --- a/silkworm/core/types/transaction.cpp +++ b/silkworm/core/types/transaction.cpp @@ -20,6 +20,7 @@ #include +#include #include #include #include @@ -450,4 +451,8 @@ intx::uint256 Transaction::effective_gas_price(const intx::uint256& base_fee_per return priority_fee_per_gas(base_fee_per_gas) + base_fee_per_gas; } +uint64_t Transaction::total_data_gas() const { + return param::kDataGasPerBlob * blob_versioned_hashes.size(); +} + } // namespace silkworm diff --git a/silkworm/core/types/transaction.hpp b/silkworm/core/types/transaction.hpp index 8ef3d84246..33f4e30a4b 100644 --- a/silkworm/core/types/transaction.hpp +++ b/silkworm/core/types/transaction.hpp @@ -48,7 +48,7 @@ struct Transaction { Type type{Type::kLegacy}; uint64_t nonce{0}; - intx::uint256 max_priority_fee_per_gas{0}; + intx::uint256 max_priority_fee_per_gas{0}; // EIP-1559 intx::uint256 max_fee_per_gas{0}; uint64_t gas_limit{0}; std::optional to{std::nullopt}; @@ -82,6 +82,8 @@ struct Transaction { [[nodiscard]] intx::uint256 priority_fee_per_gas(const intx::uint256& base_fee_per_gas) const; // EIP-1559 [[nodiscard]] intx::uint256 effective_gas_price(const intx::uint256& base_fee_per_gas) const; // EIP-1559 + + [[nodiscard]] uint64_t total_data_gas() const; // EIP-4844 }; bool operator==(const Transaction& a, const Transaction& b); From 63eba314d90b1dea2c9b3ba496aab1c32788aba0 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 17 Apr 2023 10:34:01 +0200 Subject: [PATCH 16/21] Clearer constants --- silkworm/core/chain/protocol_param.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/silkworm/core/chain/protocol_param.hpp b/silkworm/core/chain/protocol_param.hpp index a6b276e1e5..b18afcccf6 100644 --- a/silkworm/core/chain/protocol_param.hpp +++ b/silkworm/core/chain/protocol_param.hpp @@ -63,9 +63,9 @@ namespace param { // EIP-4844: Shard Blob Transactions inline constexpr uint8_t kBlobCommitmentVersionKzg{1}; - inline constexpr uint64_t kMaxDataGasPerBlock{0x80000}; // 2^19 - inline constexpr uint64_t kTargetDataGasPerBlock{0x40000}; // 2^18 - inline constexpr uint64_t kDataGasPerBlob{0x20000}; // 2^17 + inline constexpr uint64_t kMaxDataGasPerBlock{1u << 19}; + inline constexpr uint64_t kTargetDataGasPerBlock{1u << 18}; + inline constexpr uint64_t kDataGasPerBlob{1u << 17}; } // namespace param From bae8d7e94f500ace30c4870d0374c9c07ba56375 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Mon, 17 Apr 2023 19:06:38 +0200 Subject: [PATCH 17/21] Gas accounting part 2 --- cmd/test/consensus.cpp | 4 ++- silkworm/core/chain/protocol_param.hpp | 2 ++ silkworm/core/consensus/base/engine.cpp | 6 +++-- silkworm/core/consensus/engine.cpp | 8 +++++- silkworm/core/consensus/engine.hpp | 4 +-- silkworm/core/consensus/engine_test.cpp | 34 +++++++++++++------------ silkworm/core/consensus/validation.hpp | 1 + silkworm/core/types/block.cpp | 26 +++++++++++++++++++ silkworm/core/types/block.hpp | 7 +++-- 9 files changed, 68 insertions(+), 24 deletions(-) diff --git a/cmd/test/consensus.cpp b/cmd/test/consensus.cpp index f5f5b80e04..83b34884a2 100644 --- a/cmd/test/consensus.cpp +++ b/cmd/test/consensus.cpp @@ -599,7 +599,8 @@ RunResults transaction_test(const nlohmann::json& j) { txn.from.reset(); if (ValidationResult err{ - pre_validate_transaction(txn, rev, config.chain_id, /*base_fee_per_gas=*/std::nullopt)}; + pre_validate_transaction(txn, rev, config.chain_id, /*base_fee_per_gas=*/std::nullopt, + /*data_gas_price=*/std::nullopt)}; err != ValidationResult::kOk) { if (should_be_valid) { std::cout << "Validation error " << magic_enum::enum_name(err) << std::endl; @@ -609,6 +610,7 @@ RunResults transaction_test(const nlohmann::json& j) { } } + // TODO(yperbasis): move to pre_validate_transaction and switch to uint256 in validate_transaction? const intx::uint512 max_gas_cost{intx::umul(intx::uint256{txn.gas_limit}, txn.max_fee_per_gas)}; // A corollary check of the following assertion from EIP-1559: // signer.balance >= transaction.gas_limit * transaction.max_fee_per_gas diff --git a/silkworm/core/chain/protocol_param.hpp b/silkworm/core/chain/protocol_param.hpp index b18afcccf6..4b9d9367d7 100644 --- a/silkworm/core/chain/protocol_param.hpp +++ b/silkworm/core/chain/protocol_param.hpp @@ -66,6 +66,8 @@ namespace param { inline constexpr uint64_t kMaxDataGasPerBlock{1u << 19}; inline constexpr uint64_t kTargetDataGasPerBlock{1u << 18}; inline constexpr uint64_t kDataGasPerBlob{1u << 17}; + inline constexpr uint64_t kMinDataGasPrice{1}; + inline constexpr uint64_t kDataGasPriceUpdateFraction{2225652}; } // namespace param diff --git a/silkworm/core/consensus/base/engine.cpp b/silkworm/core/consensus/base/engine.cpp index 489e428561..7b2b7587fc 100644 --- a/silkworm/core/consensus/base/engine.cpp +++ b/silkworm/core/consensus/base/engine.cpp @@ -88,9 +88,11 @@ ValidationResult EngineBase::pre_validate_transactions(const Block& block) { const BlockHeader& header{block.header}; const evmc_revision rev{chain_config_.revision(header.number, header.timestamp)}; + const std::optional data_gas_price{header.data_gas_price()}; for (const Transaction& txn : block.transactions) { - if (ValidationResult err{pre_validate_transaction(txn, rev, chain_config_.chain_id, header.base_fee_per_gas)}; - err != ValidationResult::kOk) { + ValidationResult err{pre_validate_transaction(txn, rev, chain_config_.chain_id, + header.base_fee_per_gas, data_gas_price)}; + if (err != ValidationResult::kOk) { return err; } } diff --git a/silkworm/core/consensus/engine.cpp b/silkworm/core/consensus/engine.cpp index 7ebcb50f07..60a4b8d449 100644 --- a/silkworm/core/consensus/engine.cpp +++ b/silkworm/core/consensus/engine.cpp @@ -40,7 +40,8 @@ bool transaction_type_is_supported(Transaction::Type type, evmc_revision rev) { } ValidationResult pre_validate_transaction(const Transaction& txn, const evmc_revision rev, const uint64_t chain_id, - const std::optional& base_fee_per_gas) { + const std::optional& base_fee_per_gas, + const std::optional& data_gas_price) { if (txn.chain_id.has_value()) { if (rev < EVMC_SPURIOUS_DRAGON || txn.chain_id.value() != chain_id) { return ValidationResult::kWrongChainId; @@ -93,6 +94,11 @@ ValidationResult pre_validate_transaction(const Transaction& txn, const evmc_rev return ValidationResult::kWrongBlobCommitmentVersion; } } + SILKWORM_ASSERT(txn.max_fee_per_data_gas); + SILKWORM_ASSERT(data_gas_price); + if (txn.max_fee_per_data_gas < data_gas_price) { + return ValidationResult::kMaxFeePerDataGasTooLow; + } // TODO(yperbasis): There is an equal amount of versioned hashes, kzg commitments and blobs. // The KZG commitments hash to the versioned hashes, i.e. kzg_to_versioned_hash(kzg[i]) == versioned_hash[i] // The KZG commitments match the blob contents. diff --git a/silkworm/core/consensus/engine.hpp b/silkworm/core/consensus/engine.hpp index 7939a0d069..49eae21ac9 100644 --- a/silkworm/core/consensus/engine.hpp +++ b/silkworm/core/consensus/engine.hpp @@ -74,11 +74,11 @@ class IEngine { bool transaction_type_is_supported(Transaction::Type, evmc_revision); //! \brief Performs validation of a transaction that can be done prior to sender recovery and block execution. -//! \return Any of kIntrinsicGas, kInvalidSignature, kWrongChainId, kUnsupportedTransactionType, or kOk. //! \remarks Should sender of transaction not yet recovered a check on signature's validity is performed //! \remarks These function is agnostic to whole block validity ValidationResult pre_validate_transaction(const Transaction& txn, evmc_revision revision, uint64_t chain_id, - const std::optional& base_fee_per_gas); + const std::optional& base_fee_per_gas, + const std::optional& data_gas_price); //! \brief Creates an instance of proper Consensus Engine on behalf of chain configuration std::unique_ptr engine_factory(const ChainConfig& chain_config); diff --git a/silkworm/core/consensus/engine_test.cpp b/silkworm/core/consensus/engine_test.cpp index f0f1febf72..e06b2dcf19 100644 --- a/silkworm/core/consensus/engine_test.cpp +++ b/silkworm/core/consensus/engine_test.cpp @@ -48,65 +48,67 @@ TEST_CASE("Consensus Engine Seal") { TEST_CASE("Validate transaction types") { const std::optional base_fee_per_gas{std::nullopt}; + const std::optional data_gas_price{std::nullopt}; Transaction txn; txn.type = Transaction::Type::kLegacy; - CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kUnsupportedTransactionType); txn.type = static_cast(0x03); // unsupported transaction type - CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kUnsupportedTransactionType); txn.type = Transaction::Type::kEip2930; - CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kUnsupportedTransactionType); txn.type = Transaction::Type::kEip1559; - CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_ISTANBUL, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_BERLIN, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kUnsupportedTransactionType); - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kUnsupportedTransactionType); } TEST_CASE("Validate max_fee_per_gas") { const std::optional base_fee_per_gas{1'000'000'000}; + const std::optional data_gas_price{std::nullopt}; Transaction txn; txn.type = Transaction::Type::kEip1559; txn.max_priority_fee_per_gas = 500'000'000; txn.max_fee_per_gas = 700'000'000; - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kMaxFeeLessThanBase); txn.max_priority_fee_per_gas = 3'000'000'000; txn.max_fee_per_gas = 2'000'000'000; - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) == + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) == ValidationResult::kMaxPriorityFeeGreaterThanMax); txn.max_priority_fee_per_gas = 2'000'000'000; txn.max_fee_per_gas = 2'000'000'000; - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kMaxPriorityFeeGreaterThanMax); txn.max_priority_fee_per_gas = 1'000'000'000; txn.max_fee_per_gas = 2'000'000'000; - CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas) != + CHECK(pre_validate_transaction(txn, EVMC_LONDON, 1, base_fee_per_gas, data_gas_price) != ValidationResult::kMaxPriorityFeeGreaterThanMax); } diff --git a/silkworm/core/consensus/validation.hpp b/silkworm/core/consensus/validation.hpp index ec2c183ab3..005b81a23a 100644 --- a/silkworm/core/consensus/validation.hpp +++ b/silkworm/core/consensus/validation.hpp @@ -86,6 +86,7 @@ enum class [[nodiscard]] ValidationResult{ kNoBlobs, kTooManyBlobs, kWrongBlobCommitmentVersion, + kMaxFeePerDataGasTooLow, // max_fee_per_data_gas < data_gas_price }; } // namespace silkworm diff --git a/silkworm/core/types/block.cpp b/silkworm/core/types/block.cpp index f1b7ace862..d7293bd31c 100644 --- a/silkworm/core/types/block.cpp +++ b/silkworm/core/types/block.cpp @@ -16,6 +16,7 @@ #include "block.hpp" +#include #include #include @@ -35,6 +36,31 @@ ethash::hash256 BlockHeader::boundary() const { return intx::be::store(result); } +// Approximates factor*e^(numerator/denominator) using Taylor expansion. +// See https://eips.ethereum.org/EIPS/eip-4844#helpers +static intx::uint256 fake_exponential(const intx::uint256& factor, + const intx::uint256& numerator, + const intx::uint256& denominator) { + intx::uint256 output{0}; + intx::uint256 numerator_accum{factor * denominator}; + for (unsigned i{1}; numerator_accum > 0; ++i) { + output += numerator_accum; + numerator_accum = (numerator_accum * numerator) / (denominator * i); + } + return output / denominator; +} + +std::optional BlockHeader::data_gas_price() const { + if (!excess_data_gas) { + return std::nullopt; + } + + return fake_exponential( + param::kMinDataGasPrice, + *excess_data_gas, + param::kDataGasPriceUpdateFraction); +} + //! \brief Recover transaction senders for each block. void Block::recover_senders() { for (Transaction& txn : transactions) { diff --git a/silkworm/core/types/block.hpp b/silkworm/core/types/block.hpp index e0cfe9991e..68b214033d 100644 --- a/silkworm/core/types/block.hpp +++ b/silkworm/core/types/block.hpp @@ -74,9 +74,12 @@ struct BlockHeader { [[nodiscard]] evmc::bytes32 hash(bool for_sealing = false, bool exclude_extra_data_sig = false) const; - //! \brief Calculates header's boundary. This is described by Equation(50) by the yellow paper. + //! \brief Calculates header's boundary. This is described by Equation(50) by the Yellow Paper. //! \return A hash of 256 bits with big endian byte order - [[nodiscard, maybe_unused]] ethash::hash256 boundary() const; + [[nodiscard]] ethash::hash256 boundary() const; + + //! \see https://eips.ethereum.org/EIPS/eip-4844#gas-accounting + [[nodiscard]] std::optional data_gas_price() const; friend bool operator==(const BlockHeader&, const BlockHeader&) = default; From 579fcea2db6298a43ac945cf9bcd2c4f5e8f7b30 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Tue, 18 Apr 2023 15:47:09 +0200 Subject: [PATCH 18/21] Extract up_front_gas_cost() --- cmd/test/consensus.cpp | 13 ------------- silkworm/core/consensus/engine.cpp | 4 ++++ silkworm/core/execution/processor.cpp | 11 ++--------- silkworm/core/types/transaction.cpp | 10 ++++++++++ silkworm/core/types/transaction.hpp | 6 +++++- 5 files changed, 21 insertions(+), 23 deletions(-) diff --git a/cmd/test/consensus.cpp b/cmd/test/consensus.cpp index 83b34884a2..675aa4a2bf 100644 --- a/cmd/test/consensus.cpp +++ b/cmd/test/consensus.cpp @@ -610,19 +610,6 @@ RunResults transaction_test(const nlohmann::json& j) { } } - // TODO(yperbasis): move to pre_validate_transaction and switch to uint256 in validate_transaction? - const intx::uint512 max_gas_cost{intx::umul(intx::uint256{txn.gas_limit}, txn.max_fee_per_gas)}; - // A corollary check of the following assertion from EIP-1559: - // signer.balance >= transaction.gas_limit * transaction.max_fee_per_gas - if (intx::count_significant_bytes(max_gas_cost) > 32) { - if (should_be_valid) { - std::cout << "gas_limit * max_fee_per_gas overflow\n"; - return Status::kFailed; - } else { - continue; - } - } - txn.recover_sender(); if (should_be_valid && !txn.from.has_value()) { std::cout << "Failed to recover sender" << std::endl; diff --git a/silkworm/core/consensus/engine.cpp b/silkworm/core/consensus/engine.cpp index 60a4b8d449..b6c609a97f 100644 --- a/silkworm/core/consensus/engine.cpp +++ b/silkworm/core/consensus/engine.cpp @@ -73,6 +73,10 @@ ValidationResult pre_validate_transaction(const Transaction& txn, const evmc_rev return ValidationResult::kIntrinsicGas; } + if (intx::count_significant_bytes(txn.up_front_gas_cost()) > 32) { + return ValidationResult::kInsufficientFunds; + } + // EIP-2681: Limit account nonce to 2^64-1 if (txn.nonce >= UINT64_MAX) { return ValidationResult::kNonceTooHigh; diff --git a/silkworm/core/execution/processor.cpp b/silkworm/core/execution/processor.cpp index ec94721bb5..1467d2d8ee 100644 --- a/silkworm/core/execution/processor.cpp +++ b/silkworm/core/execution/processor.cpp @@ -45,15 +45,8 @@ ValidationResult ExecutionProcessor::validate_transaction(const Transaction& txn return ValidationResult::kWrongNonce; } - // See https://github.com/ethereum/EIPs/pull/3594 - intx::uint512 max_gas_cost{intx::umul(intx::uint256{txn.gas_limit}, txn.max_fee_per_gas)}; - // and https://eips.ethereum.org/EIPS/eip-4844#gas-accounting - if (txn.max_fee_per_data_gas) { - max_gas_cost += intx::umul(intx::uint256{txn.total_data_gas()}, *txn.max_fee_per_data_gas); - } - - // See YP, Eq (57) in Section 6.2 "Execution" - const intx::uint512 v0{max_gas_cost + txn.value}; + // See YP, Eq (61) in Section 6.2 "Execution" + const intx::uint512 v0{txn.up_front_gas_cost() + txn.value}; if (state_.get_balance(*txn.from) < v0) { return ValidationResult::kInsufficientFunds; } diff --git a/silkworm/core/types/transaction.cpp b/silkworm/core/types/transaction.cpp index 0b6d21e0a5..b1a3a540c9 100644 --- a/silkworm/core/types/transaction.cpp +++ b/silkworm/core/types/transaction.cpp @@ -442,6 +442,16 @@ void Transaction::recover_sender() { } } +intx::uint512 Transaction::up_front_gas_cost() const { + // See https://github.com/ethereum/EIPs/pull/3594 + intx::uint512 max_gas_cost{intx::umul(intx::uint256{gas_limit}, max_fee_per_gas)}; + // and https://eips.ethereum.org/EIPS/eip-4844#gas-accounting + if (max_fee_per_data_gas) { + max_gas_cost += intx::umul(intx::uint256{total_data_gas()}, *max_fee_per_data_gas); + } + return max_gas_cost; +} + intx::uint256 Transaction::priority_fee_per_gas(const intx::uint256& base_fee_per_gas) const { assert(max_fee_per_gas >= base_fee_per_gas); return std::min(max_priority_fee_per_gas, max_fee_per_gas - base_fee_per_gas); diff --git a/silkworm/core/types/transaction.hpp b/silkworm/core/types/transaction.hpp index 33f4e30a4b..b7f7ba87e2 100644 --- a/silkworm/core/types/transaction.hpp +++ b/silkworm/core/types/transaction.hpp @@ -74,12 +74,16 @@ struct Transaction { [[nodiscard]] bool set_v(const intx::uint256& v); //! \brief Populates the from field with recovered sender. - //! See Yellow Paper, Appendix F "Signing Transactions", + //! \see Yellow Paper, Appendix F "Signing Transactions", //! https://eips.ethereum.org/EIPS/eip-2 and //! https://eips.ethereum.org/EIPS/eip-155. //! If recovery fails the from field is set to null. void recover_sender(); + //! \brief Corresponds to the up-front gas cost Tg*Tp in the Yellow Paper + //! \see Eq (61) in Section 6.2 "Execution" + [[nodiscard]] intx::uint512 up_front_gas_cost() const; + [[nodiscard]] intx::uint256 priority_fee_per_gas(const intx::uint256& base_fee_per_gas) const; // EIP-1559 [[nodiscard]] intx::uint256 effective_gas_price(const intx::uint256& base_fee_per_gas) const; // EIP-1559 From e1aa500ad8c1c3c8b115f2bd09a7e90313a68922 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Tue, 18 Apr 2023 16:33:32 +0200 Subject: [PATCH 19/21] Stricter assert --- silkworm/core/types/transaction.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/silkworm/core/types/transaction.cpp b/silkworm/core/types/transaction.cpp index b1a3a540c9..88bd30851e 100644 --- a/silkworm/core/types/transaction.cpp +++ b/silkworm/core/types/transaction.cpp @@ -16,8 +16,6 @@ #include "transaction.hpp" -#include - #include #include @@ -113,7 +111,7 @@ namespace rlp { h.payload_length += length(txn.data); if (txn.type != Transaction::Type::kLegacy) { - assert(txn.type == Transaction::Type::kEip2930 || txn.type == Transaction::Type::kEip1559); + SILKWORM_ASSERT(txn.type == Transaction::Type::kEip2930 || txn.type == Transaction::Type::kEip1559); h.payload_length += length(txn.access_list); } @@ -169,7 +167,7 @@ namespace rlp { } static void eip2718_encode(Bytes& to, const Transaction& txn, bool for_signing, bool wrap_into_array) { - assert(txn.type == Transaction::Type::kEip2930 || txn.type == Transaction::Type::kEip1559); + SILKWORM_ASSERT(txn.type == Transaction::Type::kEip2930 || txn.type == Transaction::Type::kEip1559); Header rlp_head{rlp_header(txn, for_signing)}; @@ -453,7 +451,7 @@ intx::uint512 Transaction::up_front_gas_cost() const { } intx::uint256 Transaction::priority_fee_per_gas(const intx::uint256& base_fee_per_gas) const { - assert(max_fee_per_gas >= base_fee_per_gas); + SILKWORM_ASSERT(max_fee_per_gas >= base_fee_per_gas); return std::min(max_priority_fee_per_gas, max_fee_per_gas - base_fee_per_gas); } From f3af746c74a1a30f012d2ff3f68ba7dccc553470 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Tue, 18 Apr 2023 16:41:06 +0200 Subject: [PATCH 20/21] Gas accounting part 3 --- silkworm/core/execution/processor.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/silkworm/core/execution/processor.cpp b/silkworm/core/execution/processor.cpp index 1467d2d8ee..1ee229edf4 100644 --- a/silkworm/core/execution/processor.cpp +++ b/silkworm/core/execution/processor.cpp @@ -69,10 +69,10 @@ void ExecutionProcessor::execute_transaction(const Transaction& txn, Receipt& re state_.clear_journal_and_substate(); - assert(txn.from.has_value()); + assert(txn.from); state_.access_account(*txn.from); - if (txn.to.has_value()) { + if (txn.to) { state_.access_account(*txn.to); // EVM itself increments the nonce for contract creation state_.set_nonce(*txn.from, txn.nonce + 1); @@ -91,12 +91,15 @@ void ExecutionProcessor::execute_transaction(const Transaction& txn, Receipt& re state_.access_account(evm_.beneficiary); } - // TODO(yperbasis): EIP-4844 data_gasprice - + // EIP-1559 normal gas cost const intx::uint256 base_fee_per_gas{evm_.block().header.base_fee_per_gas.value_or(0)}; const intx::uint256 effective_gas_price{txn.effective_gas_price(base_fee_per_gas)}; state_.subtract_from_balance(*txn.from, txn.gas_limit * effective_gas_price); + // EIP-4844 data gas cost (calc_data_fee) + const intx::uint256 data_gas_price{evm_.block().header.data_gas_price().value_or(0)}; + state_.subtract_from_balance(*txn.from, txn.total_data_gas() * data_gas_price); + const intx::uint128 g0{intrinsic_gas(txn, rev)}; assert(g0 <= UINT64_MAX); // true due to the precondition (transaction must be valid) From 1f020c5d74005f49497081008c5eec2e7e904357 Mon Sep 17 00:00:00 2001 From: yperbasis Date: Tue, 18 Apr 2023 16:49:50 +0200 Subject: [PATCH 21/21] up_front_gas_cost -> maximum_gas_cost --- silkworm/core/consensus/engine.cpp | 2 +- silkworm/core/execution/processor.cpp | 2 +- silkworm/core/types/transaction.cpp | 2 +- silkworm/core/types/transaction.hpp | 5 ++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/silkworm/core/consensus/engine.cpp b/silkworm/core/consensus/engine.cpp index b6c609a97f..c6608b985c 100644 --- a/silkworm/core/consensus/engine.cpp +++ b/silkworm/core/consensus/engine.cpp @@ -73,7 +73,7 @@ ValidationResult pre_validate_transaction(const Transaction& txn, const evmc_rev return ValidationResult::kIntrinsicGas; } - if (intx::count_significant_bytes(txn.up_front_gas_cost()) > 32) { + if (intx::count_significant_bytes(txn.maximum_gas_cost()) > 32) { return ValidationResult::kInsufficientFunds; } diff --git a/silkworm/core/execution/processor.cpp b/silkworm/core/execution/processor.cpp index 1ee229edf4..3c3167390e 100644 --- a/silkworm/core/execution/processor.cpp +++ b/silkworm/core/execution/processor.cpp @@ -46,7 +46,7 @@ ValidationResult ExecutionProcessor::validate_transaction(const Transaction& txn } // See YP, Eq (61) in Section 6.2 "Execution" - const intx::uint512 v0{txn.up_front_gas_cost() + txn.value}; + const intx::uint512 v0{txn.maximum_gas_cost() + txn.value}; if (state_.get_balance(*txn.from) < v0) { return ValidationResult::kInsufficientFunds; } diff --git a/silkworm/core/types/transaction.cpp b/silkworm/core/types/transaction.cpp index 88bd30851e..5461c8ad52 100644 --- a/silkworm/core/types/transaction.cpp +++ b/silkworm/core/types/transaction.cpp @@ -440,7 +440,7 @@ void Transaction::recover_sender() { } } -intx::uint512 Transaction::up_front_gas_cost() const { +intx::uint512 Transaction::maximum_gas_cost() const { // See https://github.com/ethereum/EIPs/pull/3594 intx::uint512 max_gas_cost{intx::umul(intx::uint256{gas_limit}, max_fee_per_gas)}; // and https://eips.ethereum.org/EIPS/eip-4844#gas-accounting diff --git a/silkworm/core/types/transaction.hpp b/silkworm/core/types/transaction.hpp index b7f7ba87e2..f476db1943 100644 --- a/silkworm/core/types/transaction.hpp +++ b/silkworm/core/types/transaction.hpp @@ -80,9 +80,8 @@ struct Transaction { //! If recovery fails the from field is set to null. void recover_sender(); - //! \brief Corresponds to the up-front gas cost Tg*Tp in the Yellow Paper - //! \see Eq (61) in Section 6.2 "Execution" - [[nodiscard]] intx::uint512 up_front_gas_cost() const; + //! \brief Maximum possible cost of normal and data (EIP-4844) gas + [[nodiscard]] intx::uint512 maximum_gas_cost() const; [[nodiscard]] intx::uint256 priority_fee_per_gas(const intx::uint256& base_fee_per_gas) const; // EIP-1559 [[nodiscard]] intx::uint256 effective_gas_price(const intx::uint256& base_fee_per_gas) const; // EIP-1559