From 8d31a8cd39a458ed6f2eee39fa07447f30204306 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Thu, 16 Oct 2025 10:57:57 +0800 Subject: [PATCH] refactor: add `hostname` field in `NodeInfo` and use it in `MetasrvNodeInfo` (#278) --- c++/greptime/v1/meta/cluster.pb.cc | 128 ++-- c++/greptime/v1/meta/cluster.pb.h | 168 ++++- c++/greptime/v1/meta/heartbeat.pb.cc | 176 +++-- c++/greptime/v1/meta/heartbeat.pb.h | 66 ++ go/greptime/v1/meta/cluster.pb.go | 190 +++--- go/greptime/v1/meta/heartbeat.pb.go | 283 ++++---- .../greptime/v1/meta/ClusterOuterClass.java | 609 +++++++++++++++--- .../greptime/v1/meta/HeartbeatOuterClass.java | 284 ++++++-- proto/greptime/v1/meta/cluster.proto | 21 +- proto/greptime/v1/meta/heartbeat.proto | 2 + 10 files changed, 1424 insertions(+), 503 deletions(-) diff --git a/c++/greptime/v1/meta/cluster.pb.cc b/c++/greptime/v1/meta/cluster.pb.cc index 984d262..7ba5fd4 100644 --- a/c++/greptime/v1/meta/cluster.pb.cc +++ b/c++/greptime/v1/meta/cluster.pb.cc @@ -56,6 +56,7 @@ PROTOBUF_CONSTEXPR MetasrvNodeInfo::MetasrvNodeInfo( /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.git_commit_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.peer_)*/nullptr + , /*decltype(_impl_.info_)*/nullptr , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} , /*decltype(_impl_.memory_bytes_)*/uint64_t{0u} , /*decltype(_impl_.cpus_)*/0u @@ -105,6 +106,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcluster_2eproto::offsets[] PRO PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.start_time_ms_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.cpus_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.memory_bytes_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.info_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::meta::MetasrvPeersRequest)}, @@ -121,36 +123,39 @@ static const ::_pb::Message* const file_default_instances[] = { const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcluster_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\036greptime/v1/meta/cluster.proto\022\020grepti" "me.v1.meta\032\035greptime/v1/meta/common.prot" - "o\032\034greptime/v1/meta/store.proto\"F\n\023Metas" - "rvPeersRequest\022/\n\006header\030\001 \001(\0132\037.greptim" - "e.v1.meta.RequestHeader\"\261\001\n\024MetasrvPeers" - "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" - "eta.ResponseHeader\0221\n\006leader\030\002 \001(\0132!.gre" - "ptime.v1.meta.MetasrvNodeInfo\0224\n\tfollowe" - "rs\030\003 \003(\0132!.greptime.v1.meta.MetasrvNodeI" - "nfo\"\227\001\n\017MetasrvNodeInfo\022$\n\004peer\030\001 \001(\0132\026." - "greptime.v1.meta.Peer\022\017\n\007version\030\002 \001(\t\022\022" - "\n\ngit_commit\030\003 \001(\t\022\025\n\rstart_time_ms\030\004 \001(" - "\004\022\014\n\004cpus\030\005 \001(\r\022\024\n\014memory_bytes\030\006 \001(\0042\205\002" - "\n\007Cluster\022Q\n\010BatchGet\022!.greptime.v1.meta" - ".BatchGetRequest\032\".greptime.v1.meta.Batc" - "hGetResponse\022H\n\005Range\022\036.greptime.v1.meta" - ".RangeRequest\032\037.greptime.v1.meta.RangeRe" - "sponse\022]\n\014MetasrvPeers\022%.greptime.v1.met" - "a.MetasrvPeersRequest\032&.greptime.v1.meta" - ".MetasrvPeersResponseB_impl_.peer_; } +const ::greptime::v1::meta::NodeInfo& +MetasrvNodeInfo::_Internal::info(const MetasrvNodeInfo* msg) { + return *msg->_impl_.info_; +} void MetasrvNodeInfo::clear_peer() { if (GetArenaForAllocation() == nullptr && _impl_.peer_ != nullptr) { delete _impl_.peer_; } _impl_.peer_ = nullptr; } +void MetasrvNodeInfo::clear_info() { + if (GetArenaForAllocation() == nullptr && _impl_.info_ != nullptr) { + delete _impl_.info_; + } + _impl_.info_ = nullptr; +} MetasrvNodeInfo::MetasrvNodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -673,6 +689,7 @@ MetasrvNodeInfo::MetasrvNodeInfo(const MetasrvNodeInfo& from) decltype(_impl_.version_){} , decltype(_impl_.git_commit_){} , decltype(_impl_.peer_){nullptr} + , decltype(_impl_.info_){nullptr} , decltype(_impl_.start_time_ms_){} , decltype(_impl_.memory_bytes_){} , decltype(_impl_.cpus_){} @@ -698,6 +715,9 @@ MetasrvNodeInfo::MetasrvNodeInfo(const MetasrvNodeInfo& from) if (from._internal_has_peer()) { _this->_impl_.peer_ = new ::greptime::v1::meta::Peer(*from._impl_.peer_); } + if (from._internal_has_info()) { + _this->_impl_.info_ = new ::greptime::v1::meta::NodeInfo(*from._impl_.info_); + } ::memcpy(&_impl_.start_time_ms_, &from._impl_.start_time_ms_, static_cast(reinterpret_cast(&_impl_.cpus_) - reinterpret_cast(&_impl_.start_time_ms_)) + sizeof(_impl_.cpus_)); @@ -712,6 +732,7 @@ inline void MetasrvNodeInfo::SharedCtor( decltype(_impl_.version_){} , decltype(_impl_.git_commit_){} , decltype(_impl_.peer_){nullptr} + , decltype(_impl_.info_){nullptr} , decltype(_impl_.start_time_ms_){uint64_t{0u}} , decltype(_impl_.memory_bytes_){uint64_t{0u}} , decltype(_impl_.cpus_){0u} @@ -741,6 +762,7 @@ inline void MetasrvNodeInfo::SharedDtor() { _impl_.version_.Destroy(); _impl_.git_commit_.Destroy(); if (this != internal_default_instance()) delete _impl_.peer_; + if (this != internal_default_instance()) delete _impl_.info_; } void MetasrvNodeInfo::SetCachedSize(int size) const { @@ -759,6 +781,10 @@ void MetasrvNodeInfo::Clear() { delete _impl_.peer_; } _impl_.peer_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.info_ != nullptr) { + delete _impl_.info_; + } + _impl_.info_ = nullptr; ::memset(&_impl_.start_time_ms_, 0, static_cast( reinterpret_cast(&_impl_.cpus_) - reinterpret_cast(&_impl_.start_time_ms_)) + sizeof(_impl_.cpus_)); @@ -779,7 +805,7 @@ const char* MetasrvNodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; - // string version = 2; + // string version = 2 [deprecated = true]; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_version(); @@ -789,7 +815,7 @@ const char* MetasrvNodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; - // string git_commit = 3; + // string git_commit = 3 [deprecated = true]; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_git_commit(); @@ -799,7 +825,7 @@ const char* MetasrvNodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; - // uint64 start_time_ms = 4; + // uint64 start_time_ms = 4 [deprecated = true]; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _impl_.start_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); @@ -807,7 +833,7 @@ const char* MetasrvNodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; - // uint32 cpus = 5; + // uint32 cpus = 5 [deprecated = true]; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { _impl_.cpus_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); @@ -815,7 +841,7 @@ const char* MetasrvNodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; - // uint64 memory_bytes = 6; + // uint64 memory_bytes = 6 [deprecated = true]; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { _impl_.memory_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); @@ -823,6 +849,14 @@ const char* MetasrvNodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; + // .greptime.v1.meta.NodeInfo info = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_info(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -859,7 +893,7 @@ uint8_t* MetasrvNodeInfo::_InternalSerialize( _Internal::peer(this).GetCachedSize(), target, stream); } - // string version = 2; + // string version = 2 [deprecated = true]; if (!this->_internal_version().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_version().data(), static_cast(this->_internal_version().length()), @@ -869,7 +903,7 @@ uint8_t* MetasrvNodeInfo::_InternalSerialize( 2, this->_internal_version(), target); } - // string git_commit = 3; + // string git_commit = 3 [deprecated = true]; if (!this->_internal_git_commit().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_git_commit().data(), static_cast(this->_internal_git_commit().length()), @@ -879,24 +913,31 @@ uint8_t* MetasrvNodeInfo::_InternalSerialize( 3, this->_internal_git_commit(), target); } - // uint64 start_time_ms = 4; + // uint64 start_time_ms = 4 [deprecated = true]; if (this->_internal_start_time_ms() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_start_time_ms(), target); } - // uint32 cpus = 5; + // uint32 cpus = 5 [deprecated = true]; if (this->_internal_cpus() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_cpus(), target); } - // uint64 memory_bytes = 6; + // uint64 memory_bytes = 6 [deprecated = true]; if (this->_internal_memory_bytes() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_memory_bytes(), target); } + // .greptime.v1.meta.NodeInfo info = 7; + if (this->_internal_has_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _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); @@ -913,14 +954,14 @@ size_t MetasrvNodeInfo::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string version = 2; + // string version = 2 [deprecated = true]; if (!this->_internal_version().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_version()); } - // string git_commit = 3; + // string git_commit = 3 [deprecated = true]; if (!this->_internal_git_commit().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -934,17 +975,24 @@ size_t MetasrvNodeInfo::ByteSizeLong() const { *_impl_.peer_); } - // uint64 start_time_ms = 4; + // .greptime.v1.meta.NodeInfo info = 7; + if (this->_internal_has_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.info_); + } + + // uint64 start_time_ms = 4 [deprecated = true]; if (this->_internal_start_time_ms() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms()); } - // uint64 memory_bytes = 6; + // uint64 memory_bytes = 6 [deprecated = true]; if (this->_internal_memory_bytes() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_memory_bytes()); } - // uint32 cpus = 5; + // uint32 cpus = 5 [deprecated = true]; if (this->_internal_cpus() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cpus()); } @@ -977,6 +1025,10 @@ void MetasrvNodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_mutable_peer()->::greptime::v1::meta::Peer::MergeFrom( from._internal_peer()); } + if (from._internal_has_info()) { + _this->_internal_mutable_info()->::greptime::v1::meta::NodeInfo::MergeFrom( + from._internal_info()); + } if (from._internal_start_time_ms() != 0) { _this->_internal_set_start_time_ms(from._internal_start_time_ms()); } diff --git a/c++/greptime/v1/meta/cluster.pb.h b/c++/greptime/v1/meta/cluster.pb.h index 78813e8..2e9d2a1 100644 --- a/c++/greptime/v1/meta/cluster.pb.h +++ b/c++/greptime/v1/meta/cluster.pb.h @@ -31,6 +31,7 @@ #include // IWYU pragma: export #include #include "greptime/v1/meta/common.pb.h" +#include "greptime/v1/meta/heartbeat.pb.h" #include "greptime/v1/meta/store.pb.h" // @@protoc_insertion_point(includes) #include @@ -550,32 +551,33 @@ class MetasrvNodeInfo final : kVersionFieldNumber = 2, kGitCommitFieldNumber = 3, kPeerFieldNumber = 1, + kInfoFieldNumber = 7, kStartTimeMsFieldNumber = 4, kMemoryBytesFieldNumber = 6, kCpusFieldNumber = 5, }; - // string version = 2; - void clear_version(); - const std::string& version() const; + // string version = 2 [deprecated = true]; + PROTOBUF_DEPRECATED void clear_version(); + PROTOBUF_DEPRECATED 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); + PROTOBUF_DEPRECATED void set_version(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_version(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_version(); + PROTOBUF_DEPRECATED 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 = 3; - void clear_git_commit(); - const std::string& git_commit() const; + // string git_commit = 3 [deprecated = true]; + PROTOBUF_DEPRECATED void clear_git_commit(); + PROTOBUF_DEPRECATED 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); + PROTOBUF_DEPRECATED void set_git_commit(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_git_commit(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_git_commit(); + PROTOBUF_DEPRECATED 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); @@ -600,28 +602,46 @@ class MetasrvNodeInfo final : ::greptime::v1::meta::Peer* peer); ::greptime::v1::meta::Peer* unsafe_arena_release_peer(); - // uint64 start_time_ms = 4; - void clear_start_time_ms(); - uint64_t start_time_ms() const; - void set_start_time_ms(uint64_t value); + // .greptime.v1.meta.NodeInfo info = 7; + 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 start_time_ms = 4 [deprecated = true]; + PROTOBUF_DEPRECATED void clear_start_time_ms(); + PROTOBUF_DEPRECATED uint64_t start_time_ms() const; + PROTOBUF_DEPRECATED 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: - // uint64 memory_bytes = 6; - void clear_memory_bytes(); - uint64_t memory_bytes() const; - void set_memory_bytes(uint64_t value); + // uint64 memory_bytes = 6 [deprecated = true]; + PROTOBUF_DEPRECATED void clear_memory_bytes(); + PROTOBUF_DEPRECATED uint64_t memory_bytes() const; + PROTOBUF_DEPRECATED void set_memory_bytes(uint64_t value); private: uint64_t _internal_memory_bytes() const; void _internal_set_memory_bytes(uint64_t value); public: - // uint32 cpus = 5; - void clear_cpus(); - uint32_t cpus() const; - void set_cpus(uint32_t value); + // uint32 cpus = 5 [deprecated = true]; + PROTOBUF_DEPRECATED void clear_cpus(); + PROTOBUF_DEPRECATED uint32_t cpus() const; + PROTOBUF_DEPRECATED void set_cpus(uint32_t value); private: uint32_t _internal_cpus() const; void _internal_set_cpus(uint32_t value); @@ -638,6 +658,7 @@ class MetasrvNodeInfo final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr git_commit_; ::greptime::v1::meta::Peer* peer_; + ::greptime::v1::meta::NodeInfo* info_; uint64_t start_time_ms_; uint64_t memory_bytes_; uint32_t cpus_; @@ -1050,7 +1071,7 @@ inline void MetasrvNodeInfo::set_allocated_peer(::greptime::v1::meta::Peer* peer // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MetasrvNodeInfo.peer) } -// string version = 2; +// string version = 2 [deprecated = true]; inline void MetasrvNodeInfo::clear_version() { _impl_.version_.ClearToEmpty(); } @@ -1100,7 +1121,7 @@ inline void MetasrvNodeInfo::set_allocated_version(std::string* version) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MetasrvNodeInfo.version) } -// string git_commit = 3; +// string git_commit = 3 [deprecated = true]; inline void MetasrvNodeInfo::clear_git_commit() { _impl_.git_commit_.ClearToEmpty(); } @@ -1150,7 +1171,7 @@ inline void MetasrvNodeInfo::set_allocated_git_commit(std::string* git_commit) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MetasrvNodeInfo.git_commit) } -// uint64 start_time_ms = 4; +// uint64 start_time_ms = 4 [deprecated = true]; inline void MetasrvNodeInfo::clear_start_time_ms() { _impl_.start_time_ms_ = uint64_t{0u}; } @@ -1170,7 +1191,7 @@ inline void MetasrvNodeInfo::set_start_time_ms(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.MetasrvNodeInfo.start_time_ms) } -// uint32 cpus = 5; +// uint32 cpus = 5 [deprecated = true]; inline void MetasrvNodeInfo::clear_cpus() { _impl_.cpus_ = 0u; } @@ -1190,7 +1211,7 @@ inline void MetasrvNodeInfo::set_cpus(uint32_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.MetasrvNodeInfo.cpus) } -// uint64 memory_bytes = 6; +// uint64 memory_bytes = 6 [deprecated = true]; inline void MetasrvNodeInfo::clear_memory_bytes() { _impl_.memory_bytes_ = uint64_t{0u}; } @@ -1210,6 +1231,91 @@ inline void MetasrvNodeInfo::set_memory_bytes(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.MetasrvNodeInfo.memory_bytes) } +// .greptime.v1.meta.NodeInfo info = 7; +inline bool MetasrvNodeInfo::_internal_has_info() const { + return this != internal_default_instance() && _impl_.info_ != nullptr; +} +inline bool MetasrvNodeInfo::has_info() const { + return _internal_has_info(); +} +inline const ::greptime::v1::meta::NodeInfo& MetasrvNodeInfo::_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& MetasrvNodeInfo::info() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MetasrvNodeInfo.info) + return _internal_info(); +} +inline void MetasrvNodeInfo::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.MetasrvNodeInfo.info) +} +inline ::greptime::v1::meta::NodeInfo* MetasrvNodeInfo::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* MetasrvNodeInfo::unsafe_arena_release_info() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.MetasrvNodeInfo.info) + + ::greptime::v1::meta::NodeInfo* temp = _impl_.info_; + _impl_.info_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::NodeInfo* MetasrvNodeInfo::_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* MetasrvNodeInfo::mutable_info() { + ::greptime::v1::meta::NodeInfo* _msg = _internal_mutable_info(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MetasrvNodeInfo.info) + return _msg; +} +inline void MetasrvNodeInfo::set_allocated_info(::greptime::v1::meta::NodeInfo* info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.info_); + } + if (info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(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.MetasrvNodeInfo.info) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/c++/greptime/v1/meta/heartbeat.pb.cc b/c++/greptime/v1/meta/heartbeat.pb.cc index 2b7921a..6af6a81 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.cc +++ b/c++/greptime/v1/meta/heartbeat.pb.cc @@ -105,6 +105,7 @@ 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_.hostname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} , /*decltype(_impl_.memory_bytes_)*/uint64_t{0u} , /*decltype(_impl_.cpus_)*/0u @@ -375,6 +376,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.start_time_ms_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.cpus_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.memory_bytes_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.hostname_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -510,19 +512,19 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 38, -1, -1, sizeof(::greptime::v1::meta::FrontendWorkloads)}, { 45, -1, -1, sizeof(::greptime::v1::meta::FlownodeWorkloads)}, { 52, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)}, - { 63, 71, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)}, - { 73, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, - { 86, -1, -1, sizeof(::greptime::v1::meta::TopicStat)}, - { 96, 104, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)}, - { 106, 114, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)}, - { 116, -1, -1, sizeof(::greptime::v1::meta::FlowStat)}, - { 124, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, - { 133, 141, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)}, - { 143, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, - { 152, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, - { 162, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, - { 169, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, - { 177, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, + { 64, 72, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)}, + { 74, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, + { 87, -1, -1, sizeof(::greptime::v1::meta::TopicStat)}, + { 97, 105, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)}, + { 107, 115, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)}, + { 117, -1, -1, sizeof(::greptime::v1::meta::FlowStat)}, + { 125, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, + { 134, 142, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)}, + { 144, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, + { 153, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, + { 163, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, + { 170, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, + { 178, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -572,62 +574,62 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] "8\001B\020\n\016node_workloads\"\"\n\021DatanodeWorkload" "s\022\r\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n" "\005types\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005typ" - "es\030\001 \003(\005\"j\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n" + "es\030\001 \003(\005\"|\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n" "\ngit_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001(\004" - "\022\014\n\004cpus\030\004 \001(\r\022\024\n\014memory_bytes\030\005 \001(\004\"\207\002\n" - "\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\021approximate_bytes\030" - "\004 \001(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.gr" - "eptime.v1.meta.RegionRole\022@\n\nextensions\030" - "c \003(\0132,.greptime.v1.meta.RegionStat.Exte" - "nsionsEntry\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"a\n\tTopicStat\022\022\n\nt" - "opic_name\030\001 \001(\t\022\023\n\013record_size\030\002 \001(\004\022\022\n\n" - "record_num\030\003 \001(\004\022\027\n\017latest_entry_id\030\004 \001(" - "\004\"\227\002\n\010FlowStat\022D\n\016flow_stat_size\030\001 \003(\0132," - ".greptime.v1.meta.FlowStat.FlowStatSizeE" - "ntry\022T\n\027flow_last_exec_time_map\030\002 \003(\01323." - "greptime.v1.meta.FlowStat.FlowLastExecTi" - "meMapEntry\0323\n\021FlowStatSizeEntry\022\013\n\003key\030\001" - " \001(\r\022\r\n\005value\030\002 \001(\004:\0028\001\032:\n\030FlowLastExecT" - "imeMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:" - "\0028\001\"\265\001\n\021HeartbeatResponse\0220\n\006header\030\001 \001(" - "\0132 .greptime.v1.meta.ResponseHeader\0229\n\017m" - "ailbox_message\030\002 \001(\0132 .greptime.v1.meta." - "MailboxMessage\0223\n\014region_lease\030\003 \001(\0132\035.g" - "reptime.v1.meta.RegionLease\"\306\001\n\rGrantedR" - "egion\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034" - ".greptime.v1.meta.RegionRole\022C\n\nextensio" - "ns\030c \003(\0132/.greptime.v1.meta.GrantedRegio" - "n.ExtensionsEntry\0321\n\017ExtensionsEntry\022\013\n\003" - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\222\001\n\013RegionL" - "ease\0220\n\007regions\030\001 \003(\0132\037.greptime.v1.meta" - ".GrantedRegion\022\034\n\024duration_since_epoch\030\002" - " \001(\004\022\025\n\rlease_seconds\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.greptime.v1.meta.Request" - "Header\"m\n\021AskLeaderResponse\0220\n\006header\030\001 " - "\001(\0132 .greptime.v1.meta.ResponseHeader\022&\n" - "\006leader\030\002 \001(\0132\026.greptime.v1.meta.Peer\"|\n" - "\016MailboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007subject\030\002" - " \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timest" - "amp_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000B\t\n\007payl" - "oad*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n\010Followe" - "r\020\001\022\025\n\021DowngradingLeader\020\0022\277\001\n\tHeartbeat" - "\022Z\n\tHeartbeat\022\".greptime.v1.meta.Heartbe" - "atRequest\032#.greptime.v1.meta.HeartbeatRe" - "sponse\"\000(\0010\001\022V\n\tAskLeader\022\".greptime.v1." - "meta.AskLeaderRequest\032#.greptime.v1.meta" - ".AskLeaderResponse\"\000B_impl_.git_commit_.Set(from._internal_git_commit(), _this->GetArenaForAllocation()); } + _impl_.hostname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hostname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_hostname().empty()) { + _this->_impl_.hostname_.Set(from._internal_hostname(), + _this->GetArenaForAllocation()); + } ::memcpy(&_impl_.start_time_ms_, &from._impl_.start_time_ms_, static_cast(reinterpret_cast(&_impl_.cpus_) - reinterpret_cast(&_impl_.start_time_ms_)) + sizeof(_impl_.cpus_)); @@ -2124,6 +2135,7 @@ inline void NodeInfo::SharedCtor( new (&_impl_) Impl_{ decltype(_impl_.version_){} , decltype(_impl_.git_commit_){} + , decltype(_impl_.hostname_){} , decltype(_impl_.start_time_ms_){uint64_t{0u}} , decltype(_impl_.memory_bytes_){uint64_t{0u}} , decltype(_impl_.cpus_){0u} @@ -2137,6 +2149,10 @@ inline void NodeInfo::SharedCtor( #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.git_commit_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hostname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hostname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } NodeInfo::~NodeInfo() { @@ -2152,6 +2168,7 @@ inline void NodeInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.version_.Destroy(); _impl_.git_commit_.Destroy(); + _impl_.hostname_.Destroy(); } void NodeInfo::SetCachedSize(int size) const { @@ -2166,6 +2183,7 @@ void NodeInfo::Clear() { _impl_.version_.ClearToEmpty(); _impl_.git_commit_.ClearToEmpty(); + _impl_.hostname_.ClearToEmpty(); ::memset(&_impl_.start_time_ms_, 0, static_cast( reinterpret_cast(&_impl_.cpus_) - reinterpret_cast(&_impl_.start_time_ms_)) + sizeof(_impl_.cpus_)); @@ -2222,6 +2240,16 @@ const char* NodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) } else goto handle_unusual; continue; + // string hostname = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_hostname(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.NodeInfo.hostname")); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2289,6 +2317,16 @@ uint8_t* NodeInfo::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_memory_bytes(), target); } + // string hostname = 6; + if (!this->_internal_hostname().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_hostname().data(), static_cast(this->_internal_hostname().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.NodeInfo.hostname"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_hostname(), 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); @@ -2319,6 +2357,13 @@ size_t NodeInfo::ByteSizeLong() const { this->_internal_git_commit()); } + // string hostname = 6; + if (!this->_internal_hostname().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_hostname()); + } + // uint64 start_time_ms = 3; if (this->_internal_start_time_ms() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms()); @@ -2358,6 +2403,9 @@ void NodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO if (!from._internal_git_commit().empty()) { _this->_internal_set_git_commit(from._internal_git_commit()); } + if (!from._internal_hostname().empty()) { + _this->_internal_set_hostname(from._internal_hostname()); + } if (from._internal_start_time_ms() != 0) { _this->_internal_set_start_time_ms(from._internal_start_time_ms()); } @@ -2394,6 +2442,10 @@ void NodeInfo::InternalSwap(NodeInfo* other) { &_impl_.git_commit_, lhs_arena, &other->_impl_.git_commit_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.hostname_, lhs_arena, + &other->_impl_.hostname_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(NodeInfo, _impl_.cpus_) + sizeof(NodeInfo::_impl_.cpus_) diff --git a/c++/greptime/v1/meta/heartbeat.pb.h b/c++/greptime/v1/meta/heartbeat.pb.h index fb36714..01a2a35 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.h +++ b/c++/greptime/v1/meta/heartbeat.pb.h @@ -1226,6 +1226,7 @@ class NodeInfo final : enum : int { kVersionFieldNumber = 1, kGitCommitFieldNumber = 2, + kHostnameFieldNumber = 6, kStartTimeMsFieldNumber = 3, kMemoryBytesFieldNumber = 5, kCpusFieldNumber = 4, @@ -1258,6 +1259,20 @@ class NodeInfo final : std::string* _internal_mutable_git_commit(); public: + // string hostname = 6; + void clear_hostname(); + const std::string& hostname() const; + template + void set_hostname(ArgT0&& arg0, ArgT... args); + std::string* mutable_hostname(); + PROTOBUF_NODISCARD std::string* release_hostname(); + void set_allocated_hostname(std::string* hostname); + private: + const std::string& _internal_hostname() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_hostname(const std::string& value); + std::string* _internal_mutable_hostname(); + public: + // uint64 start_time_ms = 3; void clear_start_time_ms(); uint64_t start_time_ms() const; @@ -1295,6 +1310,7 @@ class NodeInfo final : struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr git_commit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hostname_; uint64_t start_time_ms_; uint64_t memory_bytes_; uint32_t cpus_; @@ -4408,6 +4424,56 @@ inline void NodeInfo::set_memory_bytes(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.memory_bytes) } +// string hostname = 6; +inline void NodeInfo::clear_hostname() { + _impl_.hostname_.ClearToEmpty(); +} +inline const std::string& NodeInfo::hostname() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.hostname) + return _internal_hostname(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void NodeInfo::set_hostname(ArgT0&& arg0, ArgT... args) { + + _impl_.hostname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.hostname) +} +inline std::string* NodeInfo::mutable_hostname() { + std::string* _s = _internal_mutable_hostname(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.NodeInfo.hostname) + return _s; +} +inline const std::string& NodeInfo::_internal_hostname() const { + return _impl_.hostname_.Get(); +} +inline void NodeInfo::_internal_set_hostname(const std::string& value) { + + _impl_.hostname_.Set(value, GetArenaForAllocation()); +} +inline std::string* NodeInfo::_internal_mutable_hostname() { + + return _impl_.hostname_.Mutable(GetArenaForAllocation()); +} +inline std::string* NodeInfo::release_hostname() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.NodeInfo.hostname) + return _impl_.hostname_.Release(); +} +inline void NodeInfo::set_allocated_hostname(std::string* hostname) { + if (hostname != nullptr) { + + } else { + + } + _impl_.hostname_.SetAllocated(hostname, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.hostname_.IsDefault()) { + _impl_.hostname_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.NodeInfo.hostname) +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- diff --git a/go/greptime/v1/meta/cluster.pb.go b/go/greptime/v1/meta/cluster.pb.go index 6d66c0a..95a4bcd 100644 --- a/go/greptime/v1/meta/cluster.pb.go +++ b/go/greptime/v1/meta/cluster.pb.go @@ -149,15 +149,29 @@ type MetasrvNodeInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + // Deprecated: Use NodeInfo instead. The version of the node. + // + // Deprecated: Do not use. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // Deprecated: Use NodeInfo instead. The git commit hash of the node. + // + // Deprecated: Do not use. GitCommit string `protobuf:"bytes,3,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` - // The node start timestamp in milliseconds. + // Deprecated: Use NodeInfo instead. The node start timestamp in milliseconds. + // + // Deprecated: Do not use. StartTimeMs uint64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` - // The CPU cores number of the node. + // Deprecated: Use NodeInfo instead. The CPU cores number of the node. + // + // Deprecated: Do not use. Cpus uint32 `protobuf:"varint,5,opt,name=cpus,proto3" json:"cpus,omitempty"` - // The memory bytes of the node. + // Deprecated: Use NodeInfo instead. The memory bytes of the node. + // + // Deprecated: Do not use. MemoryBytes uint64 `protobuf:"varint,6,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` + // The node info. + Info *NodeInfo `protobuf:"bytes,7,opt,name=info,proto3" json:"info,omitempty"` } func (x *MetasrvNodeInfo) Reset() { @@ -199,6 +213,7 @@ func (x *MetasrvNodeInfo) GetPeer() *Peer { return nil } +// Deprecated: Do not use. func (x *MetasrvNodeInfo) GetVersion() string { if x != nil { return x.Version @@ -206,6 +221,7 @@ func (x *MetasrvNodeInfo) GetVersion() string { return "" } +// Deprecated: Do not use. func (x *MetasrvNodeInfo) GetGitCommit() string { if x != nil { return x.GitCommit @@ -213,6 +229,7 @@ func (x *MetasrvNodeInfo) GetGitCommit() string { return "" } +// Deprecated: Do not use. func (x *MetasrvNodeInfo) GetStartTimeMs() uint64 { if x != nil { return x.StartTimeMs @@ -220,6 +237,7 @@ func (x *MetasrvNodeInfo) GetStartTimeMs() uint64 { return 0 } +// Deprecated: Do not use. func (x *MetasrvNodeInfo) GetCpus() uint32 { if x != nil { return x.Cpus @@ -227,6 +245,7 @@ func (x *MetasrvNodeInfo) GetCpus() uint32 { return 0 } +// Deprecated: Do not use. func (x *MetasrvNodeInfo) GetMemoryBytes() uint64 { if x != nil { return x.MemoryBytes @@ -234,6 +253,13 @@ func (x *MetasrvNodeInfo) GetMemoryBytes() uint64 { return 0 } +func (x *MetasrvNodeInfo) GetInfo() *NodeInfo { + if x != nil { + return x.Info + } + return nil +} + var File_greptime_v1_meta_cluster_proto protoreflect.FileDescriptor var file_greptime_v1_meta_cluster_proto_rawDesc = []byte{ @@ -242,60 +268,67 @@ var file_greptime_v1_meta_cluster_proto_rawDesc = []byte{ 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, 0x1a, 0x1c, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, - 0x65, 0x74, 0x61, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x4e, 0x0a, 0x13, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 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, - 0xcc, 0x01, 0x0a, 0x14, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, - 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, 0x39, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x6f, 0x1a, 0x20, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x65, 0x74, 0x61, 0x2f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, + 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x4e, 0x0a, 0x13, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, + 0x73, 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, 0xcc, 0x01, 0x0a, 0x14, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, + 0x72, 0x73, 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, 0x39, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x3f, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3f, 0x0a, - 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x22, 0xd1, - 0x01, 0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x65, 0x65, 0x72, 0x18, 0x01, 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, 0x04, 0x70, 0x65, 0x65, 0x72, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x03, 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, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, - 0x70, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, - 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, - 0x65, 0x73, 0x32, 0x85, 0x02, 0x0a, 0x07, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x51, - 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, - 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, - 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0c, 0x4d, - 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 0x12, 0x25, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, - 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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, + 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, + 0x22, 0x95, 0x02, 0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x65, 0x65, 0x72, 0x18, 0x01, 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, 0x04, 0x70, 0x65, 0x65, 0x72, + 0x12, 0x1c, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, + 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x12, 0x26, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x63, 0x70, 0x75, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x63, 0x70, 0x75, + 0x73, 0x12, 0x25, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, + 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6d, 0x65, 0x6d, + 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x07, 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, 0x32, 0x85, 0x02, 0x0a, 0x07, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, + 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x5d, 0x0a, 0x0c, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, + 0x73, 0x12, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, + 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 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 ( @@ -318,28 +351,30 @@ var file_greptime_v1_meta_cluster_proto_goTypes = []interface{}{ (*RequestHeader)(nil), // 3: greptime.v1.meta.RequestHeader (*ResponseHeader)(nil), // 4: greptime.v1.meta.ResponseHeader (*Peer)(nil), // 5: greptime.v1.meta.Peer - (*BatchGetRequest)(nil), // 6: greptime.v1.meta.BatchGetRequest - (*RangeRequest)(nil), // 7: greptime.v1.meta.RangeRequest - (*BatchGetResponse)(nil), // 8: greptime.v1.meta.BatchGetResponse - (*RangeResponse)(nil), // 9: greptime.v1.meta.RangeResponse + (*NodeInfo)(nil), // 6: greptime.v1.meta.NodeInfo + (*BatchGetRequest)(nil), // 7: greptime.v1.meta.BatchGetRequest + (*RangeRequest)(nil), // 8: greptime.v1.meta.RangeRequest + (*BatchGetResponse)(nil), // 9: greptime.v1.meta.BatchGetResponse + (*RangeResponse)(nil), // 10: greptime.v1.meta.RangeResponse } var file_greptime_v1_meta_cluster_proto_depIdxs = []int32{ - 3, // 0: greptime.v1.meta.MetasrvPeersRequest.header:type_name -> greptime.v1.meta.RequestHeader - 4, // 1: greptime.v1.meta.MetasrvPeersResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 2, // 2: greptime.v1.meta.MetasrvPeersResponse.leader:type_name -> greptime.v1.meta.MetasrvNodeInfo - 2, // 3: greptime.v1.meta.MetasrvPeersResponse.followers:type_name -> greptime.v1.meta.MetasrvNodeInfo - 5, // 4: greptime.v1.meta.MetasrvNodeInfo.peer:type_name -> greptime.v1.meta.Peer - 6, // 5: greptime.v1.meta.Cluster.BatchGet:input_type -> greptime.v1.meta.BatchGetRequest - 7, // 6: greptime.v1.meta.Cluster.Range:input_type -> greptime.v1.meta.RangeRequest - 0, // 7: greptime.v1.meta.Cluster.MetasrvPeers:input_type -> greptime.v1.meta.MetasrvPeersRequest - 8, // 8: greptime.v1.meta.Cluster.BatchGet:output_type -> greptime.v1.meta.BatchGetResponse - 9, // 9: greptime.v1.meta.Cluster.Range:output_type -> greptime.v1.meta.RangeResponse - 1, // 10: greptime.v1.meta.Cluster.MetasrvPeers:output_type -> greptime.v1.meta.MetasrvPeersResponse - 8, // [8:11] is the sub-list for method output_type - 5, // [5:8] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 3, // 0: greptime.v1.meta.MetasrvPeersRequest.header:type_name -> greptime.v1.meta.RequestHeader + 4, // 1: greptime.v1.meta.MetasrvPeersResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 2, // 2: greptime.v1.meta.MetasrvPeersResponse.leader:type_name -> greptime.v1.meta.MetasrvNodeInfo + 2, // 3: greptime.v1.meta.MetasrvPeersResponse.followers:type_name -> greptime.v1.meta.MetasrvNodeInfo + 5, // 4: greptime.v1.meta.MetasrvNodeInfo.peer:type_name -> greptime.v1.meta.Peer + 6, // 5: greptime.v1.meta.MetasrvNodeInfo.info:type_name -> greptime.v1.meta.NodeInfo + 7, // 6: greptime.v1.meta.Cluster.BatchGet:input_type -> greptime.v1.meta.BatchGetRequest + 8, // 7: greptime.v1.meta.Cluster.Range:input_type -> greptime.v1.meta.RangeRequest + 0, // 8: greptime.v1.meta.Cluster.MetasrvPeers:input_type -> greptime.v1.meta.MetasrvPeersRequest + 9, // 9: greptime.v1.meta.Cluster.BatchGet:output_type -> greptime.v1.meta.BatchGetResponse + 10, // 10: greptime.v1.meta.Cluster.Range:output_type -> greptime.v1.meta.RangeResponse + 1, // 11: greptime.v1.meta.Cluster.MetasrvPeers:output_type -> greptime.v1.meta.MetasrvPeersResponse + 9, // [9:12] is the sub-list for method output_type + 6, // [6:9] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_greptime_v1_meta_cluster_proto_init() } @@ -348,6 +383,7 @@ func file_greptime_v1_meta_cluster_proto_init() { return } file_greptime_v1_meta_common_proto_init() + file_greptime_v1_meta_heartbeat_proto_init() file_greptime_v1_meta_store_proto_init() if !protoimpl.UnsafeEnabled { file_greptime_v1_meta_cluster_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { diff --git a/go/greptime/v1/meta/heartbeat.pb.go b/go/greptime/v1/meta/heartbeat.pb.go index 2c4c2d4..2e44f01 100644 --- a/go/greptime/v1/meta/heartbeat.pb.go +++ b/go/greptime/v1/meta/heartbeat.pb.go @@ -441,6 +441,8 @@ type NodeInfo struct { Cpus uint32 `protobuf:"varint,4,opt,name=cpus,proto3" json:"cpus,omitempty"` // The memory bytes of the node. MemoryBytes uint64 `protobuf:"varint,5,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` + // The hostname of the node. + Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"` } func (x *NodeInfo) Reset() { @@ -510,6 +512,13 @@ func (x *NodeInfo) GetMemoryBytes() uint64 { return 0 } +func (x *NodeInfo) GetHostname() string { + if x != nil { + return x.Hostname + } + return "" +} + type RegionStat struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1231,7 +1240,7 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{ 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x6e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x08, 0x4e, 0x6f, + 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, @@ -1241,145 +1250,147 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{ 0x65, 0x4d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, - 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xd5, 0x02, 0x0a, 0x0a, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, - 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, - 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, - 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, - 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, - 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x92, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x7a, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4e, 0x75, 0x6d, 0x12, - 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, - 0x53, 0x74, 0x61, 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, - 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, - 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x77, - 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x66, 0x6c, 0x6f, 0x77, - 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, - 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, - 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, - 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, - 0x66, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, - 0x4d, 0x61, 0x70, 0x1a, 0x3f, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, - 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x46, 0x0a, 0x18, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, - 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 0x0a, - 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, - 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x02, 0x20, 0x01, 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, + 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, + 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, + 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, + 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, + 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, + 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xee, 0x01, 0x0a, 0x0d, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4f, 0x0a, 0x0a, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, + 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, + 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x92, + 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x0f, 0x6c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x49, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, + 0x12, 0x52, 0x0a, 0x0e, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77, + 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, + 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x66, 0x6c, 0x6f, 0x77, + 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x1a, + 0x3f, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x46, 0x0a, 0x18, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, + 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, 0x61, + 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, + 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, - 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, - 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, - 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, - 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, - 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, - 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, - 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, - 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, - 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, - 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, - 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x3d, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, - 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x10, 0x01, 0x12, - 0x15, 0x0a, 0x11, 0x44, 0x6f, 0x77, 0x6e, 0x67, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x10, 0x02, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, - 0x62, 0x65, 0x61, 0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, - 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, - 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, - 0x12, 0x56, 0x0a, 0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, + 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, 0xee, 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, + 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4f, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, + 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, + 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, + 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, + 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, + 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, + 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, + 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, + 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, + 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, + 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x2a, 0x3d, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, + 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, 0x0a, + 0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x44, + 0x6f, 0x77, 0x6e, 0x67, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x10, 0x02, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, + 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 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, 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, + 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 ( diff --git a/java/src/main/java/greptime/v1/meta/ClusterOuterClass.java b/java/src/main/java/greptime/v1/meta/ClusterOuterClass.java index fc2ae57..f7d80de 100644 --- a/java/src/main/java/greptime/v1/meta/ClusterOuterClass.java +++ b/java/src/main/java/greptime/v1/meta/ClusterOuterClass.java @@ -1858,58 +1858,115 @@ public final class ClusterOuterClass { greptime.v1.meta.Common.PeerOrBuilder getPeerOrBuilder(); /** - * string version = 2; + *
+     * Deprecated: Use NodeInfo instead. The version of the node.
+     * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @return The version. */ - java.lang.String getVersion(); + @java.lang.Deprecated java.lang.String getVersion(); /** - * string version = 2; + *
+     * Deprecated: Use NodeInfo instead. The version of the node.
+     * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @return The bytes for version. */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getVersionBytes(); /** - * string git_commit = 3; + *
+     * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+     * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @return The gitCommit. */ - java.lang.String getGitCommit(); + @java.lang.Deprecated java.lang.String getGitCommit(); /** - * string git_commit = 3; + *
+     * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+     * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @return The bytes for gitCommit. */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getGitCommitBytes(); /** *
-     * The node start timestamp in milliseconds.
+     * Deprecated: Use NodeInfo instead. The node start timestamp in milliseconds.
      * 
* - * uint64 start_time_ms = 4; + * uint64 start_time_ms = 4 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.start_time_ms is deprecated. + * See greptime/v1/meta/cluster.proto;l=54 * @return The startTimeMs. */ - long getStartTimeMs(); + @java.lang.Deprecated long getStartTimeMs(); /** *
-     * The CPU cores number of the node.
+     * Deprecated: Use NodeInfo instead. The CPU cores number of the node.
      * 
* - * uint32 cpus = 5; + * uint32 cpus = 5 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.cpus is deprecated. + * See greptime/v1/meta/cluster.proto;l=56 * @return The cpus. */ - int getCpus(); + @java.lang.Deprecated int getCpus(); /** *
-     * The memory bytes of the node.
+     * Deprecated: Use NodeInfo instead. The memory bytes of the node.
      * 
* - * uint64 memory_bytes = 6; + * uint64 memory_bytes = 6 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.memory_bytes is deprecated. + * See greptime/v1/meta/cluster.proto;l=58 * @return The memoryBytes. */ - long getMemoryBytes(); + @java.lang.Deprecated long getMemoryBytes(); + + /** + *
+     * The node info.
+     * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + * @return Whether the info field is set. + */ + boolean hasInfo(); + /** + *
+     * The node info.
+     * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + * @return The info. + */ + greptime.v1.meta.HeartbeatOuterClass.NodeInfo getInfo(); + /** + *
+     * The node info.
+     * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder getInfoOrBuilder(); } /** * Protobuf type {@code greptime.v1.meta.MetasrvNodeInfo} @@ -1998,6 +2055,19 @@ public final class ClusterOuterClass { memoryBytes_ = input.readUInt64(); break; } + case 58: { + 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)) { @@ -2061,11 +2131,17 @@ public final class ClusterOuterClass { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * string version = 2; + *
+     * Deprecated: Use NodeInfo instead. The version of the node.
+     * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @return The version. */ @java.lang.Override - public java.lang.String getVersion() { + @java.lang.Deprecated public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -2078,11 +2154,17 @@ public final class ClusterOuterClass { } } /** - * string version = 2; + *
+     * Deprecated: Use NodeInfo instead. The version of the node.
+     * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { @@ -2099,11 +2181,17 @@ public final class ClusterOuterClass { public static final int GIT_COMMIT_FIELD_NUMBER = 3; private volatile java.lang.Object gitCommit_; /** - * string git_commit = 3; + *
+     * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+     * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @return The gitCommit. */ @java.lang.Override - public java.lang.String getGitCommit() { + @java.lang.Deprecated public java.lang.String getGitCommit() { java.lang.Object ref = gitCommit_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -2116,11 +2204,17 @@ public final class ClusterOuterClass { } } /** - * string git_commit = 3; + *
+     * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+     * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @return The bytes for gitCommit. */ @java.lang.Override - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getGitCommitBytes() { java.lang.Object ref = gitCommit_; if (ref instanceof java.lang.String) { @@ -2138,14 +2232,16 @@ public final class ClusterOuterClass { private long startTimeMs_; /** *
-     * The node start timestamp in milliseconds.
+     * Deprecated: Use NodeInfo instead. The node start timestamp in milliseconds.
      * 
* - * uint64 start_time_ms = 4; + * uint64 start_time_ms = 4 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.start_time_ms is deprecated. + * See greptime/v1/meta/cluster.proto;l=54 * @return The startTimeMs. */ @java.lang.Override - public long getStartTimeMs() { + @java.lang.Deprecated public long getStartTimeMs() { return startTimeMs_; } @@ -2153,14 +2249,16 @@ public final class ClusterOuterClass { private int cpus_; /** *
-     * The CPU cores number of the node.
+     * Deprecated: Use NodeInfo instead. The CPU cores number of the node.
      * 
* - * uint32 cpus = 5; + * uint32 cpus = 5 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.cpus is deprecated. + * See greptime/v1/meta/cluster.proto;l=56 * @return The cpus. */ @java.lang.Override - public int getCpus() { + @java.lang.Deprecated public int getCpus() { return cpus_; } @@ -2168,17 +2266,57 @@ public final class ClusterOuterClass { private long memoryBytes_; /** *
-     * The memory bytes of the node.
+     * Deprecated: Use NodeInfo instead. The memory bytes of the node.
      * 
* - * uint64 memory_bytes = 6; + * uint64 memory_bytes = 6 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.memory_bytes is deprecated. + * See greptime/v1/meta/cluster.proto;l=58 * @return The memoryBytes. */ @java.lang.Override - public long getMemoryBytes() { + @java.lang.Deprecated public long getMemoryBytes() { return memoryBytes_; } + public static final int INFO_FIELD_NUMBER = 7; + private greptime.v1.meta.HeartbeatOuterClass.NodeInfo info_; + /** + *
+     * The node info.
+     * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + * @return Whether the info field is set. + */ + @java.lang.Override + public boolean hasInfo() { + return info_ != null; + } + /** + *
+     * The node info.
+     * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + * @return The info. + */ + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo getInfo() { + return info_ == null ? greptime.v1.meta.HeartbeatOuterClass.NodeInfo.getDefaultInstance() : info_; + } + /** + *
+     * The node info.
+     * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder getInfoOrBuilder() { + return getInfo(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2211,6 +2349,9 @@ public final class ClusterOuterClass { if (memoryBytes_ != 0L) { output.writeUInt64(6, memoryBytes_); } + if (info_ != null) { + output.writeMessage(7, getInfo()); + } unknownFields.writeTo(output); } @@ -2242,6 +2383,10 @@ public final class ClusterOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, memoryBytes_); } + if (info_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getInfo()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2272,6 +2417,11 @@ public final class ClusterOuterClass { != other.getCpus()) return false; if (getMemoryBytes() != other.getMemoryBytes()) 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; } @@ -2299,6 +2449,10 @@ public final class ClusterOuterClass { hash = (37 * hash) + MEMORY_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemoryBytes()); + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2448,6 +2602,12 @@ public final class ClusterOuterClass { memoryBytes_ = 0L; + if (infoBuilder_ == null) { + info_ = null; + } else { + info_ = null; + infoBuilder_ = null; + } return this; } @@ -2484,6 +2644,11 @@ public final class ClusterOuterClass { result.startTimeMs_ = startTimeMs_; result.cpus_ = cpus_; result.memoryBytes_ = memoryBytes_; + if (infoBuilder_ == null) { + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } onBuilt(); return result; } @@ -2552,6 +2717,9 @@ public final class ClusterOuterClass { if (other.getMemoryBytes() != 0L) { setMemoryBytes(other.getMemoryBytes()); } + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2702,10 +2870,16 @@ public final class ClusterOuterClass { private java.lang.Object version_ = ""; /** - * string version = 2; + *
+       * Deprecated: Use NodeInfo instead. The version of the node.
+       * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @return The version. */ - public java.lang.String getVersion() { + @java.lang.Deprecated public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -2718,10 +2892,16 @@ public final class ClusterOuterClass { } } /** - * string version = 2; + *
+       * Deprecated: Use NodeInfo instead. The version of the node.
+       * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @return The bytes for version. */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { @@ -2735,11 +2915,17 @@ public final class ClusterOuterClass { } } /** - * string version = 2; + *
+       * Deprecated: Use NodeInfo instead. The version of the node.
+       * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( + @java.lang.Deprecated public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -2750,21 +2936,33 @@ public final class ClusterOuterClass { return this; } /** - * string version = 2; + *
+       * Deprecated: Use NodeInfo instead. The version of the node.
+       * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @return This builder for chaining. */ - public Builder clearVersion() { + @java.lang.Deprecated public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * string version = 2; + *
+       * Deprecated: Use NodeInfo instead. The version of the node.
+       * 
+ * + * string version = 2 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.version is deprecated. + * See greptime/v1/meta/cluster.proto;l=50 * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( + @java.lang.Deprecated public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -2778,10 +2976,16 @@ public final class ClusterOuterClass { private java.lang.Object gitCommit_ = ""; /** - * string git_commit = 3; + *
+       * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+       * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @return The gitCommit. */ - public java.lang.String getGitCommit() { + @java.lang.Deprecated public java.lang.String getGitCommit() { java.lang.Object ref = gitCommit_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -2794,10 +2998,16 @@ public final class ClusterOuterClass { } } /** - * string git_commit = 3; + *
+       * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+       * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @return The bytes for gitCommit. */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getGitCommitBytes() { java.lang.Object ref = gitCommit_; if (ref instanceof String) { @@ -2811,11 +3021,17 @@ public final class ClusterOuterClass { } } /** - * string git_commit = 3; + *
+       * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+       * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @param value The gitCommit to set. * @return This builder for chaining. */ - public Builder setGitCommit( + @java.lang.Deprecated public Builder setGitCommit( java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -2826,21 +3042,33 @@ public final class ClusterOuterClass { return this; } /** - * string git_commit = 3; + *
+       * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+       * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @return This builder for chaining. */ - public Builder clearGitCommit() { + @java.lang.Deprecated public Builder clearGitCommit() { gitCommit_ = getDefaultInstance().getGitCommit(); onChanged(); return this; } /** - * string git_commit = 3; + *
+       * Deprecated: Use NodeInfo instead. The git commit hash of the node.
+       * 
+ * + * string git_commit = 3 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.git_commit is deprecated. + * See greptime/v1/meta/cluster.proto;l=52 * @param value The bytes for gitCommit to set. * @return This builder for chaining. */ - public Builder setGitCommitBytes( + @java.lang.Deprecated public Builder setGitCommitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -2855,26 +3083,30 @@ public final class ClusterOuterClass { private long startTimeMs_ ; /** *
-       * The node start timestamp in milliseconds.
+       * Deprecated: Use NodeInfo instead. The node start timestamp in milliseconds.
        * 
* - * uint64 start_time_ms = 4; + * uint64 start_time_ms = 4 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.start_time_ms is deprecated. + * See greptime/v1/meta/cluster.proto;l=54 * @return The startTimeMs. */ @java.lang.Override - public long getStartTimeMs() { + @java.lang.Deprecated public long getStartTimeMs() { return startTimeMs_; } /** *
-       * The node start timestamp in milliseconds.
+       * Deprecated: Use NodeInfo instead. The node start timestamp in milliseconds.
        * 
* - * uint64 start_time_ms = 4; + * uint64 start_time_ms = 4 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.start_time_ms is deprecated. + * See greptime/v1/meta/cluster.proto;l=54 * @param value The startTimeMs to set. * @return This builder for chaining. */ - public Builder setStartTimeMs(long value) { + @java.lang.Deprecated public Builder setStartTimeMs(long value) { startTimeMs_ = value; onChanged(); @@ -2882,13 +3114,15 @@ public final class ClusterOuterClass { } /** *
-       * The node start timestamp in milliseconds.
+       * Deprecated: Use NodeInfo instead. The node start timestamp in milliseconds.
        * 
* - * uint64 start_time_ms = 4; + * uint64 start_time_ms = 4 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.start_time_ms is deprecated. + * See greptime/v1/meta/cluster.proto;l=54 * @return This builder for chaining. */ - public Builder clearStartTimeMs() { + @java.lang.Deprecated public Builder clearStartTimeMs() { startTimeMs_ = 0L; onChanged(); @@ -2898,26 +3132,30 @@ public final class ClusterOuterClass { private int cpus_ ; /** *
-       * The CPU cores number of the node.
+       * Deprecated: Use NodeInfo instead. The CPU cores number of the node.
        * 
* - * uint32 cpus = 5; + * uint32 cpus = 5 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.cpus is deprecated. + * See greptime/v1/meta/cluster.proto;l=56 * @return The cpus. */ @java.lang.Override - public int getCpus() { + @java.lang.Deprecated public int getCpus() { return cpus_; } /** *
-       * The CPU cores number of the node.
+       * Deprecated: Use NodeInfo instead. The CPU cores number of the node.
        * 
* - * uint32 cpus = 5; + * uint32 cpus = 5 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.cpus is deprecated. + * See greptime/v1/meta/cluster.proto;l=56 * @param value The cpus to set. * @return This builder for chaining. */ - public Builder setCpus(int value) { + @java.lang.Deprecated public Builder setCpus(int value) { cpus_ = value; onChanged(); @@ -2925,13 +3163,15 @@ public final class ClusterOuterClass { } /** *
-       * The CPU cores number of the node.
+       * Deprecated: Use NodeInfo instead. The CPU cores number of the node.
        * 
* - * uint32 cpus = 5; + * uint32 cpus = 5 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.cpus is deprecated. + * See greptime/v1/meta/cluster.proto;l=56 * @return This builder for chaining. */ - public Builder clearCpus() { + @java.lang.Deprecated public Builder clearCpus() { cpus_ = 0; onChanged(); @@ -2941,26 +3181,30 @@ public final class ClusterOuterClass { private long memoryBytes_ ; /** *
-       * The memory bytes of the node.
+       * Deprecated: Use NodeInfo instead. The memory bytes of the node.
        * 
* - * uint64 memory_bytes = 6; + * uint64 memory_bytes = 6 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.memory_bytes is deprecated. + * See greptime/v1/meta/cluster.proto;l=58 * @return The memoryBytes. */ @java.lang.Override - public long getMemoryBytes() { + @java.lang.Deprecated public long getMemoryBytes() { return memoryBytes_; } /** *
-       * The memory bytes of the node.
+       * Deprecated: Use NodeInfo instead. The memory bytes of the node.
        * 
* - * uint64 memory_bytes = 6; + * uint64 memory_bytes = 6 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.memory_bytes is deprecated. + * See greptime/v1/meta/cluster.proto;l=58 * @param value The memoryBytes to set. * @return This builder for chaining. */ - public Builder setMemoryBytes(long value) { + @java.lang.Deprecated public Builder setMemoryBytes(long value) { memoryBytes_ = value; onChanged(); @@ -2968,18 +3212,175 @@ public final class ClusterOuterClass { } /** *
-       * The memory bytes of the node.
+       * Deprecated: Use NodeInfo instead. The memory bytes of the node.
        * 
* - * uint64 memory_bytes = 6; + * uint64 memory_bytes = 6 [deprecated = true]; + * @deprecated greptime.v1.meta.MetasrvNodeInfo.memory_bytes is deprecated. + * See greptime/v1/meta/cluster.proto;l=58 * @return This builder for chaining. */ - public Builder clearMemoryBytes() { + @java.lang.Deprecated public Builder clearMemoryBytes() { memoryBytes_ = 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_; + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + * @return Whether the info field is set. + */ + public boolean hasInfo() { + return infoBuilder_ != null || info_ != null; + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + * @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(); + } + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + 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; + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + public Builder setInfo( + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + onChanged(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + 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; + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = null; + onChanged(); + } else { + info_ = null; + infoBuilder_ = null; + } + + return this; + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + public greptime.v1.meta.HeartbeatOuterClass.NodeInfo.Builder getInfoBuilder() { + + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + public greptime.v1.meta.HeartbeatOuterClass.NodeInfoOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null ? + greptime.v1.meta.HeartbeatOuterClass.NodeInfo.getDefaultInstance() : info_; + } + } + /** + *
+       * The node info.
+       * 
+ * + * .greptime.v1.meta.NodeInfo info = 7; + */ + 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) { @@ -3059,31 +3460,34 @@ public final class ClusterOuterClass { java.lang.String[] descriptorData = { "\n\036greptime/v1/meta/cluster.proto\022\020grepti" + "me.v1.meta\032\035greptime/v1/meta/common.prot" + - "o\032\034greptime/v1/meta/store.proto\"F\n\023Metas" + - "rvPeersRequest\022/\n\006header\030\001 \001(\0132\037.greptim" + - "e.v1.meta.RequestHeader\"\261\001\n\024MetasrvPeers" + - "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" + - "eta.ResponseHeader\0221\n\006leader\030\002 \001(\0132!.gre" + - "ptime.v1.meta.MetasrvNodeInfo\0224\n\tfollowe" + - "rs\030\003 \003(\0132!.greptime.v1.meta.MetasrvNodeI" + - "nfo\"\227\001\n\017MetasrvNodeInfo\022$\n\004peer\030\001 \001(\0132\026." + - "greptime.v1.meta.Peer\022\017\n\007version\030\002 \001(\t\022\022" + - "\n\ngit_commit\030\003 \001(\t\022\025\n\rstart_time_ms\030\004 \001(" + - "\004\022\014\n\004cpus\030\005 \001(\r\022\024\n\014memory_bytes\030\006 \001(\0042\205\002" + - "\n\007Cluster\022Q\n\010BatchGet\022!.greptime.v1.meta" + - ".BatchGetRequest\032\".greptime.v1.meta.Batc" + - "hGetResponse\022H\n\005Range\022\036.greptime.v1.meta" + - ".RangeRequest\032\037.greptime.v1.meta.RangeRe" + - "sponse\022]\n\014MetasrvPeers\022%.greptime.v1.met" + - "a.MetasrvPeersRequest\032&.greptime.v1.meta" + - ".MetasrvPeersResponseB + * The hostname of the node. + * + * + * string hostname = 6; + * @return The hostname. + */ + java.lang.String getHostname(); + /** + *
+     * The hostname of the node.
+     * 
+ * + * string hostname = 6; + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString + getHostnameBytes(); } /** * Protobuf type {@code greptime.v1.meta.NodeInfo} @@ -6179,6 +6199,7 @@ com.google.protobuf.ByteString defaultValue); private NodeInfo() { version_ = ""; gitCommit_ = ""; + hostname_ = ""; } @java.lang.Override @@ -6238,6 +6259,12 @@ com.google.protobuf.ByteString defaultValue); memoryBytes_ = input.readUInt64(); break; } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + hostname_ = s; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -6409,6 +6436,52 @@ com.google.protobuf.ByteString defaultValue); return memoryBytes_; } + public static final int HOSTNAME_FIELD_NUMBER = 6; + private volatile java.lang.Object hostname_; + /** + *
+     * The hostname of the node.
+     * 
+ * + * string hostname = 6; + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + *
+     * The hostname of the node.
+     * 
+ * + * string hostname = 6; + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -6438,6 +6511,9 @@ com.google.protobuf.ByteString defaultValue); if (memoryBytes_ != 0L) { output.writeUInt64(5, memoryBytes_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hostname_); + } unknownFields.writeTo(output); } @@ -6465,6 +6541,9 @@ com.google.protobuf.ByteString defaultValue); size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, memoryBytes_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hostname_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6490,6 +6569,8 @@ com.google.protobuf.ByteString defaultValue); != other.getCpus()) return false; if (getMemoryBytes() != other.getMemoryBytes()) return false; + if (!getHostname() + .equals(other.getHostname())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6513,6 +6594,8 @@ com.google.protobuf.ByteString defaultValue); hash = (37 * hash) + MEMORY_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemoryBytes()); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -6656,6 +6739,8 @@ com.google.protobuf.ByteString defaultValue); memoryBytes_ = 0L; + hostname_ = ""; + return this; } @@ -6687,6 +6772,7 @@ com.google.protobuf.ByteString defaultValue); result.startTimeMs_ = startTimeMs_; result.cpus_ = cpus_; result.memoryBytes_ = memoryBytes_; + result.hostname_ = hostname_; onBuilt(); return result; } @@ -6752,6 +6838,10 @@ com.google.protobuf.ByteString defaultValue); if (other.getMemoryBytes() != 0L) { setMemoryBytes(other.getMemoryBytes()); } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -7101,6 +7191,102 @@ com.google.protobuf.ByteString defaultValue); onChanged(); return this; } + + private java.lang.Object hostname_ = ""; + /** + *
+       * The hostname of the node.
+       * 
+ * + * string hostname = 6; + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The hostname of the node.
+       * 
+ * + * string hostname = 6; + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The hostname of the node.
+       * 
+ * + * string hostname = 6; + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hostname_ = value; + onChanged(); + return this; + } + /** + *
+       * The hostname of the node.
+       * 
+ * + * string hostname = 6; + * @return This builder for chaining. + */ + public Builder clearHostname() { + + hostname_ = getDefaultInstance().getHostname(); + onChanged(); + return this; + } + /** + *
+       * The hostname of the node.
+       * 
+ * + * string hostname = 6; + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16609,55 +16795,55 @@ com.google.protobuf.ByteString defaultValue); "8\001B\020\n\016node_workloads\"\"\n\021DatanodeWorkload" + "s\022\r\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n" + "\005types\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005typ" + - "es\030\001 \003(\005\"j\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n" + + "es\030\001 \003(\005\"|\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n" + "\ngit_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001(\004" + - "\022\014\n\004cpus\030\004 \001(\r\022\024\n\014memory_bytes\030\005 \001(\004\"\207\002\n" + - "\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\021approximate_bytes\030" + - "\004 \001(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.gr" + - "eptime.v1.meta.RegionRole\022@\n\nextensions\030" + - "c \003(\0132,.greptime.v1.meta.RegionStat.Exte" + - "nsionsEntry\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"a\n\tTopicStat\022\022\n\nt" + - "opic_name\030\001 \001(\t\022\023\n\013record_size\030\002 \001(\004\022\022\n\n" + - "record_num\030\003 \001(\004\022\027\n\017latest_entry_id\030\004 \001(" + - "\004\"\227\002\n\010FlowStat\022D\n\016flow_stat_size\030\001 \003(\0132," + - ".greptime.v1.meta.FlowStat.FlowStatSizeE" + - "ntry\022T\n\027flow_last_exec_time_map\030\002 \003(\01323." + - "greptime.v1.meta.FlowStat.FlowLastExecTi" + - "meMapEntry\0323\n\021FlowStatSizeEntry\022\013\n\003key\030\001" + - " \001(\r\022\r\n\005value\030\002 \001(\004:\0028\001\032:\n\030FlowLastExecT" + - "imeMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:" + - "\0028\001\"\265\001\n\021HeartbeatResponse\0220\n\006header\030\001 \001(" + - "\0132 .greptime.v1.meta.ResponseHeader\0229\n\017m" + - "ailbox_message\030\002 \001(\0132 .greptime.v1.meta." + - "MailboxMessage\0223\n\014region_lease\030\003 \001(\0132\035.g" + - "reptime.v1.meta.RegionLease\"\306\001\n\rGrantedR" + - "egion\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034" + - ".greptime.v1.meta.RegionRole\022C\n\nextensio" + - "ns\030c \003(\0132/.greptime.v1.meta.GrantedRegio" + - "n.ExtensionsEntry\0321\n\017ExtensionsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\222\001\n\013RegionL" + - "ease\0220\n\007regions\030\001 \003(\0132\037.greptime.v1.meta" + - ".GrantedRegion\022\034\n\024duration_since_epoch\030\002" + - " \001(\004\022\025\n\rlease_seconds\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.greptime.v1.meta.Request" + - "Header\"m\n\021AskLeaderResponse\0220\n\006header\030\001 " + - "\001(\0132 .greptime.v1.meta.ResponseHeader\022&\n" + - "\006leader\030\002 \001(\0132\026.greptime.v1.meta.Peer\"|\n" + - "\016MailboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007subject\030\002" + - " \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timest" + - "amp_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000B\t\n\007payl" + - "oad*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n\010Followe" + - "r\020\001\022\025\n\021DowngradingLeader\020\0022\277\001\n\tHeartbeat" + - "\022Z\n\tHeartbeat\022\".greptime.v1.meta.Heartbe" + - "atRequest\032#.greptime.v1.meta.HeartbeatRe" + - "sponse\"\000(\0010\001\022V\n\tAskLeader\022\".greptime.v1." + - "meta.AskLeaderRequest\032#.greptime.v1.meta" + - ".AskLeaderResponse\"\000B