diff --git a/c++/greptime/v1/meta/heartbeat.pb.cc b/c++/greptime/v1/meta/heartbeat.pb.cc index 9f41a8b..6fc4622 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.cc +++ b/c++/greptime/v1/meta/heartbeat.pb.cc @@ -210,6 +210,7 @@ PROTOBUF_CONSTEXPR HeartbeatResponse::HeartbeatResponse( /*decltype(_impl_.header_)*/nullptr , /*decltype(_impl_.mailbox_message_)*/nullptr , /*decltype(_impl_.region_lease_)*/nullptr + , /*decltype(_impl_.heartbeat_config_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct HeartbeatResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR HeartbeatResponseDefaultTypeInternal() @@ -220,6 +221,20 @@ struct HeartbeatResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeartbeatResponseDefaultTypeInternal _HeartbeatResponse_default_instance_; +PROTOBUF_CONSTEXPR HeartbeatConfig::HeartbeatConfig( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.heartbeat_interval_ms_)*/uint64_t{0u} + , /*decltype(_impl_.retry_interval_ms_)*/uint64_t{0u} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct HeartbeatConfigDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeartbeatConfigDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~HeartbeatConfigDefaultTypeInternal() {} + union { + HeartbeatConfig _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeartbeatConfigDefaultTypeInternal _HeartbeatConfig_default_instance_; PROTOBUF_CONSTEXPR GrantedRegion_ExtensionsEntry_DoNotUse::GrantedRegion_ExtensionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct GrantedRegion_ExtensionsEntry_DoNotUseDefaultTypeInternal { @@ -312,7 +327,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[19]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[20]; 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; @@ -455,6 +470,15 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatResponse, _impl_.header_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatResponse, _impl_.mailbox_message_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatResponse, _impl_.region_lease_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatResponse, _impl_.heartbeat_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatConfig, _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::HeartbeatConfig, _impl_.heartbeat_interval_ms_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatConfig, _impl_.retry_interval_ms_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -527,12 +551,13 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 111, 119, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)}, { 121, -1, -1, sizeof(::greptime::v1::meta::FlowStat)}, { 129, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, - { 138, 146, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)}, - { 148, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, - { 157, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, - { 167, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, - { 174, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, - { 182, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, + { 139, -1, -1, sizeof(::greptime::v1::meta::HeartbeatConfig)}, + { 147, 155, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)}, + { 157, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, + { 166, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, + { 176, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, + { 183, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, + { 191, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -549,6 +574,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_FlowStat_FlowLastExecTimeMapEntry_DoNotUse_default_instance_._instance, &::greptime::v1::meta::_FlowStat_default_instance_._instance, &::greptime::v1::meta::_HeartbeatResponse_default_instance_._instance, + &::greptime::v1::meta::_HeartbeatConfig_default_instance_._instance, &::greptime::v1::meta::_GrantedRegion_ExtensionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::meta::_GrantedRegion_default_instance_._instance, &::greptime::v1::meta::_RegionLease_default_instance_._instance, @@ -604,45 +630,49 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] "FlowStat.FlowLastExecTimeMapEntry\0323\n\021Flo" "wStatSizeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001" "(\004:\0028\001\032:\n\030FlowLastExecTimeMapEntry\022\013\n\003ke" - "y\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\265\001\n\021Heartbeat" + "y\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\362\001\n\021Heartbeat" "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" "eta.ResponseHeader\0229\n\017mailbox_message\030\002 " "\001(\0132 .greptime.v1.meta.MailboxMessage\0223\n" "\014region_lease\030\003 \001(\0132\035.greptime.v1.meta.R" - "egionLease\"\306\001\n\rGrantedRegion\022\021\n\tregion_i" - "d\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta" - ".RegionRole\022C\n\nextensions\030c \003(\0132/.grepti" - "me.v1.meta.GrantedRegion.ExtensionsEntry" - "\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - "e\030\002 \001(\014:\0028\001\"\222\001\n\013RegionLease\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_sec" - "onds\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.g" - "reptime.v1.meta.RequestHeader\"m\n\021AskLead" - "erResponse\0220\n\006header\030\001 \001(\0132 .greptime.v1" - ".meta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.g" - "reptime.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\020timestamp_millis\030\005 \001(\003\022" - "\016\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRole" - "\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n\021Downgradin" - "gLeader\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\".g" - "reptime.v1.meta.HeartbeatRequest\032#.grept" - "ime.v1.meta.HeartbeatResponse\"\000(\0010\001\022V\n\tA" - "skLeader\022\".greptime.v1.meta.AskLeaderReq" - "uest\032#.greptime.v1.meta.AskLeaderRespons" - "e\"\000B_impl_.region_lease_; } +const ::greptime::v1::meta::HeartbeatConfig& +HeartbeatResponse::_Internal::heartbeat_config(const HeartbeatResponse* msg) { + return *msg->_impl_.heartbeat_config_; +} void HeartbeatResponse::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; @@ -3592,6 +3627,7 @@ HeartbeatResponse::HeartbeatResponse(const HeartbeatResponse& from) decltype(_impl_.header_){nullptr} , decltype(_impl_.mailbox_message_){nullptr} , decltype(_impl_.region_lease_){nullptr} + , decltype(_impl_.heartbeat_config_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -3604,6 +3640,9 @@ HeartbeatResponse::HeartbeatResponse(const HeartbeatResponse& from) if (from._internal_has_region_lease()) { _this->_impl_.region_lease_ = new ::greptime::v1::meta::RegionLease(*from._impl_.region_lease_); } + if (from._internal_has_heartbeat_config()) { + _this->_impl_.heartbeat_config_ = new ::greptime::v1::meta::HeartbeatConfig(*from._impl_.heartbeat_config_); + } // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.HeartbeatResponse) } @@ -3615,6 +3654,7 @@ inline void HeartbeatResponse::SharedCtor( decltype(_impl_.header_){nullptr} , decltype(_impl_.mailbox_message_){nullptr} , decltype(_impl_.region_lease_){nullptr} + , decltype(_impl_.heartbeat_config_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -3633,6 +3673,7 @@ inline void HeartbeatResponse::SharedDtor() { if (this != internal_default_instance()) delete _impl_.header_; if (this != internal_default_instance()) delete _impl_.mailbox_message_; if (this != internal_default_instance()) delete _impl_.region_lease_; + if (this != internal_default_instance()) delete _impl_.heartbeat_config_; } void HeartbeatResponse::SetCachedSize(int size) const { @@ -3657,6 +3698,10 @@ void HeartbeatResponse::Clear() { delete _impl_.region_lease_; } _impl_.region_lease_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.heartbeat_config_ != nullptr) { + delete _impl_.heartbeat_config_; + } + _impl_.heartbeat_config_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -3690,6 +3735,14 @@ const char* HeartbeatResponse::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; + // .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_heartbeat_config(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -3740,6 +3793,13 @@ uint8_t* HeartbeatResponse::_InternalSerialize( _Internal::region_lease(this).GetCachedSize(), target, stream); } + // .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + if (this->_internal_has_heartbeat_config()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::heartbeat_config(this), + _Internal::heartbeat_config(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); @@ -3777,6 +3837,13 @@ size_t HeartbeatResponse::ByteSizeLong() const { *_impl_.region_lease_); } + // .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + if (this->_internal_has_heartbeat_config()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.heartbeat_config_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -3807,6 +3874,10 @@ void HeartbeatResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_region_lease()->::greptime::v1::meta::RegionLease::MergeFrom( from._internal_region_lease()); } + if (from._internal_has_heartbeat_config()) { + _this->_internal_mutable_heartbeat_config()->::greptime::v1::meta::HeartbeatConfig::MergeFrom( + from._internal_heartbeat_config()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -3825,8 +3896,8 @@ void HeartbeatResponse::InternalSwap(HeartbeatResponse* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(HeartbeatResponse, _impl_.region_lease_) - + sizeof(HeartbeatResponse::_impl_.region_lease_) + PROTOBUF_FIELD_OFFSET(HeartbeatResponse, _impl_.heartbeat_config_) + + sizeof(HeartbeatResponse::_impl_.heartbeat_config_) - PROTOBUF_FIELD_OFFSET(HeartbeatResponse, _impl_.header_)>( reinterpret_cast(&_impl_.header_), reinterpret_cast(&other->_impl_.header_)); @@ -3840,6 +3911,217 @@ void HeartbeatResponse::InternalSwap(HeartbeatResponse* other) { // =================================================================== +class HeartbeatConfig::_Internal { + public: +}; + +HeartbeatConfig::HeartbeatConfig(::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.HeartbeatConfig) +} +HeartbeatConfig::HeartbeatConfig(const HeartbeatConfig& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + HeartbeatConfig* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.heartbeat_interval_ms_){} + , decltype(_impl_.retry_interval_ms_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.heartbeat_interval_ms_, &from._impl_.heartbeat_interval_ms_, + static_cast(reinterpret_cast(&_impl_.retry_interval_ms_) - + reinterpret_cast(&_impl_.heartbeat_interval_ms_)) + sizeof(_impl_.retry_interval_ms_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.HeartbeatConfig) +} + +inline void HeartbeatConfig::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.heartbeat_interval_ms_){uint64_t{0u}} + , decltype(_impl_.retry_interval_ms_){uint64_t{0u}} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +HeartbeatConfig::~HeartbeatConfig() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.HeartbeatConfig) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void HeartbeatConfig::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void HeartbeatConfig::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void HeartbeatConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.HeartbeatConfig) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.heartbeat_interval_ms_, 0, static_cast( + reinterpret_cast(&_impl_.retry_interval_ms_) - + reinterpret_cast(&_impl_.heartbeat_interval_ms_)) + sizeof(_impl_.retry_interval_ms_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* HeartbeatConfig::_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) { + // uint64 heartbeat_interval_ms = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.heartbeat_interval_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 retry_interval_ms = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.retry_interval_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* HeartbeatConfig::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.HeartbeatConfig) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint64 heartbeat_interval_ms = 1; + if (this->_internal_heartbeat_interval_ms() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_heartbeat_interval_ms(), target); + } + + // uint64 retry_interval_ms = 2; + if (this->_internal_retry_interval_ms() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_retry_interval_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.HeartbeatConfig) + return target; +} + +size_t HeartbeatConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.HeartbeatConfig) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint64 heartbeat_interval_ms = 1; + if (this->_internal_heartbeat_interval_ms() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_heartbeat_interval_ms()); + } + + // uint64 retry_interval_ms = 2; + if (this->_internal_retry_interval_ms() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_retry_interval_ms()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HeartbeatConfig::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + HeartbeatConfig::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HeartbeatConfig::GetClassData() const { return &_class_data_; } + + +void HeartbeatConfig::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.HeartbeatConfig) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_heartbeat_interval_ms() != 0) { + _this->_internal_set_heartbeat_interval_ms(from._internal_heartbeat_interval_ms()); + } + if (from._internal_retry_interval_ms() != 0) { + _this->_internal_set_retry_interval_ms(from._internal_retry_interval_ms()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void HeartbeatConfig::CopyFrom(const HeartbeatConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.HeartbeatConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HeartbeatConfig::IsInitialized() const { + return true; +} + +void HeartbeatConfig::InternalSwap(HeartbeatConfig* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(HeartbeatConfig, _impl_.retry_interval_ms_) + + sizeof(HeartbeatConfig::_impl_.retry_interval_ms_) + - PROTOBUF_FIELD_OFFSET(HeartbeatConfig, _impl_.heartbeat_interval_ms_)>( + reinterpret_cast(&_impl_.heartbeat_interval_ms_), + reinterpret_cast(&other->_impl_.heartbeat_interval_ms_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatConfig::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[13]); +} + +// =================================================================== + GrantedRegion_ExtensionsEntry_DoNotUse::GrantedRegion_ExtensionsEntry_DoNotUse() {} GrantedRegion_ExtensionsEntry_DoNotUse::GrantedRegion_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} @@ -3849,7 +4131,7 @@ void GrantedRegion_ExtensionsEntry_DoNotUse::MergeFrom(const GrantedRegion_Exten ::PROTOBUF_NAMESPACE_ID::Metadata GrantedRegion_ExtensionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[13]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[14]); } // =================================================================== @@ -4127,7 +4409,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[14]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[15]); } // =================================================================== @@ -4414,7 +4696,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[15]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[16]); } // =================================================================== @@ -4613,7 +4895,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[16]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[17]); } // =================================================================== @@ -4864,7 +5146,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[17]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[18]); } // =================================================================== @@ -5304,7 +5586,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[18]); + file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[19]); } // @@protoc_insertion_point(namespace_scope) @@ -5364,6 +5646,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatResponse* Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatResponse >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatConfig* +Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatConfig >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatConfig >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage< ::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse >(arena); diff --git a/c++/greptime/v1/meta/heartbeat.pb.h b/c++/greptime/v1/meta/heartbeat.pb.h index 8080ce3..5941491 100644 --- a/c++/greptime/v1/meta/heartbeat.pb.h +++ b/c++/greptime/v1/meta/heartbeat.pb.h @@ -82,6 +82,9 @@ extern GrantedRegionDefaultTypeInternal _GrantedRegion_default_instance_; class GrantedRegion_ExtensionsEntry_DoNotUse; struct GrantedRegion_ExtensionsEntry_DoNotUseDefaultTypeInternal; extern GrantedRegion_ExtensionsEntry_DoNotUseDefaultTypeInternal _GrantedRegion_ExtensionsEntry_DoNotUse_default_instance_; +class HeartbeatConfig; +struct HeartbeatConfigDefaultTypeInternal; +extern HeartbeatConfigDefaultTypeInternal _HeartbeatConfig_default_instance_; class HeartbeatRequest; struct HeartbeatRequestDefaultTypeInternal; extern HeartbeatRequestDefaultTypeInternal _HeartbeatRequest_default_instance_; @@ -123,6 +126,7 @@ template<> ::greptime::v1::meta::FlownodeWorkloads* Arena::CreateMaybeMessage<:: template<> ::greptime::v1::meta::FrontendWorkloads* Arena::CreateMaybeMessage<::greptime::v1::meta::FrontendWorkloads>(Arena*); template<> ::greptime::v1::meta::GrantedRegion* Arena::CreateMaybeMessage<::greptime::v1::meta::GrantedRegion>(Arena*); template<> ::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse>(Arena*); +template<> ::greptime::v1::meta::HeartbeatConfig* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatConfig>(Arena*); template<> ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest>(Arena*); template<> ::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest_ExtensionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::meta::HeartbeatResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatResponse>(Arena*); @@ -2169,6 +2173,7 @@ class HeartbeatResponse final : kHeaderFieldNumber = 1, kMailboxMessageFieldNumber = 2, kRegionLeaseFieldNumber = 3, + kHeartbeatConfigFieldNumber = 4, }; // .greptime.v1.meta.ResponseHeader header = 1; bool has_header() const; @@ -2224,6 +2229,24 @@ class HeartbeatResponse final : ::greptime::v1::meta::RegionLease* region_lease); ::greptime::v1::meta::RegionLease* unsafe_arena_release_region_lease(); + // .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + bool has_heartbeat_config() const; + private: + bool _internal_has_heartbeat_config() const; + public: + void clear_heartbeat_config(); + const ::greptime::v1::meta::HeartbeatConfig& heartbeat_config() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::HeartbeatConfig* release_heartbeat_config(); + ::greptime::v1::meta::HeartbeatConfig* mutable_heartbeat_config(); + void set_allocated_heartbeat_config(::greptime::v1::meta::HeartbeatConfig* heartbeat_config); + private: + const ::greptime::v1::meta::HeartbeatConfig& _internal_heartbeat_config() const; + ::greptime::v1::meta::HeartbeatConfig* _internal_mutable_heartbeat_config(); + public: + void unsafe_arena_set_allocated_heartbeat_config( + ::greptime::v1::meta::HeartbeatConfig* heartbeat_config); + ::greptime::v1::meta::HeartbeatConfig* unsafe_arena_release_heartbeat_config(); + // @@protoc_insertion_point(class_scope:greptime.v1.meta.HeartbeatResponse) private: class _Internal; @@ -2235,6 +2258,166 @@ class HeartbeatResponse final : ::greptime::v1::meta::ResponseHeader* header_; ::greptime::v1::meta::MailboxMessage* mailbox_message_; ::greptime::v1::meta::RegionLease* region_lease_; + ::greptime::v1::meta::HeartbeatConfig* heartbeat_config_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto; +}; +// ------------------------------------------------------------------- + +class HeartbeatConfig final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.HeartbeatConfig) */ { + public: + inline HeartbeatConfig() : HeartbeatConfig(nullptr) {} + ~HeartbeatConfig() override; + explicit PROTOBUF_CONSTEXPR HeartbeatConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HeartbeatConfig(const HeartbeatConfig& from); + HeartbeatConfig(HeartbeatConfig&& from) noexcept + : HeartbeatConfig() { + *this = ::std::move(from); + } + + inline HeartbeatConfig& operator=(const HeartbeatConfig& from) { + CopyFrom(from); + return *this; + } + inline HeartbeatConfig& operator=(HeartbeatConfig&& 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 HeartbeatConfig& default_instance() { + return *internal_default_instance(); + } + static inline const HeartbeatConfig* internal_default_instance() { + return reinterpret_cast( + &_HeartbeatConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(HeartbeatConfig& a, HeartbeatConfig& b) { + a.Swap(&b); + } + inline void Swap(HeartbeatConfig* 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(HeartbeatConfig* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + HeartbeatConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const HeartbeatConfig& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const HeartbeatConfig& from) { + HeartbeatConfig::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(HeartbeatConfig* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.HeartbeatConfig"; + } + protected: + explicit HeartbeatConfig(::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 { + kHeartbeatIntervalMsFieldNumber = 1, + kRetryIntervalMsFieldNumber = 2, + }; + // uint64 heartbeat_interval_ms = 1; + void clear_heartbeat_interval_ms(); + uint64_t heartbeat_interval_ms() const; + void set_heartbeat_interval_ms(uint64_t value); + private: + uint64_t _internal_heartbeat_interval_ms() const; + void _internal_set_heartbeat_interval_ms(uint64_t value); + public: + + // uint64 retry_interval_ms = 2; + void clear_retry_interval_ms(); + uint64_t retry_interval_ms() const; + void set_retry_interval_ms(uint64_t value); + private: + uint64_t _internal_retry_interval_ms() const; + void _internal_set_retry_interval_ms(uint64_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.HeartbeatConfig) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + uint64_t heartbeat_interval_ms_; + uint64_t retry_interval_ms_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2316,7 +2499,7 @@ class GrantedRegion final : &_GrantedRegion_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(GrantedRegion& a, GrantedRegion& b) { a.Swap(&b); @@ -2501,7 +2684,7 @@ class RegionLease final : &_RegionLease_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(RegionLease& a, RegionLease& b) { a.Swap(&b); @@ -2705,7 +2888,7 @@ class AskLeaderRequest final : &_AskLeaderRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(AskLeaderRequest& a, AskLeaderRequest& b) { a.Swap(&b); @@ -2862,7 +3045,7 @@ class AskLeaderResponse final : &_AskLeaderResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(AskLeaderResponse& a, AskLeaderResponse& b) { a.Swap(&b); @@ -3044,7 +3227,7 @@ class MailboxMessage final : &_MailboxMessage_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(MailboxMessage& a, MailboxMessage& b) { a.Swap(&b); @@ -5232,6 +5415,140 @@ inline void HeartbeatResponse::set_allocated_region_lease(::greptime::v1::meta:: // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.HeartbeatResponse.region_lease) } +// .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; +inline bool HeartbeatResponse::_internal_has_heartbeat_config() const { + return this != internal_default_instance() && _impl_.heartbeat_config_ != nullptr; +} +inline bool HeartbeatResponse::has_heartbeat_config() const { + return _internal_has_heartbeat_config(); +} +inline void HeartbeatResponse::clear_heartbeat_config() { + if (GetArenaForAllocation() == nullptr && _impl_.heartbeat_config_ != nullptr) { + delete _impl_.heartbeat_config_; + } + _impl_.heartbeat_config_ = nullptr; +} +inline const ::greptime::v1::meta::HeartbeatConfig& HeartbeatResponse::_internal_heartbeat_config() const { + const ::greptime::v1::meta::HeartbeatConfig* p = _impl_.heartbeat_config_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_HeartbeatConfig_default_instance_); +} +inline const ::greptime::v1::meta::HeartbeatConfig& HeartbeatResponse::heartbeat_config() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.HeartbeatResponse.heartbeat_config) + return _internal_heartbeat_config(); +} +inline void HeartbeatResponse::unsafe_arena_set_allocated_heartbeat_config( + ::greptime::v1::meta::HeartbeatConfig* heartbeat_config) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.heartbeat_config_); + } + _impl_.heartbeat_config_ = heartbeat_config; + if (heartbeat_config) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.HeartbeatResponse.heartbeat_config) +} +inline ::greptime::v1::meta::HeartbeatConfig* HeartbeatResponse::release_heartbeat_config() { + + ::greptime::v1::meta::HeartbeatConfig* temp = _impl_.heartbeat_config_; + _impl_.heartbeat_config_ = 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::HeartbeatConfig* HeartbeatResponse::unsafe_arena_release_heartbeat_config() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.HeartbeatResponse.heartbeat_config) + + ::greptime::v1::meta::HeartbeatConfig* temp = _impl_.heartbeat_config_; + _impl_.heartbeat_config_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::HeartbeatConfig* HeartbeatResponse::_internal_mutable_heartbeat_config() { + + if (_impl_.heartbeat_config_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::HeartbeatConfig>(GetArenaForAllocation()); + _impl_.heartbeat_config_ = p; + } + return _impl_.heartbeat_config_; +} +inline ::greptime::v1::meta::HeartbeatConfig* HeartbeatResponse::mutable_heartbeat_config() { + ::greptime::v1::meta::HeartbeatConfig* _msg = _internal_mutable_heartbeat_config(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.HeartbeatResponse.heartbeat_config) + return _msg; +} +inline void HeartbeatResponse::set_allocated_heartbeat_config(::greptime::v1::meta::HeartbeatConfig* heartbeat_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.heartbeat_config_; + } + if (heartbeat_config) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(heartbeat_config); + if (message_arena != submessage_arena) { + heartbeat_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, heartbeat_config, submessage_arena); + } + + } else { + + } + _impl_.heartbeat_config_ = heartbeat_config; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.HeartbeatResponse.heartbeat_config) +} + +// ------------------------------------------------------------------- + +// HeartbeatConfig + +// uint64 heartbeat_interval_ms = 1; +inline void HeartbeatConfig::clear_heartbeat_interval_ms() { + _impl_.heartbeat_interval_ms_ = uint64_t{0u}; +} +inline uint64_t HeartbeatConfig::_internal_heartbeat_interval_ms() const { + return _impl_.heartbeat_interval_ms_; +} +inline uint64_t HeartbeatConfig::heartbeat_interval_ms() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.HeartbeatConfig.heartbeat_interval_ms) + return _internal_heartbeat_interval_ms(); +} +inline void HeartbeatConfig::_internal_set_heartbeat_interval_ms(uint64_t value) { + + _impl_.heartbeat_interval_ms_ = value; +} +inline void HeartbeatConfig::set_heartbeat_interval_ms(uint64_t value) { + _internal_set_heartbeat_interval_ms(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.HeartbeatConfig.heartbeat_interval_ms) +} + +// uint64 retry_interval_ms = 2; +inline void HeartbeatConfig::clear_retry_interval_ms() { + _impl_.retry_interval_ms_ = uint64_t{0u}; +} +inline uint64_t HeartbeatConfig::_internal_retry_interval_ms() const { + return _impl_.retry_interval_ms_; +} +inline uint64_t HeartbeatConfig::retry_interval_ms() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.HeartbeatConfig.retry_interval_ms) + return _internal_retry_interval_ms(); +} +inline void HeartbeatConfig::_internal_set_retry_interval_ms(uint64_t value) { + + _impl_.retry_interval_ms_ = value; +} +inline void HeartbeatConfig::set_retry_interval_ms(uint64_t value) { + _internal_set_retry_interval_ms(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.HeartbeatConfig.retry_interval_ms) +} + // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -6020,6 +6337,8 @@ inline MailboxMessage::PayloadCase MailboxMessage::payload_case() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/meta/heartbeat.pb.go b/go/greptime/v1/meta/heartbeat.pb.go index 1e69793..8122295 100644 --- a/go/greptime/v1/meta/heartbeat.pb.go +++ b/go/greptime/v1/meta/heartbeat.pb.go @@ -802,6 +802,9 @@ type HeartbeatResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` MailboxMessage *MailboxMessage `protobuf:"bytes,2,opt,name=mailbox_message,json=mailboxMessage,proto3" json:"mailbox_message,omitempty"` RegionLease *RegionLease `protobuf:"bytes,3,opt,name=region_lease,json=regionLease,proto3" json:"region_lease,omitempty"` + // Heartbeat configuration issued by Metasrv + // Populated only in the handshake response + HeartbeatConfig *HeartbeatConfig `protobuf:"bytes,4,opt,name=heartbeat_config,json=heartbeatConfig,proto3" json:"heartbeat_config,omitempty"` } func (x *HeartbeatResponse) Reset() { @@ -857,6 +860,68 @@ func (x *HeartbeatResponse) GetRegionLease() *RegionLease { return nil } +func (x *HeartbeatResponse) GetHeartbeatConfig() *HeartbeatConfig { + if x != nil { + return x.HeartbeatConfig + } + return nil +} + +type HeartbeatConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + HeartbeatIntervalMs uint64 `protobuf:"varint,1,opt,name=heartbeat_interval_ms,json=heartbeatIntervalMs,proto3" json:"heartbeat_interval_ms,omitempty"` + RetryIntervalMs uint64 `protobuf:"varint,2,opt,name=retry_interval_ms,json=retryIntervalMs,proto3" json:"retry_interval_ms,omitempty"` +} + +func (x *HeartbeatConfig) Reset() { + *x = HeartbeatConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HeartbeatConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HeartbeatConfig) ProtoMessage() {} + +func (x *HeartbeatConfig) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[9] + 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 HeartbeatConfig.ProtoReflect.Descriptor instead. +func (*HeartbeatConfig) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{9} +} + +func (x *HeartbeatConfig) GetHeartbeatIntervalMs() uint64 { + if x != nil { + return x.HeartbeatIntervalMs + } + return 0 +} + +func (x *HeartbeatConfig) GetRetryIntervalMs() uint64 { + if x != nil { + return x.RetryIntervalMs + } + return 0 +} + // The granted region is the region that the meta server granted leases. type GrantedRegion struct { state protoimpl.MessageState @@ -871,7 +936,7 @@ type GrantedRegion struct { func (x *GrantedRegion) Reset() { *x = GrantedRegion{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[9] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -884,7 +949,7 @@ func (x *GrantedRegion) String() string { func (*GrantedRegion) ProtoMessage() {} func (x *GrantedRegion) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[9] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -897,7 +962,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{9} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{10} } func (x *GrantedRegion) GetRegionId() uint64 { @@ -935,7 +1000,7 @@ type RegionLease struct { func (x *RegionLease) Reset() { *x = RegionLease{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[10] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -948,7 +1013,7 @@ func (x *RegionLease) String() string { func (*RegionLease) ProtoMessage() {} func (x *RegionLease) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[10] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -961,7 +1026,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{10} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{11} } func (x *RegionLease) GetRegions() []*GrantedRegion { @@ -1003,7 +1068,7 @@ type AskLeaderRequest struct { func (x *AskLeaderRequest) Reset() { *x = AskLeaderRequest{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[11] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1016,7 +1081,7 @@ func (x *AskLeaderRequest) String() string { func (*AskLeaderRequest) ProtoMessage() {} func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[11] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1029,7 +1094,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{11} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{12} } func (x *AskLeaderRequest) GetHeader() *RequestHeader { @@ -1051,7 +1116,7 @@ type AskLeaderResponse struct { func (x *AskLeaderResponse) Reset() { *x = AskLeaderResponse{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[12] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1064,7 +1129,7 @@ func (x *AskLeaderResponse) String() string { func (*AskLeaderResponse) ProtoMessage() {} func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[12] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1077,7 +1142,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{12} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{13} } func (x *AskLeaderResponse) GetHeader() *ResponseHeader { @@ -1119,7 +1184,7 @@ type MailboxMessage struct { func (x *MailboxMessage) Reset() { *x = MailboxMessage{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[13] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1132,7 +1197,7 @@ func (x *MailboxMessage) String() string { func (*MailboxMessage) ProtoMessage() {} func (x *MailboxMessage) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[13] + mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1145,7 +1210,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{13} + return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{14} } func (x *MailboxMessage) GetId() uint64 { @@ -1359,7 +1424,7 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{ 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, + 0x22, 0xa8, 0x02, 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, @@ -1372,80 +1437,92 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{ 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, 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, + 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x4c, 0x0a, + 0x10, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 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, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, 0x68, 0x65, 0x61, 0x72, + 0x74, 0x62, 0x65, 0x61, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x71, 0x0a, 0x0f, 0x48, + 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, + 0x0a, 0x15, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x68, + 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, + 0x4d, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x72, + 0x65, 0x74, 0x72, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x73, 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, 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 ( @@ -1461,7 +1538,7 @@ func file_greptime_v1_meta_heartbeat_proto_rawDescGZIP() []byte { } var file_greptime_v1_meta_heartbeat_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{ (RegionRole)(0), // 0: greptime.v1.meta.RegionRole (*HeartbeatRequest)(nil), // 1: greptime.v1.meta.HeartbeatRequest @@ -1473,56 +1550,58 @@ var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{ (*TopicStat)(nil), // 7: greptime.v1.meta.TopicStat (*FlowStat)(nil), // 8: greptime.v1.meta.FlowStat (*HeartbeatResponse)(nil), // 9: greptime.v1.meta.HeartbeatResponse - (*GrantedRegion)(nil), // 10: greptime.v1.meta.GrantedRegion - (*RegionLease)(nil), // 11: greptime.v1.meta.RegionLease - (*AskLeaderRequest)(nil), // 12: greptime.v1.meta.AskLeaderRequest - (*AskLeaderResponse)(nil), // 13: greptime.v1.meta.AskLeaderResponse - (*MailboxMessage)(nil), // 14: greptime.v1.meta.MailboxMessage - nil, // 15: greptime.v1.meta.HeartbeatRequest.ExtensionsEntry - nil, // 16: greptime.v1.meta.RegionStat.ExtensionsEntry - nil, // 17: greptime.v1.meta.FlowStat.FlowStatSizeEntry - nil, // 18: greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry - nil, // 19: greptime.v1.meta.GrantedRegion.ExtensionsEntry - (*RequestHeader)(nil), // 20: greptime.v1.meta.RequestHeader - (*Peer)(nil), // 21: greptime.v1.meta.Peer - (*TimeInterval)(nil), // 22: greptime.v1.meta.TimeInterval - (*ResponseHeader)(nil), // 23: greptime.v1.meta.ResponseHeader + (*HeartbeatConfig)(nil), // 10: greptime.v1.meta.HeartbeatConfig + (*GrantedRegion)(nil), // 11: greptime.v1.meta.GrantedRegion + (*RegionLease)(nil), // 12: greptime.v1.meta.RegionLease + (*AskLeaderRequest)(nil), // 13: greptime.v1.meta.AskLeaderRequest + (*AskLeaderResponse)(nil), // 14: greptime.v1.meta.AskLeaderResponse + (*MailboxMessage)(nil), // 15: greptime.v1.meta.MailboxMessage + nil, // 16: greptime.v1.meta.HeartbeatRequest.ExtensionsEntry + nil, // 17: greptime.v1.meta.RegionStat.ExtensionsEntry + nil, // 18: greptime.v1.meta.FlowStat.FlowStatSizeEntry + nil, // 19: greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry + nil, // 20: greptime.v1.meta.GrantedRegion.ExtensionsEntry + (*RequestHeader)(nil), // 21: greptime.v1.meta.RequestHeader + (*Peer)(nil), // 22: greptime.v1.meta.Peer + (*TimeInterval)(nil), // 23: greptime.v1.meta.TimeInterval + (*ResponseHeader)(nil), // 24: greptime.v1.meta.ResponseHeader } var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{ - 20, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader - 21, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer - 22, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval + 21, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader + 22, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer + 23, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval 6, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat - 14, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage + 15, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage 5, // 5: greptime.v1.meta.HeartbeatRequest.info:type_name -> greptime.v1.meta.NodeInfo 8, // 6: greptime.v1.meta.HeartbeatRequest.flow_stat:type_name -> greptime.v1.meta.FlowStat 2, // 7: greptime.v1.meta.HeartbeatRequest.datanode:type_name -> greptime.v1.meta.DatanodeWorkloads 3, // 8: greptime.v1.meta.HeartbeatRequest.frontend:type_name -> greptime.v1.meta.FrontendWorkloads 4, // 9: greptime.v1.meta.HeartbeatRequest.flownode:type_name -> greptime.v1.meta.FlownodeWorkloads 7, // 10: greptime.v1.meta.HeartbeatRequest.topic_stats:type_name -> greptime.v1.meta.TopicStat - 15, // 11: greptime.v1.meta.HeartbeatRequest.extensions:type_name -> greptime.v1.meta.HeartbeatRequest.ExtensionsEntry + 16, // 11: greptime.v1.meta.HeartbeatRequest.extensions:type_name -> greptime.v1.meta.HeartbeatRequest.ExtensionsEntry 0, // 12: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole - 16, // 13: greptime.v1.meta.RegionStat.extensions:type_name -> greptime.v1.meta.RegionStat.ExtensionsEntry - 17, // 14: greptime.v1.meta.FlowStat.flow_stat_size:type_name -> greptime.v1.meta.FlowStat.FlowStatSizeEntry - 18, // 15: greptime.v1.meta.FlowStat.flow_last_exec_time_map:type_name -> greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry - 23, // 16: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 14, // 17: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage - 11, // 18: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease - 0, // 19: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole - 19, // 20: greptime.v1.meta.GrantedRegion.extensions:type_name -> greptime.v1.meta.GrantedRegion.ExtensionsEntry - 10, // 21: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion - 20, // 22: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader - 23, // 23: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 21, // 24: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer - 1, // 25: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest - 12, // 26: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest - 9, // 27: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse - 13, // 28: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse - 27, // [27:29] is the sub-list for method output_type - 25, // [25:27] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name + 17, // 13: greptime.v1.meta.RegionStat.extensions:type_name -> greptime.v1.meta.RegionStat.ExtensionsEntry + 18, // 14: greptime.v1.meta.FlowStat.flow_stat_size:type_name -> greptime.v1.meta.FlowStat.FlowStatSizeEntry + 19, // 15: greptime.v1.meta.FlowStat.flow_last_exec_time_map:type_name -> greptime.v1.meta.FlowStat.FlowLastExecTimeMapEntry + 24, // 16: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 15, // 17: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage + 12, // 18: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease + 10, // 19: greptime.v1.meta.HeartbeatResponse.heartbeat_config:type_name -> greptime.v1.meta.HeartbeatConfig + 0, // 20: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole + 20, // 21: greptime.v1.meta.GrantedRegion.extensions:type_name -> greptime.v1.meta.GrantedRegion.ExtensionsEntry + 11, // 22: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion + 21, // 23: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader + 24, // 24: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 22, // 25: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer + 1, // 26: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest + 13, // 27: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest + 9, // 28: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse + 14, // 29: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse + 28, // [28:30] is the sub-list for method output_type + 26, // [26:28] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name } func init() { file_greptime_v1_meta_heartbeat_proto_init() } @@ -1641,7 +1720,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GrantedRegion); i { + switch v := v.(*HeartbeatConfig); i { case 0: return &v.state case 1: @@ -1653,7 +1732,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegionLease); i { + switch v := v.(*GrantedRegion); i { case 0: return &v.state case 1: @@ -1665,7 +1744,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AskLeaderRequest); i { + switch v := v.(*RegionLease); i { case 0: return &v.state case 1: @@ -1677,7 +1756,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AskLeaderResponse); i { + switch v := v.(*AskLeaderRequest); i { case 0: return &v.state case 1: @@ -1689,6 +1768,18 @@ func file_greptime_v1_meta_heartbeat_proto_init() { } } file_greptime_v1_meta_heartbeat_proto_msgTypes[13].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[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MailboxMessage); i { case 0: return &v.state @@ -1706,7 +1797,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() { (*HeartbeatRequest_Frontend)(nil), (*HeartbeatRequest_Flownode)(nil), } - file_greptime_v1_meta_heartbeat_proto_msgTypes[13].OneofWrappers = []interface{}{ + file_greptime_v1_meta_heartbeat_proto_msgTypes[14].OneofWrappers = []interface{}{ (*MailboxMessage_Json)(nil), } type x struct{} @@ -1715,7 +1806,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: 19, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, diff --git a/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java b/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java index 81c1472..3b3f71f 100644 --- a/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java +++ b/java/src/main/java/greptime/v1/meta/HeartbeatOuterClass.java @@ -11194,6 +11194,36 @@ com.google.protobuf.ByteString defaultValue); * .greptime.v1.meta.RegionLease region_lease = 3; */ greptime.v1.meta.HeartbeatOuterClass.RegionLeaseOrBuilder getRegionLeaseOrBuilder(); + + /** + *
+     * Heartbeat configuration issued by Metasrv
+     * Populated only in the handshake response
+     * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + * @return Whether the heartbeatConfig field is set. + */ + boolean hasHeartbeatConfig(); + /** + *
+     * Heartbeat configuration issued by Metasrv
+     * Populated only in the handshake response
+     * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + * @return The heartbeatConfig. + */ + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig getHeartbeatConfig(); + /** + *
+     * Heartbeat configuration issued by Metasrv
+     * Populated only in the handshake response
+     * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfigOrBuilder getHeartbeatConfigOrBuilder(); } /** * Protobuf type {@code greptime.v1.meta.HeartbeatResponse} @@ -11279,6 +11309,19 @@ com.google.protobuf.ByteString defaultValue); break; } + case 34: { + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder subBuilder = null; + if (heartbeatConfig_ != null) { + subBuilder = heartbeatConfig_.toBuilder(); + } + heartbeatConfig_ = input.readMessage(greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(heartbeatConfig_); + heartbeatConfig_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -11391,6 +11434,47 @@ com.google.protobuf.ByteString defaultValue); return getRegionLease(); } + public static final int HEARTBEAT_CONFIG_FIELD_NUMBER = 4; + private greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig heartbeatConfig_; + /** + *
+     * Heartbeat configuration issued by Metasrv
+     * Populated only in the handshake response
+     * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + * @return Whether the heartbeatConfig field is set. + */ + @java.lang.Override + public boolean hasHeartbeatConfig() { + return heartbeatConfig_ != null; + } + /** + *
+     * Heartbeat configuration issued by Metasrv
+     * Populated only in the handshake response
+     * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + * @return The heartbeatConfig. + */ + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig getHeartbeatConfig() { + return heartbeatConfig_ == null ? greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.getDefaultInstance() : heartbeatConfig_; + } + /** + *
+     * Heartbeat configuration issued by Metasrv
+     * Populated only in the handshake response
+     * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfigOrBuilder getHeartbeatConfigOrBuilder() { + return getHeartbeatConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -11414,6 +11498,9 @@ com.google.protobuf.ByteString defaultValue); if (regionLease_ != null) { output.writeMessage(3, getRegionLease()); } + if (heartbeatConfig_ != null) { + output.writeMessage(4, getHeartbeatConfig()); + } unknownFields.writeTo(output); } @@ -11435,6 +11522,10 @@ com.google.protobuf.ByteString defaultValue); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegionLease()); } + if (heartbeatConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHeartbeatConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -11465,6 +11556,11 @@ com.google.protobuf.ByteString defaultValue); if (!getRegionLease() .equals(other.getRegionLease())) return false; } + if (hasHeartbeatConfig() != other.hasHeartbeatConfig()) return false; + if (hasHeartbeatConfig()) { + if (!getHeartbeatConfig() + .equals(other.getHeartbeatConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -11488,6 +11584,10 @@ com.google.protobuf.ByteString defaultValue); hash = (37 * hash) + REGION_LEASE_FIELD_NUMBER; hash = (53 * hash) + getRegionLease().hashCode(); } + if (hasHeartbeatConfig()) { + hash = (37 * hash) + HEARTBEAT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHeartbeatConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -11639,6 +11739,12 @@ com.google.protobuf.ByteString defaultValue); regionLease_ = null; regionLeaseBuilder_ = null; } + if (heartbeatConfigBuilder_ == null) { + heartbeatConfig_ = null; + } else { + heartbeatConfig_ = null; + heartbeatConfigBuilder_ = null; + } return this; } @@ -11680,6 +11786,11 @@ com.google.protobuf.ByteString defaultValue); } else { result.regionLease_ = regionLeaseBuilder_.build(); } + if (heartbeatConfigBuilder_ == null) { + result.heartbeatConfig_ = heartbeatConfig_; + } else { + result.heartbeatConfig_ = heartbeatConfigBuilder_.build(); + } onBuilt(); return result; } @@ -11737,6 +11848,9 @@ com.google.protobuf.ByteString defaultValue); if (other.hasRegionLease()) { mergeRegionLease(other.getRegionLease()); } + if (other.hasHeartbeatConfig()) { + mergeHeartbeatConfig(other.getHeartbeatConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -12122,6 +12236,170 @@ com.google.protobuf.ByteString defaultValue); } return regionLeaseBuilder_; } + + private greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig heartbeatConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfigOrBuilder> heartbeatConfigBuilder_; + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + * @return Whether the heartbeatConfig field is set. + */ + public boolean hasHeartbeatConfig() { + return heartbeatConfigBuilder_ != null || heartbeatConfig_ != null; + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + * @return The heartbeatConfig. + */ + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig getHeartbeatConfig() { + if (heartbeatConfigBuilder_ == null) { + return heartbeatConfig_ == null ? greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.getDefaultInstance() : heartbeatConfig_; + } else { + return heartbeatConfigBuilder_.getMessage(); + } + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + public Builder setHeartbeatConfig(greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig value) { + if (heartbeatConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + heartbeatConfig_ = value; + onChanged(); + } else { + heartbeatConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + public Builder setHeartbeatConfig( + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder builderForValue) { + if (heartbeatConfigBuilder_ == null) { + heartbeatConfig_ = builderForValue.build(); + onChanged(); + } else { + heartbeatConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + public Builder mergeHeartbeatConfig(greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig value) { + if (heartbeatConfigBuilder_ == null) { + if (heartbeatConfig_ != null) { + heartbeatConfig_ = + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.newBuilder(heartbeatConfig_).mergeFrom(value).buildPartial(); + } else { + heartbeatConfig_ = value; + } + onChanged(); + } else { + heartbeatConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + public Builder clearHeartbeatConfig() { + if (heartbeatConfigBuilder_ == null) { + heartbeatConfig_ = null; + onChanged(); + } else { + heartbeatConfig_ = null; + heartbeatConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder getHeartbeatConfigBuilder() { + + onChanged(); + return getHeartbeatConfigFieldBuilder().getBuilder(); + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfigOrBuilder getHeartbeatConfigOrBuilder() { + if (heartbeatConfigBuilder_ != null) { + return heartbeatConfigBuilder_.getMessageOrBuilder(); + } else { + return heartbeatConfig_ == null ? + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.getDefaultInstance() : heartbeatConfig_; + } + } + /** + *
+       * Heartbeat configuration issued by Metasrv
+       * Populated only in the handshake response
+       * 
+ * + * .greptime.v1.meta.HeartbeatConfig heartbeat_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfigOrBuilder> + getHeartbeatConfigFieldBuilder() { + if (heartbeatConfigBuilder_ == null) { + heartbeatConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfigOrBuilder>( + getHeartbeatConfig(), + getParentForChildren(), + isClean()); + heartbeatConfig_ = null; + } + return heartbeatConfigBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12175,6 +12453,568 @@ com.google.protobuf.ByteString defaultValue); } + public interface HeartbeatConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.HeartbeatConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 heartbeat_interval_ms = 1; + * @return The heartbeatIntervalMs. + */ + long getHeartbeatIntervalMs(); + + /** + * uint64 retry_interval_ms = 2; + * @return The retryIntervalMs. + */ + long getRetryIntervalMs(); + } + /** + * Protobuf type {@code greptime.v1.meta.HeartbeatConfig} + */ + public static final class HeartbeatConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.HeartbeatConfig) + HeartbeatConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HeartbeatConfig.newBuilder() to construct. + private HeartbeatConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HeartbeatConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HeartbeatConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HeartbeatConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + heartbeatIntervalMs_ = input.readUInt64(); + break; + } + case 16: { + + retryIntervalMs_ = input.readUInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.class, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder.class); + } + + public static final int HEARTBEAT_INTERVAL_MS_FIELD_NUMBER = 1; + private long heartbeatIntervalMs_; + /** + * uint64 heartbeat_interval_ms = 1; + * @return The heartbeatIntervalMs. + */ + @java.lang.Override + public long getHeartbeatIntervalMs() { + return heartbeatIntervalMs_; + } + + public static final int RETRY_INTERVAL_MS_FIELD_NUMBER = 2; + private long retryIntervalMs_; + /** + * uint64 retry_interval_ms = 2; + * @return The retryIntervalMs. + */ + @java.lang.Override + public long getRetryIntervalMs() { + return retryIntervalMs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (heartbeatIntervalMs_ != 0L) { + output.writeUInt64(1, heartbeatIntervalMs_); + } + if (retryIntervalMs_ != 0L) { + output.writeUInt64(2, retryIntervalMs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (heartbeatIntervalMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, heartbeatIntervalMs_); + } + if (retryIntervalMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, retryIntervalMs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig)) { + return super.equals(obj); + } + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig other = (greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig) obj; + + if (getHeartbeatIntervalMs() + != other.getHeartbeatIntervalMs()) return false; + if (getRetryIntervalMs() + != other.getRetryIntervalMs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HEARTBEAT_INTERVAL_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHeartbeatIntervalMs()); + hash = (37 * hash) + RETRY_INTERVAL_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRetryIntervalMs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.HeartbeatConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.HeartbeatConfig) + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.class, greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.Builder.class); + } + + // Construct using greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + heartbeatIntervalMs_ = 0L; + + retryIntervalMs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.HeartbeatOuterClass.internal_static_greptime_v1_meta_HeartbeatConfig_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig getDefaultInstanceForType() { + return greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig build() { + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig buildPartial() { + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig result = new greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig(this); + result.heartbeatIntervalMs_ = heartbeatIntervalMs_; + result.retryIntervalMs_ = retryIntervalMs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig) { + return mergeFrom((greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig other) { + if (other == greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig.getDefaultInstance()) return this; + if (other.getHeartbeatIntervalMs() != 0L) { + setHeartbeatIntervalMs(other.getHeartbeatIntervalMs()); + } + if (other.getRetryIntervalMs() != 0L) { + setRetryIntervalMs(other.getRetryIntervalMs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long heartbeatIntervalMs_ ; + /** + * uint64 heartbeat_interval_ms = 1; + * @return The heartbeatIntervalMs. + */ + @java.lang.Override + public long getHeartbeatIntervalMs() { + return heartbeatIntervalMs_; + } + /** + * uint64 heartbeat_interval_ms = 1; + * @param value The heartbeatIntervalMs to set. + * @return This builder for chaining. + */ + public Builder setHeartbeatIntervalMs(long value) { + + heartbeatIntervalMs_ = value; + onChanged(); + return this; + } + /** + * uint64 heartbeat_interval_ms = 1; + * @return This builder for chaining. + */ + public Builder clearHeartbeatIntervalMs() { + + heartbeatIntervalMs_ = 0L; + onChanged(); + return this; + } + + private long retryIntervalMs_ ; + /** + * uint64 retry_interval_ms = 2; + * @return The retryIntervalMs. + */ + @java.lang.Override + public long getRetryIntervalMs() { + return retryIntervalMs_; + } + /** + * uint64 retry_interval_ms = 2; + * @param value The retryIntervalMs to set. + * @return This builder for chaining. + */ + public Builder setRetryIntervalMs(long value) { + + retryIntervalMs_ = value; + onChanged(); + return this; + } + /** + * uint64 retry_interval_ms = 2; + * @return This builder for chaining. + */ + public Builder clearRetryIntervalMs() { + + retryIntervalMs_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.HeartbeatConfig) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.HeartbeatConfig) + private static final greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig(); + } + + public static greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeartbeatConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeartbeatConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.HeartbeatOuterClass.HeartbeatConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface GrantedRegionOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.meta.GrantedRegion) com.google.protobuf.MessageOrBuilder { @@ -17116,6 +17956,11 @@ com.google.protobuf.ByteString defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_HeartbeatResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_HeartbeatConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_HeartbeatConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_GrantedRegion_descriptor; private static final @@ -17201,36 +18046,40 @@ com.google.protobuf.ByteString defaultValue); "FlowStat.FlowLastExecTimeMapEntry\0323\n\021Flo" + "wStatSizeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001" + "(\004:\0028\001\032:\n\030FlowLastExecTimeMapEntry\022\013\n\003ke" + - "y\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\265\001\n\021Heartbeat" + + "y\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\362\001\n\021Heartbeat" + "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" + "eta.ResponseHeader\0229\n\017mailbox_message\030\002 " + "\001(\0132 .greptime.v1.meta.MailboxMessage\0223\n" + "\014region_lease\030\003 \001(\0132\035.greptime.v1.meta.R" + - "egionLease\"\306\001\n\rGrantedRegion\022\021\n\tregion_i" + - "d\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta" + - ".RegionRole\022C\n\nextensions\030c \003(\0132/.grepti" + - "me.v1.meta.GrantedRegion.ExtensionsEntry" + - "\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\014:\0028\001\"\222\001\n\013RegionLease\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_sec" + - "onds\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.g" + - "reptime.v1.meta.RequestHeader\"m\n\021AskLead" + - "erResponse\0220\n\006header\030\001 \001(\0132 .greptime.v1" + - ".meta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.g" + - "reptime.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\020timestamp_millis\030\005 \001(\003\022" + - "\016\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRole" + - "\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n\021Downgradin" + - "gLeader\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\".g" + - "reptime.v1.meta.HeartbeatRequest\032#.grept" + - "ime.v1.meta.HeartbeatResponse\"\000(\0010\001\022V\n\tA" + - "skLeader\022\".greptime.v1.meta.AskLeaderReq" + - "uest\032#.greptime.v1.meta.AskLeaderRespons" + - "e\"\000B