feat: flow state size (#193)

* feat: add flow state size

* chore: protoc

* refactor: use FlowId not uint64

* fix: use uint32

* chore: make
This commit is contained in:
discord9
2024-10-29 17:06:51 +08:00
committed by GitHub
parent b4d301184e
commit fc45ac4cce
5 changed files with 2112 additions and 280 deletions
+375 -54
View File
@@ -31,6 +31,7 @@ PROTOBUF_CONSTEXPR HeartbeatRequest::HeartbeatRequest(
, /*decltype(_impl_.report_interval_)*/nullptr , /*decltype(_impl_.report_interval_)*/nullptr
, /*decltype(_impl_.mailbox_message_)*/nullptr , /*decltype(_impl_.mailbox_message_)*/nullptr
, /*decltype(_impl_.info_)*/nullptr , /*decltype(_impl_.info_)*/nullptr
, /*decltype(_impl_.flow_stat_)*/nullptr
, /*decltype(_impl_.duration_since_epoch_)*/uint64_t{0u} , /*decltype(_impl_.duration_since_epoch_)*/uint64_t{0u}
, /*decltype(_impl_.node_epoch_)*/uint64_t{0u} , /*decltype(_impl_.node_epoch_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {} , /*decltype(_impl_._cached_size_)*/{}} {}
@@ -88,6 +89,30 @@ struct RegionStatDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionStatDefaultTypeInternal _RegionStat_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionStatDefaultTypeInternal _RegionStat_default_instance_;
PROTOBUF_CONSTEXPR FlowStat_FlowStatSizeEntry_DoNotUse::FlowStat_FlowStatSizeEntry_DoNotUse(
::_pbi::ConstantInitialized) {}
struct FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal {
PROTOBUF_CONSTEXPR FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal() {}
union {
FlowStat_FlowStatSizeEntry_DoNotUse _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal _FlowStat_FlowStatSizeEntry_DoNotUse_default_instance_;
PROTOBUF_CONSTEXPR FlowStat::FlowStat(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.flow_stat_size_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct FlowStatDefaultTypeInternal {
PROTOBUF_CONSTEXPR FlowStatDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~FlowStatDefaultTypeInternal() {}
union {
FlowStat _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowStatDefaultTypeInternal _FlowStat_default_instance_;
PROTOBUF_CONSTEXPR HeartbeatResponse::HeartbeatResponse( PROTOBUF_CONSTEXPR HeartbeatResponse::HeartbeatResponse(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.header_)*/nullptr /*decltype(_impl_.header_)*/nullptr
@@ -183,7 +208,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace meta } // namespace meta
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[10]; static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[12];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto[1]; 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; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto = nullptr;
@@ -202,6 +227,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.duration_since_epoch_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.duration_since_epoch_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.node_epoch_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.node_epoch_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.info_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.info_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatRequest, _impl_.flow_stat_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@@ -234,6 +260,23 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _impl_.engine_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _impl_.engine_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _impl_.role_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _impl_.role_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _impl_.extensions_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat, _impl_.extensions_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat, _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::FlowStat, _impl_.flow_stat_size_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatResponse, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatResponse, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@@ -292,15 +335,17 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
}; };
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::meta::HeartbeatRequest)}, { 0, -1, -1, sizeof(::greptime::v1::meta::HeartbeatRequest)},
{ 14, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)}, { 15, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)},
{ 23, 31, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)}, { 24, 32, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)},
{ 33, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, { 34, -1, -1, sizeof(::greptime::v1::meta::RegionStat)},
{ 46, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, { 47, 55, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)},
{ 55, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, { 57, -1, -1, sizeof(::greptime::v1::meta::FlowStat)},
{ 63, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, { 64, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)},
{ 73, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, { 73, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)},
{ 80, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, { 81, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
{ 88, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, { 91, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
{ 98, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
{ 106, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -308,6 +353,8 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::meta::_NodeInfo_default_instance_._instance, &::greptime::v1::meta::_NodeInfo_default_instance_._instance,
&::greptime::v1::meta::_RegionStat_ExtensionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::meta::_RegionStat_ExtensionsEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::meta::_RegionStat_default_instance_._instance, &::greptime::v1::meta::_RegionStat_default_instance_._instance,
&::greptime::v1::meta::_FlowStat_FlowStatSizeEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::meta::_FlowStat_default_instance_._instance,
&::greptime::v1::meta::_HeartbeatResponse_default_instance_._instance, &::greptime::v1::meta::_HeartbeatResponse_default_instance_._instance,
&::greptime::v1::meta::_GrantedRegion_default_instance_._instance, &::greptime::v1::meta::_GrantedRegion_default_instance_._instance,
&::greptime::v1::meta::_RegionLease_default_instance_._instance, &::greptime::v1::meta::_RegionLease_default_instance_._instance,
@@ -319,7 +366,7 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n greptime/v1/meta/heartbeat.proto\022\020grep" "\n greptime/v1/meta/heartbeat.proto\022\020grep"
"time.v1.meta\032\035greptime/v1/meta/common.pr" "time.v1.meta\032\035greptime/v1/meta/common.pr"
"oto\"\355\002\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013" "oto\"\234\003\n\020HeartbeatRequest\022/\n\006header\030\001 \001(\013"
"2\037.greptime.v1.meta.RequestHeader\022$\n\004pee" "2\037.greptime.v1.meta.RequestHeader\022$\n\004pee"
"r\030\002 \001(\0132\026.greptime.v1.meta.Peer\0227\n\017repor" "r\030\002 \001(\0132\026.greptime.v1.meta.Peer\0227\n\017repor"
"t_interval\030\003 \001(\0132\036.greptime.v1.meta.Time" "t_interval\030\003 \001(\0132\036.greptime.v1.meta.Time"
@@ -328,50 +375,55 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[]
"\005 \001(\0132 .greptime.v1.meta.MailboxMessage\022" "\005 \001(\0132 .greptime.v1.meta.MailboxMessage\022"
"\034\n\024duration_since_epoch\030\006 \001(\004\022\022\n\nnode_ep" "\034\n\024duration_since_epoch\030\006 \001(\004\022\022\n\nnode_ep"
"och\030\007 \001(\004\022(\n\004info\030\010 \001(\0132\032.greptime.v1.me" "och\030\007 \001(\004\022(\n\004info\030\010 \001(\0132\032.greptime.v1.me"
"ta.NodeInfo\"F\n\010NodeInfo\022\017\n\007version\030\001 \001(\t" "ta.NodeInfo\022-\n\tflow_stat\030\t \001(\0132\032.greptim"
"\022\022\n\ngit_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 " "e.v1.meta.FlowStat\"F\n\010NodeInfo\022\017\n\007versio"
"\001(\004\"\207\002\n\nRegionStat\022\021\n\tregion_id\030\001 \001(\004\022\014\n" "n\030\001 \001(\t\022\022\n\ngit_commit\030\002 \001(\t\022\025\n\rstart_tim"
"\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021approximate" "e_ms\030\003 \001(\004\"\207\002\n\nRegionStat\022\021\n\tregion_id\030\001"
"_bytes\030\004 \001(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004role\030\007 \001" " \001(\004\022\014\n\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021appr"
"(\0162\034.greptime.v1.meta.RegionRole\022@\n\nexte" "oximate_bytes\030\004 \001(\003\022\016\n\006engine\030\006 \001(\t\022*\n\004r"
"nsions\030c \003(\0132,.greptime.v1.meta.RegionSt" "ole\030\007 \001(\0162\034.greptime.v1.meta.RegionRole\022"
"at.ExtensionsEntry\0321\n\017ExtensionsEntry\022\013\n" "@\n\nextensions\030c \003(\0132,.greptime.v1.meta.R"
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\265\001\n\021Heartb" "egionStat.ExtensionsEntry\0321\n\017ExtensionsE"
"eatResponse\0220\n\006header\030\001 \001(\0132 .greptime.v" "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\205\001\n"
"1.meta.ResponseHeader\0229\n\017mailbox_message" "\010FlowStat\022D\n\016flow_stat_size\030\001 \003(\0132,.grep"
"\030\002 \001(\0132 .greptime.v1.meta.MailboxMessage" "time.v1.meta.FlowStat.FlowStatSizeEntry\032"
"\0223\n\014region_lease\030\003 \001(\0132\035.greptime.v1.met" "3\n\021FlowStatSizeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005val"
"a.RegionLease\"N\n\rGrantedRegion\022\021\n\tregion" "ue\030\002 \001(\004:\0028\001\"\265\001\n\021HeartbeatResponse\0220\n\006he"
"_id\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.me" "ader\030\001 \001(\0132 .greptime.v1.meta.ResponseHe"
"ta.RegionRole\"\222\001\n\013RegionLease\0220\n\007regions" "ader\0229\n\017mailbox_message\030\002 \001(\0132 .greptime"
"\030\001 \003(\0132\037.greptime.v1.meta.GrantedRegion\022" ".v1.meta.MailboxMessage\0223\n\014region_lease\030"
"\034\n\024duration_since_epoch\030\002 \001(\004\022\025\n\rlease_s" "\003 \001(\0132\035.greptime.v1.meta.RegionLease\"N\n\r"
"econds\030\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003" "GrantedRegion\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role"
"(\004\"C\n\020AskLeaderRequest\022/\n\006header\030\001 \001(\0132\037" "\030\002 \001(\0162\034.greptime.v1.meta.RegionRole\"\222\001\n"
".greptime.v1.meta.RequestHeader\"m\n\021AskLe" "\013RegionLease\0220\n\007regions\030\001 \003(\0132\037.greptime"
"aderResponse\0220\n\006header\030\001 \001(\0132 .greptime." ".v1.meta.GrantedRegion\022\034\n\024duration_since"
"v1.meta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026" "_epoch\030\002 \001(\004\022\025\n\rlease_seconds\030\003 \001(\004\022\034\n\024c"
".greptime.v1.meta.Peer\"|\n\016MailboxMessage" "loseable_region_ids\030\004 \003(\004\"C\n\020AskLeaderRe"
"\022\n\n\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014\n\004from\030\003 " "quest\022/\n\006header\030\001 \001(\0132\037.greptime.v1.meta"
"\001(\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp_millis\030\005 \001(" ".RequestHeader\"m\n\021AskLeaderResponse\0220\n\006h"
"\003\022\016\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRo" "eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH"
"le\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n\021Downgrad" "eader\022&\n\006leader\030\002 \001(\0132\026.greptime.v1.meta"
"ingLeader\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\"" ".Peer\"|\n\016MailboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007s"
".greptime.v1.meta.HeartbeatRequest\032#.gre" "ubject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030"
"ptime.v1.meta.HeartbeatResponse\"\000(\0010\001\022V\n" "\n\020timestamp_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000"
"\tAskLeader\022\".greptime.v1.meta.AskLeaderR" "B\t\n\007payload*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n"
"equest\032#.greptime.v1.meta.AskLeaderRespo" "\010Follower\020\001\022\025\n\021DowngradingLeader\020\0022\277\001\n\tH"
"nse\"\000B<Z:github.com/GreptimeTeam/greptim" "eartbeat\022Z\n\tHeartbeat\022\".greptime.v1.meta"
"e-proto/go/greptime/v1/metab\006proto3" ".HeartbeatRequest\032#.greptime.v1.meta.Hea"
"rtbeatResponse\"\000(\0010\001\022V\n\tAskLeader\022\".grep"
"time.v1.meta.AskLeaderRequest\032#.greptime"
".v1.meta.AskLeaderResponse\"\000B<Z:github.c"
"om/GreptimeTeam/greptime-proto/go/grepti"
"me/v1/metab\006proto3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps[1] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto = {
false, false, 1835, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto, false, false, 2018, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
"greptime/v1/meta/heartbeat.proto", "greptime/v1/meta/heartbeat.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 10, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 12,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto, file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto, file_level_service_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
@@ -410,6 +462,7 @@ class HeartbeatRequest::_Internal {
static const ::greptime::v1::meta::TimeInterval& report_interval(const HeartbeatRequest* msg); static const ::greptime::v1::meta::TimeInterval& report_interval(const HeartbeatRequest* msg);
static const ::greptime::v1::meta::MailboxMessage& mailbox_message(const HeartbeatRequest* msg); static const ::greptime::v1::meta::MailboxMessage& mailbox_message(const HeartbeatRequest* msg);
static const ::greptime::v1::meta::NodeInfo& info(const HeartbeatRequest* msg); static const ::greptime::v1::meta::NodeInfo& info(const HeartbeatRequest* msg);
static const ::greptime::v1::meta::FlowStat& flow_stat(const HeartbeatRequest* msg);
}; };
const ::greptime::v1::meta::RequestHeader& const ::greptime::v1::meta::RequestHeader&
@@ -432,6 +485,10 @@ const ::greptime::v1::meta::NodeInfo&
HeartbeatRequest::_Internal::info(const HeartbeatRequest* msg) { HeartbeatRequest::_Internal::info(const HeartbeatRequest* msg) {
return *msg->_impl_.info_; return *msg->_impl_.info_;
} }
const ::greptime::v1::meta::FlowStat&
HeartbeatRequest::_Internal::flow_stat(const HeartbeatRequest* msg) {
return *msg->_impl_.flow_stat_;
}
void HeartbeatRequest::clear_header() { void HeartbeatRequest::clear_header() {
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_; delete _impl_.header_;
@@ -466,6 +523,7 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from)
, decltype(_impl_.report_interval_){nullptr} , decltype(_impl_.report_interval_){nullptr}
, decltype(_impl_.mailbox_message_){nullptr} , decltype(_impl_.mailbox_message_){nullptr}
, decltype(_impl_.info_){nullptr} , decltype(_impl_.info_){nullptr}
, decltype(_impl_.flow_stat_){nullptr}
, decltype(_impl_.duration_since_epoch_){} , decltype(_impl_.duration_since_epoch_){}
, decltype(_impl_.node_epoch_){} , decltype(_impl_.node_epoch_){}
, /*decltype(_impl_._cached_size_)*/{}}; , /*decltype(_impl_._cached_size_)*/{}};
@@ -486,6 +544,9 @@ HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& from)
if (from._internal_has_info()) { if (from._internal_has_info()) {
_this->_impl_.info_ = new ::greptime::v1::meta::NodeInfo(*from._impl_.info_); _this->_impl_.info_ = new ::greptime::v1::meta::NodeInfo(*from._impl_.info_);
} }
if (from._internal_has_flow_stat()) {
_this->_impl_.flow_stat_ = new ::greptime::v1::meta::FlowStat(*from._impl_.flow_stat_);
}
::memcpy(&_impl_.duration_since_epoch_, &from._impl_.duration_since_epoch_, ::memcpy(&_impl_.duration_since_epoch_, &from._impl_.duration_since_epoch_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.node_epoch_) - static_cast<size_t>(reinterpret_cast<char*>(&_impl_.node_epoch_) -
reinterpret_cast<char*>(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_)); reinterpret_cast<char*>(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_));
@@ -503,6 +564,7 @@ inline void HeartbeatRequest::SharedCtor(
, decltype(_impl_.report_interval_){nullptr} , decltype(_impl_.report_interval_){nullptr}
, decltype(_impl_.mailbox_message_){nullptr} , decltype(_impl_.mailbox_message_){nullptr}
, decltype(_impl_.info_){nullptr} , decltype(_impl_.info_){nullptr}
, decltype(_impl_.flow_stat_){nullptr}
, decltype(_impl_.duration_since_epoch_){uint64_t{0u}} , decltype(_impl_.duration_since_epoch_){uint64_t{0u}}
, decltype(_impl_.node_epoch_){uint64_t{0u}} , decltype(_impl_.node_epoch_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
@@ -526,6 +588,7 @@ inline void HeartbeatRequest::SharedDtor() {
if (this != internal_default_instance()) delete _impl_.report_interval_; if (this != internal_default_instance()) delete _impl_.report_interval_;
if (this != internal_default_instance()) delete _impl_.mailbox_message_; if (this != internal_default_instance()) delete _impl_.mailbox_message_;
if (this != internal_default_instance()) delete _impl_.info_; if (this != internal_default_instance()) delete _impl_.info_;
if (this != internal_default_instance()) delete _impl_.flow_stat_;
} }
void HeartbeatRequest::SetCachedSize(int size) const { void HeartbeatRequest::SetCachedSize(int size) const {
@@ -559,6 +622,10 @@ void HeartbeatRequest::Clear() {
delete _impl_.info_; delete _impl_.info_;
} }
_impl_.info_ = nullptr; _impl_.info_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.flow_stat_ != nullptr) {
delete _impl_.flow_stat_;
}
_impl_.flow_stat_ = nullptr;
::memset(&_impl_.duration_since_epoch_, 0, static_cast<size_t>( ::memset(&_impl_.duration_since_epoch_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.node_epoch_) - reinterpret_cast<char*>(&_impl_.node_epoch_) -
reinterpret_cast<char*>(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_)); reinterpret_cast<char*>(&_impl_.duration_since_epoch_)) + sizeof(_impl_.node_epoch_));
@@ -640,6 +707,14 @@ const char* HeartbeatRequest::_InternalParse(const char* ptr, ::_pbi::ParseConte
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.meta.FlowStat flow_stat = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
ptr = ctx->ParseMessage(_internal_mutable_flow_stat(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -724,6 +799,13 @@ uint8_t* HeartbeatRequest::_InternalSerialize(
_Internal::info(this).GetCachedSize(), target, stream); _Internal::info(this).GetCachedSize(), target, stream);
} }
// .greptime.v1.meta.FlowStat flow_stat = 9;
if (this->_internal_has_flow_stat()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(9, _Internal::flow_stat(this),
_Internal::flow_stat(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -782,6 +864,13 @@ size_t HeartbeatRequest::ByteSizeLong() const {
*_impl_.info_); *_impl_.info_);
} }
// .greptime.v1.meta.FlowStat flow_stat = 9;
if (this->_internal_has_flow_stat()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.flow_stat_);
}
// uint64 duration_since_epoch = 6; // uint64 duration_since_epoch = 6;
if (this->_internal_duration_since_epoch() != 0) { if (this->_internal_duration_since_epoch() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_duration_since_epoch()); total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_duration_since_epoch());
@@ -831,6 +920,10 @@ void HeartbeatRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
_this->_internal_mutable_info()->::greptime::v1::meta::NodeInfo::MergeFrom( _this->_internal_mutable_info()->::greptime::v1::meta::NodeInfo::MergeFrom(
from._internal_info()); from._internal_info());
} }
if (from._internal_has_flow_stat()) {
_this->_internal_mutable_flow_stat()->::greptime::v1::meta::FlowStat::MergeFrom(
from._internal_flow_stat());
}
if (from._internal_duration_since_epoch() != 0) { if (from._internal_duration_since_epoch() != 0) {
_this->_internal_set_duration_since_epoch(from._internal_duration_since_epoch()); _this->_internal_set_duration_since_epoch(from._internal_duration_since_epoch());
} }
@@ -1567,6 +1660,226 @@ void RegionStat::InternalSwap(RegionStat* other) {
// =================================================================== // ===================================================================
FlowStat_FlowStatSizeEntry_DoNotUse::FlowStat_FlowStatSizeEntry_DoNotUse() {}
FlowStat_FlowStatSizeEntry_DoNotUse::FlowStat_FlowStatSizeEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void FlowStat_FlowStatSizeEntry_DoNotUse::MergeFrom(const FlowStat_FlowStatSizeEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata FlowStat_FlowStatSizeEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[4]);
}
// ===================================================================
class FlowStat::_Internal {
public:
};
FlowStat::FlowStat(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
if (arena != nullptr && !is_message_owned) {
arena->OwnCustomDestructor(this, &FlowStat::ArenaDtor);
}
// @@protoc_insertion_point(arena_constructor:greptime.v1.meta.FlowStat)
}
FlowStat::FlowStat(const FlowStat& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
FlowStat* const _this = this; (void)_this;
new (&_impl_) Impl_{
/*decltype(_impl_.flow_stat_size_)*/{}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.flow_stat_size_.MergeFrom(from._impl_.flow_stat_size_);
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.FlowStat)
}
inline void FlowStat::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
/*decltype(_impl_.flow_stat_size_)*/{::_pbi::ArenaInitialized(), arena}
, /*decltype(_impl_._cached_size_)*/{}
};
}
FlowStat::~FlowStat() {
// @@protoc_insertion_point(destructor:greptime.v1.meta.FlowStat)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
ArenaDtor(this);
return;
}
SharedDtor();
}
inline void FlowStat::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.flow_stat_size_.Destruct();
_impl_.flow_stat_size_.~MapField();
}
void FlowStat::ArenaDtor(void* object) {
FlowStat* _this = reinterpret_cast< FlowStat* >(object);
_this->_impl_.flow_stat_size_.Destruct();
}
void FlowStat::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void FlowStat::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.FlowStat)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.flow_stat_size_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* FlowStat::_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) {
// map<uint32, uint64> flow_stat_size = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&_impl_.flow_stat_size_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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* FlowStat::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.FlowStat)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// map<uint32, uint64> flow_stat_size = 1;
if (!this->_internal_flow_stat_size().empty()) {
using MapType = ::_pb::Map<uint32_t, uint64_t>;
using WireHelper = FlowStat_FlowStatSizeEntry_DoNotUse::Funcs;
const auto& map_field = this->_internal_flow_stat_size();
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
for (const auto& entry : ::_pbi::MapSorterFlat<MapType>(map_field)) {
target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
}
} else {
for (const auto& entry : map_field) {
target = WireHelper::InternalSerialize(1, entry.first, entry.second, 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);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.FlowStat)
return target;
}
size_t FlowStat::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.FlowStat)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<uint32, uint64> flow_stat_size = 1;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_flow_stat_size_size());
for (::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >::const_iterator
it = this->_internal_flow_stat_size().begin();
it != this->_internal_flow_stat_size().end(); ++it) {
total_size += FlowStat_FlowStatSizeEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowStat::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
FlowStat::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowStat::GetClassData() const { return &_class_data_; }
void FlowStat::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<FlowStat*>(&to_msg);
auto& from = static_cast<const FlowStat&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.FlowStat)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.flow_stat_size_.MergeFrom(from._impl_.flow_stat_size_);
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void FlowStat::CopyFrom(const FlowStat& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.FlowStat)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FlowStat::IsInitialized() const {
return true;
}
void FlowStat::InternalSwap(FlowStat* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.flow_stat_size_.InternalSwap(&other->_impl_.flow_stat_size_);
}
::PROTOBUF_NAMESPACE_ID::Metadata FlowStat::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[5]);
}
// ===================================================================
class HeartbeatResponse::_Internal { class HeartbeatResponse::_Internal {
public: public:
static const ::greptime::v1::meta::ResponseHeader& header(const HeartbeatResponse* msg); static const ::greptime::v1::meta::ResponseHeader& header(const HeartbeatResponse* msg);
@@ -1848,7 +2161,7 @@ void HeartbeatResponse::InternalSwap(HeartbeatResponse* other) {
::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatResponse::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[4]); file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]);
} }
// =================================================================== // ===================================================================
@@ -2062,7 +2375,7 @@ void GrantedRegion::InternalSwap(GrantedRegion* other) {
::PROTOBUF_NAMESPACE_ID::Metadata GrantedRegion::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata GrantedRegion::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[5]); file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]);
} }
// =================================================================== // ===================================================================
@@ -2349,7 +2662,7 @@ void RegionLease::InternalSwap(RegionLease* other) {
::PROTOBUF_NAMESPACE_ID::Metadata RegionLease::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata RegionLease::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]); file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]);
} }
// =================================================================== // ===================================================================
@@ -2548,7 +2861,7 @@ void AskLeaderRequest::InternalSwap(AskLeaderRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderRequest::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]); file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9]);
} }
// =================================================================== // ===================================================================
@@ -2799,7 +3112,7 @@ void AskLeaderResponse::InternalSwap(AskLeaderResponse* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderResponse::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderResponse::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]); file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[10]);
} }
// =================================================================== // ===================================================================
@@ -3239,7 +3552,7 @@ void MailboxMessage::InternalSwap(MailboxMessage* other) {
::PROTOBUF_NAMESPACE_ID::Metadata MailboxMessage::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata MailboxMessage::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9]); file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[11]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -3263,6 +3576,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::RegionStat*
Arena::CreateMaybeMessage< ::greptime::v1::meta::RegionStat >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::meta::RegionStat >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::RegionStat >(arena); return Arena::CreateMessageInternal< ::greptime::v1::meta::RegionStat >(arena);
} }
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse*
Arena::CreateMaybeMessage< ::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::FlowStat*
Arena::CreateMaybeMessage< ::greptime::v1::meta::FlowStat >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::FlowStat >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatResponse* template<> PROTOBUF_NOINLINE ::greptime::v1::meta::HeartbeatResponse*
Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatResponse >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::meta::HeartbeatResponse >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatResponse >(arena); return Arena::CreateMessageInternal< ::greptime::v1::meta::HeartbeatResponse >(arena);
+350 -6
View File
@@ -58,6 +58,12 @@ extern AskLeaderRequestDefaultTypeInternal _AskLeaderRequest_default_instance_;
class AskLeaderResponse; class AskLeaderResponse;
struct AskLeaderResponseDefaultTypeInternal; struct AskLeaderResponseDefaultTypeInternal;
extern AskLeaderResponseDefaultTypeInternal _AskLeaderResponse_default_instance_; extern AskLeaderResponseDefaultTypeInternal _AskLeaderResponse_default_instance_;
class FlowStat;
struct FlowStatDefaultTypeInternal;
extern FlowStatDefaultTypeInternal _FlowStat_default_instance_;
class FlowStat_FlowStatSizeEntry_DoNotUse;
struct FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal;
extern FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal _FlowStat_FlowStatSizeEntry_DoNotUse_default_instance_;
class GrantedRegion; class GrantedRegion;
struct GrantedRegionDefaultTypeInternal; struct GrantedRegionDefaultTypeInternal;
extern GrantedRegionDefaultTypeInternal _GrantedRegion_default_instance_; extern GrantedRegionDefaultTypeInternal _GrantedRegion_default_instance_;
@@ -88,6 +94,8 @@ extern RegionStat_ExtensionsEntry_DoNotUseDefaultTypeInternal _RegionStat_Extens
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NAMESPACE_OPEN
template<> ::greptime::v1::meta::AskLeaderRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::AskLeaderRequest>(Arena*); template<> ::greptime::v1::meta::AskLeaderRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::AskLeaderRequest>(Arena*);
template<> ::greptime::v1::meta::AskLeaderResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::AskLeaderResponse>(Arena*); template<> ::greptime::v1::meta::AskLeaderResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::AskLeaderResponse>(Arena*);
template<> ::greptime::v1::meta::FlowStat* Arena::CreateMaybeMessage<::greptime::v1::meta::FlowStat>(Arena*);
template<> ::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::meta::GrantedRegion* Arena::CreateMaybeMessage<::greptime::v1::meta::GrantedRegion>(Arena*); template<> ::greptime::v1::meta::GrantedRegion* Arena::CreateMaybeMessage<::greptime::v1::meta::GrantedRegion>(Arena*);
template<> ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest>(Arena*); template<> ::greptime::v1::meta::HeartbeatRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest>(Arena*);
template<> ::greptime::v1::meta::HeartbeatResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatResponse>(Arena*); template<> ::greptime::v1::meta::HeartbeatResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatResponse>(Arena*);
@@ -256,6 +264,7 @@ class HeartbeatRequest final :
kReportIntervalFieldNumber = 3, kReportIntervalFieldNumber = 3,
kMailboxMessageFieldNumber = 5, kMailboxMessageFieldNumber = 5,
kInfoFieldNumber = 8, kInfoFieldNumber = 8,
kFlowStatFieldNumber = 9,
kDurationSinceEpochFieldNumber = 6, kDurationSinceEpochFieldNumber = 6,
kNodeEpochFieldNumber = 7, kNodeEpochFieldNumber = 7,
}; };
@@ -367,6 +376,24 @@ class HeartbeatRequest final :
::greptime::v1::meta::NodeInfo* info); ::greptime::v1::meta::NodeInfo* info);
::greptime::v1::meta::NodeInfo* unsafe_arena_release_info(); ::greptime::v1::meta::NodeInfo* unsafe_arena_release_info();
// .greptime.v1.meta.FlowStat flow_stat = 9;
bool has_flow_stat() const;
private:
bool _internal_has_flow_stat() const;
public:
void clear_flow_stat();
const ::greptime::v1::meta::FlowStat& flow_stat() const;
PROTOBUF_NODISCARD ::greptime::v1::meta::FlowStat* release_flow_stat();
::greptime::v1::meta::FlowStat* mutable_flow_stat();
void set_allocated_flow_stat(::greptime::v1::meta::FlowStat* flow_stat);
private:
const ::greptime::v1::meta::FlowStat& _internal_flow_stat() const;
::greptime::v1::meta::FlowStat* _internal_mutable_flow_stat();
public:
void unsafe_arena_set_allocated_flow_stat(
::greptime::v1::meta::FlowStat* flow_stat);
::greptime::v1::meta::FlowStat* unsafe_arena_release_flow_stat();
// uint64 duration_since_epoch = 6; // uint64 duration_since_epoch = 6;
void clear_duration_since_epoch(); void clear_duration_since_epoch();
uint64_t duration_since_epoch() const; uint64_t duration_since_epoch() const;
@@ -399,6 +426,7 @@ class HeartbeatRequest final :
::greptime::v1::meta::TimeInterval* report_interval_; ::greptime::v1::meta::TimeInterval* report_interval_;
::greptime::v1::meta::MailboxMessage* mailbox_message_; ::greptime::v1::meta::MailboxMessage* mailbox_message_;
::greptime::v1::meta::NodeInfo* info_; ::greptime::v1::meta::NodeInfo* info_;
::greptime::v1::meta::FlowStat* flow_stat_;
uint64_t duration_since_epoch_; uint64_t duration_since_epoch_;
uint64_t node_epoch_; uint64_t node_epoch_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -848,6 +876,193 @@ class RegionStat final :
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
class FlowStat_FlowStatSizeEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowStat_FlowStatSizeEntry_DoNotUse,
uint32_t, uint64_t,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64> {
public:
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowStat_FlowStatSizeEntry_DoNotUse,
uint32_t, uint64_t,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64> SuperType;
FlowStat_FlowStatSizeEntry_DoNotUse();
explicit PROTOBUF_CONSTEXPR FlowStat_FlowStatSizeEntry_DoNotUse(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
explicit FlowStat_FlowStatSizeEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void MergeFrom(const FlowStat_FlowStatSizeEntry_DoNotUse& other);
static const FlowStat_FlowStatSizeEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FlowStat_FlowStatSizeEntry_DoNotUse*>(&_FlowStat_FlowStatSizeEntry_DoNotUse_default_instance_); }
static bool ValidateKey(void*) { return true; }
static bool ValidateValue(void*) { return true; }
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto;
};
// -------------------------------------------------------------------
class FlowStat final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.FlowStat) */ {
public:
inline FlowStat() : FlowStat(nullptr) {}
~FlowStat() override;
explicit PROTOBUF_CONSTEXPR FlowStat(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
FlowStat(const FlowStat& from);
FlowStat(FlowStat&& from) noexcept
: FlowStat() {
*this = ::std::move(from);
}
inline FlowStat& operator=(const FlowStat& from) {
CopyFrom(from);
return *this;
}
inline FlowStat& operator=(FlowStat&& 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 FlowStat& default_instance() {
return *internal_default_instance();
}
static inline const FlowStat* internal_default_instance() {
return reinterpret_cast<const FlowStat*>(
&_FlowStat_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
friend void swap(FlowStat& a, FlowStat& b) {
a.Swap(&b);
}
inline void Swap(FlowStat* 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(FlowStat* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
FlowStat* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FlowStat>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const FlowStat& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const FlowStat& from) {
FlowStat::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(FlowStat* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.meta.FlowStat";
}
protected:
explicit FlowStat(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
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 {
kFlowStatSizeFieldNumber = 1,
};
// map<uint32, uint64> flow_stat_size = 1;
int flow_stat_size_size() const;
private:
int _internal_flow_stat_size_size() const;
public:
void clear_flow_stat_size();
private:
const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >&
_internal_flow_stat_size() const;
::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >*
_internal_mutable_flow_stat_size();
public:
const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >&
flow_stat_size() const;
::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >*
mutable_flow_stat_size();
// @@protoc_insertion_point(class_scope:greptime.v1.meta.FlowStat)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::MapField<
FlowStat_FlowStatSizeEntry_DoNotUse,
uint32_t, uint64_t,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64> flow_stat_size_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto;
};
// -------------------------------------------------------------------
class HeartbeatResponse final : class HeartbeatResponse final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.HeartbeatResponse) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.HeartbeatResponse) */ {
public: public:
@@ -896,7 +1111,7 @@ class HeartbeatResponse final :
&_HeartbeatResponse_default_instance_); &_HeartbeatResponse_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
4; 6;
friend void swap(HeartbeatResponse& a, HeartbeatResponse& b) { friend void swap(HeartbeatResponse& a, HeartbeatResponse& b) {
a.Swap(&b); a.Swap(&b);
@@ -1093,7 +1308,7 @@ class GrantedRegion final :
&_GrantedRegion_default_instance_); &_GrantedRegion_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
5; 7;
friend void swap(GrantedRegion& a, GrantedRegion& b) { friend void swap(GrantedRegion& a, GrantedRegion& b) {
a.Swap(&b); a.Swap(&b);
@@ -1252,7 +1467,7 @@ class RegionLease final :
&_RegionLease_default_instance_); &_RegionLease_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
6; 8;
friend void swap(RegionLease& a, RegionLease& b) { friend void swap(RegionLease& a, RegionLease& b) {
a.Swap(&b); a.Swap(&b);
@@ -1456,7 +1671,7 @@ class AskLeaderRequest final :
&_AskLeaderRequest_default_instance_); &_AskLeaderRequest_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
7; 9;
friend void swap(AskLeaderRequest& a, AskLeaderRequest& b) { friend void swap(AskLeaderRequest& a, AskLeaderRequest& b) {
a.Swap(&b); a.Swap(&b);
@@ -1613,7 +1828,7 @@ class AskLeaderResponse final :
&_AskLeaderResponse_default_instance_); &_AskLeaderResponse_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
8; 10;
friend void swap(AskLeaderResponse& a, AskLeaderResponse& b) { friend void swap(AskLeaderResponse& a, AskLeaderResponse& b) {
a.Swap(&b); a.Swap(&b);
@@ -1795,7 +2010,7 @@ class MailboxMessage final :
&_MailboxMessage_default_instance_); &_MailboxMessage_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
9; 11;
friend void swap(MailboxMessage& a, MailboxMessage& b) { friend void swap(MailboxMessage& a, MailboxMessage& b) {
a.Swap(&b); a.Swap(&b);
@@ -2510,6 +2725,96 @@ inline void HeartbeatRequest::set_allocated_info(::greptime::v1::meta::NodeInfo*
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.HeartbeatRequest.info) // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.HeartbeatRequest.info)
} }
// .greptime.v1.meta.FlowStat flow_stat = 9;
inline bool HeartbeatRequest::_internal_has_flow_stat() const {
return this != internal_default_instance() && _impl_.flow_stat_ != nullptr;
}
inline bool HeartbeatRequest::has_flow_stat() const {
return _internal_has_flow_stat();
}
inline void HeartbeatRequest::clear_flow_stat() {
if (GetArenaForAllocation() == nullptr && _impl_.flow_stat_ != nullptr) {
delete _impl_.flow_stat_;
}
_impl_.flow_stat_ = nullptr;
}
inline const ::greptime::v1::meta::FlowStat& HeartbeatRequest::_internal_flow_stat() const {
const ::greptime::v1::meta::FlowStat* p = _impl_.flow_stat_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::FlowStat&>(
::greptime::v1::meta::_FlowStat_default_instance_);
}
inline const ::greptime::v1::meta::FlowStat& HeartbeatRequest::flow_stat() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.HeartbeatRequest.flow_stat)
return _internal_flow_stat();
}
inline void HeartbeatRequest::unsafe_arena_set_allocated_flow_stat(
::greptime::v1::meta::FlowStat* flow_stat) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flow_stat_);
}
_impl_.flow_stat_ = flow_stat;
if (flow_stat) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.HeartbeatRequest.flow_stat)
}
inline ::greptime::v1::meta::FlowStat* HeartbeatRequest::release_flow_stat() {
::greptime::v1::meta::FlowStat* temp = _impl_.flow_stat_;
_impl_.flow_stat_ = 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::FlowStat* HeartbeatRequest::unsafe_arena_release_flow_stat() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.HeartbeatRequest.flow_stat)
::greptime::v1::meta::FlowStat* temp = _impl_.flow_stat_;
_impl_.flow_stat_ = nullptr;
return temp;
}
inline ::greptime::v1::meta::FlowStat* HeartbeatRequest::_internal_mutable_flow_stat() {
if (_impl_.flow_stat_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::meta::FlowStat>(GetArenaForAllocation());
_impl_.flow_stat_ = p;
}
return _impl_.flow_stat_;
}
inline ::greptime::v1::meta::FlowStat* HeartbeatRequest::mutable_flow_stat() {
::greptime::v1::meta::FlowStat* _msg = _internal_mutable_flow_stat();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.HeartbeatRequest.flow_stat)
return _msg;
}
inline void HeartbeatRequest::set_allocated_flow_stat(::greptime::v1::meta::FlowStat* flow_stat) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.flow_stat_;
}
if (flow_stat) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flow_stat);
if (message_arena != submessage_arena) {
flow_stat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, flow_stat, submessage_arena);
}
} else {
}
_impl_.flow_stat_ = flow_stat;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.HeartbeatRequest.flow_stat)
}
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// NodeInfo // NodeInfo
@@ -2821,6 +3126,41 @@ RegionStat::mutable_extensions() {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// FlowStat
// map<uint32, uint64> flow_stat_size = 1;
inline int FlowStat::_internal_flow_stat_size_size() const {
return _impl_.flow_stat_size_.size();
}
inline int FlowStat::flow_stat_size_size() const {
return _internal_flow_stat_size_size();
}
inline void FlowStat::clear_flow_stat_size() {
_impl_.flow_stat_size_.Clear();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >&
FlowStat::_internal_flow_stat_size() const {
return _impl_.flow_stat_size_.GetMap();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >&
FlowStat::flow_stat_size() const {
// @@protoc_insertion_point(field_map:greptime.v1.meta.FlowStat.flow_stat_size)
return _internal_flow_stat_size();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >*
FlowStat::_internal_mutable_flow_stat_size() {
return _impl_.flow_stat_size_.MutableMap();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >*
FlowStat::mutable_flow_stat_size() {
// @@protoc_insertion_point(field_mutable_map:greptime.v1.meta.FlowStat.flow_stat_size)
return _internal_mutable_flow_stat_size();
}
// -------------------------------------------------------------------
// HeartbeatResponse // HeartbeatResponse
// .greptime.v1.meta.ResponseHeader header = 1; // .greptime.v1.meta.ResponseHeader header = 1;
@@ -3827,6 +4167,10 @@ inline MailboxMessage::PayloadCase MailboxMessage::payload_case() const {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+257 -168
View File
@@ -41,9 +41,11 @@ const (
RegionRole_Leader RegionRole = 0 RegionRole_Leader RegionRole = 0
// Readonly region. // Readonly region.
RegionRole_Follower RegionRole = 1 RegionRole_Follower RegionRole = 1
// A downgrading region, which is in the process of downgrading from Leader to Follower. // A downgrading region, which is in the process of downgrading from Leader to
// Follower.
// //
// This role is used to prevent the region from being written during the downgrade process. // This role is used to prevent the region from being written during the
// downgrade process.
RegionRole_DowngradingLeader RegionRole = 2 RegionRole_DowngradingLeader RegionRole = 2
) )
@@ -107,6 +109,7 @@ type HeartbeatRequest struct {
// The node's epoch // The node's epoch
NodeEpoch uint64 `protobuf:"varint,7,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"` NodeEpoch uint64 `protobuf:"varint,7,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"`
Info *NodeInfo `protobuf:"bytes,8,opt,name=info,proto3" json:"info,omitempty"` Info *NodeInfo `protobuf:"bytes,8,opt,name=info,proto3" json:"info,omitempty"`
FlowStat *FlowStat `protobuf:"bytes,9,opt,name=flow_stat,json=flowStat,proto3" json:"flow_stat,omitempty"`
} }
func (x *HeartbeatRequest) Reset() { func (x *HeartbeatRequest) Reset() {
@@ -197,6 +200,13 @@ func (x *HeartbeatRequest) GetInfo() *NodeInfo {
return nil return nil
} }
func (x *HeartbeatRequest) GetFlowStat() *FlowStat {
if x != nil {
return x.FlowStat
}
return nil
}
type NodeInfo struct { type NodeInfo struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -363,6 +373,56 @@ func (x *RegionStat) GetExtensions() map[string][]byte {
return nil return nil
} }
type FlowStat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Each flow's in mem state's size in bytes
// due to protobuf's key can't be a message, so we use uint32 as the key which
// is [`FlowId`]'s inner field `id`
FlowStatSize map[uint32]uint64 `protobuf:"bytes,1,rep,name=flow_stat_size,json=flowStatSize,proto3" json:"flow_stat_size,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
}
func (x *FlowStat) Reset() {
*x = FlowStat{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FlowStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FlowStat) ProtoMessage() {}
func (x *FlowStat) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FlowStat.ProtoReflect.Descriptor instead.
func (*FlowStat) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3}
}
func (x *FlowStat) GetFlowStatSize() map[uint32]uint64 {
if x != nil {
return x.FlowStatSize
}
return nil
}
type HeartbeatResponse struct { type HeartbeatResponse struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -376,7 +436,7 @@ type HeartbeatResponse struct {
func (x *HeartbeatResponse) Reset() { func (x *HeartbeatResponse) Reset() {
*x = HeartbeatResponse{} *x = HeartbeatResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -389,7 +449,7 @@ func (x *HeartbeatResponse) String() string {
func (*HeartbeatResponse) ProtoMessage() {} func (*HeartbeatResponse) ProtoMessage() {}
func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message { func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -402,7 +462,7 @@ func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead. // Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.
func (*HeartbeatResponse) Descriptor() ([]byte, []int) { func (*HeartbeatResponse) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3} return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4}
} }
func (x *HeartbeatResponse) GetHeader() *ResponseHeader { func (x *HeartbeatResponse) GetHeader() *ResponseHeader {
@@ -438,7 +498,7 @@ type GrantedRegion struct {
func (x *GrantedRegion) Reset() { func (x *GrantedRegion) Reset() {
*x = GrantedRegion{} *x = GrantedRegion{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -451,7 +511,7 @@ func (x *GrantedRegion) String() string {
func (*GrantedRegion) ProtoMessage() {} func (*GrantedRegion) ProtoMessage() {}
func (x *GrantedRegion) ProtoReflect() protoreflect.Message { func (x *GrantedRegion) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -464,7 +524,7 @@ func (x *GrantedRegion) ProtoReflect() protoreflect.Message {
// Deprecated: Use GrantedRegion.ProtoReflect.Descriptor instead. // Deprecated: Use GrantedRegion.ProtoReflect.Descriptor instead.
func (*GrantedRegion) Descriptor() ([]byte, []int) { func (*GrantedRegion) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4} return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5}
} }
func (x *GrantedRegion) GetRegionId() uint64 { func (x *GrantedRegion) GetRegionId() uint64 {
@@ -495,7 +555,7 @@ type RegionLease struct {
func (x *RegionLease) Reset() { func (x *RegionLease) Reset() {
*x = RegionLease{} *x = RegionLease{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -508,7 +568,7 @@ func (x *RegionLease) String() string {
func (*RegionLease) ProtoMessage() {} func (*RegionLease) ProtoMessage() {}
func (x *RegionLease) ProtoReflect() protoreflect.Message { func (x *RegionLease) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -521,7 +581,7 @@ func (x *RegionLease) ProtoReflect() protoreflect.Message {
// Deprecated: Use RegionLease.ProtoReflect.Descriptor instead. // Deprecated: Use RegionLease.ProtoReflect.Descriptor instead.
func (*RegionLease) Descriptor() ([]byte, []int) { func (*RegionLease) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5} return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6}
} }
func (x *RegionLease) GetRegions() []*GrantedRegion { func (x *RegionLease) GetRegions() []*GrantedRegion {
@@ -563,7 +623,7 @@ type AskLeaderRequest struct {
func (x *AskLeaderRequest) Reset() { func (x *AskLeaderRequest) Reset() {
*x = AskLeaderRequest{} *x = AskLeaderRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -576,7 +636,7 @@ func (x *AskLeaderRequest) String() string {
func (*AskLeaderRequest) ProtoMessage() {} func (*AskLeaderRequest) ProtoMessage() {}
func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message { func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -589,7 +649,7 @@ func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use AskLeaderRequest.ProtoReflect.Descriptor instead. // Deprecated: Use AskLeaderRequest.ProtoReflect.Descriptor instead.
func (*AskLeaderRequest) Descriptor() ([]byte, []int) { func (*AskLeaderRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6} return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{7}
} }
func (x *AskLeaderRequest) GetHeader() *RequestHeader { func (x *AskLeaderRequest) GetHeader() *RequestHeader {
@@ -611,7 +671,7 @@ type AskLeaderResponse struct {
func (x *AskLeaderResponse) Reset() { func (x *AskLeaderResponse) Reset() {
*x = AskLeaderResponse{} *x = AskLeaderResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -624,7 +684,7 @@ func (x *AskLeaderResponse) String() string {
func (*AskLeaderResponse) ProtoMessage() {} func (*AskLeaderResponse) ProtoMessage() {}
func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message { func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -637,7 +697,7 @@ func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use AskLeaderResponse.ProtoReflect.Descriptor instead. // Deprecated: Use AskLeaderResponse.ProtoReflect.Descriptor instead.
func (*AskLeaderResponse) Descriptor() ([]byte, []int) { func (*AskLeaderResponse) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{7} return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{8}
} }
func (x *AskLeaderResponse) GetHeader() *ResponseHeader { func (x *AskLeaderResponse) GetHeader() *ResponseHeader {
@@ -679,7 +739,7 @@ type MailboxMessage struct {
func (x *MailboxMessage) Reset() { func (x *MailboxMessage) Reset() {
*x = MailboxMessage{} *x = MailboxMessage{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -692,7 +752,7 @@ func (x *MailboxMessage) String() string {
func (*MailboxMessage) ProtoMessage() {} func (*MailboxMessage) ProtoMessage() {}
func (x *MailboxMessage) ProtoReflect() protoreflect.Message { func (x *MailboxMessage) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[8] mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -705,7 +765,7 @@ func (x *MailboxMessage) ProtoReflect() protoreflect.Message {
// Deprecated: Use MailboxMessage.ProtoReflect.Descriptor instead. // Deprecated: Use MailboxMessage.ProtoReflect.Descriptor instead.
func (*MailboxMessage) Descriptor() ([]byte, []int) { func (*MailboxMessage) Descriptor() ([]byte, []int) {
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{8} return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{9}
} }
func (x *MailboxMessage) GetId() uint64 { func (x *MailboxMessage) GetId() uint64 {
@@ -775,7 +835,7 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x03, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x04, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64,
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 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, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75,
@@ -804,112 +864,125 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
0x6f, 0x63, 0x68, 0x12, 0x2e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x6f, 0x63, 0x68, 0x12, 0x2e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69,
0x6e, 0x66, 0x6f, 0x22, 0x67, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x6e, 0x66, 0x6f, 0x12, 0x37, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74,
0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74,
0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x52, 0x08, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x22, 0x67, 0x0a, 0x08,
0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x22, 0xd5, 0x02, 0x0a, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,
0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x22, 0xd5, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x77, 0x63, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49,
0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x03, 0x20,
0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x70,
0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04,
0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x30,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65,
0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65,
0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65,
0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x5f,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
0x0e, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
0x40, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c,
0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73,
0x65, 0x22, 0x5e, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c,
0x65, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73,
0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65,
0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23,
0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18,
0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65,
0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64,
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61,
0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64,
0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65,
0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72,
0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f,
0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a,
0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a,
0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 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, 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, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65,
0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63,
0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 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, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74,
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3d,
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72,
0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9f, 0x01,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x66, 0x6c,
0x72, 0x6f, 0x74, 0x6f, 0x33, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46,
0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x1a, 0x3f,
0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x69, 0x6c,
0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x61, 0x69, 0x6c,
0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52,
0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x5e, 0x0a, 0x0d,
0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a,
0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f,
0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0xd1, 0x01, 0x0a,
0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18,
0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61,
0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04,
0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30,
0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c,
0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73,
0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48,
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a,
0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65,
0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06,
0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a,
0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12,
0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f,
0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a,
0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a,
0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69,
0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e,
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09,
0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 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 ( var (
@@ -925,50 +998,54 @@ 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_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{ var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{
(RegionRole)(0), // 0: greptime.v1.meta.RegionRole (RegionRole)(0), // 0: greptime.v1.meta.RegionRole
(*HeartbeatRequest)(nil), // 1: greptime.v1.meta.HeartbeatRequest (*HeartbeatRequest)(nil), // 1: greptime.v1.meta.HeartbeatRequest
(*NodeInfo)(nil), // 2: greptime.v1.meta.NodeInfo (*NodeInfo)(nil), // 2: greptime.v1.meta.NodeInfo
(*RegionStat)(nil), // 3: greptime.v1.meta.RegionStat (*RegionStat)(nil), // 3: greptime.v1.meta.RegionStat
(*HeartbeatResponse)(nil), // 4: greptime.v1.meta.HeartbeatResponse (*FlowStat)(nil), // 4: greptime.v1.meta.FlowStat
(*GrantedRegion)(nil), // 5: greptime.v1.meta.GrantedRegion (*HeartbeatResponse)(nil), // 5: greptime.v1.meta.HeartbeatResponse
(*RegionLease)(nil), // 6: greptime.v1.meta.RegionLease (*GrantedRegion)(nil), // 6: greptime.v1.meta.GrantedRegion
(*AskLeaderRequest)(nil), // 7: greptime.v1.meta.AskLeaderRequest (*RegionLease)(nil), // 7: greptime.v1.meta.RegionLease
(*AskLeaderResponse)(nil), // 8: greptime.v1.meta.AskLeaderResponse (*AskLeaderRequest)(nil), // 8: greptime.v1.meta.AskLeaderRequest
(*MailboxMessage)(nil), // 9: greptime.v1.meta.MailboxMessage (*AskLeaderResponse)(nil), // 9: greptime.v1.meta.AskLeaderResponse
nil, // 10: greptime.v1.meta.RegionStat.ExtensionsEntry (*MailboxMessage)(nil), // 10: greptime.v1.meta.MailboxMessage
(*RequestHeader)(nil), // 11: greptime.v1.meta.RequestHeader nil, // 11: greptime.v1.meta.RegionStat.ExtensionsEntry
(*Peer)(nil), // 12: greptime.v1.meta.Peer nil, // 12: greptime.v1.meta.FlowStat.FlowStatSizeEntry
(*TimeInterval)(nil), // 13: greptime.v1.meta.TimeInterval (*RequestHeader)(nil), // 13: greptime.v1.meta.RequestHeader
(*ResponseHeader)(nil), // 14: greptime.v1.meta.ResponseHeader (*Peer)(nil), // 14: greptime.v1.meta.Peer
(*TimeInterval)(nil), // 15: greptime.v1.meta.TimeInterval
(*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader
} }
var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{ var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{
11, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader 13, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader
12, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer 14, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer
13, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval 15, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval
3, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat 3, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat
9, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage 10, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
2, // 5: greptime.v1.meta.HeartbeatRequest.info:type_name -> greptime.v1.meta.NodeInfo 2, // 5: greptime.v1.meta.HeartbeatRequest.info:type_name -> greptime.v1.meta.NodeInfo
0, // 6: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole 4, // 6: greptime.v1.meta.HeartbeatRequest.flow_stat:type_name -> greptime.v1.meta.FlowStat
10, // 7: greptime.v1.meta.RegionStat.extensions:type_name -> greptime.v1.meta.RegionStat.ExtensionsEntry 0, // 7: greptime.v1.meta.RegionStat.role:type_name -> greptime.v1.meta.RegionRole
14, // 8: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader 11, // 8: greptime.v1.meta.RegionStat.extensions:type_name -> greptime.v1.meta.RegionStat.ExtensionsEntry
9, // 9: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage 12, // 9: greptime.v1.meta.FlowStat.flow_stat_size:type_name -> greptime.v1.meta.FlowStat.FlowStatSizeEntry
6, // 10: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease 16, // 10: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader
0, // 11: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole 10, // 11: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
5, // 12: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion 7, // 12: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease
11, // 13: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader 0, // 13: greptime.v1.meta.GrantedRegion.role:type_name -> greptime.v1.meta.RegionRole
14, // 14: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader 6, // 14: greptime.v1.meta.RegionLease.regions:type_name -> greptime.v1.meta.GrantedRegion
12, // 15: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer 13, // 15: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader
1, // 16: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest 16, // 16: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader
7, // 17: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest 14, // 17: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer
4, // 18: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse 1, // 18: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest
8, // 19: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse 8, // 19: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest
18, // [18:20] is the sub-list for method output_type 5, // 20: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse
16, // [16:18] is the sub-list for method input_type 9, // 21: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse
16, // [16:16] is the sub-list for extension type_name 20, // [20:22] is the sub-list for method output_type
16, // [16:16] is the sub-list for extension extendee 18, // [18:20] is the sub-list for method input_type
0, // [0:16] is the sub-list for field type_name 18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
} }
func init() { file_greptime_v1_meta_heartbeat_proto_init() } func init() { file_greptime_v1_meta_heartbeat_proto_init() }
@@ -1015,7 +1092,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
} }
} }
file_greptime_v1_meta_heartbeat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_heartbeat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeartbeatResponse); i { switch v := v.(*FlowStat); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1027,7 +1104,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
} }
} }
file_greptime_v1_meta_heartbeat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_heartbeat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GrantedRegion); i { switch v := v.(*HeartbeatResponse); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1039,7 +1116,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
} }
} }
file_greptime_v1_meta_heartbeat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_heartbeat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegionLease); i { switch v := v.(*GrantedRegion); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1051,7 +1128,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
} }
} }
file_greptime_v1_meta_heartbeat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_heartbeat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AskLeaderRequest); i { switch v := v.(*RegionLease); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1063,7 +1140,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
} }
} }
file_greptime_v1_meta_heartbeat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_heartbeat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AskLeaderResponse); i { switch v := v.(*AskLeaderRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -1075,6 +1152,18 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
} }
} }
file_greptime_v1_meta_heartbeat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_meta_heartbeat_proto_msgTypes[8].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[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MailboxMessage); i { switch v := v.(*MailboxMessage); i {
case 0: case 0:
return &v.state return &v.state
@@ -1087,7 +1176,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
} }
} }
} }
file_greptime_v1_meta_heartbeat_proto_msgTypes[8].OneofWrappers = []interface{}{ file_greptime_v1_meta_heartbeat_proto_msgTypes[9].OneofWrappers = []interface{}{
(*MailboxMessage_Json)(nil), (*MailboxMessage_Json)(nil),
} }
type x struct{} type x struct{}
@@ -1096,7 +1185,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_meta_heartbeat_proto_rawDesc, RawDescriptor: file_greptime_v1_meta_heartbeat_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 10, NumMessages: 12,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
File diff suppressed because it is too large Load Diff
+12 -2
View File
@@ -47,6 +47,7 @@ message HeartbeatRequest {
// The node's epoch // The node's epoch
uint64 node_epoch = 7; uint64 node_epoch = 7;
NodeInfo info = 8; NodeInfo info = 8;
FlowStat flow_stat = 9;
} }
enum RegionRole { enum RegionRole {
@@ -54,9 +55,11 @@ enum RegionRole {
Leader = 0; Leader = 0;
// Readonly region. // Readonly region.
Follower = 1; Follower = 1;
// A downgrading region, which is in the process of downgrading from Leader to Follower. // A downgrading region, which is in the process of downgrading from Leader to
// Follower.
// //
// This role is used to prevent the region from being written during the downgrade process. // This role is used to prevent the region from being written during the
// downgrade process.
DowngradingLeader = 2; DowngradingLeader = 2;
} }
@@ -84,6 +87,13 @@ message RegionStat {
map<string, bytes> extensions = 99; map<string, bytes> extensions = 99;
} }
message FlowStat {
// Each flow's in mem state's size in bytes
// due to protobuf's key can't be a message, so we use uint32 as the key which
// is [`FlowId`]'s inner field `id`
map<uint32, uint64> flow_stat_size = 1;
}
message HeartbeatResponse { message HeartbeatResponse {
ResponseHeader header = 1; ResponseHeader header = 1;
MailboxMessage mailbox_message = 2; MailboxMessage mailbox_message = 2;