From 7f1be11cf601f992afff2b756bcceb3386b4d768 Mon Sep 17 00:00:00 2001 From: Dennis Zhuang Date: Mon, 29 Apr 2024 16:06:49 +0800 Subject: [PATCH] feat: adds node info to heartbeat request --- c++/greptime/v1/meta/heartbeat.pb.cc | 454 ++++- c++/greptime/v1/meta/heartbeat.pb.h | 434 ++++- go/greptime/v1/meta/heartbeat.pb.go | 411 +++-- .../greptime/v1/meta/HeartbeatOuterClass.java | 1466 +++++++++++++++-- proto/greptime/v1/meta/heartbeat.proto | 10 + 5 files changed, 2379 insertions(+), 396 deletions(-) diff --git a/c++/greptime/v1/meta/heartbeat.pb.cc b/c++/greptime/v1/meta/heartbeat.pb.cc index 8249d8fa..4cfe07b2 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.cc +++ b/c++/greptime/v1/meta/heartbeat.pb.cc @@ -30,6 +30,7 @@ PROTOBUF_CONSTEXPR HeartbeatRequest::HeartbeatRequest( , /*decltype(_impl_.peer_)*/nullptr , /*decltype(_impl_.report_interval_)*/nullptr , /*decltype(_impl_.mailbox_message_)*/nullptr + , /*decltype(_impl_.info_)*/nullptr , /*decltype(_impl_.duration_since_epoch_)*/uint64_t{0u} , /*decltype(_impl_.node_epoch_)*/uint64_t{0u} , /*decltype(_impl_._cached_size_)*/{}} {} @@ -42,6 +43,21 @@ struct HeartbeatRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeartbeatRequestDefaultTypeInternal _HeartbeatRequest_default_instance_; +PROTOBUF_CONSTEXPR NodeInfo::NodeInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.git_commit_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct NodeInfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR NodeInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~NodeInfoDefaultTypeInternal() {} + union { + NodeInfo _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NodeInfoDefaultTypeInternal _NodeInfo_default_instance_; PROTOBUF_CONSTEXPR RegionStat::RegionStat( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -156,7 +172,7 @@ 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[8]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9]; 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; @@ -174,6 +190,16 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.mailbox_message_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.duration_since_epoch_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.node_epoch_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.info_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _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::NodeInfo, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.git_commit_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.start_time_ms_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _internal_metadata_), ~0u, // no _extensions_ @@ -245,17 +271,19 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::meta::HeartbeatRequest)}, - { 13, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, - { 26, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, - { 35, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, - { 43, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, - { 53, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, - { 60, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, - { 68, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, + { 14, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)}, + { 23, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, + { 36, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, + { 45, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, + { 53, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, + { 63, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, + { 70, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, + { 78, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, }; static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_HeartbeatRequest_default_instance_._instance, + &::greptime::v1::meta::_NodeInfo_default_instance_._instance, &::greptime::v1::meta::_RegionStat_default_instance_._instance, &::greptime::v1::meta::_HeartbeatResponse_default_instance_._instance, &::greptime::v1::meta::_GrantedRegion_default_instance_._instance, @@ -268,7 +296,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\"\303\002\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013" + "oto\"\355\002\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" @@ -276,46 +304,49 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] "e.v1.meta.RegionStat\0229\n\017mailbox_message\030" "\005 \001(\0132 .greptime.v1.meta.MailboxMessage\022" "\034\n\024duration_since_epoch\030\006 \001(\004\022\022\n\nnode_ep" - "och\030\007 \001(\004\"\254\001\n\nRegionStat\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\021appro" - "ximate_bytes\030\004 \001(\003\022\030\n\020approximate_rows\030\005" - " \001(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.gre" - "ptime.v1.meta.RegionRole\"\265\001\n\021HeartbeatRe" - "sponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.met" - "a.ResponseHeader\0229\n\017mailbox_message\030\002 \001(" - "\0132 .greptime.v1.meta.MailboxMessage\0223\n\014r" - "egion_lease\030\003 \001(\0132\035.greptime.v1.meta.Reg" - "ionLease\"N\n\rGrantedRegion\022\021\n\tregion_id\030\001" - " \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta.Re" - "gionRole\"\222\001\n\013RegionLease\0220\n\007regions\030\001 \003(" - "\0132\037.greptime.v1.meta.GrantedRegion\022\034\n\024du" - "ration_since_epoch\030\002 \001(\004\022\025\n\rlease_second" - "s\030\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004\"C\n" - "\020AskLeaderRequest\022/\n\006header\030\001 \001(\0132\037.grep" - "time.v1.meta.RequestHeader\"m\n\021AskLeaderR" - "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" - "ta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.grep" - "time.v1.meta.Peer\"|\n\016MailboxMessage\022\n\n\002i" - "d\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\004" - "json\030\006 \001(\tH\000B\t\n\007payload*&\n\nRegionRole\022\n\n" - "\006Leader\020\000\022\014\n\010Follower\020\0012\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_impl_.mailbox_message_; } +const ::greptime::v1::meta::NodeInfo& +HeartbeatRequest::_Internal::info(const HeartbeatRequest* msg) { + return *msg->_impl_.info_; +} void HeartbeatRequest::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; @@ -403,6 +439,7 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from) , decltype(_impl_.peer_){nullptr} , decltype(_impl_.report_interval_){nullptr} , decltype(_impl_.mailbox_message_){nullptr} + , decltype(_impl_.info_){nullptr} , decltype(_impl_.duration_since_epoch_){} , decltype(_impl_.node_epoch_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -420,6 +457,9 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from) if (from._internal_has_mailbox_message()) { _this->_impl_.mailbox_message_ = new ::greptime::v1::meta::MailboxMessage(*from._impl_.mailbox_message_); } + if (from._internal_has_info()) { + _this->_impl_.info_ = new ::greptime::v1::meta::NodeInfo(*from._impl_.info_); + } ::memcpy(&_impl_.duration_since_epoch_, &from._impl_.duration_since_epoch_, static_cast(reinterpret_cast(&_impl_.node_epoch_) - reinterpret_cast(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_)); @@ -436,6 +476,7 @@ inline void HeartbeatRequest::SharedCtor( , decltype(_impl_.peer_){nullptr} , decltype(_impl_.report_interval_){nullptr} , decltype(_impl_.mailbox_message_){nullptr} + , decltype(_impl_.info_){nullptr} , decltype(_impl_.duration_since_epoch_){uint64_t{0u}} , decltype(_impl_.node_epoch_){uint64_t{0u}} , /*decltype(_impl_._cached_size_)*/{} @@ -458,6 +499,7 @@ inline void HeartbeatRequest::SharedDtor() { if (this != internal_default_instance()) delete _impl_.peer_; if (this != internal_default_instance()) delete _impl_.report_interval_; if (this != internal_default_instance()) delete _impl_.mailbox_message_; + if (this != internal_default_instance()) delete _impl_.info_; } void HeartbeatRequest::SetCachedSize(int size) const { @@ -487,6 +529,10 @@ void HeartbeatRequest::Clear() { delete _impl_.mailbox_message_; } _impl_.mailbox_message_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.info_ != nullptr) { + delete _impl_.info_; + } + _impl_.info_ = nullptr; ::memset(&_impl_.duration_since_epoch_, 0, static_cast( reinterpret_cast(&_impl_.node_epoch_) - reinterpret_cast(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_)); @@ -560,6 +606,14 @@ const char* HeartbeatRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte } else goto handle_unusual; continue; + // .greptime.v1.meta.NodeInfo info = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -637,6 +691,13 @@ uint8_t* HeartbeatRequest::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_node_epoch(), target); } + // .greptime.v1.meta.NodeInfo info = 8; + if (this->_internal_has_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::info(this), + _Internal::info(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -688,6 +749,13 @@ size_t HeartbeatRequest::ByteSizeLong() const { *_impl_.mailbox_message_); } + // .greptime.v1.meta.NodeInfo info = 8; + if (this->_internal_has_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.info_); + } + // uint64 duration_since_epoch = 6; if (this->_internal_duration_since_epoch() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_duration_since_epoch()); @@ -733,6 +801,10 @@ void HeartbeatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_mailbox_message()->::greptime::v1::meta::MailboxMessage::MergeFrom( from._internal_mailbox_message()); } + if (from._internal_has_info()) { + _this->_internal_mutable_info()->::greptime::v1::meta::NodeInfo::MergeFrom( + from._internal_info()); + } if (from._internal_duration_since_epoch() != 0) { _this->_internal_set_duration_since_epoch(from._internal_duration_since_epoch()); } @@ -773,6 +845,286 @@ ::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatRequest::GetMetadata() const { // =================================================================== +class NodeInfo::_Internal { + public: +}; + +NodeInfo::NodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.NodeInfo) +} +NodeInfo::NodeInfo(const NodeInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + NodeInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.version_){} + , decltype(_impl_.git_commit_){} + , decltype(_impl_.start_time_ms_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_version().empty()) { + _this->_impl_.version_.Set(from._internal_version(), + _this->GetArenaForAllocation()); + } + _impl_.git_commit_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.git_commit_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_git_commit().empty()) { + _this->_impl_.git_commit_.Set(from._internal_git_commit(), + _this->GetArenaForAllocation()); + } + _this->_impl_.start_time_ms_ = from._impl_.start_time_ms_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.NodeInfo) +} + +inline void NodeInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.version_){} + , decltype(_impl_.git_commit_){} + , decltype(_impl_.start_time_ms_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.version_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.git_commit_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.git_commit_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +NodeInfo::~NodeInfo() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.NodeInfo) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void NodeInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.version_.Destroy(); + _impl_.git_commit_.Destroy(); +} + +void NodeInfo::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void NodeInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.NodeInfo) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.version_.ClearToEmpty(); + _impl_.git_commit_.ClearToEmpty(); + _impl_.start_time_ms_ = uint64_t{0u}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string version = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_version(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.NodeInfo.version")); + } else + goto handle_unusual; + continue; + // string git_commit = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_git_commit(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.NodeInfo.git_commit")); + } else + goto handle_unusual; + continue; + // uint64 start_time_ms = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.start_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* NodeInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.NodeInfo) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string version = 1; + if (!this->_internal_version().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_version().data(), static_cast(this->_internal_version().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.NodeInfo.version"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_version(), target); + } + + // string git_commit = 2; + if (!this->_internal_git_commit().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_git_commit().data(), static_cast(this->_internal_git_commit().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.NodeInfo.git_commit"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_git_commit(), target); + } + + // uint64 start_time_ms = 3; + if (this->_internal_start_time_ms() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_start_time_ms(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.NodeInfo) + return target; +} + +size_t NodeInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.NodeInfo) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string version = 1; + if (!this->_internal_version().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_version()); + } + + // string git_commit = 2; + if (!this->_internal_git_commit().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_git_commit()); + } + + // uint64 start_time_ms = 3; + if (this->_internal_start_time_ms() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NodeInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + NodeInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NodeInfo::GetClassData() const { return &_class_data_; } + + +void NodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.NodeInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_version().empty()) { + _this->_internal_set_version(from._internal_version()); + } + if (!from._internal_git_commit().empty()) { + _this->_internal_set_git_commit(from._internal_git_commit()); + } + if (from._internal_start_time_ms() != 0) { + _this->_internal_set_start_time_ms(from._internal_start_time_ms()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void NodeInfo::CopyFrom(const NodeInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.NodeInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeInfo::IsInitialized() const { + return true; +} + +void NodeInfo::InternalSwap(NodeInfo* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.version_, lhs_arena, + &other->_impl_.version_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.git_commit_, lhs_arena, + &other->_impl_.git_commit_, rhs_arena + ); + swap(_impl_.start_time_ms_, other->_impl_.start_time_ms_); +} + +::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[1]); +} + +// =================================================================== + class RegionStat::_Internal { public: }; @@ -1130,7 +1482,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[1]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[2]); } // =================================================================== @@ -1416,7 +1768,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[2]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[3]); } // =================================================================== @@ -1630,7 +1982,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[3]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[4]); } // =================================================================== @@ -1917,7 +2269,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[4]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[5]); } // =================================================================== @@ -2116,7 +2468,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[5]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]); } // =================================================================== @@ -2367,7 +2719,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[6]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]); } // =================================================================== @@ -2807,7 +3159,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[7]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]); } // @@protoc_insertion_point(namespace_scope) @@ -2819,6 +3171,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatRequest >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::NodeInfo* +Arena::CreateMaybeMessage< ::greptime::v1::meta::NodeInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::NodeInfo >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RegionStat* Arena::CreateMaybeMessage< ::greptime::v1::meta::RegionStat >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::RegionStat >(arena); diff --git a/c++/greptime/v1/meta/heartbeat.pb.h b/c++/greptime/v1/meta/heartbeat.pb.h index b5d5987c..9a3cd03e 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.h +++ b/c++/greptime/v1/meta/heartbeat.pb.h @@ -67,6 +67,9 @@ extern HeartbeatResponseDefaultTypeInternal _HeartbeatResponse_default_instance_ class MailboxMessage; struct MailboxMessageDefaultTypeInternal; extern MailboxMessageDefaultTypeInternal _MailboxMessage_default_instance_; +class NodeInfo; +struct NodeInfoDefaultTypeInternal; +extern NodeInfoDefaultTypeInternal _NodeInfo_default_instance_; class RegionLease; struct RegionLeaseDefaultTypeInternal; extern RegionLeaseDefaultTypeInternal _RegionLease_default_instance_; @@ -83,6 +86,7 @@ template<> ::greptime::v1::meta::GrantedRegion* Arena::CreateMaybeMessage<::grep template<> ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest>(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*); template<> ::greptime::v1::meta::RegionLease* Arena::CreateMaybeMessage<::greptime::v1::meta::RegionLease>(Arena*); template<> ::greptime::v1::meta::RegionStat* Arena::CreateMaybeMessage<::greptime::v1::meta::RegionStat>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -243,6 +247,7 @@ class HeartbeatRequest final : kPeerFieldNumber = 2, kReportIntervalFieldNumber = 3, kMailboxMessageFieldNumber = 5, + kInfoFieldNumber = 8, kDurationSinceEpochFieldNumber = 6, kNodeEpochFieldNumber = 7, }; @@ -336,6 +341,24 @@ class HeartbeatRequest final : ::greptime::v1::meta::MailboxMessage* mailbox_message); ::greptime::v1::meta::MailboxMessage* unsafe_arena_release_mailbox_message(); + // .greptime.v1.meta.NodeInfo info = 8; + bool has_info() const; + private: + bool _internal_has_info() const; + public: + void clear_info(); + const ::greptime::v1::meta::NodeInfo& info() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::NodeInfo* release_info(); + ::greptime::v1::meta::NodeInfo* mutable_info(); + void set_allocated_info(::greptime::v1::meta::NodeInfo* info); + private: + const ::greptime::v1::meta::NodeInfo& _internal_info() const; + ::greptime::v1::meta::NodeInfo* _internal_mutable_info(); + public: + void unsafe_arena_set_allocated_info( + ::greptime::v1::meta::NodeInfo* info); + ::greptime::v1::meta::NodeInfo* unsafe_arena_release_info(); + // uint64 duration_since_epoch = 6; void clear_duration_since_epoch(); uint64_t duration_since_epoch() const; @@ -367,6 +390,7 @@ class HeartbeatRequest final : ::greptime::v1::meta::Peer* peer_; ::greptime::v1::meta::TimeInterval* report_interval_; ::greptime::v1::meta::MailboxMessage* mailbox_message_; + ::greptime::v1::meta::NodeInfo* info_; uint64_t duration_since_epoch_; uint64_t node_epoch_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -376,6 +400,186 @@ class HeartbeatRequest final : }; // ------------------------------------------------------------------- +class NodeInfo final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.NodeInfo) */ { + public: + inline NodeInfo() : NodeInfo(nullptr) {} + ~NodeInfo() override; + explicit PROTOBUF_CONSTEXPR NodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NodeInfo(const NodeInfo& from); + NodeInfo(NodeInfo&& from) noexcept + : NodeInfo() { + *this = ::std::move(from); + } + + inline NodeInfo& operator=(const NodeInfo& from) { + CopyFrom(from); + return *this; + } + inline NodeInfo& operator=(NodeInfo&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const NodeInfo& default_instance() { + return *internal_default_instance(); + } + static inline const NodeInfo* internal_default_instance() { + return reinterpret_cast( + &_NodeInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(NodeInfo& a, NodeInfo& b) { + a.Swap(&b); + } + inline void Swap(NodeInfo* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NodeInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + NodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const NodeInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const NodeInfo& from) { + NodeInfo::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeInfo* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.NodeInfo"; + } + protected: + explicit NodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVersionFieldNumber = 1, + kGitCommitFieldNumber = 2, + kStartTimeMsFieldNumber = 3, + }; + // string version = 1; + void clear_version(); + const std::string& version() const; + template + void set_version(ArgT0&& arg0, ArgT... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* version); + private: + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value); + std::string* _internal_mutable_version(); + public: + + // string git_commit = 2; + void clear_git_commit(); + const std::string& git_commit() const; + template + void set_git_commit(ArgT0&& arg0, ArgT... args); + std::string* mutable_git_commit(); + PROTOBUF_NODISCARD std::string* release_git_commit(); + void set_allocated_git_commit(std::string* git_commit); + private: + const std::string& _internal_git_commit() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_git_commit(const std::string& value); + std::string* _internal_mutable_git_commit(); + public: + + // uint64 start_time_ms = 3; + void clear_start_time_ms(); + uint64_t start_time_ms() const; + void set_start_time_ms(uint64_t value); + private: + uint64_t _internal_start_time_ms() const; + void _internal_set_start_time_ms(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.NodeInfo) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr git_commit_; + uint64_t start_time_ms_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto; +}; +// ------------------------------------------------------------------- + class RegionStat final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.RegionStat) */ { public: @@ -424,7 +628,7 @@ class RegionStat final : &_RegionStat_default_instance_); } static constexpr int kIndexInFileMessages = - 1; + 2; friend void swap(RegionStat& a, RegionStat& b) { a.Swap(&b); @@ -643,7 +847,7 @@ class HeartbeatResponse final : &_HeartbeatResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; friend void swap(HeartbeatResponse& a, HeartbeatResponse& b) { a.Swap(&b); @@ -840,7 +1044,7 @@ class GrantedRegion final : &_GrantedRegion_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(GrantedRegion& a, GrantedRegion& b) { a.Swap(&b); @@ -999,7 +1203,7 @@ class RegionLease final : &_RegionLease_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(RegionLease& a, RegionLease& b) { a.Swap(&b); @@ -1203,7 +1407,7 @@ class AskLeaderRequest final : &_AskLeaderRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; friend void swap(AskLeaderRequest& a, AskLeaderRequest& b) { a.Swap(&b); @@ -1360,7 +1564,7 @@ class AskLeaderResponse final : &_AskLeaderResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(AskLeaderResponse& a, AskLeaderResponse& b) { a.Swap(&b); @@ -1542,7 +1746,7 @@ class MailboxMessage final : &_MailboxMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(MailboxMessage& a, MailboxMessage& b) { a.Swap(&b); @@ -2167,6 +2371,220 @@ inline void HeartbeatRequest::set_node_epoch(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.HeartbeatRequest.node_epoch) } +// .greptime.v1.meta.NodeInfo info = 8; +inline bool HeartbeatRequest::_internal_has_info() const { + return this != internal_default_instance() && _impl_.info_ != nullptr; +} +inline bool HeartbeatRequest::has_info() const { + return _internal_has_info(); +} +inline void HeartbeatRequest::clear_info() { + if (GetArenaForAllocation() == nullptr && _impl_.info_ != nullptr) { + delete _impl_.info_; + } + _impl_.info_ = nullptr; +} +inline const ::greptime::v1::meta::NodeInfo& HeartbeatRequest::_internal_info() const { + const ::greptime::v1::meta::NodeInfo* p = _impl_.info_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_NodeInfo_default_instance_); +} +inline const ::greptime::v1::meta::NodeInfo& HeartbeatRequest::info() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.HeartbeatRequest.info) + return _internal_info(); +} +inline void HeartbeatRequest::unsafe_arena_set_allocated_info( + ::greptime::v1::meta::NodeInfo* info) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.info_); + } + _impl_.info_ = info; + if (info) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.HeartbeatRequest.info) +} +inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::release_info() { + + ::greptime::v1::meta::NodeInfo* temp = _impl_.info_; + _impl_.info_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::unsafe_arena_release_info() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.HeartbeatRequest.info) + + ::greptime::v1::meta::NodeInfo* temp = _impl_.info_; + _impl_.info_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::_internal_mutable_info() { + + if (_impl_.info_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::NodeInfo>(GetArenaForAllocation()); + _impl_.info_ = p; + } + return _impl_.info_; +} +inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::mutable_info() { + ::greptime::v1::meta::NodeInfo* _msg = _internal_mutable_info(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.HeartbeatRequest.info) + return _msg; +} +inline void HeartbeatRequest::set_allocated_info(::greptime::v1::meta::NodeInfo* info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.info_; + } + if (info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(info); + if (message_arena != submessage_arena) { + info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, info, submessage_arena); + } + + } else { + + } + _impl_.info_ = info; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.HeartbeatRequest.info) +} + +// ------------------------------------------------------------------- + +// NodeInfo + +// string version = 1; +inline void NodeInfo::clear_version() { + _impl_.version_.ClearToEmpty(); +} +inline const std::string& NodeInfo::version() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.version) + return _internal_version(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_version(ArgT0&& arg0, ArgT... args) { + + _impl_.version_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.version) +} +inline std::string* NodeInfo::mutable_version() { + std::string* _s = _internal_mutable_version(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.NodeInfo.version) + return _s; +} +inline const std::string& NodeInfo::_internal_version() const { + return _impl_.version_.Get(); +} +inline void NodeInfo::_internal_set_version(const std::string& value) { + + _impl_.version_.Set(value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_version() { + + return _impl_.version_.Mutable(GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_version() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.NodeInfo.version) + return _impl_.version_.Release(); +} +inline void NodeInfo::set_allocated_version(std::string* version) { + if (version != nullptr) { + + } else { + + } + _impl_.version_.SetAllocated(version, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.version_.IsDefault()) { + _impl_.version_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.NodeInfo.version) +} + +// string git_commit = 2; +inline void NodeInfo::clear_git_commit() { + _impl_.git_commit_.ClearToEmpty(); +} +inline const std::string& NodeInfo::git_commit() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.git_commit) + return _internal_git_commit(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_git_commit(ArgT0&& arg0, ArgT... args) { + + _impl_.git_commit_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.git_commit) +} +inline std::string* NodeInfo::mutable_git_commit() { + std::string* _s = _internal_mutable_git_commit(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.NodeInfo.git_commit) + return _s; +} +inline const std::string& NodeInfo::_internal_git_commit() const { + return _impl_.git_commit_.Get(); +} +inline void NodeInfo::_internal_set_git_commit(const std::string& value) { + + _impl_.git_commit_.Set(value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_git_commit() { + + return _impl_.git_commit_.Mutable(GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_git_commit() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.NodeInfo.git_commit) + return _impl_.git_commit_.Release(); +} +inline void NodeInfo::set_allocated_git_commit(std::string* git_commit) { + if (git_commit != nullptr) { + + } else { + + } + _impl_.git_commit_.SetAllocated(git_commit, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.git_commit_.IsDefault()) { + _impl_.git_commit_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.NodeInfo.git_commit) +} + +// uint64 start_time_ms = 3; +inline void NodeInfo::clear_start_time_ms() { + _impl_.start_time_ms_ = uint64_t{0u}; +} +inline uint64_t NodeInfo::_internal_start_time_ms() const { + return _impl_.start_time_ms_; +} +inline uint64_t NodeInfo::start_time_ms() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.start_time_ms) + return _internal_start_time_ms(); +} +inline void NodeInfo::_internal_set_start_time_ms(uint64_t value) { + + _impl_.start_time_ms_ = value; +} +inline void NodeInfo::set_start_time_ms(uint64_t value) { + _internal_set_start_time_ms(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.start_time_ms) +} + // ------------------------------------------------------------------- // RegionStat @@ -3345,6 +3763,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 2d5e9a2a..457292ed 100644 --- a/go/greptime/v1/meta/heartbeat.pb.go +++ b/go/greptime/v1/meta/heartbeat.pb.go @@ -99,7 +99,8 @@ type HeartbeatRequest struct { // The duration since the heartbeat task's epoch in milliseconds. DurationSinceEpoch uint64 `protobuf:"varint,6,opt,name=duration_since_epoch,json=durationSinceEpoch,proto3" json:"duration_since_epoch,omitempty"` // The node's epoch - NodeEpoch uint64 `protobuf:"varint,7,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"` + NodeEpoch uint64 `protobuf:"varint,7,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"` + Info *NodeInfo `protobuf:"bytes,8,opt,name=info,proto3" json:"info,omitempty"` } func (x *HeartbeatRequest) Reset() { @@ -183,6 +184,79 @@ func (x *HeartbeatRequest) GetNodeEpoch() uint64 { return 0 } +func (x *HeartbeatRequest) GetInfo() *NodeInfo { + if x != nil { + return x.Info + } + return nil +} + +type NodeInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The node build version + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // The node build git commit hash + GitCommit string `protobuf:"bytes,2,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` + // The node start timestamp + StartTimeMs uint64 `protobuf:"varint,3,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` +} + +func (x *NodeInfo) Reset() { + *x = NodeInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeInfo) ProtoMessage() {} + +func (x *NodeInfo) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead. +func (*NodeInfo) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{1} +} + +func (x *NodeInfo) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *NodeInfo) GetGitCommit() string { + if x != nil { + return x.GitCommit + } + return "" +} + +func (x *NodeInfo) GetStartTimeMs() uint64 { + if x != nil { + return x.StartTimeMs + } + return 0 +} + type RegionStat struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -206,7 +280,7 @@ type RegionStat struct { func (x *RegionStat) Reset() { *x = RegionStat{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -219,7 +293,7 @@ func (x *RegionStat) String() string { func (*RegionStat) ProtoMessage() {} func (x *RegionStat) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -232,7 +306,7 @@ func (x *RegionStat) ProtoReflect() protoreflect.Message { // Deprecated: Use RegionStat.ProtoReflect.Descriptor instead. func (*RegionStat) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{1} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{2} } func (x *RegionStat) GetRegionId() uint64 { @@ -297,7 +371,7 @@ type HeartbeatResponse struct { func (x *HeartbeatResponse) Reset() { *x = HeartbeatResponse{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -310,7 +384,7 @@ func (x *HeartbeatResponse) String() string { func (*HeartbeatResponse) ProtoMessage() {} func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -323,7 +397,7 @@ func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead. func (*HeartbeatResponse) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{2} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3} } func (x *HeartbeatResponse) GetHeader() *ResponseHeader { @@ -359,7 +433,7 @@ type GrantedRegion struct { func (x *GrantedRegion) Reset() { *x = GrantedRegion{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -372,7 +446,7 @@ func (x *GrantedRegion) String() string { func (*GrantedRegion) ProtoMessage() {} func (x *GrantedRegion) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -385,7 +459,7 @@ func (x *GrantedRegion) ProtoReflect() protoreflect.Message { // Deprecated: Use GrantedRegion.ProtoReflect.Descriptor instead. func (*GrantedRegion) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4} } func (x *GrantedRegion) GetRegionId() uint64 { @@ -416,7 +490,7 @@ type RegionLease struct { func (x *RegionLease) Reset() { *x = RegionLease{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -429,7 +503,7 @@ func (x *RegionLease) String() string { func (*RegionLease) ProtoMessage() {} func (x *RegionLease) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -442,7 +516,7 @@ func (x *RegionLease) ProtoReflect() protoreflect.Message { // Deprecated: Use RegionLease.ProtoReflect.Descriptor instead. func (*RegionLease) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5} } func (x *RegionLease) GetRegions() []*GrantedRegion { @@ -484,7 +558,7 @@ type AskLeaderRequest struct { func (x *AskLeaderRequest) Reset() { *x = AskLeaderRequest{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -497,7 +571,7 @@ func (x *AskLeaderRequest) String() string { func (*AskLeaderRequest) ProtoMessage() {} func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -510,7 +584,7 @@ func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AskLeaderRequest.ProtoReflect.Descriptor instead. func (*AskLeaderRequest) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6} } func (x *AskLeaderRequest) GetHeader() *RequestHeader { @@ -532,7 +606,7 @@ type AskLeaderResponse struct { func (x *AskLeaderResponse) Reset() { *x = AskLeaderResponse{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -545,7 +619,7 @@ func (x *AskLeaderResponse) String() string { func (*AskLeaderResponse) ProtoMessage() {} func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -558,7 +632,7 @@ func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AskLeaderResponse.ProtoReflect.Descriptor instead. func (*AskLeaderResponse) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{7} } func (x *AskLeaderResponse) GetHeader() *ResponseHeader { @@ -600,7 +674,7 @@ type MailboxMessage struct { func (x *MailboxMessage) Reset() { *x = MailboxMessage{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -613,7 +687,7 @@ func (x *MailboxMessage) String() string { func (*MailboxMessage) ProtoMessage() {} func (x *MailboxMessage) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -626,7 +700,7 @@ func (x *MailboxMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use MailboxMessage.ProtoReflect.Descriptor instead. func (*MailboxMessage) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{7} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{8} } func (x *MailboxMessage) GetId() uint64 { @@ -696,7 +770,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, 0x9d, 0x03, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, + 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x03, 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, @@ -722,98 +796,107 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{ 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x70, - 0x6f, 0x63, 0x68, 0x22, 0xf3, 0x01, 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, 0x29, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, - 0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, - 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x77, 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, 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, - 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, 0x5e, 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, 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, + 0x6f, 0x63, 0x68, 0x12, 0x2e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, + 0x6e, 0x66, 0x6f, 0x22, 0x67, 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, 0x22, 0xf3, 0x01, 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, 0x29, 0x0a, + 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, + 0x6d, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x77, 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, 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, 0x26, 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, 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, + 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, + 0x6c, 0x65, 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, 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, + 0x5e, 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, 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, 0x26, 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, 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 ( @@ -829,46 +912,48 @@ 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, 8) +var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{ (RegionRole)(0), // 0: greptime.v1.meta.RegionRole (*HeartbeatRequest)(nil), // 1: greptime.v1.meta.HeartbeatRequest - (*RegionStat)(nil), // 2: greptime.v1.meta.RegionStat - (*HeartbeatResponse)(nil), // 3: greptime.v1.meta.HeartbeatResponse - (*GrantedRegion)(nil), // 4: greptime.v1.meta.GrantedRegion - (*RegionLease)(nil), // 5: greptime.v1.meta.RegionLease - (*AskLeaderRequest)(nil), // 6: greptime.v1.meta.AskLeaderRequest - (*AskLeaderResponse)(nil), // 7: greptime.v1.meta.AskLeaderResponse - (*MailboxMessage)(nil), // 8: greptime.v1.meta.MailboxMessage - (*RequestHeader)(nil), // 9: greptime.v1.meta.RequestHeader - (*Peer)(nil), // 10: greptime.v1.meta.Peer - (*TimeInterval)(nil), // 11: greptime.v1.meta.TimeInterval - (*ResponseHeader)(nil), // 12: greptime.v1.meta.ResponseHeader + (*NodeInfo)(nil), // 2: greptime.v1.meta.NodeInfo + (*RegionStat)(nil), // 3: greptime.v1.meta.RegionStat + (*HeartbeatResponse)(nil), // 4: greptime.v1.meta.HeartbeatResponse + (*GrantedRegion)(nil), // 5: greptime.v1.meta.GrantedRegion + (*RegionLease)(nil), // 6: greptime.v1.meta.RegionLease + (*AskLeaderRequest)(nil), // 7: greptime.v1.meta.AskLeaderRequest + (*AskLeaderResponse)(nil), // 8: greptime.v1.meta.AskLeaderResponse + (*MailboxMessage)(nil), // 9: greptime.v1.meta.MailboxMessage + (*RequestHeader)(nil), // 10: greptime.v1.meta.RequestHeader + (*Peer)(nil), // 11: greptime.v1.meta.Peer + (*TimeInterval)(nil), // 12: greptime.v1.meta.TimeInterval + (*ResponseHeader)(nil), // 13: greptime.v1.meta.ResponseHeader } var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{ - 9, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader - 10, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer - 11, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval - 2, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat - 8, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage - 0, // 5: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole - 12, // 6: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 8, // 7: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage - 5, // 8: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease - 0, // 9: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole - 4, // 10: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion - 9, // 11: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader - 12, // 12: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 10, // 13: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer - 1, // 14: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest - 6, // 15: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest - 3, // 16: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse - 7, // 17: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse - 16, // [16:18] is the sub-list for method output_type - 14, // [14:16] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 10, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader + 11, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer + 12, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval + 3, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat + 9, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage + 2, // 5: greptime.v1.meta.HeartbeatRequest.info:type_name -> greptime.v1.meta.NodeInfo + 0, // 6: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole + 13, // 7: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 9, // 8: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage + 6, // 9: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease + 0, // 10: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole + 5, // 11: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion + 10, // 12: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader + 13, // 13: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 11, // 14: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer + 1, // 15: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest + 7, // 16: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest + 4, // 17: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse + 8, // 18: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse + 17, // [17:19] is the sub-list for method output_type + 15, // [15:17] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name } func init() { file_greptime_v1_meta_heartbeat_proto_init() } @@ -891,7 +976,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegionStat); i { + switch v := v.(*NodeInfo); i { case 0: return &v.state case 1: @@ -903,7 +988,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HeartbeatResponse); i { + switch v := v.(*RegionStat); i { case 0: return &v.state case 1: @@ -915,7 +1000,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GrantedRegion); i { + switch v := v.(*HeartbeatResponse); i { case 0: return &v.state case 1: @@ -927,7 +1012,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegionLease); i { + switch v := v.(*GrantedRegion); i { case 0: return &v.state case 1: @@ -939,7 +1024,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AskLeaderRequest); i { + switch v := v.(*RegionLease); i { case 0: return &v.state case 1: @@ -951,7 +1036,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AskLeaderResponse); i { + switch v := v.(*AskLeaderRequest); i { case 0: return &v.state case 1: @@ -963,6 +1048,18 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AskLeaderResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_heartbeat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MailboxMessage); i { case 0: return &v.state @@ -975,7 +1072,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } } - file_greptime_v1_meta_heartbeat_proto_msgTypes[7].OneofWrappers = []interface{}{ + file_greptime_v1_meta_heartbeat_proto_msgTypes[8].OneofWrappers = []interface{}{ (*MailboxMessage_Json)(nil), } type x struct{} @@ -984,7 +1081,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: 8, + NumMessages: 9, 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 2c85d9b6..5cf62dc4 100644 --- a/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java +++ b/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java @@ -301,6 +301,21 @@ greptime.v1.meta.HeartbeatOuterClass.RegionStatOrBuilder getRegionStatsOrBuilder * @return The nodeEpoch. */ long getNodeEpoch(); + + /** + * .greptime.v1.meta.NodeInfo info = 8; + * @return Whether the info field is set. + */ + boolean hasInfo(); + /** + * .greptime.v1.meta.NodeInfo info = 8; + * @return The info. + */ + greptime.v1.meta.HeartbeatOuterClass.NodeInfo getInfo(); + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder getInfoOrBuilder(); } /** * Protobuf type {@code greptime.v1.meta.HeartbeatRequest} @@ -420,6 +435,19 @@ private HeartbeatRequest( nodeEpoch_ = input.readUInt64(); break; } + case 66: { + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder subBuilder = null; + if (info_ != null) { + subBuilder = info_.toBuilder(); + } + info_ = input.readMessage(greptime.v1.meta.HeartbeatOuterClass.NodeInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(info_); + info_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -687,6 +715,32 @@ public long getNodeEpoch() { return nodeEpoch_; } + public static final int INFO_FIELD_NUMBER = 8; + private greptime.v1.meta.HeartbeatOuterClass.NodeInfo info_; + /** + * .greptime.v1.meta.NodeInfo info = 8; + * @return Whether the info field is set. + */ + @java.lang.Override + public boolean hasInfo() { + return info_ != null; + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + * @return The info. + */ + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo getInfo() { + return info_ == null ? greptime.v1.meta.HeartbeatOuterClass.NodeInfo.getDefaultInstance() : info_; + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder getInfoOrBuilder() { + return getInfo(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -722,6 +776,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nodeEpoch_ != 0L) { output.writeUInt64(7, nodeEpoch_); } + if (info_ != null) { + output.writeMessage(8, getInfo()); + } unknownFields.writeTo(output); } @@ -759,6 +816,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, nodeEpoch_); } + if (info_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getInfo()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -800,6 +861,11 @@ public boolean equals(final java.lang.Object obj) { != other.getDurationSinceEpoch()) return false; if (getNodeEpoch() != other.getNodeEpoch()) return false; + if (hasInfo() != other.hasInfo()) return false; + if (hasInfo()) { + if (!getInfo() + .equals(other.getInfo())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -837,6 +903,10 @@ public int hashCode() { hash = (37 * hash) + NODE_EPOCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNodeEpoch()); + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1005,6 +1075,12 @@ public Builder clear() { nodeEpoch_ = 0L; + if (infoBuilder_ == null) { + info_ = null; + } else { + info_ = null; + infoBuilder_ = null; + } return this; } @@ -1063,6 +1139,11 @@ public greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest buildPartial() { } result.durationSinceEpoch_ = durationSinceEpoch_; result.nodeEpoch_ = nodeEpoch_; + if (infoBuilder_ == null) { + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } onBuilt(); return result; } @@ -1155,6 +1236,9 @@ public Builder mergeFrom(greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest o if (other.getNodeEpoch() != 0L) { setNodeEpoch(other.getNodeEpoch()); } + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1923,246 +2007,1248 @@ public greptime.v1.meta.HeartbeatOuterClass.RegionStat.Builder addRegionStatsBui isClean()); regionStats_ = null; } - return regionStatsBuilder_; + return regionStatsBuilder_; + } + + private greptime.v1.meta.HeartbeatOuterClass.MailboxMessage mailboxMessage_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.MailboxMessage, greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder, greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder> mailboxMessageBuilder_; + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * @return Whether the mailboxMessage field is set. + */ + public boolean hasMailboxMessage() { + return mailboxMessageBuilder_ != null || mailboxMessage_ != null; + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * @return The mailboxMessage. + */ + public greptime.v1.meta.HeartbeatOuterClass.MailboxMessage getMailboxMessage() { + if (mailboxMessageBuilder_ == null) { + return mailboxMessage_ == null ? greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.getDefaultInstance() : mailboxMessage_; + } else { + return mailboxMessageBuilder_.getMessage(); + } + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + */ + public Builder setMailboxMessage(greptime.v1.meta.HeartbeatOuterClass.MailboxMessage value) { + if (mailboxMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mailboxMessage_ = value; + onChanged(); + } else { + mailboxMessageBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + */ + public Builder setMailboxMessage( + greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder builderForValue) { + if (mailboxMessageBuilder_ == null) { + mailboxMessage_ = builderForValue.build(); + onChanged(); + } else { + mailboxMessageBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + */ + public Builder mergeMailboxMessage(greptime.v1.meta.HeartbeatOuterClass.MailboxMessage value) { + if (mailboxMessageBuilder_ == null) { + if (mailboxMessage_ != null) { + mailboxMessage_ = + greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.newBuilder(mailboxMessage_).mergeFrom(value).buildPartial(); + } else { + mailboxMessage_ = value; + } + onChanged(); + } else { + mailboxMessageBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + */ + public Builder clearMailboxMessage() { + if (mailboxMessageBuilder_ == null) { + mailboxMessage_ = null; + onChanged(); + } else { + mailboxMessage_ = null; + mailboxMessageBuilder_ = null; + } + + return this; + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + */ + public greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder getMailboxMessageBuilder() { + + onChanged(); + return getMailboxMessageFieldBuilder().getBuilder(); + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + */ + public greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder getMailboxMessageOrBuilder() { + if (mailboxMessageBuilder_ != null) { + return mailboxMessageBuilder_.getMessageOrBuilder(); + } else { + return mailboxMessage_ == null ? + greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.getDefaultInstance() : mailboxMessage_; + } + } + /** + *
+       * Mailbox send message to Metasrv
+       * 
+ * + * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.MailboxMessage, greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder, greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder> + getMailboxMessageFieldBuilder() { + if (mailboxMessageBuilder_ == null) { + mailboxMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.MailboxMessage, greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder, greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder>( + getMailboxMessage(), + getParentForChildren(), + isClean()); + mailboxMessage_ = null; + } + return mailboxMessageBuilder_; + } + + private long durationSinceEpoch_ ; + /** + *
+       * The duration since the heartbeat task's epoch in milliseconds.
+       * 
+ * + * uint64 duration_since_epoch = 6; + * @return The durationSinceEpoch. + */ + @java.lang.Override + public long getDurationSinceEpoch() { + return durationSinceEpoch_; + } + /** + *
+       * The duration since the heartbeat task's epoch in milliseconds.
+       * 
+ * + * uint64 duration_since_epoch = 6; + * @param value The durationSinceEpoch to set. + * @return This builder for chaining. + */ + public Builder setDurationSinceEpoch(long value) { + + durationSinceEpoch_ = value; + onChanged(); + return this; + } + /** + *
+       * The duration since the heartbeat task's epoch in milliseconds.
+       * 
+ * + * uint64 duration_since_epoch = 6; + * @return This builder for chaining. + */ + public Builder clearDurationSinceEpoch() { + + durationSinceEpoch_ = 0L; + onChanged(); + return this; + } + + private long nodeEpoch_ ; + /** + *
+       * The node's epoch
+       * 
+ * + * uint64 node_epoch = 7; + * @return The nodeEpoch. + */ + @java.lang.Override + public long getNodeEpoch() { + return nodeEpoch_; + } + /** + *
+       * The node's epoch
+       * 
+ * + * uint64 node_epoch = 7; + * @param value The nodeEpoch to set. + * @return This builder for chaining. + */ + public Builder setNodeEpoch(long value) { + + nodeEpoch_ = value; + onChanged(); + return this; + } + /** + *
+       * The node's epoch
+       * 
+ * + * uint64 node_epoch = 7; + * @return This builder for chaining. + */ + public Builder clearNodeEpoch() { + + nodeEpoch_ = 0L; + onChanged(); + return this; + } + + private greptime.v1.meta.HeartbeatOuterClass.NodeInfo info_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.NodeInfo, greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder, greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder> infoBuilder_; + /** + * .greptime.v1.meta.NodeInfo info = 8; + * @return Whether the info field is set. + */ + public boolean hasInfo() { + return infoBuilder_ != null || info_ != null; + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + * @return The info. + */ + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo getInfo() { + if (infoBuilder_ == null) { + return info_ == null ? greptime.v1.meta.HeartbeatOuterClass.NodeInfo.getDefaultInstance() : info_; + } else { + return infoBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + public Builder setInfo(greptime.v1.meta.HeartbeatOuterClass.NodeInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + onChanged(); + } else { + infoBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + public Builder setInfo( + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + onChanged(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + public Builder mergeInfo(greptime.v1.meta.HeartbeatOuterClass.NodeInfo value) { + if (infoBuilder_ == null) { + if (info_ != null) { + info_ = + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.newBuilder(info_).mergeFrom(value).buildPartial(); + } else { + info_ = value; + } + onChanged(); + } else { + infoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = null; + onChanged(); + } else { + info_ = null; + infoBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder getInfoBuilder() { + + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + public greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null ? + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.getDefaultInstance() : info_; + } + } + /** + * .greptime.v1.meta.NodeInfo info = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.NodeInfo, greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder, greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.NodeInfo, greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder, greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder>( + getInfo(), + getParentForChildren(), + isClean()); + info_ = null; + } + return infoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.HeartbeatRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.HeartbeatRequest) + private static final greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest(); + } + + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeartbeatRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeartbeatRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.NodeInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The node build version
+     * 
+ * + * string version = 1; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+     * The node build version
+     * 
+ * + * string version = 1; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * The node build git commit hash
+     * 
+ * + * string git_commit = 2; + * @return The gitCommit. + */ + java.lang.String getGitCommit(); + /** + *
+     * The node build git commit hash
+     * 
+ * + * string git_commit = 2; + * @return The bytes for gitCommit. + */ + com.google.protobuf.ByteString + getGitCommitBytes(); + + /** + *
+     * The node start timestamp
+     * 
+ * + * uint64 start_time_ms = 3; + * @return The startTimeMs. + */ + long getStartTimeMs(); + } + /** + * Protobuf type {@code greptime.v1.meta.NodeInfo} + */ + public static final class NodeInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.NodeInfo) + NodeInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeInfo.newBuilder() to construct. + private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeInfo() { + version_ = ""; + gitCommit_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + gitCommit_ = s; + break; + } + case 24: { + + startTimeMs_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_NodeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_NodeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.class, greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + *
+     * The node build version
+     * 
+ * + * string version = 1; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     * The node build version
+     * 
+ * + * string version = 1; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIT_COMMIT_FIELD_NUMBER = 2; + private volatile java.lang.Object gitCommit_; + /** + *
+     * The node build git commit hash
+     * 
+ * + * string git_commit = 2; + * @return The gitCommit. + */ + @java.lang.Override + public java.lang.String getGitCommit() { + java.lang.Object ref = gitCommit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitCommit_ = s; + return s; + } + } + /** + *
+     * The node build git commit hash
+     * 
+ * + * string git_commit = 2; + * @return The bytes for gitCommit. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGitCommitBytes() { + java.lang.Object ref = gitCommit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_MS_FIELD_NUMBER = 3; + private long startTimeMs_; + /** + *
+     * The node start timestamp
+     * 
+ * + * uint64 start_time_ms = 3; + * @return The startTimeMs. + */ + @java.lang.Override + public long getStartTimeMs() { + return startTimeMs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommit_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gitCommit_); + } + if (startTimeMs_ != 0L) { + output.writeUInt64(3, startTimeMs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommit_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gitCommit_); + } + if (startTimeMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, startTimeMs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.HeartbeatOuterClass.NodeInfo)) { + return super.equals(obj); + } + greptime.v1.meta.HeartbeatOuterClass.NodeInfo other = (greptime.v1.meta.HeartbeatOuterClass.NodeInfo) obj; + + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getGitCommit() + .equals(other.getGitCommit())) return false; + if (getStartTimeMs() + != other.getStartTimeMs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + GIT_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getGitCommit().hashCode(); + hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartTimeMs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.HeartbeatOuterClass.NodeInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.NodeInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.NodeInfo) + greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_NodeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_NodeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.class, greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder.class); + } + + // Construct using greptime.v1.meta.HeartbeatOuterClass.NodeInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + gitCommit_ = ""; + + startTimeMs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_NodeInfo_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo getDefaultInstanceForType() { + return greptime.v1.meta.HeartbeatOuterClass.NodeInfo.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo build() { + greptime.v1.meta.HeartbeatOuterClass.NodeInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo buildPartial() { + greptime.v1.meta.HeartbeatOuterClass.NodeInfo result = new greptime.v1.meta.HeartbeatOuterClass.NodeInfo(this); + result.version_ = version_; + result.gitCommit_ = gitCommit_; + result.startTimeMs_ = startTimeMs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.HeartbeatOuterClass.NodeInfo) { + return mergeFrom((greptime.v1.meta.HeartbeatOuterClass.NodeInfo)other); + } else { + super.mergeFrom(other); + return this; + } } - private greptime.v1.meta.HeartbeatOuterClass.MailboxMessage mailboxMessage_; - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.HeartbeatOuterClass.MailboxMessage, greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder, greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder> mailboxMessageBuilder_; - /** - *
-       * Mailbox send message to Metasrv
-       * 
- * - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; - * @return Whether the mailboxMessage field is set. - */ - public boolean hasMailboxMessage() { - return mailboxMessageBuilder_ != null || mailboxMessage_ != null; + public Builder mergeFrom(greptime.v1.meta.HeartbeatOuterClass.NodeInfo other) { + if (other == greptime.v1.meta.HeartbeatOuterClass.NodeInfo.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getGitCommit().isEmpty()) { + gitCommit_ = other.gitCommit_; + onChanged(); + } + if (other.getStartTimeMs() != 0L) { + setStartTimeMs(other.getStartTimeMs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; } - /** - *
-       * Mailbox send message to Metasrv
-       * 
- * - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; - * @return The mailboxMessage. - */ - public greptime.v1.meta.HeartbeatOuterClass.MailboxMessage getMailboxMessage() { - if (mailboxMessageBuilder_ == null) { - return mailboxMessage_ == null ? greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.getDefaultInstance() : mailboxMessage_; - } else { - return mailboxMessageBuilder_.getMessage(); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.HeartbeatOuterClass.NodeInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.HeartbeatOuterClass.NodeInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } + return this; } + + private java.lang.Object version_ = ""; /** *
-       * Mailbox send message to Metasrv
+       * The node build version
        * 
* - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * string version = 1; + * @return The version. */ - public Builder setMailboxMessage(greptime.v1.meta.HeartbeatOuterClass.MailboxMessage value) { - if (mailboxMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - mailboxMessage_ = value; - onChanged(); + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; } else { - mailboxMessageBuilder_.setMessage(value); + return (java.lang.String) ref; } - - return this; } /** *
-       * Mailbox send message to Metasrv
+       * The node build version
        * 
* - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * string version = 1; + * @return The bytes for version. */ - public Builder setMailboxMessage( - greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder builderForValue) { - if (mailboxMessageBuilder_ == null) { - mailboxMessage_ = builderForValue.build(); - onChanged(); + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; } else { - mailboxMessageBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - - return this; } /** *
-       * Mailbox send message to Metasrv
+       * The node build version
        * 
* - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * string version = 1; + * @param value The version to set. + * @return This builder for chaining. */ - public Builder mergeMailboxMessage(greptime.v1.meta.HeartbeatOuterClass.MailboxMessage value) { - if (mailboxMessageBuilder_ == null) { - if (mailboxMessage_ != null) { - mailboxMessage_ = - greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.newBuilder(mailboxMessage_).mergeFrom(value).buildPartial(); - } else { - mailboxMessage_ = value; - } - onChanged(); - } else { - mailboxMessageBuilder_.mergeFrom(value); - } - + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); return this; } /** *
-       * Mailbox send message to Metasrv
+       * The node build version
        * 
* - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * string version = 1; + * @return This builder for chaining. */ - public Builder clearMailboxMessage() { - if (mailboxMessageBuilder_ == null) { - mailboxMessage_ = null; - onChanged(); - } else { - mailboxMessage_ = null; - mailboxMessageBuilder_ = null; - } - + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); return this; } /** *
-       * Mailbox send message to Metasrv
+       * The node build version
        * 
* - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * string version = 1; + * @param value The bytes for version to set. + * @return This builder for chaining. */ - public greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder getMailboxMessageBuilder() { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); - return getMailboxMessageFieldBuilder().getBuilder(); + return this; } + + private java.lang.Object gitCommit_ = ""; /** *
-       * Mailbox send message to Metasrv
+       * The node build git commit hash
        * 
* - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * string git_commit = 2; + * @return The gitCommit. */ - public greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder getMailboxMessageOrBuilder() { - if (mailboxMessageBuilder_ != null) { - return mailboxMessageBuilder_.getMessageOrBuilder(); + public java.lang.String getGitCommit() { + java.lang.Object ref = gitCommit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitCommit_ = s; + return s; } else { - return mailboxMessage_ == null ? - greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.getDefaultInstance() : mailboxMessage_; + return (java.lang.String) ref; } } /** *
-       * Mailbox send message to Metasrv
+       * The node build git commit hash
        * 
* - * .greptime.v1.meta.MailboxMessage mailbox_message = 5; + * string git_commit = 2; + * @return The bytes for gitCommit. */ - private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.HeartbeatOuterClass.MailboxMessage, greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder, greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder> - getMailboxMessageFieldBuilder() { - if (mailboxMessageBuilder_ == null) { - mailboxMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.HeartbeatOuterClass.MailboxMessage, greptime.v1.meta.HeartbeatOuterClass.MailboxMessage.Builder, greptime.v1.meta.HeartbeatOuterClass.MailboxMessageOrBuilder>( - getMailboxMessage(), - getParentForChildren(), - isClean()); - mailboxMessage_ = null; + public com.google.protobuf.ByteString + getGitCommitBytes() { + java.lang.Object ref = gitCommit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gitCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return mailboxMessageBuilder_; } - - private long durationSinceEpoch_ ; /** *
-       * The duration since the heartbeat task's epoch in milliseconds.
+       * The node build git commit hash
        * 
* - * uint64 duration_since_epoch = 6; - * @return The durationSinceEpoch. + * string git_commit = 2; + * @param value The gitCommit to set. + * @return This builder for chaining. */ - @java.lang.Override - public long getDurationSinceEpoch() { - return durationSinceEpoch_; + public Builder setGitCommit( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gitCommit_ = value; + onChanged(); + return this; } /** *
-       * The duration since the heartbeat task's epoch in milliseconds.
+       * The node build git commit hash
        * 
* - * uint64 duration_since_epoch = 6; - * @param value The durationSinceEpoch to set. + * string git_commit = 2; * @return This builder for chaining. */ - public Builder setDurationSinceEpoch(long value) { + public Builder clearGitCommit() { - durationSinceEpoch_ = value; + gitCommit_ = getDefaultInstance().getGitCommit(); onChanged(); return this; } /** *
-       * The duration since the heartbeat task's epoch in milliseconds.
+       * The node build git commit hash
        * 
* - * uint64 duration_since_epoch = 6; + * string git_commit = 2; + * @param value The bytes for gitCommit to set. * @return This builder for chaining. */ - public Builder clearDurationSinceEpoch() { + public Builder setGitCommitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - durationSinceEpoch_ = 0L; + gitCommit_ = value; onChanged(); return this; } - private long nodeEpoch_ ; + private long startTimeMs_ ; /** *
-       * The node's epoch
+       * The node start timestamp
        * 
* - * uint64 node_epoch = 7; - * @return The nodeEpoch. + * uint64 start_time_ms = 3; + * @return The startTimeMs. */ @java.lang.Override - public long getNodeEpoch() { - return nodeEpoch_; + public long getStartTimeMs() { + return startTimeMs_; } /** *
-       * The node's epoch
+       * The node start timestamp
        * 
* - * uint64 node_epoch = 7; - * @param value The nodeEpoch to set. + * uint64 start_time_ms = 3; + * @param value The startTimeMs to set. * @return This builder for chaining. */ - public Builder setNodeEpoch(long value) { + public Builder setStartTimeMs(long value) { - nodeEpoch_ = value; + startTimeMs_ = value; onChanged(); return this; } /** *
-       * The node's epoch
+       * The node start timestamp
        * 
* - * uint64 node_epoch = 7; + * uint64 start_time_ms = 3; * @return This builder for chaining. */ - public Builder clearNodeEpoch() { + public Builder clearStartTimeMs() { - nodeEpoch_ = 0L; + startTimeMs_ = 0L; onChanged(); return this; } @@ -2179,41 +3265,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.meta.HeartbeatRequest) + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.NodeInfo) } - // @@protoc_insertion_point(class_scope:greptime.v1.meta.HeartbeatRequest) - private static final greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.meta.NodeInfo) + private static final greptime.v1.meta.HeartbeatOuterClass.NodeInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest(); + DEFAULT_INSTANCE = new greptime.v1.meta.HeartbeatOuterClass.NodeInfo(); } - public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest getDefaultInstance() { + public static greptime.v1.meta.HeartbeatOuterClass.NodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public HeartbeatRequest parsePartialFrom( + public NodeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HeartbeatRequest(input, extensionRegistry); + return new NodeInfo(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public greptime.v1.meta.HeartbeatOuterClass.HeartbeatRequest getDefaultInstanceForType() { + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -8980,6 +10066,11 @@ public greptime.v1.meta.HeartbeatOuterClass.MailboxMessage getDefaultInstanceFor 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_NodeInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_NodeInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_RegionStat_descriptor; private static final @@ -9026,7 +10117,7 @@ public greptime.v1.meta.HeartbeatOuterClass.MailboxMessage getDefaultInstanceFor java.lang.String[] descriptorData = { "\n greptime/v1/meta/heartbeat.proto\022\020grep" + "time.v1.meta\032\035greptime/v1/meta/common.pr" + - "oto\"\303\002\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013" + + "oto\"\355\002\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" + @@ -9034,37 +10125,40 @@ public greptime.v1.meta.HeartbeatOuterClass.MailboxMessage getDefaultInstanceFor "e.v1.meta.RegionStat\0229\n\017mailbox_message\030" + "\005 \001(\0132 .greptime.v1.meta.MailboxMessage\022" + "\034\n\024duration_since_epoch\030\006 \001(\004\022\022\n\nnode_ep" + - "och\030\007 \001(\004\"\254\001\n\nRegionStat\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\021appro" + - "ximate_bytes\030\004 \001(\003\022\030\n\020approximate_rows\030\005" + - " \001(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.gre" + - "ptime.v1.meta.RegionRole\"\265\001\n\021HeartbeatRe" + - "sponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.met" + - "a.ResponseHeader\0229\n\017mailbox_message\030\002 \001(" + - "\0132 .greptime.v1.meta.MailboxMessage\0223\n\014r" + - "egion_lease\030\003 \001(\0132\035.greptime.v1.meta.Reg" + - "ionLease\"N\n\rGrantedRegion\022\021\n\tregion_id\030\001" + - " \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta.Re" + - "gionRole\"\222\001\n\013RegionLease\0220\n\007regions\030\001 \003(" + - "\0132\037.greptime.v1.meta.GrantedRegion\022\034\n\024du" + - "ration_since_epoch\030\002 \001(\004\022\025\n\rlease_second" + - "s\030\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004\"C\n" + - "\020AskLeaderRequest\022/\n\006header\030\001 \001(\0132\037.grep" + - "time.v1.meta.RequestHeader\"m\n\021AskLeaderR" + - "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" + - "ta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.grep" + - "time.v1.meta.Peer\"|\n\016MailboxMessage\022\n\n\002i" + - "d\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\004" + - "json\030\006 \001(\tH\000B\t\n\007payload*&\n\nRegionRole\022\n\n" + - "\006Leader\020\000\022\014\n\010Follower\020\0012\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