/
smychkov
/
SStorage
Обзор
Документация
Войти
/
smychkov
/
SStorage
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/server/storage.pb.cc
4 266 строк
165 KB
Андрей
feat: top N keys + scan stream (range/top/all) with pagination
14 июл 2026, 12:56
14 июл 2026, 12:56
56c6264
Код
Авторство
О чём код?
// Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: storage.proto // Protobuf C++ Version: 7.34.1 #include "storage.pb.h" #include <algorithm> #include <type_traits> #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" #include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; namespace sstorage { inline constexpr StatsResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_FIELD level_records_{visibility, ::_pbi::InternalMetadataOffset::Build< ::sstorage::StatsResponse, PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_records_)>() } #else level_records_ {} #endif , _level_records_cached_byte_size_{0}, #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_FIELD level_file_counts_{visibility, ::_pbi::InternalMetadataOffset::Build< ::sstorage::StatsResponse, PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_file_counts_)>() } #else level_file_counts_ {} #endif , _level_file_counts_cached_byte_size_{0}, memtable_size_{::uint64_t{0u}}, immutable_count_{::uint64_t{0u}}, total_records_{::uint64_t{0u}} {} template <typename> constexpr StatsResponse::StatsResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(StatsResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct StatsResponseDefaultTypeInternal { constexpr StatsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StatsResponseDefaultTypeInternal() {} union { StatsResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatsResponseDefaultTypeInternal _StatsResponse_default_instance_; template <typename> constexpr StatsRequest::StatsRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(StatsRequest_class_data_.base()){} #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase() { } #endif // PROTOBUF_CUSTOM_VTABLE struct StatsRequestDefaultTypeInternal { constexpr StatsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StatsRequestDefaultTypeInternal() {} union { StatsRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatsRequestDefaultTypeInternal _StatsRequest_default_instance_; inline constexpr ScanResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), value_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()) {} template <typename> constexpr ScanResponse::ScanResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(ScanResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct ScanResponseDefaultTypeInternal { constexpr ScanResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ScanResponseDefaultTypeInternal() {} union { ScanResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScanResponseDefaultTypeInternal _ScanResponse_default_instance_; inline constexpr ScanRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, from_key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), to_key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), limit_{0u}, mode_{static_cast< ::sstorage::ScanMode >(0)}, top_n_{::uint64_t{0u}} {} template <typename> constexpr ScanRequest::ScanRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(ScanRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct ScanRequestDefaultTypeInternal { constexpr ScanRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ScanRequestDefaultTypeInternal() {} union { ScanRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScanRequestDefaultTypeInternal _ScanRequest_default_instance_; inline constexpr PutResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, ok_{false} {} template <typename> constexpr PutResponse::PutResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(PutResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct PutResponseDefaultTypeInternal { constexpr PutResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PutResponseDefaultTypeInternal() {} union { PutResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutResponseDefaultTypeInternal _PutResponse_default_instance_; inline constexpr PutRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), value_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()) {} template <typename> constexpr PutRequest::PutRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(PutRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct PutRequestDefaultTypeInternal { constexpr PutRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PutRequestDefaultTypeInternal() {} union { PutRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutRequestDefaultTypeInternal _PutRequest_default_instance_; inline constexpr GetResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, value_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), found_{false} {} template <typename> constexpr GetResponse::GetResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(GetResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct GetResponseDefaultTypeInternal { constexpr GetResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetResponseDefaultTypeInternal() {} union { GetResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetResponseDefaultTypeInternal _GetResponse_default_instance_; inline constexpr GetRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()) {} template <typename> constexpr GetRequest::GetRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(GetRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct GetRequestDefaultTypeInternal { constexpr GetRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GetRequestDefaultTypeInternal() {} union { GetRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetRequestDefaultTypeInternal _GetRequest_default_instance_; inline constexpr FlushResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, ok_{false} {} template <typename> constexpr FlushResponse::FlushResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(FlushResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct FlushResponseDefaultTypeInternal { constexpr FlushResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FlushResponseDefaultTypeInternal() {} union { FlushResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlushResponseDefaultTypeInternal _FlushResponse_default_instance_; template <typename> constexpr FlushRequest::FlushRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(FlushRequest_class_data_.base()){} #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase() { } #endif // PROTOBUF_CUSTOM_VTABLE struct FlushRequestDefaultTypeInternal { constexpr FlushRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FlushRequestDefaultTypeInternal() {} union { FlushRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlushRequestDefaultTypeInternal _FlushRequest_default_instance_; inline constexpr DeleteResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, ok_{false} {} template <typename> constexpr DeleteResponse::DeleteResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(DeleteResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct DeleteResponseDefaultTypeInternal { constexpr DeleteResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DeleteResponseDefaultTypeInternal() {} union { DeleteResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteResponseDefaultTypeInternal _DeleteResponse_default_instance_; inline constexpr DeleteRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, key_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()) {} template <typename> constexpr DeleteRequest::DeleteRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(DeleteRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct DeleteRequestDefaultTypeInternal { constexpr DeleteRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DeleteRequestDefaultTypeInternal() {} union { DeleteRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteRequestDefaultTypeInternal _DeleteRequest_default_instance_; inline constexpr CompactResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, ok_{false} {} template <typename> constexpr CompactResponse::CompactResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(CompactResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } struct CompactResponseDefaultTypeInternal { constexpr CompactResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CompactResponseDefaultTypeInternal() {} union { CompactResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CompactResponseDefaultTypeInternal _CompactResponse_default_instance_; template <typename> constexpr CompactRequest::CompactRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(CompactRequest_class_data_.base()){} #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase() { } #endif // PROTOBUF_CUSTOM_VTABLE struct CompactRequestDefaultTypeInternal { constexpr CompactRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CompactRequestDefaultTypeInternal() {} union { CompactRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CompactRequestDefaultTypeInternal _CompactRequest_default_instance_; } // namespace sstorage static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL file_level_enum_descriptors_storage_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_service_descriptors_storage_2eproto = nullptr; const ::uint32_t TableStruct_storage_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::PutRequest, _impl_._has_bits_), 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::PutRequest, _impl_.key_), PROTOBUF_FIELD_OFFSET(::sstorage::PutRequest, _impl_.value_), 0, 1, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::PutResponse, _impl_._has_bits_), 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::PutResponse, _impl_.ok_), 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::GetRequest, _impl_._has_bits_), 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::GetRequest, _impl_.key_), 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::GetResponse, _impl_._has_bits_), 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::GetResponse, _impl_.found_), PROTOBUF_FIELD_OFFSET(::sstorage::GetResponse, _impl_.value_), 1, 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::DeleteRequest, _impl_._has_bits_), 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::DeleteRequest, _impl_.key_), 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::DeleteResponse, _impl_._has_bits_), 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::DeleteResponse, _impl_.ok_), 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::ScanRequest, _impl_._has_bits_), 8, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::ScanRequest, _impl_.from_key_), PROTOBUF_FIELD_OFFSET(::sstorage::ScanRequest, _impl_.to_key_), PROTOBUF_FIELD_OFFSET(::sstorage::ScanRequest, _impl_.limit_), PROTOBUF_FIELD_OFFSET(::sstorage::ScanRequest, _impl_.mode_), PROTOBUF_FIELD_OFFSET(::sstorage::ScanRequest, _impl_.top_n_), 0, 1, 2, 3, 4, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::ScanResponse, _impl_._has_bits_), 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::ScanResponse, _impl_.key_), PROTOBUF_FIELD_OFFSET(::sstorage::ScanResponse, _impl_.value_), 0, 1, 0x000, // bitmap 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_._has_bits_), 8, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.memtable_size_), PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.immutable_count_), PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_records_), PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_file_counts_), PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.total_records_), 2, 3, 0, 1, 4, 0x000, // bitmap 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::FlushResponse, _impl_._has_bits_), 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::FlushResponse, _impl_.ok_), 0, 0x000, // bitmap 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::sstorage::CompactResponse, _impl_._has_bits_), 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::sstorage::CompactResponse, _impl_.ok_), 0, }; static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, sizeof(::sstorage::PutRequest)}, {7, sizeof(::sstorage::PutResponse)}, {12, sizeof(::sstorage::GetRequest)}, {17, sizeof(::sstorage::GetResponse)}, {24, sizeof(::sstorage::DeleteRequest)}, {29, sizeof(::sstorage::DeleteResponse)}, {34, sizeof(::sstorage::ScanRequest)}, {47, sizeof(::sstorage::ScanResponse)}, {54, sizeof(::sstorage::StatsRequest)}, {55, sizeof(::sstorage::StatsResponse)}, {68, sizeof(::sstorage::FlushRequest)}, {69, sizeof(::sstorage::FlushResponse)}, {74, sizeof(::sstorage::CompactRequest)}, {75, sizeof(::sstorage::CompactResponse)}, }; static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::sstorage::_PutRequest_default_instance_._instance, &::sstorage::_PutResponse_default_instance_._instance, &::sstorage::_GetRequest_default_instance_._instance, &::sstorage::_GetResponse_default_instance_._instance, &::sstorage::_DeleteRequest_default_instance_._instance, &::sstorage::_DeleteResponse_default_instance_._instance, &::sstorage::_ScanRequest_default_instance_._instance, &::sstorage::_ScanResponse_default_instance_._instance, &::sstorage::_StatsRequest_default_instance_._instance, &::sstorage::_StatsResponse_default_instance_._instance, &::sstorage::_FlushRequest_default_instance_._instance, &::sstorage::_FlushResponse_default_instance_._instance, &::sstorage::_CompactRequest_default_instance_._instance, &::sstorage::_CompactResponse_default_instance_._instance, }; const char descriptor_table_protodef_storage_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { "\n\rstorage.proto\022\010sstorage\"(\n\nPutRequest\022" "\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\"\031\n\013PutRespon" "se\022\n\n\002ok\030\001 \001(\010\"\031\n\nGetRequest\022\013\n\003key\030\001 \001(" "\014\"+\n\013GetResponse\022\r\n\005found\030\001 \001(\010\022\r\n\005value" "\030\002 \001(\014\"\034\n\rDeleteRequest\022\013\n\003key\030\001 \001(\014\"\034\n\016" "DeleteResponse\022\n\n\002ok\030\001 \001(\010\"o\n\013ScanReques" "t\022\020\n\010from_key\030\001 \001(\014\022\016\n\006to_key\030\002 \001(\014\022\r\n\005l" "imit\030\003 \001(\r\022 \n\004mode\030\004 \001(\0162\022.sstorage.Scan" "Mode\022\r\n\005top_n\030\005 \001(\004\"*\n\014ScanResponse\022\013\n\003k" "ey\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\"\016\n\014StatsRequest\"" "\210\001\n\rStatsResponse\022\025\n\rmemtable_size\030\001 \001(\004" "\022\027\n\017immutable_count\030\002 \001(\004\022\025\n\rlevel_recor" "ds\030\003 \003(\004\022\031\n\021level_file_counts\030\004 \003(\004\022\025\n\rt" "otal_records\030\005 \001(\004\"\016\n\014FlushRequest\"\033\n\rFl" "ushResponse\022\n\n\002ok\030\001 \001(\010\"\020\n\016CompactReques" "t\"\035\n\017CompactResponse\022\n\n\002ok\030\001 \001(\010*6\n\010Scan" "Mode\022\016\n\nSCAN_RANGE\020\000\022\014\n\010SCAN_TOP\020\001\022\014\n\010SC" "AN_ALL\020\0022\233\003\n\007Storage\0222\n\003Put\022\024.sstorage.P" "utRequest\032\025.sstorage.PutResponse\0222\n\003Get\022" "\024.sstorage.GetRequest\032\025.sstorage.GetResp" "onse\022;\n\006Delete\022\027.sstorage.DeleteRequest\032" "\030.sstorage.DeleteResponse\0227\n\004Scan\022\025.ssto" "rage.ScanRequest\032\026.sstorage.ScanResponse" "0\001\0228\n\005Stats\022\026.sstorage.StatsRequest\032\027.ss" "torage.StatsResponse\0228\n\005Flush\022\026.sstorage" ".FlushRequest\032\027.sstorage.FlushResponse\022>" "\n\007Compact\022\030.sstorage.CompactRequest\032\031.ss" "torage.CompactResponseb\006proto3" }; static ::absl::once_flag descriptor_table_storage_2eproto_once; PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_storage_2eproto = { false, false, 1110, descriptor_table_protodef_storage_2eproto, "storage.proto", &descriptor_table_storage_2eproto_once, nullptr, 0, 14, schemas, file_default_instances, TableStruct_storage_2eproto::offsets, file_level_enum_descriptors_storage_2eproto, file_level_service_descriptors_storage_2eproto, }; namespace sstorage { [[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL ScanMode_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_storage_2eproto); return file_level_enum_descriptors_storage_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t ScanMode_internal_data_[] = { 196608u, 0u, }; // =================================================================== class PutRequest::_Internal { public: using HasBits = decltype(::std::declval<PutRequest>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(PutRequest, _impl_._has_bits_); }; PutRequest::PutRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, PutRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.PutRequest) } PROTOBUF_NDEBUG_INLINE PutRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::sstorage::PutRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, key_(arena, from.key_), value_(arena, from.value_) {} PutRequest::PutRequest( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PutRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, PutRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE PutRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:sstorage.PutRequest) } PROTOBUF_NDEBUG_INLINE PutRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, key_(arena), value_(arena) {} inline void PutRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } PutRequest::~PutRequest() { // @@protoc_insertion_point(destructor:sstorage.PutRequest) SharedDtor(*this); } inline void PutRequest::SharedDtor(MessageLite& self) { PutRequest& this_ = static_cast<PutRequest&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.key_.Destroy(); this_._impl_.value_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL PutRequest::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) PutRequest(arena); } constexpr auto PutRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PutRequest), alignof(PutRequest)); } constexpr auto PutRequest::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_PutRequest_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &PutRequest::MergeImpl, ::google::protobuf::Message::GetNewImpl<PutRequest>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &PutRequest::SharedDtor, ::google::protobuf::Message::GetClearImpl<PutRequest>(), &PutRequest::ByteSizeLong, &PutRequest::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(PutRequest, _impl_._cached_size_), false, }, &PutRequest::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull PutRequest_class_data_ = PutRequest::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL PutRequest::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&PutRequest_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(PutRequest_class_data_.tc_table); return PutRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PutRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(PutRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries PutRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::PutRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes value = 2; {::_pbi::TcParser::FastBS1, {18, 1, 0, PROTOBUF_FIELD_OFFSET(PutRequest, _impl_.value_)}}, // bytes key = 1; {::_pbi::TcParser::FastBS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(PutRequest, _impl_.key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes key = 1; {PROTOBUF_FIELD_OFFSET(PutRequest, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes value = 2; {PROTOBUF_FIELD_OFFSET(PutRequest, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void PutRequest::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.PutRequest) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.key_.ClearNonDefaultToEmpty(); } if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.value_.ClearNonDefaultToEmpty(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL PutRequest::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const PutRequest& this_ = static_cast<const PutRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL PutRequest::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const PutRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.PutRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bytes key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { const ::std::string& _s = this_._internal_key(); target = stream->WriteBytesMaybeAliased(1, _s, target); } } // bytes value = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_value().empty()) { const ::std::string& _s = this_._internal_value(); target = stream->WriteBytesMaybeAliased(2, _s, target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.PutRequest) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t PutRequest::ByteSizeLong(const MessageLite& base) { const PutRequest& this_ = static_cast<const PutRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t PutRequest::ByteSizeLong() const { const PutRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.PutRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // bytes key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_key()); } } // bytes value = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_value().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_value()); } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void PutRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<PutRequest*>(&to_msg); auto& from = static_cast<const PutRequest&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.PutRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_key().empty()) { _this->_internal_set_key(from._internal_key()); } else { if (_this->_impl_.key_.IsDefault()) { _this->_internal_set_key(""); } } } if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_value().empty()) { _this->_internal_set_value(from._internal_value()); } else { if (_this->_impl_.value_.IsDefault()) { _this->_internal_set_value(""); } } } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void PutRequest::CopyFrom(const PutRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.PutRequest) if (&from == this) return; Clear(); MergeFrom(from); } void PutRequest::InternalSwap(PutRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } ::google::protobuf::Metadata PutRequest::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class PutResponse::_Internal { public: using HasBits = decltype(::std::declval<PutResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(PutResponse, _impl_._has_bits_); }; PutResponse::PutResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, PutResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.PutResponse) } PutResponse::PutResponse( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PutResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, PutResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(from._impl_) { _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE PutResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void PutResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.ok_ = {}; } PutResponse::~PutResponse() { // @@protoc_insertion_point(destructor:sstorage.PutResponse) SharedDtor(*this); } inline void PutResponse::SharedDtor(MessageLite& self) { PutResponse& this_ = static_cast<PutResponse&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL PutResponse::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) PutResponse(arena); } constexpr auto PutResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PutResponse), alignof(PutResponse)); } constexpr auto PutResponse::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_PutResponse_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &PutResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl<PutResponse>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &PutResponse::SharedDtor, ::google::protobuf::Message::GetClearImpl<PutResponse>(), &PutResponse::ByteSizeLong, &PutResponse::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(PutResponse, _impl_._cached_size_), false, }, &PutResponse::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull PutResponse_class_data_ = PutResponse::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL PutResponse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&PutResponse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(PutResponse_class_data_.tc_table); return PutResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PutResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(PutResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries PutResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::PutResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool ok = 1; {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(PutResponse, _impl_.ok_), 0>(), {8, 0, 0, PROTOBUF_FIELD_OFFSET(PutResponse, _impl_.ok_)}}, }}, {{ 65535, 65535 }}, {{ // bool ok = 1; {PROTOBUF_FIELD_OFFSET(PutResponse, _impl_.ok_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void PutResponse::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.PutResponse) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.ok_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL PutResponse::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const PutResponse& this_ = static_cast<const PutResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL PutResponse::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const PutResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.PutResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bool ok = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_ok(), target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.PutResponse) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t PutResponse::ByteSizeLong(const MessageLite& base) { const PutResponse& this_ = static_cast<const PutResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t PutResponse::ByteSizeLong() const { const PutResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.PutResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; { // bool ok = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { total_size += 2; } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void PutResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<PutResponse*>(&to_msg); auto& from = static_cast<const PutResponse&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.PutResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_ok() != 0) { _this->_impl_.ok_ = from._impl_.ok_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void PutResponse::CopyFrom(const PutResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.PutResponse) if (&from == this) return; Clear(); MergeFrom(from); } void PutResponse::InternalSwap(PutResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.ok_, other->_impl_.ok_); } ::google::protobuf::Metadata PutResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetRequest::_Internal { public: using HasBits = decltype(::std::declval<GetRequest>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetRequest, _impl_._has_bits_); }; GetRequest::GetRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, GetRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.GetRequest) } PROTOBUF_NDEBUG_INLINE GetRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::sstorage::GetRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, key_(arena, from.key_) {} GetRequest::GetRequest( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, GetRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE GetRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:sstorage.GetRequest) } PROTOBUF_NDEBUG_INLINE GetRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, key_(arena) {} inline void GetRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetRequest::~GetRequest() { // @@protoc_insertion_point(destructor:sstorage.GetRequest) SharedDtor(*this); } inline void GetRequest::SharedDtor(MessageLite& self) { GetRequest& this_ = static_cast<GetRequest&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.key_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL GetRequest::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetRequest(arena); } constexpr auto GetRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetRequest), alignof(GetRequest)); } constexpr auto GetRequest::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_GetRequest_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &GetRequest::MergeImpl, ::google::protobuf::Message::GetNewImpl<GetRequest>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &GetRequest::SharedDtor, ::google::protobuf::Message::GetClearImpl<GetRequest>(), &GetRequest::ByteSizeLong, &GetRequest::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(GetRequest, _impl_._cached_size_), false, }, &GetRequest::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GetRequest_class_data_ = GetRequest::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetRequest::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GetRequest_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GetRequest_class_data_.tc_table); return GetRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(GetRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries GetRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::GetRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes key = 1; {::_pbi::TcParser::FastBS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetRequest, _impl_.key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes key = 1; {PROTOBUF_FIELD_OFFSET(GetRequest, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void GetRequest::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.GetRequest) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.key_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL GetRequest::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const GetRequest& this_ = static_cast<const GetRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL GetRequest::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GetRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.GetRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bytes key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { const ::std::string& _s = this_._internal_key(); target = stream->WriteBytesMaybeAliased(1, _s, target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.GetRequest) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t GetRequest::ByteSizeLong(const MessageLite& base) { const GetRequest& this_ = static_cast<const GetRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t GetRequest::ByteSizeLong() const { const GetRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.GetRequest) ::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 key = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_key()); } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void GetRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<GetRequest*>(&to_msg); auto& from = static_cast<const GetRequest&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.GetRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_key().empty()) { _this->_internal_set_key(from._internal_key()); } else { if (_this->_impl_.key_.IsDefault()) { _this->_internal_set_key(""); } } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void GetRequest::CopyFrom(const GetRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.GetRequest) if (&from == this) return; Clear(); MergeFrom(from); } void GetRequest::InternalSwap(GetRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); } ::google::protobuf::Metadata GetRequest::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class GetResponse::_Internal { public: using HasBits = decltype(::std::declval<GetResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GetResponse, _impl_._has_bits_); }; GetResponse::GetResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, GetResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.GetResponse) } PROTOBUF_NDEBUG_INLINE GetResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::sstorage::GetResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, value_(arena, from.value_) {} GetResponse::GetResponse( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, GetResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE GetResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); _impl_.found_ = from._impl_.found_; // @@protoc_insertion_point(copy_constructor:sstorage.GetResponse) } PROTOBUF_NDEBUG_INLINE GetResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, value_(arena) {} inline void GetResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.found_ = {}; } GetResponse::~GetResponse() { // @@protoc_insertion_point(destructor:sstorage.GetResponse) SharedDtor(*this); } inline void GetResponse::SharedDtor(MessageLite& self) { GetResponse& this_ = static_cast<GetResponse&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.value_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL GetResponse::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetResponse(arena); } constexpr auto GetResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetResponse), alignof(GetResponse)); } constexpr auto GetResponse::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_GetResponse_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &GetResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl<GetResponse>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &GetResponse::SharedDtor, ::google::protobuf::Message::GetClearImpl<GetResponse>(), &GetResponse::ByteSizeLong, &GetResponse::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(GetResponse, _impl_._cached_size_), false, }, &GetResponse::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GetResponse_class_data_ = GetResponse::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetResponse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GetResponse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GetResponse_class_data_.tc_table); return GetResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(GetResponse, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries GetResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::GetResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes value = 2; {::_pbi::TcParser::FastBS1, {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetResponse, _impl_.value_)}}, // bool found = 1; {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(GetResponse, _impl_.found_), 1>(), {8, 1, 0, PROTOBUF_FIELD_OFFSET(GetResponse, _impl_.found_)}}, }}, {{ 65535, 65535 }}, {{ // bool found = 1; {PROTOBUF_FIELD_OFFSET(GetResponse, _impl_.found_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bytes value = 2; {PROTOBUF_FIELD_OFFSET(GetResponse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void GetResponse::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.GetResponse) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.value_.ClearNonDefaultToEmpty(); } _impl_.found_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL GetResponse::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const GetResponse& this_ = static_cast<const GetResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL GetResponse::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GetResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.GetResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bool found = 1; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_found() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_found(), target); } } // bytes value = 2; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_value().empty()) { const ::std::string& _s = this_._internal_value(); target = stream->WriteBytesMaybeAliased(2, _s, target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.GetResponse) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t GetResponse::ByteSizeLong(const MessageLite& base) { const GetResponse& this_ = static_cast<const GetResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t GetResponse::ByteSizeLong() const { const GetResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.GetResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // bytes value = 2; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_value().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_value()); } } // bool found = 1; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_found() != 0) { total_size += 2; } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void GetResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<GetResponse*>(&to_msg); auto& from = static_cast<const GetResponse&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.GetResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_value().empty()) { _this->_internal_set_value(from._internal_value()); } else { if (_this->_impl_.value_.IsDefault()) { _this->_internal_set_value(""); } } } if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_found() != 0) { _this->_impl_.found_ = from._impl_.found_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void GetResponse::CopyFrom(const GetResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.GetResponse) if (&from == this) return; Clear(); MergeFrom(from); } void GetResponse::InternalSwap(GetResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); swap(_impl_.found_, other->_impl_.found_); } ::google::protobuf::Metadata GetResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DeleteRequest::_Internal { public: using HasBits = decltype(::std::declval<DeleteRequest>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_._has_bits_); }; DeleteRequest::DeleteRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, DeleteRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.DeleteRequest) } PROTOBUF_NDEBUG_INLINE DeleteRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::sstorage::DeleteRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, key_(arena, from.key_) {} DeleteRequest::DeleteRequest( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DeleteRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, DeleteRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE DeleteRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:sstorage.DeleteRequest) } PROTOBUF_NDEBUG_INLINE DeleteRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, key_(arena) {} inline void DeleteRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } DeleteRequest::~DeleteRequest() { // @@protoc_insertion_point(destructor:sstorage.DeleteRequest) SharedDtor(*this); } inline void DeleteRequest::SharedDtor(MessageLite& self) { DeleteRequest& this_ = static_cast<DeleteRequest&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.key_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL DeleteRequest::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) DeleteRequest(arena); } constexpr auto DeleteRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DeleteRequest), alignof(DeleteRequest)); } constexpr auto DeleteRequest::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_DeleteRequest_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &DeleteRequest::MergeImpl, ::google::protobuf::Message::GetNewImpl<DeleteRequest>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &DeleteRequest::SharedDtor, ::google::protobuf::Message::GetClearImpl<DeleteRequest>(), &DeleteRequest::ByteSizeLong, &DeleteRequest::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_._cached_size_), false, }, &DeleteRequest::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull DeleteRequest_class_data_ = DeleteRequest::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL DeleteRequest::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&DeleteRequest_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(DeleteRequest_class_data_.tc_table); return DeleteRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> DeleteRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries DeleteRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::DeleteRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes key = 1; {::_pbi::TcParser::FastBS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_.key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes key = 1; {PROTOBUF_FIELD_OFFSET(DeleteRequest, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void DeleteRequest::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.DeleteRequest) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.key_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL DeleteRequest::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const DeleteRequest& this_ = static_cast<const DeleteRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL DeleteRequest::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const DeleteRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.DeleteRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bytes key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { const ::std::string& _s = this_._internal_key(); target = stream->WriteBytesMaybeAliased(1, _s, target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.DeleteRequest) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t DeleteRequest::ByteSizeLong(const MessageLite& base) { const DeleteRequest& this_ = static_cast<const DeleteRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t DeleteRequest::ByteSizeLong() const { const DeleteRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.DeleteRequest) ::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 key = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_key()); } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void DeleteRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<DeleteRequest*>(&to_msg); auto& from = static_cast<const DeleteRequest&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.DeleteRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_key().empty()) { _this->_internal_set_key(from._internal_key()); } else { if (_this->_impl_.key_.IsDefault()) { _this->_internal_set_key(""); } } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void DeleteRequest::CopyFrom(const DeleteRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.DeleteRequest) if (&from == this) return; Clear(); MergeFrom(from); } void DeleteRequest::InternalSwap(DeleteRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); } ::google::protobuf::Metadata DeleteRequest::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class DeleteResponse::_Internal { public: using HasBits = decltype(::std::declval<DeleteResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(DeleteResponse, _impl_._has_bits_); }; DeleteResponse::DeleteResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, DeleteResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.DeleteResponse) } DeleteResponse::DeleteResponse( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DeleteResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, DeleteResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(from._impl_) { _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE DeleteResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void DeleteResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.ok_ = {}; } DeleteResponse::~DeleteResponse() { // @@protoc_insertion_point(destructor:sstorage.DeleteResponse) SharedDtor(*this); } inline void DeleteResponse::SharedDtor(MessageLite& self) { DeleteResponse& this_ = static_cast<DeleteResponse&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL DeleteResponse::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) DeleteResponse(arena); } constexpr auto DeleteResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DeleteResponse), alignof(DeleteResponse)); } constexpr auto DeleteResponse::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_DeleteResponse_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &DeleteResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl<DeleteResponse>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &DeleteResponse::SharedDtor, ::google::protobuf::Message::GetClearImpl<DeleteResponse>(), &DeleteResponse::ByteSizeLong, &DeleteResponse::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(DeleteResponse, _impl_._cached_size_), false, }, &DeleteResponse::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull DeleteResponse_class_data_ = DeleteResponse::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL DeleteResponse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&DeleteResponse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(DeleteResponse_class_data_.tc_table); return DeleteResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> DeleteResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(DeleteResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries DeleteResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::DeleteResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool ok = 1; {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(DeleteResponse, _impl_.ok_), 0>(), {8, 0, 0, PROTOBUF_FIELD_OFFSET(DeleteResponse, _impl_.ok_)}}, }}, {{ 65535, 65535 }}, {{ // bool ok = 1; {PROTOBUF_FIELD_OFFSET(DeleteResponse, _impl_.ok_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void DeleteResponse::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.DeleteResponse) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.ok_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL DeleteResponse::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const DeleteResponse& this_ = static_cast<const DeleteResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL DeleteResponse::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const DeleteResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.DeleteResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bool ok = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_ok(), target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.DeleteResponse) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t DeleteResponse::ByteSizeLong(const MessageLite& base) { const DeleteResponse& this_ = static_cast<const DeleteResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t DeleteResponse::ByteSizeLong() const { const DeleteResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.DeleteResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; { // bool ok = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { total_size += 2; } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void DeleteResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<DeleteResponse*>(&to_msg); auto& from = static_cast<const DeleteResponse&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.DeleteResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_ok() != 0) { _this->_impl_.ok_ = from._impl_.ok_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void DeleteResponse::CopyFrom(const DeleteResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.DeleteResponse) if (&from == this) return; Clear(); MergeFrom(from); } void DeleteResponse::InternalSwap(DeleteResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.ok_, other->_impl_.ok_); } ::google::protobuf::Metadata DeleteResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ScanRequest::_Internal { public: using HasBits = decltype(::std::declval<ScanRequest>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_._has_bits_); }; ScanRequest::ScanRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, ScanRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.ScanRequest) } PROTOBUF_NDEBUG_INLINE ScanRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::sstorage::ScanRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, from_key_(arena, from.from_key_), to_key_(arena, from.to_key_) {} ScanRequest::ScanRequest( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ScanRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, ScanRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE ScanRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast<char*>(&_impl_) + offsetof(Impl_, limit_), reinterpret_cast<const char*>(&from._impl_) + offsetof(Impl_, limit_), offsetof(Impl_, top_n_) - offsetof(Impl_, limit_) + sizeof(Impl_::top_n_)); // @@protoc_insertion_point(copy_constructor:sstorage.ScanRequest) } PROTOBUF_NDEBUG_INLINE ScanRequest::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, from_key_(arena), to_key_(arena) {} inline void ScanRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast<char*>(&_impl_) + offsetof(Impl_, limit_), 0, offsetof(Impl_, top_n_) - offsetof(Impl_, limit_) + sizeof(Impl_::top_n_)); } ScanRequest::~ScanRequest() { // @@protoc_insertion_point(destructor:sstorage.ScanRequest) SharedDtor(*this); } inline void ScanRequest::SharedDtor(MessageLite& self) { ScanRequest& this_ = static_cast<ScanRequest&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.from_key_.Destroy(); this_._impl_.to_key_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL ScanRequest::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ScanRequest(arena); } constexpr auto ScanRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ScanRequest), alignof(ScanRequest)); } constexpr auto ScanRequest::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_ScanRequest_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &ScanRequest::MergeImpl, ::google::protobuf::Message::GetNewImpl<ScanRequest>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &ScanRequest::SharedDtor, ::google::protobuf::Message::GetClearImpl<ScanRequest>(), &ScanRequest::ByteSizeLong, &ScanRequest::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_._cached_size_), false, }, &ScanRequest::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull ScanRequest_class_data_ = ScanRequest::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL ScanRequest::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&ScanRequest_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(ScanRequest_class_data_.tc_table); return ScanRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 5, 0, 0, 2> ScanRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_._has_bits_), 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967264, // skipmap offsetof(decltype(_table_), field_entries), 5, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries ScanRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::ScanRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes from_key = 1; {::_pbi::TcParser::FastBS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.from_key_)}}, // bytes to_key = 2; {::_pbi::TcParser::FastBS1, {18, 1, 0, PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.to_key_)}}, // uint32 limit = 3; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanRequest, _impl_.limit_), 2>(), {24, 2, 0, PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.limit_)}}, // .sstorage.ScanMode mode = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ScanRequest, _impl_.mode_), 3>(), {32, 3, 0, PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.mode_)}}, // uint64 top_n = 5; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ScanRequest, _impl_.top_n_), 4>(), {40, 4, 0, PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.top_n_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // bytes from_key = 1; {PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.from_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes to_key = 2; {PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.to_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // uint32 limit = 3; {PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.limit_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .sstorage.ScanMode mode = 4; {PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.mode_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, // uint64 top_n = 5; {PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.top_n_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void ScanRequest::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.ScanRequest) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.from_key_.ClearNonDefaultToEmpty(); } if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.to_key_.ClearNonDefaultToEmpty(); } } if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) { ::memset(&_impl_.limit_, 0, static_cast<::size_t>( reinterpret_cast<char*>(&_impl_.top_n_) - reinterpret_cast<char*>(&_impl_.limit_)) + sizeof(_impl_.top_n_)); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL ScanRequest::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const ScanRequest& this_ = static_cast<const ScanRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL ScanRequest::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const ScanRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.ScanRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bytes from_key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_from_key().empty()) { const ::std::string& _s = this_._internal_from_key(); target = stream->WriteBytesMaybeAliased(1, _s, target); } } // bytes to_key = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_to_key().empty()) { const ::std::string& _s = this_._internal_to_key(); target = stream->WriteBytesMaybeAliased(2, _s, target); } } // uint32 limit = 3; if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_limit() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( 3, this_._internal_limit(), target); } } // .sstorage.ScanMode mode = 4; if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_mode() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this_._internal_mode(), target); } } // uint64 top_n = 5; if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_top_n() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( 5, this_._internal_top_n(), target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.ScanRequest) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t ScanRequest::ByteSizeLong(const MessageLite& base) { const ScanRequest& this_ = static_cast<const ScanRequest&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t ScanRequest::ByteSizeLong() const { const ScanRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.ScanRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // bytes from_key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_from_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_from_key()); } } // bytes to_key = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_to_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_to_key()); } } // uint32 limit = 3; if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_limit() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( this_._internal_limit()); } } // .sstorage.ScanMode mode = 4; if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_mode() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_mode()); } } // uint64 top_n = 5; if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_top_n() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_top_n()); } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void ScanRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<ScanRequest*>(&to_msg); auto& from = static_cast<const ScanRequest&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.ScanRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_from_key().empty()) { _this->_internal_set_from_key(from._internal_from_key()); } else { if (_this->_impl_.from_key_.IsDefault()) { _this->_internal_set_from_key(""); } } } if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_to_key().empty()) { _this->_internal_set_to_key(from._internal_to_key()); } else { if (_this->_impl_.to_key_.IsDefault()) { _this->_internal_set_to_key(""); } } } if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (from._internal_limit() != 0) { _this->_impl_.limit_ = from._impl_.limit_; } } if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (from._internal_mode() != 0) { _this->_impl_.mode_ = from._impl_.mode_; } } if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (from._internal_top_n() != 0) { _this->_impl_.top_n_ = from._impl_.top_n_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void ScanRequest::CopyFrom(const ScanRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.ScanRequest) if (&from == this) return; Clear(); MergeFrom(from); } void ScanRequest::InternalSwap(ScanRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.from_key_, &other->_impl_.from_key_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.to_key_, &other->_impl_.to_key_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.top_n_) + sizeof(ScanRequest::_impl_.top_n_) - PROTOBUF_FIELD_OFFSET(ScanRequest, _impl_.limit_)>( reinterpret_cast<char*>(&_impl_.limit_), reinterpret_cast<char*>(&other->_impl_.limit_)); } ::google::protobuf::Metadata ScanRequest::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class ScanResponse::_Internal { public: using HasBits = decltype(::std::declval<ScanResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ScanResponse, _impl_._has_bits_); }; ScanResponse::ScanResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, ScanResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.ScanResponse) } PROTOBUF_NDEBUG_INLINE ScanResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::sstorage::ScanResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, key_(arena, from.key_), value_(arena, from.value_) {} ScanResponse::ScanResponse( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ScanResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, ScanResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE ScanResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); // @@protoc_insertion_point(copy_constructor:sstorage.ScanResponse) } PROTOBUF_NDEBUG_INLINE ScanResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, key_(arena), value_(arena) {} inline void ScanResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ScanResponse::~ScanResponse() { // @@protoc_insertion_point(destructor:sstorage.ScanResponse) SharedDtor(*this); } inline void ScanResponse::SharedDtor(MessageLite& self) { ScanResponse& this_ = static_cast<ScanResponse&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.key_.Destroy(); this_._impl_.value_.Destroy(); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL ScanResponse::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ScanResponse(arena); } constexpr auto ScanResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ScanResponse), alignof(ScanResponse)); } constexpr auto ScanResponse::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_ScanResponse_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &ScanResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl<ScanResponse>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &ScanResponse::SharedDtor, ::google::protobuf::Message::GetClearImpl<ScanResponse>(), &ScanResponse::ByteSizeLong, &ScanResponse::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(ScanResponse, _impl_._cached_size_), false, }, &ScanResponse::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull ScanResponse_class_data_ = ScanResponse::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL ScanResponse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&ScanResponse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(ScanResponse_class_data_.tc_table); return ScanResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ScanResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(ScanResponse, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967292, // skipmap offsetof(decltype(_table_), field_entries), 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries ScanResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::ScanResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bytes value = 2; {::_pbi::TcParser::FastBS1, {18, 1, 0, PROTOBUF_FIELD_OFFSET(ScanResponse, _impl_.value_)}}, // bytes key = 1; {::_pbi::TcParser::FastBS1, {10, 0, 0, PROTOBUF_FIELD_OFFSET(ScanResponse, _impl_.key_)}}, }}, {{ 65535, 65535 }}, {{ // bytes key = 1; {PROTOBUF_FIELD_OFFSET(ScanResponse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes value = 2; {PROTOBUF_FIELD_OFFSET(ScanResponse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void ScanResponse::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.ScanResponse) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.key_.ClearNonDefaultToEmpty(); } if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.value_.ClearNonDefaultToEmpty(); } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL ScanResponse::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const ScanResponse& this_ = static_cast<const ScanResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL ScanResponse::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const ScanResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.ScanResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bytes key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { const ::std::string& _s = this_._internal_key(); target = stream->WriteBytesMaybeAliased(1, _s, target); } } // bytes value = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_value().empty()) { const ::std::string& _s = this_._internal_value(); target = stream->WriteBytesMaybeAliased(2, _s, target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.ScanResponse) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t ScanResponse::ByteSizeLong(const MessageLite& base) { const ScanResponse& this_ = static_cast<const ScanResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t ScanResponse::ByteSizeLong() const { const ScanResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.ScanResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // bytes key = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_key()); } } // bytes value = 2; if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_value().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this_._internal_value()); } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void ScanResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<ScanResponse*>(&to_msg); auto& from = static_cast<const ScanResponse&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.ScanResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_key().empty()) { _this->_internal_set_key(from._internal_key()); } else { if (_this->_impl_.key_.IsDefault()) { _this->_internal_set_key(""); } } } if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_value().empty()) { _this->_internal_set_value(from._internal_value()); } else { if (_this->_impl_.value_.IsDefault()) { _this->_internal_set_value(""); } } } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void ScanResponse::CopyFrom(const ScanResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.ScanResponse) if (&from == this) return; Clear(); MergeFrom(from); } void ScanResponse::InternalSwap(ScanResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } ::google::protobuf::Metadata ScanResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StatsRequest::_Internal { public: }; StatsRequest::StatsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(arena, StatsRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:sstorage.StatsRequest) } StatsRequest::StatsRequest( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const StatsRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(arena, StatsRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE StatsRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:sstorage.StatsRequest) } inline void* PROTOBUF_NONNULL StatsRequest::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) StatsRequest(arena); } constexpr auto StatsRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StatsRequest), alignof(StatsRequest)); } constexpr auto StatsRequest::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_StatsRequest_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &StatsRequest::MergeImpl, ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<StatsRequest>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &StatsRequest::SharedDtor, ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<StatsRequest>(), &StatsRequest::ByteSizeLong, &StatsRequest::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(StatsRequest, _impl_._cached_size_), false, }, &StatsRequest::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull StatsRequest_class_data_ = StatsRequest::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL StatsRequest::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&StatsRequest_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(StatsRequest_class_data_.tc_table); return StatsRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> StatsRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(StatsRequest, _impl_._cached_size_), // no hasbits 0, // no _extensions_ 0, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967295, // skipmap offsetof(decltype(_table_), field_names), // no field_entries 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries StatsRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::StatsRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, // no field_entries, or aux_entries {{ }}, }; ::google::protobuf::Metadata StatsRequest::GetMetadata() const { return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class StatsResponse::_Internal { public: using HasBits = decltype(::std::declval<StatsResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_._has_bits_); }; StatsResponse::StatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, StatsResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.StatsResponse) } PROTOBUF_NDEBUG_INLINE StatsResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, [[maybe_unused]] const ::sstorage::StatsResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_FIELD level_records_{visibility, ::_pbi::InternalMetadataOffset::Build< ::sstorage::StatsResponse, PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_records_)>() , from.level_records_} #else level_records_ { visibility, arena, from.level_records_ } #endif , _level_records_cached_byte_size_{0}, #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_FIELD level_file_counts_{visibility, ::_pbi::InternalMetadataOffset::Build< ::sstorage::StatsResponse, PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_file_counts_)>() , from.level_file_counts_} #else level_file_counts_ { visibility, arena, from.level_file_counts_ } #endif , _level_file_counts_cached_byte_size_{0} {} StatsResponse::StatsResponse( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const StatsResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, StatsResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE StatsResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::memcpy(reinterpret_cast<char*>(&_impl_) + offsetof(Impl_, memtable_size_), reinterpret_cast<const char*>(&from._impl_) + offsetof(Impl_, memtable_size_), offsetof(Impl_, total_records_) - offsetof(Impl_, memtable_size_) + sizeof(Impl_::total_records_)); // @@protoc_insertion_point(copy_constructor:sstorage.StatsResponse) } PROTOBUF_NDEBUG_INLINE StatsResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_FIELD level_records_{visibility, ::_pbi::InternalMetadataOffset::Build< ::sstorage::StatsResponse, PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_records_)>() } #else level_records_ { visibility, arena } #endif , _level_records_cached_byte_size_{0}, #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_FIELD level_file_counts_{visibility, ::_pbi::InternalMetadataOffset::Build< ::sstorage::StatsResponse, PROTOBUF_FIELD_OFFSET(::sstorage::StatsResponse, _impl_.level_file_counts_)>() } #else level_file_counts_ { visibility, arena } #endif , _level_file_counts_cached_byte_size_{0} {} inline void StatsResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast<char*>(&_impl_) + offsetof(Impl_, memtable_size_), 0, offsetof(Impl_, total_records_) - offsetof(Impl_, memtable_size_) + sizeof(Impl_::total_records_)); } StatsResponse::~StatsResponse() { // @@protoc_insertion_point(destructor:sstorage.StatsResponse) SharedDtor(*this); } inline void StatsResponse::SharedDtor(MessageLite& self) { StatsResponse& this_ = static_cast<StatsResponse&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL StatsResponse::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) StatsResponse(arena); } #ifdef PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD constexpr auto StatsResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(StatsResponse), alignof(StatsResponse)); } #else // !PROTOBUF_INTERNAL_REMOVE_ARENA_PTRS_REPEATED_PTR_FIELD constexpr auto StatsResponse::InternalNewImpl_() { constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.level_records_) + decltype(StatsResponse::_impl_.level_records_):: InternalGetArenaOffset( ::google::protobuf::Message::internal_visibility()), PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.level_file_counts_) + decltype(StatsResponse::_impl_.level_file_counts_):: InternalGetArenaOffset( ::google::protobuf::Message::internal_visibility()), }); if (arena_bits.has_value()) { return ::google::protobuf::internal::MessageCreator::ZeroInit( sizeof(StatsResponse), alignof(StatsResponse), *arena_bits); } else { return ::google::protobuf::internal::MessageCreator(&StatsResponse::PlacementNew_, sizeof(StatsResponse), alignof(StatsResponse)); } } #endif constexpr auto StatsResponse::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_StatsResponse_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &StatsResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl<StatsResponse>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &StatsResponse::SharedDtor, ::google::protobuf::Message::GetClearImpl<StatsResponse>(), &StatsResponse::ByteSizeLong, &StatsResponse::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_._cached_size_), false, }, &StatsResponse::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull StatsResponse_class_data_ = StatsResponse::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL StatsResponse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&StatsResponse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(StatsResponse_class_data_.tc_table); return StatsResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<3, 5, 0, 0, 2> StatsResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_._has_bits_), 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967264, // skipmap offsetof(decltype(_table_), field_entries), 5, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries StatsResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::StatsResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 memtable_size = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(StatsResponse, _impl_.memtable_size_), 2>(), {8, 2, 0, PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.memtable_size_)}}, // uint64 immutable_count = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(StatsResponse, _impl_.immutable_count_), 3>(), {16, 3, 0, PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.immutable_count_)}}, // repeated uint64 level_records = 3; {::_pbi::TcParser::FastV64P1, {26, 0, 0, PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.level_records_)}}, // repeated uint64 level_file_counts = 4; {::_pbi::TcParser::FastV64P1, {34, 1, 0, PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.level_file_counts_)}}, // uint64 total_records = 5; {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(StatsResponse, _impl_.total_records_), 4>(), {40, 4, 0, PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.total_records_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // uint64 memtable_size = 1; {PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.memtable_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 immutable_count = 2; {PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.immutable_count_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // repeated uint64 level_records = 3; {PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.level_records_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt64)}, // repeated uint64 level_file_counts = 4; {PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.level_file_counts_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt64)}, // uint64 total_records = 5; {PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.total_records_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void StatsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.StatsResponse) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { _impl_.level_records_.Clear(); } if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { _impl_.level_file_counts_.Clear(); } } if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) { ::memset(&_impl_.memtable_size_, 0, static_cast<::size_t>( reinterpret_cast<char*>(&_impl_.total_records_) - reinterpret_cast<char*>(&_impl_.memtable_size_)) + sizeof(_impl_.total_records_)); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL StatsResponse::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const StatsResponse& this_ = static_cast<const StatsResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL StatsResponse::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const StatsResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.StatsResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // uint64 memtable_size = 1; if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_memtable_size() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( 1, this_._internal_memtable_size(), target); } } // uint64 immutable_count = 2; if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_immutable_count() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( 2, this_._internal_immutable_count(), target); } } // repeated uint64 level_records = 3; if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { { int byte_size = this_._impl_._level_records_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteUInt64Packed( 3, this_._internal_level_records(), byte_size, target); } } } // repeated uint64 level_file_counts = 4; if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { { int byte_size = this_._impl_._level_file_counts_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteUInt64Packed( 4, this_._internal_level_file_counts(), byte_size, target); } } } // uint64 total_records = 5; if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_total_records() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( 5, this_._internal_total_records(), target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.StatsResponse) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t StatsResponse::ByteSizeLong(const MessageLite& base) { const StatsResponse& this_ = static_cast<const StatsResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t StatsResponse::ByteSizeLong() const { const StatsResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.StatsResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // repeated uint64 level_records = 3; if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { total_size += ::_pbi::WireFormatLite::UInt64SizeWithPackedTagSize( this_._internal_level_records(), 1, this_._impl_._level_records_cached_byte_size_); } // repeated uint64 level_file_counts = 4; if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { total_size += ::_pbi::WireFormatLite::UInt64SizeWithPackedTagSize( this_._internal_level_file_counts(), 1, this_._impl_._level_file_counts_cached_byte_size_); } // uint64 memtable_size = 1; if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_memtable_size() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_memtable_size()); } } // uint64 immutable_count = 2; if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_immutable_count() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_immutable_count()); } } // uint64 total_records = 5; if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_total_records() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_total_records()); } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void StatsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<StatsResponse*>(&to_msg); auto& from = static_cast<const StatsResponse&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.StatsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { _this->_internal_mutable_level_records()->MergeFrom(from._internal_level_records()); } if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { _this->_internal_mutable_level_file_counts()->MergeFrom(from._internal_level_file_counts()); } if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (from._internal_memtable_size() != 0) { _this->_impl_.memtable_size_ = from._impl_.memtable_size_; } } if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (from._internal_immutable_count() != 0) { _this->_impl_.immutable_count_ = from._impl_.immutable_count_; } } if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (from._internal_total_records() != 0) { _this->_impl_.total_records_ = from._impl_.total_records_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void StatsResponse::CopyFrom(const StatsResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.StatsResponse) if (&from == this) return; Clear(); MergeFrom(from); } void StatsResponse::InternalSwap(StatsResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.level_records_.InternalSwap(&other->_impl_.level_records_); _impl_.level_file_counts_.InternalSwap(&other->_impl_.level_file_counts_); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.total_records_) + sizeof(StatsResponse::_impl_.total_records_) - PROTOBUF_FIELD_OFFSET(StatsResponse, _impl_.memtable_size_)>( reinterpret_cast<char*>(&_impl_.memtable_size_), reinterpret_cast<char*>(&other->_impl_.memtable_size_)); } ::google::protobuf::Metadata StatsResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FlushRequest::_Internal { public: }; FlushRequest::FlushRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(arena, FlushRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:sstorage.FlushRequest) } FlushRequest::FlushRequest( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FlushRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(arena, FlushRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE FlushRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:sstorage.FlushRequest) } inline void* PROTOBUF_NONNULL FlushRequest::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) FlushRequest(arena); } constexpr auto FlushRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FlushRequest), alignof(FlushRequest)); } constexpr auto FlushRequest::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_FlushRequest_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &FlushRequest::MergeImpl, ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<FlushRequest>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &FlushRequest::SharedDtor, ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<FlushRequest>(), &FlushRequest::ByteSizeLong, &FlushRequest::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(FlushRequest, _impl_._cached_size_), false, }, &FlushRequest::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull FlushRequest_class_data_ = FlushRequest::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL FlushRequest::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&FlushRequest_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(FlushRequest_class_data_.tc_table); return FlushRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> FlushRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(FlushRequest, _impl_._cached_size_), // no hasbits 0, // no _extensions_ 0, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967295, // skipmap offsetof(decltype(_table_), field_names), // no field_entries 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries FlushRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::FlushRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, // no field_entries, or aux_entries {{ }}, }; ::google::protobuf::Metadata FlushRequest::GetMetadata() const { return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class FlushResponse::_Internal { public: using HasBits = decltype(::std::declval<FlushResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FlushResponse, _impl_._has_bits_); }; FlushResponse::FlushResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, FlushResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.FlushResponse) } FlushResponse::FlushResponse( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const FlushResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, FlushResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(from._impl_) { _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE FlushResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void FlushResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.ok_ = {}; } FlushResponse::~FlushResponse() { // @@protoc_insertion_point(destructor:sstorage.FlushResponse) SharedDtor(*this); } inline void FlushResponse::SharedDtor(MessageLite& self) { FlushResponse& this_ = static_cast<FlushResponse&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL FlushResponse::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) FlushResponse(arena); } constexpr auto FlushResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(FlushResponse), alignof(FlushResponse)); } constexpr auto FlushResponse::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_FlushResponse_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &FlushResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl<FlushResponse>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &FlushResponse::SharedDtor, ::google::protobuf::Message::GetClearImpl<FlushResponse>(), &FlushResponse::ByteSizeLong, &FlushResponse::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(FlushResponse, _impl_._cached_size_), false, }, &FlushResponse::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull FlushResponse_class_data_ = FlushResponse::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL FlushResponse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&FlushResponse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(FlushResponse_class_data_.tc_table); return FlushResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FlushResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(FlushResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries FlushResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::FlushResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool ok = 1; {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(FlushResponse, _impl_.ok_), 0>(), {8, 0, 0, PROTOBUF_FIELD_OFFSET(FlushResponse, _impl_.ok_)}}, }}, {{ 65535, 65535 }}, {{ // bool ok = 1; {PROTOBUF_FIELD_OFFSET(FlushResponse, _impl_.ok_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void FlushResponse::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.FlushResponse) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.ok_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL FlushResponse::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const FlushResponse& this_ = static_cast<const FlushResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL FlushResponse::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const FlushResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.FlushResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bool ok = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_ok(), target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.FlushResponse) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t FlushResponse::ByteSizeLong(const MessageLite& base) { const FlushResponse& this_ = static_cast<const FlushResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t FlushResponse::ByteSizeLong() const { const FlushResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.FlushResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; { // bool ok = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { total_size += 2; } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void FlushResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<FlushResponse*>(&to_msg); auto& from = static_cast<const FlushResponse&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.FlushResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_ok() != 0) { _this->_impl_.ok_ = from._impl_.ok_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void FlushResponse::CopyFrom(const FlushResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.FlushResponse) if (&from == this) return; Clear(); MergeFrom(from); } void FlushResponse::InternalSwap(FlushResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.ok_, other->_impl_.ok_); } ::google::protobuf::Metadata FlushResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CompactRequest::_Internal { public: }; CompactRequest::CompactRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(arena, CompactRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:sstorage.CompactRequest) } CompactRequest::CompactRequest( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CompactRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::internal::ZeroFieldsBase(arena, CompactRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE CompactRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:sstorage.CompactRequest) } inline void* PROTOBUF_NONNULL CompactRequest::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) CompactRequest(arena); } constexpr auto CompactRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CompactRequest), alignof(CompactRequest)); } constexpr auto CompactRequest::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_CompactRequest_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &CompactRequest::MergeImpl, ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<CompactRequest>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &CompactRequest::SharedDtor, ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<CompactRequest>(), &CompactRequest::ByteSizeLong, &CompactRequest::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(CompactRequest, _impl_._cached_size_), false, }, &CompactRequest::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull CompactRequest_class_data_ = CompactRequest::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL CompactRequest::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&CompactRequest_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(CompactRequest_class_data_.tc_table); return CompactRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 0, 0, 0, 2> CompactRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(CompactRequest, _impl_._cached_size_), // no hasbits 0, // no _extensions_ 0, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967295, // skipmap offsetof(decltype(_table_), field_names), // no field_entries 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries CompactRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::CompactRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, // no field_entries, or aux_entries {{ }}, }; ::google::protobuf::Metadata CompactRequest::GetMetadata() const { return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } // =================================================================== class CompactResponse::_Internal { public: using HasBits = decltype(::std::declval<CompactResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CompactResponse, _impl_._has_bits_); }; CompactResponse::CompactResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, CompactResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:sstorage.CompactResponse) } CompactResponse::CompactResponse( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CompactResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) : ::google::protobuf::Message(arena, CompactResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(from._impl_) { _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE CompactResponse::Impl_::Impl_( [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void CompactResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.ok_ = {}; } CompactResponse::~CompactResponse() { // @@protoc_insertion_point(destructor:sstorage.CompactResponse) SharedDtor(*this); } inline void CompactResponse::SharedDtor(MessageLite& self) { CompactResponse& this_ = static_cast<CompactResponse&>(self); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } inline void* PROTOBUF_NONNULL CompactResponse::PlacementNew_( const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) CompactResponse(arena); } constexpr auto CompactResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(CompactResponse), alignof(CompactResponse)); } constexpr auto CompactResponse::InternalGenerateClassData_() { return ::google::protobuf::internal::ClassDataFull{ ::google::protobuf::internal::ClassData{ &_CompactResponse_default_instance_._instance, &_table_.header, nullptr, // IsInitialized &CompactResponse::MergeImpl, ::google::protobuf::Message::GetNewImpl<CompactResponse>(), #if defined(PROTOBUF_CUSTOM_VTABLE) &CompactResponse::SharedDtor, ::google::protobuf::Message::GetClearImpl<CompactResponse>(), &CompactResponse::ByteSizeLong, &CompactResponse::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE PROTOBUF_FIELD_OFFSET(CompactResponse, _impl_._cached_size_), false, }, &CompactResponse::kDescriptorMethods, &descriptor_table_storage_2eproto, nullptr, // tracker }; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull CompactResponse_class_data_ = CompactResponse::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL CompactResponse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&CompactResponse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(CompactResponse_class_data_.tc_table); return CompactResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<0, 1, 0, 0, 2> CompactResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(CompactResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967294, // skipmap offsetof(decltype(_table_), field_entries), 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries CompactResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::sstorage::CompactResponse>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool ok = 1; {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(CompactResponse, _impl_.ok_), 0>(), {8, 0, 0, PROTOBUF_FIELD_OFFSET(CompactResponse, _impl_.ok_)}}, }}, {{ 65535, 65535 }}, {{ // bool ok = 1; {PROTOBUF_FIELD_OFFSET(CompactResponse, _impl_.ok_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ }}, }; PROTOBUF_NOINLINE void CompactResponse::Clear() { // @@protoc_insertion_point(message_clear_start:sstorage.CompactResponse) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.ok_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) ::uint8_t* PROTOBUF_NONNULL CompactResponse::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { const CompactResponse& this_ = static_cast<const CompactResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::uint8_t* PROTOBUF_NONNULL CompactResponse::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const CompactResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { this_.CheckHasBitConsistency(); } // @@protoc_insertion_point(serialize_to_array_start:sstorage.CompactResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // bool ok = 1; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 1, this_._internal_ok(), target); } } if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:sstorage.CompactResponse) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) ::size_t CompactResponse::ByteSizeLong(const MessageLite& base) { const CompactResponse& this_ = static_cast<const CompactResponse&>(base); #else // PROTOBUF_CUSTOM_VTABLE ::size_t CompactResponse::ByteSizeLong() const { const CompactResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(message_byte_size_start:sstorage.CompactResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; { // bool ok = 1; cached_has_bits = this_._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_ok() != 0) { total_size += 2; } } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } void CompactResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast<CompactResponse*>(&to_msg); auto& from = static_cast<const CompactResponse&>(from_msg); if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { from.CheckHasBitConsistency(); } // @@protoc_insertion_point(class_specific_merge_from_start:sstorage.CompactResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_ok() != 0) { _this->_impl_.ok_ = from._impl_.ok_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); } void CompactResponse::CopyFrom(const CompactResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sstorage.CompactResponse) if (&from == this) return; Clear(); MergeFrom(from); } void CompactResponse::InternalSwap(CompactResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.ok_, other->_impl_.ok_); } ::google::protobuf::Metadata CompactResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // @@protoc_insertion_point(namespace_scope) } // namespace sstorage namespace google { namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type _static_init2_ [[maybe_unused]] = (::_pbi::AddDescriptors(&descriptor_table_storage_2eproto), ::std::false_type{}); #include "google/protobuf/port_undef.inc"