diff --git a/c++/greptime/v1/meta/heartbeat.pb.cc b/c++/greptime/v1/meta/heartbeat.pb.cc index 16a4e66..2b7921a 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.cc +++ b/c++/greptime/v1/meta/heartbeat.pb.cc @@ -23,10 +23,22 @@ namespace _pbi = _pb::internal; namespace greptime { namespace v1 { namespace meta { +PROTOBUF_CONSTEXPR HeartbeatRequest_ExtensionsEntry_DoNotUse::HeartbeatRequest_ExtensionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct HeartbeatRequest_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeartbeatRequest_ExtensionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HeartbeatRequest_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + union { + HeartbeatRequest_ExtensionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeartbeatRequest_ExtensionsEntry_DoNotUseDefaultTypeInternal _HeartbeatRequest_ExtensionsEntry_DoNotUse_default_instance_; PROTOBUF_CONSTEXPR HeartbeatRequest::HeartbeatRequest( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.region_stats_)*/{} , /*decltype(_impl_.topic_stats_)*/{} + , /*decltype(_impl_.extensions_)*/{::_pbi::ConstantInitialized()} , /*decltype(_impl_.header_)*/nullptr , /*decltype(_impl_.peer_)*/nullptr , /*decltype(_impl_.report_interval_)*/nullptr @@ -295,11 +307,21 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace meta } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[18]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[19]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto = nullptr; const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -319,6 +341,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.topic_stats_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.extensions_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.node_workloads_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DatanodeWorkloads, _internal_metadata_), @@ -481,27 +504,29 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MailboxMessage, _impl_.payload_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::greptime::v1::meta::HeartbeatRequest)}, - { 20, -1, -1, sizeof(::greptime::v1::meta::DatanodeWorkloads)}, - { 27, -1, -1, sizeof(::greptime::v1::meta::FrontendWorkloads)}, - { 34, -1, -1, sizeof(::greptime::v1::meta::FlownodeWorkloads)}, - { 41, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)}, - { 52, 60, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)}, - { 62, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, - { 75, -1, -1, sizeof(::greptime::v1::meta::TopicStat)}, - { 85, 93, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)}, - { 95, 103, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)}, - { 105, -1, -1, sizeof(::greptime::v1::meta::FlowStat)}, - { 113, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, - { 122, 130, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)}, - { 132, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, - { 141, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, - { 151, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, - { 158, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, - { 166, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, + { 0, 8, -1, sizeof(::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse)}, + { 10, -1, -1, sizeof(::greptime::v1::meta::HeartbeatRequest)}, + { 31, -1, -1, sizeof(::greptime::v1::meta::DatanodeWorkloads)}, + { 38, -1, -1, sizeof(::greptime::v1::meta::FrontendWorkloads)}, + { 45, -1, -1, sizeof(::greptime::v1::meta::FlownodeWorkloads)}, + { 52, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)}, + { 63, 71, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)}, + { 73, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, + { 86, -1, -1, sizeof(::greptime::v1::meta::TopicStat)}, + { 96, 104, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)}, + { 106, 114, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)}, + { 116, -1, -1, sizeof(::greptime::v1::meta::FlowStat)}, + { 124, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, + { 133, 141, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)}, + { 143, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, + { 152, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, + { 162, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, + { 169, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, + { 177, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, }; static const ::_pb::Message* const file_default_instances[] = { + &::greptime::v1::meta::_HeartbeatRequest_ExtensionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::meta::_HeartbeatRequest_default_instance_._instance, &::greptime::v1::meta::_DatanodeWorkloads_default_instance_._instance, &::greptime::v1::meta::_FrontendWorkloads_default_instance_._instance, @@ -525,7 +550,7 @@ static const ::_pb::Message* const file_default_instances[] = { const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n greptime/v1/meta/heartbeat.proto\022\020grep" "time.v1.meta\032\035greptime/v1/meta/common.pr" - "oto\"\213\005\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013" + "oto\"\206\006\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013" "2\037.greptime.v1.meta.RequestHeader\022$\n\004pee" "r\030\002 \001(\0132\026.greptime.v1.meta.Peer\0227\n\017repor" "t_interval\030\003 \001(\0132\036.greptime.v1.meta.Time" @@ -540,68 +565,71 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] "rontend\030\013 \001(\0132#.greptime.v1.meta.Fronten" "dWorkloadsH\000\0227\n\010flownode\030\014 \001(\0132#.greptim" "e.v1.meta.FlownodeWorkloadsH\000\0220\n\013topic_s" - "tats\030\r \003(\0132\033.greptime.v1.meta.TopicStatB" - "\020\n\016node_workloads\"\"\n\021DatanodeWorkloads\022\r" - "\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n\005ty" - "pes\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005types\030" - "\001 \003(\005\"j\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n\ngi" - "t_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001(\004\022\014\n" - "\004cpus\030\004 \001(\r\022\024\n\014memory_bytes\030\005 \001(\004\"\207\002\n\nRe" - "gionStat\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004rcus\030\002 \001(" - "\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021approximate_bytes\030\004 \001" - "(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.grept" - "ime.v1.meta.RegionRole\022@\n\nextensions\030c \003" - "(\0132,.greptime.v1.meta.RegionStat.Extensi" - "onsEntry\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t" - "\022\r\n\005value\030\002 \001(\014:\0028\001\"a\n\tTopicStat\022\022\n\ntopi" - "c_name\030\001 \001(\t\022\023\n\013record_size\030\002 \001(\004\022\022\n\nrec" - "ord_num\030\003 \001(\004\022\027\n\017latest_entry_id\030\004 \001(\004\"\227" - "\002\n\010FlowStat\022D\n\016flow_stat_size\030\001 \003(\0132,.gr" - "eptime.v1.meta.FlowStat.FlowStatSizeEntr" - "y\022T\n\027flow_last_exec_time_map\030\002 \003(\01323.gre" - "ptime.v1.meta.FlowStat.FlowLastExecTimeM" - "apEntry\0323\n\021FlowStatSizeEntry\022\013\n\003key\030\001 \001(" - "\r\022\r\n\005value\030\002 \001(\004:\0028\001\032:\n\030FlowLastExecTime" - "MapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001" - "\"\265\001\n\021HeartbeatResponse\0220\n\006header\030\001 \001(\0132 " - ".greptime.v1.meta.ResponseHeader\0229\n\017mail" - "box_message\030\002 \001(\0132 .greptime.v1.meta.Mai" - "lboxMessage\0223\n\014region_lease\030\003 \001(\0132\035.grep" - "time.v1.meta.RegionLease\"\306\001\n\rGrantedRegi" - "on\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.gr" - "eptime.v1.meta.RegionRole\022C\n\nextensions\030" - "c \003(\0132/.greptime.v1.meta.GrantedRegion.E" - "xtensionsEntry\0321\n\017ExtensionsEntry\022\013\n\003key" - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\222\001\n\013RegionLeas" - "e\0220\n\007regions\030\001 \003(\0132\037.greptime.v1.meta.Gr" - "antedRegion\022\034\n\024duration_since_epoch\030\002 \001(" - "\004\022\025\n\rlease_seconds\030\003 \001(\004\022\034\n\024closeable_re" - "gion_ids\030\004 \003(\004\"C\n\020AskLeaderRequest\022/\n\006he" - "ader\030\001 \001(\0132\037.greptime.v1.meta.RequestHea" - "der\"m\n\021AskLeaderResponse\0220\n\006header\030\001 \001(\013" - "2 .greptime.v1.meta.ResponseHeader\022&\n\006le" - "ader\030\002 \001(\0132\026.greptime.v1.meta.Peer\"|\n\016Ma" - "ilboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(" - "\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp" - "_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000B\t\n\007payload" - "*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001" - "\022\025\n\021DowngradingLeader\020\0022\277\001\n\tHeartbeat\022Z\n" - "\tHeartbeat\022\".greptime.v1.meta.HeartbeatR" - "equest\032#.greptime.v1.meta.HeartbeatRespo" - "nse\"\000(\0010\001\022V\n\tAskLeader\022\".greptime.v1.met" - "a.AskLeaderRequest\032#.greptime.v1.meta.As" - "kLeaderResponse\"\000BOwnCustomDestructor(this, &HeartbeatRequest::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.HeartbeatRequest) } HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from) @@ -757,6 +802,7 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from) new (&_impl_) Impl_{ decltype(_impl_.region_stats_){from._impl_.region_stats_} , decltype(_impl_.topic_stats_){from._impl_.topic_stats_} + , /*decltype(_impl_.extensions_)*/{} , decltype(_impl_.header_){nullptr} , decltype(_impl_.peer_){nullptr} , decltype(_impl_.report_interval_){nullptr} @@ -770,6 +816,7 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from) , /*decltype(_impl_._oneof_case_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); if (from._internal_has_header()) { _this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_); } @@ -822,6 +869,7 @@ inline void HeartbeatRequest::SharedCtor( new (&_impl_) Impl_{ decltype(_impl_.region_stats_){arena} , decltype(_impl_.topic_stats_){arena} + , /*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena} , decltype(_impl_.header_){nullptr} , decltype(_impl_.peer_){nullptr} , decltype(_impl_.report_interval_){nullptr} @@ -841,6 +889,7 @@ HeartbeatRequest::~HeartbeatRequest() { // @@protoc_insertion_point(destructor:greptime.v1.meta.HeartbeatRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; + ArenaDtor(this); return; } SharedDtor(); @@ -850,6 +899,8 @@ inline void HeartbeatRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.region_stats_.~RepeatedPtrField(); _impl_.topic_stats_.~RepeatedPtrField(); + _impl_.extensions_.Destruct(); + _impl_.extensions_.~MapField(); if (this != internal_default_instance()) delete _impl_.header_; if (this != internal_default_instance()) delete _impl_.peer_; if (this != internal_default_instance()) delete _impl_.report_interval_; @@ -861,6 +912,10 @@ inline void HeartbeatRequest::SharedDtor() { } } +void HeartbeatRequest::ArenaDtor(void* object) { + HeartbeatRequest* _this = reinterpret_cast< HeartbeatRequest* >(object); + _this->_impl_.extensions_.Destruct(); +} void HeartbeatRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } @@ -902,6 +957,7 @@ void HeartbeatRequest::Clear() { _impl_.region_stats_.Clear(); _impl_.topic_stats_.Clear(); + _impl_.extensions_.Clear(); if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } @@ -1053,6 +1109,19 @@ const char* HeartbeatRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte } else goto handle_unusual; continue; + // map extensions = 99; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(&_impl_.extensions_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<794>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1173,6 +1242,32 @@ uint8_t* HeartbeatRequest::_InternalSerialize( InternalWriteMessage(13, repfield, repfield.GetCachedSize(), target, stream); } + // map extensions = 99; + if (!this->_internal_extensions().empty()) { + using MapType = ::_pb::Map; + using WireHelper = HeartbeatRequest_ExtensionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_extensions(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.HeartbeatRequest.ExtensionsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(99, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(99, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1203,6 +1298,15 @@ size_t HeartbeatRequest::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // map extensions = 99; + total_size += 2 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_extensions().begin(); + it != this->_internal_extensions().end(); ++it) { + total_size += HeartbeatRequest_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + // .greptime.v1.meta.RequestHeader header = 1; if (this->_internal_has_header()) { total_size += 1 + @@ -1301,6 +1405,7 @@ void HeartbeatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_impl_.region_stats_.MergeFrom(from._impl_.region_stats_); _this->_impl_.topic_stats_.MergeFrom(from._impl_.topic_stats_); + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); if (from._internal_has_header()) { _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( from._internal_header()); @@ -1370,6 +1475,7 @@ void HeartbeatRequest::InternalSwap(HeartbeatRequest* other) { _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.region_stats_.InternalSwap(&other->_impl_.region_stats_); _impl_.topic_stats_.InternalSwap(&other->_impl_.topic_stats_); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(HeartbeatRequest, _impl_.node_epoch_) + sizeof(HeartbeatRequest::_impl_.node_epoch_) @@ -1383,7 +1489,7 @@ void HeartbeatRequest::InternalSwap(HeartbeatRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[0]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[1]); } // =================================================================== @@ -1576,7 +1682,7 @@ void DatanodeWorkloads::InternalSwap(DatanodeWorkloads* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DatanodeWorkloads::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[1]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[2]); } // =================================================================== @@ -1769,7 +1875,7 @@ void FrontendWorkloads::InternalSwap(FrontendWorkloads* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FrontendWorkloads::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[2]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[3]); } // =================================================================== @@ -1962,7 +2068,7 @@ void FlownodeWorkloads::InternalSwap(FlownodeWorkloads* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlownodeWorkloads::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[3]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[4]); } // =================================================================== @@ -2299,7 +2405,7 @@ void NodeInfo::InternalSwap(NodeInfo* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NodeInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[4]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[5]); } // =================================================================== @@ -2313,7 +2419,7 @@ void RegionStat_ExtensionsEntry_DoNotUse::MergeFrom(const RegionStat_ExtensionsE ::PROTOBUF_NAMESPACE_ID::Metadata RegionStat_ExtensionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[5]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]); } // =================================================================== @@ -2715,7 +2821,7 @@ void RegionStat::InternalSwap(RegionStat* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionStat::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]); } // =================================================================== @@ -3002,7 +3108,7 @@ void TopicStat::InternalSwap(TopicStat* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TopicStat::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]); } // =================================================================== @@ -3016,7 +3122,7 @@ void FlowStat_FlowStatSizeEntry_DoNotUse::MergeFrom(const FlowStat_FlowStatSizeE ::PROTOBUF_NAMESPACE_ID::Metadata FlowStat_FlowStatSizeEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9]); } // =================================================================== @@ -3030,7 +3136,7 @@ void FlowStat_FlowLastExecTimeMapEntry_DoNotUse::MergeFrom(const FlowStat_FlowLa ::PROTOBUF_NAMESPACE_ID::Metadata FlowStat_FlowLastExecTimeMapEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[10]); } // =================================================================== @@ -3284,7 +3390,7 @@ void FlowStat::InternalSwap(FlowStat* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlowStat::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[10]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[11]); } // =================================================================== @@ -3570,7 +3676,7 @@ void HeartbeatResponse::InternalSwap(HeartbeatResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[11]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[12]); } // =================================================================== @@ -3584,7 +3690,7 @@ void GrantedRegion_ExtensionsEntry_DoNotUse::MergeFrom(const GrantedRegion_Exten ::PROTOBUF_NAMESPACE_ID::Metadata GrantedRegion_ExtensionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[12]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[13]); } // =================================================================== @@ -3862,7 +3968,7 @@ void GrantedRegion::InternalSwap(GrantedRegion* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GrantedRegion::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[13]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[14]); } // =================================================================== @@ -4149,7 +4255,7 @@ void RegionLease::InternalSwap(RegionLease* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionLease::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[14]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[15]); } // =================================================================== @@ -4348,7 +4454,7 @@ void AskLeaderRequest::InternalSwap(AskLeaderRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[15]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[16]); } // =================================================================== @@ -4599,7 +4705,7 @@ void AskLeaderResponse::InternalSwap(AskLeaderResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[16]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[17]); } // =================================================================== @@ -5039,7 +5145,7 @@ void MailboxMessage::InternalSwap(MailboxMessage* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MailboxMessage::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[17]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[18]); } // @@protoc_insertion_point(namespace_scope) @@ -5047,6 +5153,10 @@ void MailboxMessage::InternalSwap(MailboxMessage* other) { } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatRequest >(arena); diff --git a/c++/greptime/v1/meta/heartbeat.pb.h b/c++/greptime/v1/meta/heartbeat.pb.h index 95383be..fb36714 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.h +++ b/c++/greptime/v1/meta/heartbeat.pb.h @@ -85,6 +85,9 @@ extern GrantedRegion_ExtensionsEntry_DoNotUseDefaultTypeInternal _GrantedRegion_ class HeartbeatRequest; struct HeartbeatRequestDefaultTypeInternal; extern HeartbeatRequestDefaultTypeInternal _HeartbeatRequest_default_instance_; +class HeartbeatRequest_ExtensionsEntry_DoNotUse; +struct HeartbeatRequest_ExtensionsEntry_DoNotUseDefaultTypeInternal; +extern HeartbeatRequest_ExtensionsEntry_DoNotUseDefaultTypeInternal _HeartbeatRequest_ExtensionsEntry_DoNotUse_default_instance_; class HeartbeatResponse; struct HeartbeatResponseDefaultTypeInternal; extern HeartbeatResponseDefaultTypeInternal _HeartbeatResponse_default_instance_; @@ -121,6 +124,7 @@ template<> ::greptime::v1::meta::FrontendWorkloads* Arena::CreateMaybeMessage<:: template<> ::greptime::v1::meta::GrantedRegion* Arena::CreateMaybeMessage<::greptime::v1::meta::GrantedRegion>(Arena*); template<> ::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest>(Arena*); +template<> ::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::meta::HeartbeatResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatResponse>(Arena*); template<> ::greptime::v1::meta::MailboxMessage* Arena::CreateMaybeMessage<::greptime::v1::meta::MailboxMessage>(Arena*); template<> ::greptime::v1::meta::NodeInfo* Arena::CreateMaybeMessage<::greptime::v1::meta::NodeInfo>(Arena*); @@ -161,6 +165,32 @@ inline bool RegionRole_Parse( } // =================================================================== +class HeartbeatRequest_ExtensionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + HeartbeatRequest_ExtensionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR HeartbeatRequest_ExtensionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit HeartbeatRequest_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const HeartbeatRequest_ExtensionsEntry_DoNotUse& other); + static const HeartbeatRequest_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_HeartbeatRequest_ExtensionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.meta.HeartbeatRequest.ExtensionsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto; +}; + +// ------------------------------------------------------------------- + class HeartbeatRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.HeartbeatRequest) */ { public: @@ -216,7 +246,7 @@ class HeartbeatRequest final : &_HeartbeatRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 0; + 1; friend void swap(HeartbeatRequest& a, HeartbeatRequest& b) { a.Swap(&b); @@ -277,6 +307,8 @@ class HeartbeatRequest final : protected: explicit HeartbeatRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -286,11 +318,13 @@ class HeartbeatRequest final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { kRegionStatsFieldNumber = 4, kTopicStatsFieldNumber = 13, + kExtensionsFieldNumber = 99, kHeaderFieldNumber = 1, kPeerFieldNumber = 2, kReportIntervalFieldNumber = 3, @@ -339,6 +373,23 @@ class HeartbeatRequest final : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TopicStat >& topic_stats() const; + // map extensions = 99; + int extensions_size() const; + private: + int _internal_extensions_size() const; + public: + void clear_extensions(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_extensions() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_extensions(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + extensions() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_extensions(); + // .greptime.v1.meta.RequestHeader header = 1; bool has_header() const; private: @@ -537,6 +588,11 @@ class HeartbeatRequest final : struct Impl_ { ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::RegionStat > region_stats_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TopicStat > topic_stats_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + HeartbeatRequest_ExtensionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BYTES> extensions_; ::greptime::v1::meta::RequestHeader* header_; ::greptime::v1::meta::Peer* peer_; ::greptime::v1::meta::TimeInterval* report_interval_; @@ -609,7 +665,7 @@ class DatanodeWorkloads final : &_DatanodeWorkloads_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; friend void swap(DatanodeWorkloads& a, DatanodeWorkloads& b) { a.Swap(&b); @@ -771,7 +827,7 @@ class FrontendWorkloads final : &_FrontendWorkloads_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; friend void swap(FrontendWorkloads& a, FrontendWorkloads& b) { a.Swap(&b); @@ -933,7 +989,7 @@ class FlownodeWorkloads final : &_FlownodeWorkloads_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(FlownodeWorkloads& a, FlownodeWorkloads& b) { a.Swap(&b); @@ -1095,7 +1151,7 @@ class NodeInfo final : &_NodeInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(NodeInfo& a, NodeInfo& b) { a.Swap(&b); @@ -1323,7 +1379,7 @@ class RegionStat final : &_RegionStat_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(RegionStat& a, RegionStat& b) { a.Swap(&b); @@ -1557,7 +1613,7 @@ class TopicStat final : &_TopicStat_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(TopicStat& a, TopicStat& b) { a.Swap(&b); @@ -1791,7 +1847,7 @@ class FlowStat final : &_FlowStat_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(FlowStat& a, FlowStat& b) { a.Swap(&b); @@ -1977,7 +2033,7 @@ class HeartbeatResponse final : &_HeartbeatResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(HeartbeatResponse& a, HeartbeatResponse& b) { a.Swap(&b); @@ -2200,7 +2256,7 @@ class GrantedRegion final : &_GrantedRegion_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(GrantedRegion& a, GrantedRegion& b) { a.Swap(&b); @@ -2385,7 +2441,7 @@ class RegionLease final : &_RegionLease_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(RegionLease& a, RegionLease& b) { a.Swap(&b); @@ -2589,7 +2645,7 @@ class AskLeaderRequest final : &_AskLeaderRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(AskLeaderRequest& a, AskLeaderRequest& b) { a.Swap(&b); @@ -2746,7 +2802,7 @@ class AskLeaderResponse final : &_AskLeaderResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(AskLeaderResponse& a, AskLeaderResponse& b) { a.Swap(&b); @@ -2928,7 +2984,7 @@ class MailboxMessage final : &_MailboxMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(MailboxMessage& a, MailboxMessage& b) { a.Swap(&b); @@ -3126,6 +3182,8 @@ class MailboxMessage final : #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // HeartbeatRequest // .greptime.v1.meta.RequestHeader header = 1; @@ -3995,6 +4053,35 @@ HeartbeatRequest::topic_stats() const { return _impl_.topic_stats_; } +// map extensions = 99; +inline int HeartbeatRequest::_internal_extensions_size() const { + return _impl_.extensions_.size(); +} +inline int HeartbeatRequest::extensions_size() const { + return _internal_extensions_size(); +} +inline void HeartbeatRequest::clear_extensions() { + _impl_.extensions_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +HeartbeatRequest::_internal_extensions() const { + return _impl_.extensions_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +HeartbeatRequest::extensions() const { + // @@protoc_insertion_point(field_map:greptime.v1.meta.HeartbeatRequest.extensions) + return _internal_extensions(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +HeartbeatRequest::_internal_mutable_extensions() { + return _impl_.extensions_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +HeartbeatRequest::mutable_extensions() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.meta.HeartbeatRequest.extensions) + return _internal_mutable_extensions(); +} + inline bool HeartbeatRequest::has_node_workloads() const { return node_workloads_case() != NODE_WORKLOADS_NOT_SET; } @@ -5741,6 +5828,8 @@ inline MailboxMessage::PayloadCase MailboxMessage::payload_case() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/meta/heartbeat.pb.go b/go/greptime/v1/meta/heartbeat.pb.go index 5c4c87c..2c4c2d4 100644 --- a/go/greptime/v1/meta/heartbeat.pb.go +++ b/go/greptime/v1/meta/heartbeat.pb.go @@ -119,7 +119,8 @@ type HeartbeatRequest struct { // *HeartbeatRequest_Flownode NodeWorkloads isHeartbeatRequest_NodeWorkloads `protobuf_oneof:"node_workloads"` // The topic stats of the datanode. - TopicStats []*TopicStat `protobuf:"bytes,13,rep,name=topic_stats,json=topicStats,proto3" json:"topic_stats,omitempty"` + TopicStats []*TopicStat `protobuf:"bytes,13,rep,name=topic_stats,json=topicStats,proto3" json:"topic_stats,omitempty"` + Extensions map[string][]byte `protobuf:"bytes,99,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *HeartbeatRequest) Reset() { @@ -252,6 +253,13 @@ func (x *HeartbeatRequest) GetTopicStats() []*TopicStat { return nil } +func (x *HeartbeatRequest) GetExtensions() map[string][]byte { + if x != nil { + return x.Extensions + } + return nil +} + type isHeartbeatRequest_NodeWorkloads interface { isHeartbeatRequest_NodeWorkloads() } @@ -1156,7 +1164,7 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{ 0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x06, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, + 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x07, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, @@ -1205,164 +1213,173 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{ 0x74, 0x61, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0a, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, - 0x61, 0x74, 0x73, 0x42, 0x10, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x6e, 0x6f, 0x64, - 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x22, 0x29, 0x0a, 0x11, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x57, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x46, - 0x6c, 0x6f, 0x77, 0x6e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, - 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, - 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x22, 0x0a, 0x0d, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, - 0x63, 0x70, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x62, - 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, - 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xd5, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, - 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, - 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, - 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, - 0x6c, 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x53, 0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x92, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x0f, - 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x49, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, - 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x61, 0x74, 0x73, 0x12, 0x52, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, + 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, + 0x6e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x46, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x57, + 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x29, + 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x6e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, + 0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x08, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, + 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, + 0x65, 0x4d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, + 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, + 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xd5, 0x02, 0x0a, 0x0a, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, + 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, + 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, + 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, + 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x92, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4e, 0x75, 0x6d, 0x12, + 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, + 0x53, 0x74, 0x61, 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x77, + 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, - 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, - 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, - 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, - 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, - 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x66, 0x6c, 0x6f, - 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, - 0x1a, 0x3f, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x1a, 0x46, 0x0a, 0x18, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, - 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, - 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, - 0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, + 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, + 0x66, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, + 0x4d, 0x61, 0x70, 0x1a, 0x3f, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, + 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x46, 0x0a, 0x18, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, + 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 0x0a, + 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, - 0x65, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xee, 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, - 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4f, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, - 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, - 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, - 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, - 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, - 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, - 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, + 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, - 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, - 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, - 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x3d, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, - 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, - 0x0a, 0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, - 0x44, 0x6f, 0x77, 0x6e, 0x67, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x10, 0x02, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, - 0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xee, 0x01, 0x0a, 0x0d, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4f, 0x0a, 0x0a, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, - 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a, - 0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, - 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, - 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, - 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, - 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, + 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, + 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, + 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, + 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, + 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, + 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, + 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, + 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, + 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, + 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x3d, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, + 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x10, 0x01, 0x12, + 0x15, 0x0a, 0x11, 0x44, 0x6f, 0x77, 0x6e, 0x67, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x10, 0x02, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, + 0x62, 0x65, 0x61, 0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, + 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, + 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, + 0x12, 0x56, 0x0a, 0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, + 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, + 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1378,7 +1395,7 @@ func file_greptime_v1_meta_heartbeat_proto_rawDescGZIP() []byte { } var file_greptime_v1_meta_heartbeat_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 19) var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{ (RegionRole)(0), // 0: greptime.v1.meta.RegionRole (*HeartbeatRequest)(nil), // 1: greptime.v1.meta.HeartbeatRequest @@ -1395,19 +1412,20 @@ var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{ (*AskLeaderRequest)(nil), // 12: greptime.v1.meta.AskLeaderRequest (*AskLeaderResponse)(nil), // 13: greptime.v1.meta.AskLeaderResponse (*MailboxMessage)(nil), // 14: greptime.v1.meta.MailboxMessage - nil, // 15: greptime.v1.meta.RegionStat.ExtensionsEntry - nil, // 16: greptime.v1.meta.FlowStat.FlowStatSizeEntry - nil, // 17: greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry - nil, // 18: greptime.v1.meta.GrantedRegion.ExtensionsEntry - (*RequestHeader)(nil), // 19: greptime.v1.meta.RequestHeader - (*Peer)(nil), // 20: greptime.v1.meta.Peer - (*TimeInterval)(nil), // 21: greptime.v1.meta.TimeInterval - (*ResponseHeader)(nil), // 22: greptime.v1.meta.ResponseHeader + nil, // 15: greptime.v1.meta.HeartbeatRequest.ExtensionsEntry + nil, // 16: greptime.v1.meta.RegionStat.ExtensionsEntry + nil, // 17: greptime.v1.meta.FlowStat.FlowStatSizeEntry + nil, // 18: greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry + nil, // 19: greptime.v1.meta.GrantedRegion.ExtensionsEntry + (*RequestHeader)(nil), // 20: greptime.v1.meta.RequestHeader + (*Peer)(nil), // 21: greptime.v1.meta.Peer + (*TimeInterval)(nil), // 22: greptime.v1.meta.TimeInterval + (*ResponseHeader)(nil), // 23: greptime.v1.meta.ResponseHeader } var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{ - 19, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader - 20, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer - 21, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval + 20, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader + 21, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer + 22, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval 6, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat 14, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage 5, // 5: greptime.v1.meta.HeartbeatRequest.info:type_name -> greptime.v1.meta.NodeInfo @@ -1416,28 +1434,29 @@ var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{ 3, // 8: greptime.v1.meta.HeartbeatRequest.frontend:type_name -> greptime.v1.meta.FrontendWorkloads 4, // 9: greptime.v1.meta.HeartbeatRequest.flownode:type_name -> greptime.v1.meta.FlownodeWorkloads 7, // 10: greptime.v1.meta.HeartbeatRequest.topic_stats:type_name -> greptime.v1.meta.TopicStat - 0, // 11: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole - 15, // 12: greptime.v1.meta.RegionStat.extensions:type_name -> greptime.v1.meta.RegionStat.ExtensionsEntry - 16, // 13: greptime.v1.meta.FlowStat.flow_stat_size:type_name -> greptime.v1.meta.FlowStat.FlowStatSizeEntry - 17, // 14: greptime.v1.meta.FlowStat.flow_last_exec_time_map:type_name -> greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry - 22, // 15: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 14, // 16: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage - 11, // 17: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease - 0, // 18: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole - 18, // 19: greptime.v1.meta.GrantedRegion.extensions:type_name -> greptime.v1.meta.GrantedRegion.ExtensionsEntry - 10, // 20: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion - 19, // 21: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader - 22, // 22: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 20, // 23: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer - 1, // 24: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest - 12, // 25: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest - 9, // 26: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse - 13, // 27: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse - 26, // [26:28] is the sub-list for method output_type - 24, // [24:26] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name + 15, // 11: greptime.v1.meta.HeartbeatRequest.extensions:type_name -> greptime.v1.meta.HeartbeatRequest.ExtensionsEntry + 0, // 12: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole + 16, // 13: greptime.v1.meta.RegionStat.extensions:type_name -> greptime.v1.meta.RegionStat.ExtensionsEntry + 17, // 14: greptime.v1.meta.FlowStat.flow_stat_size:type_name -> greptime.v1.meta.FlowStat.FlowStatSizeEntry + 18, // 15: greptime.v1.meta.FlowStat.flow_last_exec_time_map:type_name -> greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry + 23, // 16: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 14, // 17: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage + 11, // 18: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease + 0, // 19: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole + 19, // 20: greptime.v1.meta.GrantedRegion.extensions:type_name -> greptime.v1.meta.GrantedRegion.ExtensionsEntry + 10, // 21: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion + 20, // 22: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader + 23, // 23: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 21, // 24: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer + 1, // 25: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest + 12, // 26: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest + 9, // 27: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse + 13, // 28: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse + 27, // [27:29] is the sub-list for method output_type + 25, // [25:27] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name } func init() { file_greptime_v1_meta_heartbeat_proto_init() } @@ -1630,7 +1649,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_meta_heartbeat_proto_rawDesc, NumEnums: 1, - NumMessages: 18, + NumMessages: 19, NumExtensions: 0, NumServices: 1, }, diff --git a/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java b/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java index 0653b22..fb69928 100644 --- a/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java +++ b/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java @@ -444,6 +444,42 @@ public final class HeartbeatOuterClass { greptime.v1.meta.HeartbeatOuterClass.TopicStatOrBuilder getTopicStatsOrBuilder( int index); + /** + * map<string, bytes> extensions = 99; + */ + int getExtensionsCount(); + /** + * map<string, bytes> extensions = 99; + */ + boolean containsExtensions( + java.lang.String key); + /** + * Use {@link #getExtensionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getExtensions(); + /** + * map<string, bytes> extensions = 99; + */ + java.util.Map + getExtensionsMap(); + /** + * map<string, bytes> extensions = 99; + */ + + /* nullable */ +com.google.protobuf.ByteString getExtensionsOrDefault( + java.lang.String key, + /* nullable */ +com.google.protobuf.ByteString defaultValue); + /** + * map<string, bytes> extensions = 99; + */ + + com.google.protobuf.ByteString getExtensionsOrThrow( + java.lang.String key); + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest.NodeWorkloadsCase getNodeWorkloadsCase(); } /** @@ -642,6 +678,19 @@ public final class HeartbeatOuterClass { input.readMessage(greptime.v1.meta.HeartbeatOuterClass.TopicStat.parser(), extensionRegistry)); break; } + case 794: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + extensions_ = com.google.protobuf.MapField.newMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + extensions__ = input.readMessage( + ExtensionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + extensions_.getMutableMap().put( + extensions__.getKey(), extensions__.getValue()); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -674,6 +723,18 @@ public final class HeartbeatOuterClass { return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 99: + return internalGetExtensions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -1160,6 +1221,87 @@ public final class HeartbeatOuterClass { return topicStats_.get(index); } + public static final int EXTENSIONS_FIELD_NUMBER = 99; + private static final class ExtensionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ByteString> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatRequest_ExtensionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ByteString> extensions_; + private com.google.protobuf.MapField + internalGetExtensions() { + if (extensions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + } + return extensions_; + } + + public int getExtensionsCount() { + return internalGetExtensions().getMap().size(); + } + /** + * map<string, bytes> extensions = 99; + */ + + @java.lang.Override + public boolean containsExtensions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetExtensions().getMap().containsKey(key); + } + /** + * Use {@link #getExtensionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getExtensions() { + return getExtensionsMap(); + } + /** + * map<string, bytes> extensions = 99; + */ + @java.lang.Override + + public java.util.Map getExtensionsMap() { + return internalGetExtensions().getMap(); + } + /** + * map<string, bytes> extensions = 99; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getExtensionsOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, bytes> extensions = 99; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getExtensionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1213,6 +1355,12 @@ public final class HeartbeatOuterClass { for (int i = 0; i < topicStats_.size(); i++) { output.writeMessage(13, topicStats_.get(i)); } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetExtensions(), + ExtensionsDefaultEntryHolder.defaultEntry, + 99); unknownFields.writeTo(output); } @@ -1274,6 +1422,16 @@ public final class HeartbeatOuterClass { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, topicStats_.get(i)); } + for (java.util.Map.Entry entry + : internalGetExtensions().getMap().entrySet()) { + com.google.protobuf.MapEntry + extensions__ = ExtensionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(99, extensions__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1327,6 +1485,8 @@ public final class HeartbeatOuterClass { } if (!getTopicStatsList() .equals(other.getTopicStatsList())) return false; + if (!internalGetExtensions().equals( + other.internalGetExtensions())) return false; if (!getNodeWorkloadsCase().equals(other.getNodeWorkloadsCase())) return false; switch (nodeWorkloadsCase_) { case 10: @@ -1393,6 +1553,10 @@ public final class HeartbeatOuterClass { hash = (37 * hash) + TOPIC_STATS_FIELD_NUMBER; hash = (53 * hash) + getTopicStatsList().hashCode(); } + if (!internalGetExtensions().getMap().isEmpty()) { + hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetExtensions().hashCode(); + } switch (nodeWorkloadsCase_) { case 10: hash = (37 * hash) + DATANODE_FIELD_NUMBER; @@ -1516,6 +1680,28 @@ public final class HeartbeatOuterClass { return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 99: + return internalGetExtensions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 99: + return internalGetMutableExtensions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -1596,6 +1782,7 @@ public final class HeartbeatOuterClass { } else { topicStatsBuilder_.clear(); } + internalGetMutableExtensions().clear(); nodeWorkloadsCase_ = 0; nodeWorkloads_ = null; return this; @@ -1696,6 +1883,8 @@ public final class HeartbeatOuterClass { } else { result.topicStats_ = topicStatsBuilder_.build(); } + result.extensions_ = internalGetExtensions(); + result.extensions_.makeImmutable(); result.nodeWorkloadsCase_ = nodeWorkloadsCase_; onBuilt(); return result; @@ -1821,6 +2010,8 @@ public final class HeartbeatOuterClass { } } } + internalGetMutableExtensions().mergeFrom( + other.internalGetExtensions()); switch (other.getNodeWorkloadsCase()) { case DATANODE: { mergeDatanode(other.getDatanode()); @@ -3840,6 +4031,137 @@ public final class HeartbeatOuterClass { } return topicStatsBuilder_; } + + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ByteString> extensions_; + private com.google.protobuf.MapField + internalGetExtensions() { + if (extensions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + } + return extensions_; + } + private com.google.protobuf.MapField + internalGetMutableExtensions() { + onChanged();; + if (extensions_ == null) { + extensions_ = com.google.protobuf.MapField.newMapField( + ExtensionsDefaultEntryHolder.defaultEntry); + } + if (!extensions_.isMutable()) { + extensions_ = extensions_.copy(); + } + return extensions_; + } + + public int getExtensionsCount() { + return internalGetExtensions().getMap().size(); + } + /** + * map<string, bytes> extensions = 99; + */ + + @java.lang.Override + public boolean containsExtensions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetExtensions().getMap().containsKey(key); + } + /** + * Use {@link #getExtensionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getExtensions() { + return getExtensionsMap(); + } + /** + * map<string, bytes> extensions = 99; + */ + @java.lang.Override + + public java.util.Map getExtensionsMap() { + return internalGetExtensions().getMap(); + } + /** + * map<string, bytes> extensions = 99; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getExtensionsOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, bytes> extensions = 99; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getExtensionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetExtensions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearExtensions() { + internalGetMutableExtensions().getMutableMap() + .clear(); + return this; + } + /** + * map<string, bytes> extensions = 99; + */ + + public Builder removeExtensions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableExtensions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableExtensions() { + return internalGetMutableExtensions().getMutableMap(); + } + /** + * map<string, bytes> extensions = 99; + */ + public Builder putExtensions( + java.lang.String key, + com.google.protobuf.ByteString value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableExtensions().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, bytes> extensions = 99; + */ + + public Builder putAllExtensions( + java.util.Map values) { + internalGetMutableExtensions().getMutableMap() + .putAll(values); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16164,6 +16486,11 @@ com.google.protobuf.ByteString defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_HeartbeatRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_HeartbeatRequest_ExtensionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_HeartbeatRequest_ExtensionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_DatanodeWorkloads_descriptor; private static final @@ -16260,7 +16587,7 @@ com.google.protobuf.ByteString defaultValue); java.lang.String[] descriptorData = { "\n greptime/v1/meta/heartbeat.proto\022\020grep" + "time.v1.meta\032\035greptime/v1/meta/common.pr" + - "oto\"\213\005\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013" + + "oto\"\206\006\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013" + "2\037.greptime.v1.meta.RequestHeader\022$\n\004pee" + "r\030\002 \001(\0132\026.greptime.v1.meta.Peer\0227\n\017repor" + "t_interval\030\003 \001(\0132\036.greptime.v1.meta.Time" + @@ -16275,59 +16602,62 @@ com.google.protobuf.ByteString defaultValue); "rontend\030\013 \001(\0132#.greptime.v1.meta.Fronten" + "dWorkloadsH\000\0227\n\010flownode\030\014 \001(\0132#.greptim" + "e.v1.meta.FlownodeWorkloadsH\000\0220\n\013topic_s" + - "tats\030\r \003(\0132\033.greptime.v1.meta.TopicStatB" + - "\020\n\016node_workloads\"\"\n\021DatanodeWorkloads\022\r" + - "\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n\005ty" + - "pes\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005types\030" + - "\001 \003(\005\"j\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n\ngi" + - "t_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001(\004\022\014\n" + - "\004cpus\030\004 \001(\r\022\024\n\014memory_bytes\030\005 \001(\004\"\207\002\n\nRe" + - "gionStat\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004rcus\030\002 \001(" + - "\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021approximate_bytes\030\004 \001" + - "(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.grept" + - "ime.v1.meta.RegionRole\022@\n\nextensions\030c \003" + - "(\0132,.greptime.v1.meta.RegionStat.Extensi" + - "onsEntry\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\014:\0028\001\"a\n\tTopicStat\022\022\n\ntopi" + - "c_name\030\001 \001(\t\022\023\n\013record_size\030\002 \001(\004\022\022\n\nrec" + - "ord_num\030\003 \001(\004\022\027\n\017latest_entry_id\030\004 \001(\004\"\227" + - "\002\n\010FlowStat\022D\n\016flow_stat_size\030\001 \003(\0132,.gr" + - "eptime.v1.meta.FlowStat.FlowStatSizeEntr" + - "y\022T\n\027flow_last_exec_time_map\030\002 \003(\01323.gre" + - "ptime.v1.meta.FlowStat.FlowLastExecTimeM" + - "apEntry\0323\n\021FlowStatSizeEntry\022\013\n\003key\030\001 \001(" + - "\r\022\r\n\005value\030\002 \001(\004:\0028\001\032:\n\030FlowLastExecTime" + - "MapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001" + - "\"\265\001\n\021HeartbeatResponse\0220\n\006header\030\001 \001(\0132 " + - ".greptime.v1.meta.ResponseHeader\0229\n\017mail" + - "box_message\030\002 \001(\0132 .greptime.v1.meta.Mai" + - "lboxMessage\0223\n\014region_lease\030\003 \001(\0132\035.grep" + - "time.v1.meta.RegionLease\"\306\001\n\rGrantedRegi" + - "on\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.gr" + - "eptime.v1.meta.RegionRole\022C\n\nextensions\030" + - "c \003(\0132/.greptime.v1.meta.GrantedRegion.E" + - "xtensionsEntry\0321\n\017ExtensionsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\222\001\n\013RegionLeas" + - "e\0220\n\007regions\030\001 \003(\0132\037.greptime.v1.meta.Gr" + - "antedRegion\022\034\n\024duration_since_epoch\030\002 \001(" + - "\004\022\025\n\rlease_seconds\030\003 \001(\004\022\034\n\024closeable_re" + - "gion_ids\030\004 \003(\004\"C\n\020AskLeaderRequest\022/\n\006he" + - "ader\030\001 \001(\0132\037.greptime.v1.meta.RequestHea" + - "der\"m\n\021AskLeaderResponse\0220\n\006header\030\001 \001(\013" + - "2 .greptime.v1.meta.ResponseHeader\022&\n\006le" + - "ader\030\002 \001(\0132\026.greptime.v1.meta.Peer\"|\n\016Ma" + - "ilboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(" + - "\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp" + - "_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000B\t\n\007payload" + - "*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001" + - "\022\025\n\021DowngradingLeader\020\0022\277\001\n\tHeartbeat\022Z\n" + - "\tHeartbeat\022\".greptime.v1.meta.HeartbeatR" + - "equest\032#.greptime.v1.meta.HeartbeatRespo" + - "nse\"\000(\0010\001\022V\n\tAskLeader\022\".greptime.v1.met" + - "a.AskLeaderRequest\032#.greptime.v1.meta.As" + - "kLeaderResponse\"\000B extensions = 99; } /// The workload types of the datanode.