feat: adds node info to heartbeat request (#160)

This commit is contained in:
dennis zhuang
2024-04-30 11:21:05 +08:00
committed by GitHub
parent b5412f7225
commit f699e240f7
5 changed files with 2236 additions and 253 deletions
+405 -49
View File
@@ -30,6 +30,7 @@ PROTOBUF_CONSTEXPR HeartbeatRequest::HeartbeatRequest(
, /*decltype(_impl_.peer_)*/nullptr
, /*decltype(_impl_.report_interval_)*/nullptr
, /*decltype(_impl_.mailbox_message_)*/nullptr
, /*decltype(_impl_.info_)*/nullptr
, /*decltype(_impl_.duration_since_epoch_)*/uint64_t{0u}
, /*decltype(_impl_.node_epoch_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
@@ -42,6 +43,21 @@ struct HeartbeatRequestDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeartbeatRequestDefaultTypeInternal _HeartbeatRequest_default_instance_;
PROTOBUF_CONSTEXPR NodeInfo::NodeInfo(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.git_commit_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.start_time_ms_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct NodeInfoDefaultTypeInternal {
PROTOBUF_CONSTEXPR NodeInfoDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~NodeInfoDefaultTypeInternal() {}
union {
NodeInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NodeInfoDefaultTypeInternal _NodeInfo_default_instance_;
PROTOBUF_CONSTEXPR RegionStat::RegionStat(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
@@ -156,7 +172,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace meta
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto[1];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto = nullptr;
@@ -174,6 +190,16 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.mailbox_message_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.duration_since_epoch_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.node_epoch_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.info_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.version_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.git_commit_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.start_time_ms_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _internal_metadata_),
~0u, // no _extensions_
@@ -245,17 +271,19 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::meta::HeartbeatRequest)},
{ 13, -1, -1, sizeof(::greptime::v1::meta::RegionStat)},
{ 26, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)},
{ 35, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)},
{ 43, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
{ 53, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
{ 60, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
{ 68, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
{ 14, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)},
{ 23, -1, -1, sizeof(::greptime::v1::meta::RegionStat)},
{ 36, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)},
{ 45, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)},
{ 53, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
{ 63, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
{ 70, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
{ 78, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::meta::_HeartbeatRequest_default_instance_._instance,
&::greptime::v1::meta::_NodeInfo_default_instance_._instance,
&::greptime::v1::meta::_RegionStat_default_instance_._instance,
&::greptime::v1::meta::_HeartbeatResponse_default_instance_._instance,
&::greptime::v1::meta::_GrantedRegion_default_instance_._instance,
@@ -268,7 +296,7 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n greptime/v1/meta/heartbeat.proto\022\020grep"
"time.v1.meta\032\035greptime/v1/meta/common.pr"
"oto\"\303\002\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013"
"oto\"\355\002\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013"
"2\037.greptime.v1.meta.RequestHeader\022$\n\004pee"
"r\030\002 \001(\0132\026.greptime.v1.meta.Peer\0227\n\017repor"
"t_interval\030\003 \001(\0132\036.greptime.v1.meta.Time"
@@ -276,46 +304,49 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[]
"e.v1.meta.RegionStat\0229\n\017mailbox_message\030"
"\005 \001(\0132 .greptime.v1.meta.MailboxMessage\022"
"\034\n\024duration_since_epoch\030\006 \001(\004\022\022\n\nnode_ep"
"och\030\007 \001(\004\"\254\001\n\nRegionStat\022\021\n\tregion_id\030\001 "
"\001(\004\022\014\n\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021appro"
"ximate_bytes\030\004 \001(\003\022\030\n\020approximate_rows\030\005"
" \001(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.gre"
"ptime.v1.meta.RegionRole\"\265\001\n\021HeartbeatRe"
"sponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.met"
"a.ResponseHeader\0229\n\017mailbox_message\030\002 \001("
"\0132 .greptime.v1.meta.MailboxMessage\0223\n\014r"
"egion_lease\030\003 \001(\0132\035.greptime.v1.meta.Reg"
"ionLease\"N\n\rGrantedRegion\022\021\n\tregion_id\030\001"
" \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta.Re"
"gionRole\"\222\001\n\013RegionLease\0220\n\007regions\030\001 \003("
"\0132\037.greptime.v1.meta.GrantedRegion\022\034\n\024du"
"ration_since_epoch\030\002 \001(\004\022\025\n\rlease_second"
"s\030\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004\"C\n"
"\020AskLeaderRequest\022/\n\006header\030\001 \001(\0132\037.grep"
"time.v1.meta.RequestHeader\"m\n\021AskLeaderR"
"esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me"
"ta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.grep"
"time.v1.meta.Peer\"|\n\016MailboxMessage\022\n\n\002i"
"d\030\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t\022\n"
"\n\002to\030\004 \001(\t\022\030\n\020timestamp_millis\030\005 \001(\003\022\016\n\004"
"json\030\006 \001(\tH\000B\t\n\007payload*&\n\nRegionRole\022\n\n"
"\006Leader\020\000\022\014\n\010Follower\020\0012\277\001\n\tHeartbeat\022Z\n"
"\tHeartbeat\022\".greptime.v1.meta.HeartbeatR"
"equest\032#.greptime.v1.meta.HeartbeatRespo"
"nse\"\000(\0010\001\022V\n\tAskLeader\022\".greptime.v1.met"
"a.AskLeaderRequest\032#.greptime.v1.meta.As"
"kLeaderResponse\"\000B<Z:github.com/Greptime"
"Team/greptime-proto/go/greptime/v1/metab"
"\006proto3"
"och\030\007 \001(\004\022(\n\004info\030\010 \001(\0132\032.greptime.v1.me"
"ta.NodeInfo\"F\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\"\254\001\n\nRegionStat\022\021\n\tregion_id\030\001 \001(\004\022\014\n"
"\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021approximate"
"_bytes\030\004 \001(\003\022\030\n\020approximate_rows\030\005 \001(\003\022\016"
"\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001(\0162\034.greptime."
"v1.meta.RegionRole\"\265\001\n\021HeartbeatResponse"
"\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.Resp"
"onseHeader\0229\n\017mailbox_message\030\002 \001(\0132 .gr"
"eptime.v1.meta.MailboxMessage\0223\n\014region_"
"lease\030\003 \001(\0132\035.greptime.v1.meta.RegionLea"
"se\"N\n\rGrantedRegion\022\021\n\tregion_id\030\001 \001(\004\022*"
"\n\004role\030\002 \001(\0162\034.greptime.v1.meta.RegionRo"
"le\"\222\001\n\013RegionLease\0220\n\007regions\030\001 \003(\0132\037.gr"
"eptime.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\020AskLe"
"aderRequest\022/\n\006header\030\001 \001(\0132\037.greptime.v"
"1.meta.RequestHeader\"m\n\021AskLeaderRespons"
"e\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.Res"
"ponseHeader\022&\n\006leader\030\002 \001(\0132\026.greptime.v"
"1.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\020timestamp_millis\030\005 \001(\003\022\016\n\004json\030\006"
" \001(\tH\000B\t\n\007payload*&\n\nRegionRole\022\n\n\006Leade"
"r\020\000\022\014\n\010Follower\020\0012\277\001\n\tHeartbeat\022Z\n\tHeart"
"beat\022\".greptime.v1.meta.HeartbeatRequest"
"\032#.greptime.v1.meta.HeartbeatResponse\"\000("
"\0010\001\022V\n\tAskLeader\022\".greptime.v1.meta.AskL"
"eaderRequest\032#.greptime.v1.meta.AskLeade"
"rResponse\"\000B<Z:github.com/GreptimeTeam/g"
"reptime-proto/go/greptime/v1/metab\006proto"
"3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto = {
false, false, 1607, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
false, false, 1721, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
"greptime/v1/meta/heartbeat.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 8,
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 9,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
@@ -352,6 +383,7 @@ class HeartbeatRequest::_Internal {
static const ::greptime::v1::meta::Peer& peer(const HeartbeatRequest* msg);
static const ::greptime::v1::meta::TimeInterval& report_interval(const HeartbeatRequest* msg);
static const ::greptime::v1::meta::MailboxMessage& mailbox_message(const HeartbeatRequest* msg);
static const ::greptime::v1::meta::NodeInfo& info(const HeartbeatRequest* msg);
};
const ::greptime::v1::meta::RequestHeader&
@@ -370,6 +402,10 @@ const ::greptime::v1::meta::MailboxMessage&
HeartbeatRequest::_Internal::mailbox_message(const HeartbeatRequest* msg) {
return *msg->_impl_.mailbox_message_;
}
const ::greptime::v1::meta::NodeInfo&
HeartbeatRequest::_Internal::info(const HeartbeatRequest* msg) {
return *msg->_impl_.info_;
}
void HeartbeatRequest::clear_header() {
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
@@ -403,6 +439,7 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from)
, decltype(_impl_.peer_){nullptr}
, decltype(_impl_.report_interval_){nullptr}
, decltype(_impl_.mailbox_message_){nullptr}
, decltype(_impl_.info_){nullptr}
, decltype(_impl_.duration_since_epoch_){}
, decltype(_impl_.node_epoch_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -420,6 +457,9 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from)
if (from._internal_has_mailbox_message()) {
_this->_impl_.mailbox_message_ = new ::greptime::v1::meta::MailboxMessage(*from._impl_.mailbox_message_);
}
if (from._internal_has_info()) {
_this->_impl_.info_ = new ::greptime::v1::meta::NodeInfo(*from._impl_.info_);
}
::memcpy(&_impl_.duration_since_epoch_, &from._impl_.duration_since_epoch_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.node_epoch_) -
reinterpret_cast<char*>(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_));
@@ -436,6 +476,7 @@ inline void HeartbeatRequest::SharedCtor(
, decltype(_impl_.peer_){nullptr}
, decltype(_impl_.report_interval_){nullptr}
, decltype(_impl_.mailbox_message_){nullptr}
, decltype(_impl_.info_){nullptr}
, decltype(_impl_.duration_since_epoch_){uint64_t{0u}}
, decltype(_impl_.node_epoch_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
@@ -458,6 +499,7 @@ inline void HeartbeatRequest::SharedDtor() {
if (this != internal_default_instance()) delete _impl_.peer_;
if (this != internal_default_instance()) delete _impl_.report_interval_;
if (this != internal_default_instance()) delete _impl_.mailbox_message_;
if (this != internal_default_instance()) delete _impl_.info_;
}
void HeartbeatRequest::SetCachedSize(int size) const {
@@ -487,6 +529,10 @@ void HeartbeatRequest::Clear() {
delete _impl_.mailbox_message_;
}
_impl_.mailbox_message_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.info_ != nullptr) {
delete _impl_.info_;
}
_impl_.info_ = nullptr;
::memset(&_impl_.duration_since_epoch_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.node_epoch_) -
reinterpret_cast<char*>(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_));
@@ -560,6 +606,14 @@ const char* HeartbeatRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte
} else
goto handle_unusual;
continue;
// .greptime.v1.meta.NodeInfo info = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
ptr = ctx->ParseMessage(_internal_mutable_info(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -637,6 +691,13 @@ uint8_t* HeartbeatRequest::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_node_epoch(), target);
}
// .greptime.v1.meta.NodeInfo info = 8;
if (this->_internal_has_info()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(8, _Internal::info(this),
_Internal::info(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -688,6 +749,13 @@ size_t HeartbeatRequest::ByteSizeLong() const {
*_impl_.mailbox_message_);
}
// .greptime.v1.meta.NodeInfo info = 8;
if (this->_internal_has_info()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.info_);
}
// uint64 duration_since_epoch = 6;
if (this->_internal_duration_since_epoch() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_duration_since_epoch());
@@ -733,6 +801,10 @@ void HeartbeatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
_this->_internal_mutable_mailbox_message()->::greptime::v1::meta::MailboxMessage::MergeFrom(
from._internal_mailbox_message());
}
if (from._internal_has_info()) {
_this->_internal_mutable_info()->::greptime::v1::meta::NodeInfo::MergeFrom(
from._internal_info());
}
if (from._internal_duration_since_epoch() != 0) {
_this->_internal_set_duration_since_epoch(from._internal_duration_since_epoch());
}
@@ -773,6 +845,286 @@ void HeartbeatRequest::InternalSwap(HeartbeatRequest* other) {
// ===================================================================
class NodeInfo::_Internal {
public:
};
NodeInfo::NodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.NodeInfo)
}
NodeInfo::NodeInfo(const NodeInfo& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
NodeInfo* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.version_){}
, decltype(_impl_.git_commit_){}
, decltype(_impl_.start_time_ms_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.version_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.version_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_version().empty()) {
_this->_impl_.version_.Set(from._internal_version(),
_this->GetArenaForAllocation());
}
_impl_.git_commit_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.git_commit_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_git_commit().empty()) {
_this->_impl_.git_commit_.Set(from._internal_git_commit(),
_this->GetArenaForAllocation());
}
_this->_impl_.start_time_ms_ = from._impl_.start_time_ms_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.NodeInfo)
}
inline void NodeInfo::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.version_){}
, decltype(_impl_.git_commit_){}
, decltype(_impl_.start_time_ms_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.version_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.version_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.git_commit_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.git_commit_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
NodeInfo::~NodeInfo() {
// @@protoc_insertion_point(destructor:greptime.v1.meta.NodeInfo)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void NodeInfo::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.version_.Destroy();
_impl_.git_commit_.Destroy();
}
void NodeInfo::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void NodeInfo::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.NodeInfo)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.version_.ClearToEmpty();
_impl_.git_commit_.ClearToEmpty();
_impl_.start_time_ms_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* NodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// string version = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_version();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.NodeInfo.version"));
} else
goto handle_unusual;
continue;
// string git_commit = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_git_commit();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.NodeInfo.git_commit"));
} else
goto handle_unusual;
continue;
// uint64 start_time_ms = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
_impl_.start_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* NodeInfo::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.NodeInfo)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// string version = 1;
if (!this->_internal_version().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_version().data(), static_cast<int>(this->_internal_version().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.meta.NodeInfo.version");
target = stream->WriteStringMaybeAliased(
1, this->_internal_version(), target);
}
// string git_commit = 2;
if (!this->_internal_git_commit().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_git_commit().data(), static_cast<int>(this->_internal_git_commit().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.meta.NodeInfo.git_commit");
target = stream->WriteStringMaybeAliased(
2, this->_internal_git_commit(), target);
}
// uint64 start_time_ms = 3;
if (this->_internal_start_time_ms() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_start_time_ms(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.NodeInfo)
return target;
}
size_t NodeInfo::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.NodeInfo)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string version = 1;
if (!this->_internal_version().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_version());
}
// string git_commit = 2;
if (!this->_internal_git_commit().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_git_commit());
}
// uint64 start_time_ms = 3;
if (this->_internal_start_time_ms() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NodeInfo::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
NodeInfo::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NodeInfo::GetClassData() const { return &_class_data_; }
void NodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<NodeInfo*>(&to_msg);
auto& from = static_cast<const NodeInfo&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.NodeInfo)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_version().empty()) {
_this->_internal_set_version(from._internal_version());
}
if (!from._internal_git_commit().empty()) {
_this->_internal_set_git_commit(from._internal_git_commit());
}
if (from._internal_start_time_ms() != 0) {
_this->_internal_set_start_time_ms(from._internal_start_time_ms());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void NodeInfo::CopyFrom(const NodeInfo& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.NodeInfo)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NodeInfo::IsInitialized() const {
return true;
}
void NodeInfo::InternalSwap(NodeInfo* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.version_, lhs_arena,
&other->_impl_.version_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.git_commit_, lhs_arena,
&other->_impl_.git_commit_, rhs_arena
);
swap(_impl_.start_time_ms_, other->_impl_.start_time_ms_);
}
::PROTOBUF_NAMESPACE_ID::Metadata NodeInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[1]);
}
// ===================================================================
class RegionStat::_Internal {
public:
};
@@ -1130,7 +1482,7 @@ void RegionStat::InternalSwap(RegionStat* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RegionStat::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[1]);
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[2]);
}
// ===================================================================
@@ -1416,7 +1768,7 @@ void HeartbeatResponse::InternalSwap(HeartbeatResponse* other) {
::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[2]);
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[3]);
}
// ===================================================================
@@ -1630,7 +1982,7 @@ void GrantedRegion::InternalSwap(GrantedRegion* other) {
::PROTOBUF_NAMESPACE_ID::Metadata GrantedRegion::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[3]);
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[4]);
}
// ===================================================================
@@ -1917,7 +2269,7 @@ void RegionLease::InternalSwap(RegionLease* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RegionLease::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[4]);
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[5]);
}
// ===================================================================
@@ -2116,7 +2468,7 @@ void AskLeaderRequest::InternalSwap(AskLeaderRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[5]);
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]);
}
// ===================================================================
@@ -2367,7 +2719,7 @@ void AskLeaderResponse::InternalSwap(AskLeaderResponse* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]);
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]);
}
// ===================================================================
@@ -2807,7 +3159,7 @@ void MailboxMessage::InternalSwap(MailboxMessage* other) {
::PROTOBUF_NAMESPACE_ID::Metadata MailboxMessage::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]);
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]);
}
// @@protoc_insertion_point(namespace_scope)
@@ -2819,6 +3171,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatRequest*
Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatRequest >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::NodeInfo*
Arena::CreateMaybeMessage< ::greptime::v1::meta::NodeInfo >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::NodeInfo >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RegionStat*
Arena::CreateMaybeMessage< ::greptime::v1::meta::RegionStat >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::RegionStat >(arena);
+427 -7
View File
@@ -67,6 +67,9 @@ extern HeartbeatResponseDefaultTypeInternal _HeartbeatResponse_default_instance_
class MailboxMessage;
struct MailboxMessageDefaultTypeInternal;
extern MailboxMessageDefaultTypeInternal _MailboxMessage_default_instance_;
class NodeInfo;
struct NodeInfoDefaultTypeInternal;
extern NodeInfoDefaultTypeInternal _NodeInfo_default_instance_;
class RegionLease;
struct RegionLeaseDefaultTypeInternal;
extern RegionLeaseDefaultTypeInternal _RegionLease_default_instance_;
@@ -83,6 +86,7 @@ template<> ::greptime::v1::meta::GrantedRegion* Arena::CreateMaybeMessage<::grep
template<> ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest>(Arena*);
template<> ::greptime::v1::meta::HeartbeatResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatResponse>(Arena*);
template<> ::greptime::v1::meta::MailboxMessage* Arena::CreateMaybeMessage<::greptime::v1::meta::MailboxMessage>(Arena*);
template<> ::greptime::v1::meta::NodeInfo* Arena::CreateMaybeMessage<::greptime::v1::meta::NodeInfo>(Arena*);
template<> ::greptime::v1::meta::RegionLease* Arena::CreateMaybeMessage<::greptime::v1::meta::RegionLease>(Arena*);
template<> ::greptime::v1::meta::RegionStat* Arena::CreateMaybeMessage<::greptime::v1::meta::RegionStat>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
@@ -243,6 +247,7 @@ class HeartbeatRequest final :
kPeerFieldNumber = 2,
kReportIntervalFieldNumber = 3,
kMailboxMessageFieldNumber = 5,
kInfoFieldNumber = 8,
kDurationSinceEpochFieldNumber = 6,
kNodeEpochFieldNumber = 7,
};
@@ -336,6 +341,24 @@ class HeartbeatRequest final :
::greptime::v1::meta::MailboxMessage* mailbox_message);
::greptime::v1::meta::MailboxMessage* unsafe_arena_release_mailbox_message();
// .greptime.v1.meta.NodeInfo info = 8;
bool has_info() const;
private:
bool _internal_has_info() const;
public:
void clear_info();
const ::greptime::v1::meta::NodeInfo& info() const;
PROTOBUF_NODISCARD ::greptime::v1::meta::NodeInfo* release_info();
::greptime::v1::meta::NodeInfo* mutable_info();
void set_allocated_info(::greptime::v1::meta::NodeInfo* info);
private:
const ::greptime::v1::meta::NodeInfo& _internal_info() const;
::greptime::v1::meta::NodeInfo* _internal_mutable_info();
public:
void unsafe_arena_set_allocated_info(
::greptime::v1::meta::NodeInfo* info);
::greptime::v1::meta::NodeInfo* unsafe_arena_release_info();
// uint64 duration_since_epoch = 6;
void clear_duration_since_epoch();
uint64_t duration_since_epoch() const;
@@ -367,6 +390,7 @@ class HeartbeatRequest final :
::greptime::v1::meta::Peer* peer_;
::greptime::v1::meta::TimeInterval* report_interval_;
::greptime::v1::meta::MailboxMessage* mailbox_message_;
::greptime::v1::meta::NodeInfo* info_;
uint64_t duration_since_epoch_;
uint64_t node_epoch_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -376,6 +400,186 @@ class HeartbeatRequest final :
};
// -------------------------------------------------------------------
class NodeInfo final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.NodeInfo) */ {
public:
inline NodeInfo() : NodeInfo(nullptr) {}
~NodeInfo() override;
explicit PROTOBUF_CONSTEXPR NodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
NodeInfo(const NodeInfo& from);
NodeInfo(NodeInfo&& from) noexcept
: NodeInfo() {
*this = ::std::move(from);
}
inline NodeInfo& operator=(const NodeInfo& from) {
CopyFrom(from);
return *this;
}
inline NodeInfo& operator=(NodeInfo&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const NodeInfo& default_instance() {
return *internal_default_instance();
}
static inline const NodeInfo* internal_default_instance() {
return reinterpret_cast<const NodeInfo*>(
&_NodeInfo_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(NodeInfo& a, NodeInfo& b) {
a.Swap(&b);
}
inline void Swap(NodeInfo* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(NodeInfo* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
NodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<NodeInfo>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const NodeInfo& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const NodeInfo& from) {
NodeInfo::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(NodeInfo* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.meta.NodeInfo";
}
protected:
explicit NodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kVersionFieldNumber = 1,
kGitCommitFieldNumber = 2,
kStartTimeMsFieldNumber = 3,
};
// string version = 1;
void clear_version();
const std::string& version() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_version(ArgT0&& arg0, ArgT... args);
std::string* mutable_version();
PROTOBUF_NODISCARD std::string* release_version();
void set_allocated_version(std::string* version);
private:
const std::string& _internal_version() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value);
std::string* _internal_mutable_version();
public:
// string git_commit = 2;
void clear_git_commit();
const std::string& git_commit() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_git_commit(ArgT0&& arg0, ArgT... args);
std::string* mutable_git_commit();
PROTOBUF_NODISCARD std::string* release_git_commit();
void set_allocated_git_commit(std::string* git_commit);
private:
const std::string& _internal_git_commit() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_git_commit(const std::string& value);
std::string* _internal_mutable_git_commit();
public:
// uint64 start_time_ms = 3;
void clear_start_time_ms();
uint64_t start_time_ms() const;
void set_start_time_ms(uint64_t value);
private:
uint64_t _internal_start_time_ms() const;
void _internal_set_start_time_ms(uint64_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.meta.NodeInfo)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr git_commit_;
uint64_t start_time_ms_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto;
};
// -------------------------------------------------------------------
class RegionStat final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.RegionStat) */ {
public:
@@ -424,7 +628,7 @@ class RegionStat final :
&_RegionStat_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
2;
friend void swap(RegionStat& a, RegionStat& b) {
a.Swap(&b);
@@ -643,7 +847,7 @@ class HeartbeatResponse final :
&_HeartbeatResponse_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
3;
friend void swap(HeartbeatResponse& a, HeartbeatResponse& b) {
a.Swap(&b);
@@ -840,7 +1044,7 @@ class GrantedRegion final :
&_GrantedRegion_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
4;
friend void swap(GrantedRegion& a, GrantedRegion& b) {
a.Swap(&b);
@@ -999,7 +1203,7 @@ class RegionLease final :
&_RegionLease_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
5;
friend void swap(RegionLease& a, RegionLease& b) {
a.Swap(&b);
@@ -1203,7 +1407,7 @@ class AskLeaderRequest final :
&_AskLeaderRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
6;
friend void swap(AskLeaderRequest& a, AskLeaderRequest& b) {
a.Swap(&b);
@@ -1360,7 +1564,7 @@ class AskLeaderResponse final :
&_AskLeaderResponse_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
7;
friend void swap(AskLeaderResponse& a, AskLeaderResponse& b) {
a.Swap(&b);
@@ -1542,7 +1746,7 @@ class MailboxMessage final :
&_MailboxMessage_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
8;
friend void swap(MailboxMessage& a, MailboxMessage& b) {
a.Swap(&b);
@@ -2167,6 +2371,220 @@ inline void HeartbeatRequest::set_node_epoch(uint64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.meta.HeartbeatRequest.node_epoch)
}
// .greptime.v1.meta.NodeInfo info = 8;
inline bool HeartbeatRequest::_internal_has_info() const {
return this != internal_default_instance() && _impl_.info_ != nullptr;
}
inline bool HeartbeatRequest::has_info() const {
return _internal_has_info();
}
inline void HeartbeatRequest::clear_info() {
if (GetArenaForAllocation() == nullptr && _impl_.info_ != nullptr) {
delete _impl_.info_;
}
_impl_.info_ = nullptr;
}
inline const ::greptime::v1::meta::NodeInfo& HeartbeatRequest::_internal_info() const {
const ::greptime::v1::meta::NodeInfo* p = _impl_.info_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::NodeInfo&>(
::greptime::v1::meta::_NodeInfo_default_instance_);
}
inline const ::greptime::v1::meta::NodeInfo& HeartbeatRequest::info() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.HeartbeatRequest.info)
return _internal_info();
}
inline void HeartbeatRequest::unsafe_arena_set_allocated_info(
::greptime::v1::meta::NodeInfo* info) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.info_);
}
_impl_.info_ = info;
if (info) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.HeartbeatRequest.info)
}
inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::release_info() {
::greptime::v1::meta::NodeInfo* temp = _impl_.info_;
_impl_.info_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::unsafe_arena_release_info() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.HeartbeatRequest.info)
::greptime::v1::meta::NodeInfo* temp = _impl_.info_;
_impl_.info_ = nullptr;
return temp;
}
inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::_internal_mutable_info() {
if (_impl_.info_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::meta::NodeInfo>(GetArenaForAllocation());
_impl_.info_ = p;
}
return _impl_.info_;
}
inline ::greptime::v1::meta::NodeInfo* HeartbeatRequest::mutable_info() {
::greptime::v1::meta::NodeInfo* _msg = _internal_mutable_info();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.HeartbeatRequest.info)
return _msg;
}
inline void HeartbeatRequest::set_allocated_info(::greptime::v1::meta::NodeInfo* info) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.info_;
}
if (info) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(info);
if (message_arena != submessage_arena) {
info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, info, submessage_arena);
}
} else {
}
_impl_.info_ = info;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.HeartbeatRequest.info)
}
// -------------------------------------------------------------------
// NodeInfo
// string version = 1;
inline void NodeInfo::clear_version() {
_impl_.version_.ClearToEmpty();
}
inline const std::string& NodeInfo::version() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.version)
return _internal_version();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void NodeInfo::set_version(ArgT0&& arg0, ArgT... args) {
_impl_.version_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.version)
}
inline std::string* NodeInfo::mutable_version() {
std::string* _s = _internal_mutable_version();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.NodeInfo.version)
return _s;
}
inline const std::string& NodeInfo::_internal_version() const {
return _impl_.version_.Get();
}
inline void NodeInfo::_internal_set_version(const std::string& value) {
_impl_.version_.Set(value, GetArenaForAllocation());
}
inline std::string* NodeInfo::_internal_mutable_version() {
return _impl_.version_.Mutable(GetArenaForAllocation());
}
inline std::string* NodeInfo::release_version() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.NodeInfo.version)
return _impl_.version_.Release();
}
inline void NodeInfo::set_allocated_version(std::string* version) {
if (version != nullptr) {
} else {
}
_impl_.version_.SetAllocated(version, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.version_.IsDefault()) {
_impl_.version_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.NodeInfo.version)
}
// string git_commit = 2;
inline void NodeInfo::clear_git_commit() {
_impl_.git_commit_.ClearToEmpty();
}
inline const std::string& NodeInfo::git_commit() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.git_commit)
return _internal_git_commit();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void NodeInfo::set_git_commit(ArgT0&& arg0, ArgT... args) {
_impl_.git_commit_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.git_commit)
}
inline std::string* NodeInfo::mutable_git_commit() {
std::string* _s = _internal_mutable_git_commit();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.NodeInfo.git_commit)
return _s;
}
inline const std::string& NodeInfo::_internal_git_commit() const {
return _impl_.git_commit_.Get();
}
inline void NodeInfo::_internal_set_git_commit(const std::string& value) {
_impl_.git_commit_.Set(value, GetArenaForAllocation());
}
inline std::string* NodeInfo::_internal_mutable_git_commit() {
return _impl_.git_commit_.Mutable(GetArenaForAllocation());
}
inline std::string* NodeInfo::release_git_commit() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.NodeInfo.git_commit)
return _impl_.git_commit_.Release();
}
inline void NodeInfo::set_allocated_git_commit(std::string* git_commit) {
if (git_commit != nullptr) {
} else {
}
_impl_.git_commit_.SetAllocated(git_commit, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.git_commit_.IsDefault()) {
_impl_.git_commit_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.NodeInfo.git_commit)
}
// uint64 start_time_ms = 3;
inline void NodeInfo::clear_start_time_ms() {
_impl_.start_time_ms_ = uint64_t{0u};
}
inline uint64_t NodeInfo::_internal_start_time_ms() const {
return _impl_.start_time_ms_;
}
inline uint64_t NodeInfo::start_time_ms() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.start_time_ms)
return _internal_start_time_ms();
}
inline void NodeInfo::_internal_set_start_time_ms(uint64_t value) {
_impl_.start_time_ms_ = value;
}
inline void NodeInfo::set_start_time_ms(uint64_t value) {
_internal_set_start_time_ms(value);
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.start_time_ms)
}
// -------------------------------------------------------------------
// RegionStat
@@ -3345,6 +3763,8 @@ inline MailboxMessage::PayloadCase MailboxMessage::payload_case() const {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+254 -157
View File
@@ -99,7 +99,8 @@ type HeartbeatRequest struct {
// The duration since the heartbeat task's epoch in milliseconds.
DurationSinceEpoch uint64 `protobuf:"varint,6,opt,name=duration_since_epoch,json=durationSinceEpoch,proto3" json:"duration_since_epoch,omitempty"`
// The node's epoch
NodeEpoch uint64 `protobuf:"varint,7,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"`
NodeEpoch uint64 `protobuf:"varint,7,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"`
Info *NodeInfo `protobuf:"bytes,8,opt,name=info,proto3" json:"info,omitempty"`
}
func (x *HeartbeatRequest) Reset() {
@@ -183,6 +184,79 @@ func (x *HeartbeatRequest) GetNodeEpoch() uint64 {
return 0
}
func (x *HeartbeatRequest) GetInfo() *NodeInfo {
if x != nil {
return x.Info
}
return nil
}
type NodeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The node build version
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// The node build git commit hash
GitCommit string `protobuf:"bytes,2,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
// The node start timestamp
StartTimeMs uint64 `protobuf:"varint,3,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"`
}
func (x *NodeInfo) Reset() {
*x = NodeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeInfo) ProtoMessage() {}
func (x *NodeInfo) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.
func (*NodeInfo) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{1}
}
func (x *NodeInfo) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *NodeInfo) GetGitCommit() string {
if x != nil {
return x.GitCommit
}
return ""
}
func (x *NodeInfo) GetStartTimeMs() uint64 {
if x != nil {
return x.StartTimeMs
}
return 0
}
type RegionStat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -206,7 +280,7 @@ type RegionStat struct {
func (x *RegionStat) Reset() {
*x = RegionStat{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -219,7 +293,7 @@ func (x *RegionStat) String() string {
func (*RegionStat) ProtoMessage() {}
func (x *RegionStat) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -232,7 +306,7 @@ func (x *RegionStat) ProtoReflect() protoreflect.Message {
// Deprecated: Use RegionStat.ProtoReflect.Descriptor instead.
func (*RegionStat) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{1}
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{2}
}
func (x *RegionStat) GetRegionId() uint64 {
@@ -297,7 +371,7 @@ type HeartbeatResponse struct {
func (x *HeartbeatResponse) Reset() {
*x = HeartbeatResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -310,7 +384,7 @@ func (x *HeartbeatResponse) String() string {
func (*HeartbeatResponse) ProtoMessage() {}
func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -323,7 +397,7 @@ func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.
func (*HeartbeatResponse) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{2}
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3}
}
func (x *HeartbeatResponse) GetHeader() *ResponseHeader {
@@ -359,7 +433,7 @@ type GrantedRegion struct {
func (x *GrantedRegion) Reset() {
*x = GrantedRegion{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -372,7 +446,7 @@ func (x *GrantedRegion) String() string {
func (*GrantedRegion) ProtoMessage() {}
func (x *GrantedRegion) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -385,7 +459,7 @@ func (x *GrantedRegion) ProtoReflect() protoreflect.Message {
// Deprecated: Use GrantedRegion.ProtoReflect.Descriptor instead.
func (*GrantedRegion) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3}
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4}
}
func (x *GrantedRegion) GetRegionId() uint64 {
@@ -416,7 +490,7 @@ type RegionLease struct {
func (x *RegionLease) Reset() {
*x = RegionLease{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -429,7 +503,7 @@ func (x *RegionLease) String() string {
func (*RegionLease) ProtoMessage() {}
func (x *RegionLease) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -442,7 +516,7 @@ func (x *RegionLease) ProtoReflect() protoreflect.Message {
// Deprecated: Use RegionLease.ProtoReflect.Descriptor instead.
func (*RegionLease) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4}
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5}
}
func (x *RegionLease) GetRegions() []*GrantedRegion {
@@ -484,7 +558,7 @@ type AskLeaderRequest struct {
func (x *AskLeaderRequest) Reset() {
*x = AskLeaderRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -497,7 +571,7 @@ func (x *AskLeaderRequest) String() string {
func (*AskLeaderRequest) ProtoMessage() {}
func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -510,7 +584,7 @@ func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AskLeaderRequest.ProtoReflect.Descriptor instead.
func (*AskLeaderRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5}
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6}
}
func (x *AskLeaderRequest) GetHeader() *RequestHeader {
@@ -532,7 +606,7 @@ type AskLeaderResponse struct {
func (x *AskLeaderResponse) Reset() {
*x = AskLeaderResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -545,7 +619,7 @@ func (x *AskLeaderResponse) String() string {
func (*AskLeaderResponse) ProtoMessage() {}
func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -558,7 +632,7 @@ func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use AskLeaderResponse.ProtoReflect.Descriptor instead.
func (*AskLeaderResponse) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6}
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{7}
}
func (x *AskLeaderResponse) GetHeader() *ResponseHeader {
@@ -600,7 +674,7 @@ type MailboxMessage struct {
func (x *MailboxMessage) Reset() {
*x = MailboxMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -613,7 +687,7 @@ func (x *MailboxMessage) String() string {
func (*MailboxMessage) ProtoMessage() {}
func (x *MailboxMessage) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -626,7 +700,7 @@ func (x *MailboxMessage) ProtoReflect() protoreflect.Message {
// Deprecated: Use MailboxMessage.ProtoReflect.Descriptor instead.
func (*MailboxMessage) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{7}
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{8}
}
func (x *MailboxMessage) GetId() uint64 {
@@ -696,7 +770,7 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x03, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61,
0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x03, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64,
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75,
@@ -722,98 +796,107 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45,
0x70, 0x6f, 0x63, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x70, 0x6f,
0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x70,
0x6f, 0x63, 0x68, 0x22, 0xf3, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74,
0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72,
0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f,
0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01,
0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42,
0x79, 0x74, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d,
0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x12,
0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52,
0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65,
0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65,
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69,
0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c,
0x65, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x5e, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65,
0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74,
0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69,
0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70,
0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73,
0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73,
0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73,
0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73,
0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37,
0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
0x6f, 0x63, 0x68, 0x12, 0x2e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69,
0x6e, 0x66, 0x6f, 0x22, 0x67, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12,
0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74,
0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67,
0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72,
0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52,
0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x22, 0xf3, 0x01, 0x0a,
0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04,
0x77, 0x63, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73,
0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f,
0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70,
0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x29, 0x0a,
0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77,
0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69,
0x6d, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69,
0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65,
0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06,
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06,
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06,
0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62,
0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62,
0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c,
0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
0x6f, 0x61, 0x64, 0x2a, 0x26, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c,
0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, 0x0a,
0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x10, 0x01, 0x32, 0xbf, 0x01, 0x0a, 0x09,
0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61,
0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62,
0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65,
0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64,
0x65, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61,
0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a,
0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f,
0x6c, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64,
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64,
0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d,
0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d,
0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a,
0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61,
0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22,
0x5e, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a,
0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22,
0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12,
0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f,
0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d,
0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20,
0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52,
0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22,
0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04,
0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d,
0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f,
0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69,
0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a,
0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f,
0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x26, 0x0a, 0x0a,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65,
0x61, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
0x65, 0x72, 0x10, 0x01, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65,
0x61, 0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12,
0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56,
0x0a, 0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41,
0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61,
0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f,
0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -829,46 +912,48 @@ func file_greptime_v1_meta_heartbeat_proto_rawDescGZIP() []byte {
}
var file_greptime_v1_meta_heartbeat_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{
(RegionRole)(0), // 0: greptime.v1.meta.RegionRole
(*HeartbeatRequest)(nil), // 1: greptime.v1.meta.HeartbeatRequest
(*RegionStat)(nil), // 2: greptime.v1.meta.RegionStat
(*HeartbeatResponse)(nil), // 3: greptime.v1.meta.HeartbeatResponse
(*GrantedRegion)(nil), // 4: greptime.v1.meta.GrantedRegion
(*RegionLease)(nil), // 5: greptime.v1.meta.RegionLease
(*AskLeaderRequest)(nil), // 6: greptime.v1.meta.AskLeaderRequest
(*AskLeaderResponse)(nil), // 7: greptime.v1.meta.AskLeaderResponse
(*MailboxMessage)(nil), // 8: greptime.v1.meta.MailboxMessage
(*RequestHeader)(nil), // 9: greptime.v1.meta.RequestHeader
(*Peer)(nil), // 10: greptime.v1.meta.Peer
(*TimeInterval)(nil), // 11: greptime.v1.meta.TimeInterval
(*ResponseHeader)(nil), // 12: greptime.v1.meta.ResponseHeader
(*NodeInfo)(nil), // 2: greptime.v1.meta.NodeInfo
(*RegionStat)(nil), // 3: greptime.v1.meta.RegionStat
(*HeartbeatResponse)(nil), // 4: greptime.v1.meta.HeartbeatResponse
(*GrantedRegion)(nil), // 5: greptime.v1.meta.GrantedRegion
(*RegionLease)(nil), // 6: greptime.v1.meta.RegionLease
(*AskLeaderRequest)(nil), // 7: greptime.v1.meta.AskLeaderRequest
(*AskLeaderResponse)(nil), // 8: greptime.v1.meta.AskLeaderResponse
(*MailboxMessage)(nil), // 9: greptime.v1.meta.MailboxMessage
(*RequestHeader)(nil), // 10: greptime.v1.meta.RequestHeader
(*Peer)(nil), // 11: greptime.v1.meta.Peer
(*TimeInterval)(nil), // 12: greptime.v1.meta.TimeInterval
(*ResponseHeader)(nil), // 13: greptime.v1.meta.ResponseHeader
}
var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{
9, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader
10, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer
11, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval
2, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat
8, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
0, // 5: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole
12, // 6: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader
8, // 7: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
5, // 8: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease
0, // 9: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole
4, // 10: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion
9, // 11: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader
12, // 12: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader
10, // 13: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer
1, // 14: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest
6, // 15: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest
3, // 16: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse
7, // 17: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse
16, // [16:18] is the sub-list for method output_type
14, // [14:16] is the sub-list for method input_type
14, // [14:14] is the sub-list for extension type_name
14, // [14:14] is the sub-list for extension extendee
0, // [0:14] is the sub-list for field type_name
10, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader
11, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer
12, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval
3, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat
9, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
2, // 5: greptime.v1.meta.HeartbeatRequest.info:type_name -> greptime.v1.meta.NodeInfo
0, // 6: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole
13, // 7: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader
9, // 8: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
6, // 9: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease
0, // 10: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole
5, // 11: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion
10, // 12: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader
13, // 13: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader
11, // 14: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer
1, // 15: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest
7, // 16: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest
4, // 17: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse
8, // 18: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse
17, // [17:19] is the sub-list for method output_type
15, // [15:17] is the sub-list for method input_type
15, // [15:15] is the sub-list for extension type_name
15, // [15:15] is the sub-list for extension extendee
0, // [0:15] is the sub-list for field type_name
}
func init() { file_greptime_v1_meta_heartbeat_proto_init() }
@@ -891,7 +976,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegionStat); i {
switch v := v.(*NodeInfo); i {
case 0:
return &v.state
case 1:
@@ -903,7 +988,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeartbeatResponse); i {
switch v := v.(*RegionStat); i {
case 0:
return &v.state
case 1:
@@ -915,7 +1000,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GrantedRegion); i {
switch v := v.(*HeartbeatResponse); i {
case 0:
return &v.state
case 1:
@@ -927,7 +1012,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegionLease); i {
switch v := v.(*GrantedRegion); i {
case 0:
return &v.state
case 1:
@@ -939,7 +1024,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AskLeaderRequest); i {
switch v := v.(*RegionLease); i {
case 0:
return &v.state
case 1:
@@ -951,7 +1036,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AskLeaderResponse); i {
switch v := v.(*AskLeaderRequest); i {
case 0:
return &v.state
case 1:
@@ -963,6 +1048,18 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AskLeaderResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MailboxMessage); i {
case 0:
return &v.state
@@ -975,7 +1072,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
}
}
}
file_greptime_v1_meta_heartbeat_proto_msgTypes[7].OneofWrappers = []interface{}{
file_greptime_v1_meta_heartbeat_proto_msgTypes[8].OneofWrappers = []interface{}{
(*MailboxMessage_Json)(nil),
}
type x struct{}
@@ -984,7 +1081,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_meta_heartbeat_proto_rawDesc,
NumEnums: 1,
NumMessages: 8,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
File diff suppressed because it is too large Load Diff
+10
View File
@@ -46,6 +46,7 @@ message HeartbeatRequest {
uint64 duration_since_epoch = 6;
// The node's epoch
uint64 node_epoch = 7;
NodeInfo info = 8;
}
enum RegionRole {
@@ -55,6 +56,15 @@ enum RegionRole {
Follower = 1;
}
message NodeInfo {
// The node build version
string version = 1;
// The node build git commit hash
string git_commit = 2;
// The node start timestamp
uint64 start_time_ms = 3;
}
message RegionStat {
uint64 region_id = 1;
// The read capacity units during this period