feat: add total_cpu_millicores/total_memory_bytes/cpu_usage_millicores/memory_usage_bytes (#287)

This commit is contained in:
zyy17
2025-10-23 10:56:23 +08:00
committed by GitHub
parent 72a0d22e0f
commit 14b9dc40bd
5 changed files with 984 additions and 303 deletions
+176 -69
View File
@@ -108,6 +108,10 @@ PROTOBUF_CONSTEXPR NodeInfo::NodeInfo(
, /*decltype(_impl_.hostname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.hostname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.start_time_ms_)*/uint64_t{0u} , /*decltype(_impl_.start_time_ms_)*/uint64_t{0u}
, /*decltype(_impl_.memory_bytes_)*/uint64_t{0u} , /*decltype(_impl_.memory_bytes_)*/uint64_t{0u}
, /*decltype(_impl_.total_cpu_millicores_)*/int64_t{0}
, /*decltype(_impl_.total_memory_bytes_)*/int64_t{0}
, /*decltype(_impl_.cpu_usage_millicores_)*/int64_t{0}
, /*decltype(_impl_.memory_usage_bytes_)*/int64_t{0}
, /*decltype(_impl_.cpus_)*/0u , /*decltype(_impl_.cpus_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {} , /*decltype(_impl_._cached_size_)*/{}} {}
struct NodeInfoDefaultTypeInternal { struct NodeInfoDefaultTypeInternal {
@@ -377,6 +381,10 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.cpus_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.cpus_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.memory_bytes_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.memory_bytes_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.hostname_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.hostname_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.total_cpu_millicores_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.total_memory_bytes_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.cpu_usage_millicores_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::NodeInfo, _impl_.memory_usage_bytes_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@@ -512,19 +520,19 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 38, -1, -1, sizeof(::greptime::v1::meta::FrontendWorkloads)}, { 38, -1, -1, sizeof(::greptime::v1::meta::FrontendWorkloads)},
{ 45, -1, -1, sizeof(::greptime::v1::meta::FlownodeWorkloads)}, { 45, -1, -1, sizeof(::greptime::v1::meta::FlownodeWorkloads)},
{ 52, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)}, { 52, -1, -1, sizeof(::greptime::v1::meta::NodeInfo)},
{ 64, 72, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)}, { 68, 76, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)},
{ 74, -1, -1, sizeof(::greptime::v1::meta::RegionStat)}, { 78, -1, -1, sizeof(::greptime::v1::meta::RegionStat)},
{ 87, -1, -1, sizeof(::greptime::v1::meta::TopicStat)}, { 91, -1, -1, sizeof(::greptime::v1::meta::TopicStat)},
{ 97, 105, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)}, { 101, 109, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)},
{ 107, 115, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)}, { 111, 119, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)},
{ 117, -1, -1, sizeof(::greptime::v1::meta::FlowStat)}, { 121, -1, -1, sizeof(::greptime::v1::meta::FlowStat)},
{ 125, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)}, { 129, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)},
{ 134, 142, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)}, { 138, 146, -1, sizeof(::greptime::v1::meta::GrantedRegion_ExtensionsEntry_DoNotUse)},
{ 144, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)}, { 148, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)},
{ 153, -1, -1, sizeof(::greptime::v1::meta::RegionLease)}, { 157, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
{ 163, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)}, { 167, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
{ 170, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)}, { 174, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
{ 178, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)}, { 182, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
@@ -574,62 +582,65 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[]
"8\001B\020\n\016node_workloads\"\"\n\021DatanodeWorkload" "8\001B\020\n\016node_workloads\"\"\n\021DatanodeWorkload"
"s\022\r\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n" "s\022\r\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n"
"\005types\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005typ" "\005types\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005typ"
"es\030\001 \003(\005\"|\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n" "es\030\001 \003(\005\"\370\001\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022"
"\ngit_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001(\004" "\n\ngit_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001("
"\022\014\n\004cpus\030\004 \001(\r\022\024\n\014memory_bytes\030\005 \001(\004\022\020\n\010" "\004\022\020\n\004cpus\030\004 \001(\rB\002\030\001\022\030\n\014memory_bytes\030\005 \001("
"hostname\030\006 \001(\t\"\207\002\n\nRegionStat\022\021\n\tregion_" "\004B\002\030\001\022\020\n\010hostname\030\006 \001(\t\022\034\n\024total_cpu_mil"
"id\030\001 \001(\004\022\014\n\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021" "licores\030\007 \001(\003\022\032\n\022total_memory_bytes\030\010 \001("
"approximate_bytes\030\004 \001(\003\022\016\n\006engine\030\006 \001(\t\022" "\003\022\034\n\024cpu_usage_millicores\030\t \001(\003\022\032\n\022memor"
"*\n\004role\030\007 \001(\0162\034.greptime.v1.meta.RegionR" "y_usage_bytes\030\n \001(\003\"\207\002\n\nRegionStat\022\021\n\tre"
"ole\022@\n\nextensions\030c \003(\0132,.greptime.v1.me" "gion_id\030\001 \001(\004\022\014\n\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001("
"ta.RegionStat.ExtensionsEntry\0321\n\017Extensi" "\003\022\031\n\021approximate_bytes\030\004 \001(\003\022\016\n\006engine\030\006"
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001" " \001(\t\022*\n\004role\030\007 \001(\0162\034.greptime.v1.meta.Re"
"\"a\n\tTopicStat\022\022\n\ntopic_name\030\001 \001(\t\022\023\n\013rec" "gionRole\022@\n\nextensions\030c \003(\0132,.greptime."
"ord_size\030\002 \001(\004\022\022\n\nrecord_num\030\003 \001(\004\022\027\n\017la" "v1.meta.RegionStat.ExtensionsEntry\0321\n\017Ex"
"test_entry_id\030\004 \001(\004\"\227\002\n\010FlowStat\022D\n\016flow" "tensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
"_stat_size\030\001 \003(\0132,.greptime.v1.meta.Flow" "\014:\0028\001\"a\n\tTopicStat\022\022\n\ntopic_name\030\001 \001(\t\022\023"
"Stat.FlowStatSizeEntry\022T\n\027flow_last_exec" "\n\013record_size\030\002 \001(\004\022\022\n\nrecord_num\030\003 \001(\004\022"
"_time_map\030\002 \003(\01323.greptime.v1.meta.FlowS" "\027\n\017latest_entry_id\030\004 \001(\004\"\227\002\n\010FlowStat\022D\n"
"tat.FlowLastExecTimeMapEntry\0323\n\021FlowStat" "\016flow_stat_size\030\001 \003(\0132,.greptime.v1.meta"
"SizeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\004:\0028" ".FlowStat.FlowStatSizeEntry\022T\n\027flow_last"
"\001\032:\n\030FlowLastExecTimeMapEntry\022\013\n\003key\030\001 \001" "_exec_time_map\030\002 \003(\01323.greptime.v1.meta."
"(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\265\001\n\021HeartbeatRespo" "FlowStat.FlowLastExecTimeMapEntry\0323\n\021Flo"
"nse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.R" "wStatSizeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001"
"esponseHeader\0229\n\017mailbox_message\030\002 \001(\0132 " "(\004:\0028\001\032:\n\030FlowLastExecTimeMapEntry\022\013\n\003ke"
".greptime.v1.meta.MailboxMessage\0223\n\014regi" "y\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\265\001\n\021Heartbeat"
"on_lease\030\003 \001(\0132\035.greptime.v1.meta.Region" "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m"
"Lease\"\306\001\n\rGrantedRegion\022\021\n\tregion_id\030\001 \001" "eta.ResponseHeader\0229\n\017mailbox_message\030\002 "
"(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta.Regi" "\001(\0132 .greptime.v1.meta.MailboxMessage\0223\n"
"onRole\022C\n\nextensions\030c \003(\0132/.greptime.v1" "\014region_lease\030\003 \001(\0132\035.greptime.v1.meta.R"
".meta.GrantedRegion.ExtensionsEntry\0321\n\017E" "egionLease\"\306\001\n\rGrantedRegion\022\021\n\tregion_i"
"xtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" "d\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta"
"(\014:\0028\001\"\222\001\n\013RegionLease\0220\n\007regions\030\001 \003(\0132" ".RegionRole\022C\n\nextensions\030c \003(\0132/.grepti"
"\037.greptime.v1.meta.GrantedRegion\022\034\n\024dura" "me.v1.meta.GrantedRegion.ExtensionsEntry"
"tion_since_epoch\030\002 \001(\004\022\025\n\rlease_seconds\030" "\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
"\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004\"C\n\020A" "e\030\002 \001(\014:\0028\001\"\222\001\n\013RegionLease\0220\n\007regions\030\001"
"skLeaderRequest\022/\n\006header\030\001 \001(\0132\037.grepti" " \003(\0132\037.greptime.v1.meta.GrantedRegion\022\034\n"
"me.v1.meta.RequestHeader\"m\n\021AskLeaderRes" "\024duration_since_epoch\030\002 \001(\004\022\025\n\rlease_sec"
"ponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta" "onds\030\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004"
".ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.grepti" "\"C\n\020AskLeaderRequest\022/\n\006header\030\001 \001(\0132\037.g"
"me.v1.meta.Peer\"|\n\016MailboxMessage\022\n\n\002id\030" "reptime.v1.meta.RequestHeader\"m\n\021AskLead"
"\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002" "erResponse\0220\n\006header\030\001 \001(\0132 .greptime.v1"
"to\030\004 \001(\t\022\030\n\020timestamp_millis\030\005 \001(\003\022\016\n\004js" ".meta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.g"
"on\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRole\022\n\n\006L" "reptime.v1.meta.Peer\"|\n\016MailboxMessage\022\n"
"eader\020\000\022\014\n\010Follower\020\001\022\025\n\021DowngradingLead" "\n\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014\n\004from\030\003 \001("
"er\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\".grepti" "\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp_millis\030\005 \001(\003\022"
"me.v1.meta.HeartbeatRequest\032#.greptime.v" "\016\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRole"
"1.meta.HeartbeatResponse\"\000(\0010\001\022V\n\tAskLea" "\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n\021Downgradin"
"der\022\".greptime.v1.meta.AskLeaderRequest\032" "gLeader\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\".g"
"#.greptime.v1.meta.AskLeaderResponse\"\000B<" "reptime.v1.meta.HeartbeatRequest\032#.grept"
"Z:github.com/GreptimeTeam/greptime-proto" "ime.v1.meta.HeartbeatResponse\"\000(\0010\001\022V\n\tA"
"/go/greptime/v1/metab\006proto3" "skLeader\022\".greptime.v1.meta.AskLeaderReq"
"uest\032#.greptime.v1.meta.AskLeaderRespons"
"e\"\000B<Z:github.com/GreptimeTeam/greptime-"
"proto/go/greptime/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, 2908, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto, false, false, 3033, 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, 19, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 19,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets,
@@ -2094,6 +2105,10 @@ NodeInfo::NodeInfo(const NodeInfo& from)
, decltype(_impl_.hostname_){} , decltype(_impl_.hostname_){}
, decltype(_impl_.start_time_ms_){} , decltype(_impl_.start_time_ms_){}
, decltype(_impl_.memory_bytes_){} , decltype(_impl_.memory_bytes_){}
, decltype(_impl_.total_cpu_millicores_){}
, decltype(_impl_.total_memory_bytes_){}
, decltype(_impl_.cpu_usage_millicores_){}
, decltype(_impl_.memory_usage_bytes_){}
, decltype(_impl_.cpus_){} , decltype(_impl_.cpus_){}
, /*decltype(_impl_._cached_size_)*/{}}; , /*decltype(_impl_._cached_size_)*/{}};
@@ -2138,6 +2153,10 @@ inline void NodeInfo::SharedCtor(
, decltype(_impl_.hostname_){} , decltype(_impl_.hostname_){}
, decltype(_impl_.start_time_ms_){uint64_t{0u}} , decltype(_impl_.start_time_ms_){uint64_t{0u}}
, decltype(_impl_.memory_bytes_){uint64_t{0u}} , decltype(_impl_.memory_bytes_){uint64_t{0u}}
, decltype(_impl_.total_cpu_millicores_){int64_t{0}}
, decltype(_impl_.total_memory_bytes_){int64_t{0}}
, decltype(_impl_.cpu_usage_millicores_){int64_t{0}}
, decltype(_impl_.memory_usage_bytes_){int64_t{0}}
, decltype(_impl_.cpus_){0u} , decltype(_impl_.cpus_){0u}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
}; };
@@ -2224,7 +2243,7 @@ const char* NodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// uint32 cpus = 4; // uint32 cpus = 4 [deprecated = true];
case 4: case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
_impl_.cpus_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); _impl_.cpus_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
@@ -2232,7 +2251,7 @@ const char* NodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// uint64 memory_bytes = 5; // uint64 memory_bytes = 5 [deprecated = true];
case 5: case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
_impl_.memory_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); _impl_.memory_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
@@ -2250,6 +2269,38 @@ const char* NodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// int64 total_cpu_millicores = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
_impl_.total_cpu_millicores_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 total_memory_bytes = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
_impl_.total_memory_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 cpu_usage_millicores = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
_impl_.cpu_usage_millicores_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 memory_usage_bytes = 10;
case 10:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
_impl_.memory_usage_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -2305,13 +2356,13 @@ uint8_t* NodeInfo::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_start_time_ms(), target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_start_time_ms(), target);
} }
// uint32 cpus = 4; // uint32 cpus = 4 [deprecated = true];
if (this->_internal_cpus() != 0) { if (this->_internal_cpus() != 0) {
target = stream->EnsureSpace(target); target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_cpus(), target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_cpus(), target);
} }
// uint64 memory_bytes = 5; // uint64 memory_bytes = 5 [deprecated = true];
if (this->_internal_memory_bytes() != 0) { if (this->_internal_memory_bytes() != 0) {
target = stream->EnsureSpace(target); target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_memory_bytes(), target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_memory_bytes(), target);
@@ -2327,6 +2378,30 @@ uint8_t* NodeInfo::_InternalSerialize(
6, this->_internal_hostname(), target); 6, this->_internal_hostname(), target);
} }
// int64 total_cpu_millicores = 7;
if (this->_internal_total_cpu_millicores() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(7, this->_internal_total_cpu_millicores(), target);
}
// int64 total_memory_bytes = 8;
if (this->_internal_total_memory_bytes() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(8, this->_internal_total_memory_bytes(), target);
}
// int64 cpu_usage_millicores = 9;
if (this->_internal_cpu_usage_millicores() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(9, this->_internal_cpu_usage_millicores(), target);
}
// int64 memory_usage_bytes = 10;
if (this->_internal_memory_usage_bytes() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_memory_usage_bytes(), target);
}
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);
@@ -2369,12 +2444,32 @@ size_t NodeInfo::ByteSizeLong() const {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms()); total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms());
} }
// uint64 memory_bytes = 5; // uint64 memory_bytes = 5 [deprecated = true];
if (this->_internal_memory_bytes() != 0) { if (this->_internal_memory_bytes() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_memory_bytes()); total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_memory_bytes());
} }
// uint32 cpus = 4; // int64 total_cpu_millicores = 7;
if (this->_internal_total_cpu_millicores() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_cpu_millicores());
}
// int64 total_memory_bytes = 8;
if (this->_internal_total_memory_bytes() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_total_memory_bytes());
}
// int64 cpu_usage_millicores = 9;
if (this->_internal_cpu_usage_millicores() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_cpu_usage_millicores());
}
// int64 memory_usage_bytes = 10;
if (this->_internal_memory_usage_bytes() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_memory_usage_bytes());
}
// uint32 cpus = 4 [deprecated = true];
if (this->_internal_cpus() != 0) { if (this->_internal_cpus() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cpus()); total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cpus());
} }
@@ -2412,6 +2507,18 @@ void NodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
if (from._internal_memory_bytes() != 0) { if (from._internal_memory_bytes() != 0) {
_this->_internal_set_memory_bytes(from._internal_memory_bytes()); _this->_internal_set_memory_bytes(from._internal_memory_bytes());
} }
if (from._internal_total_cpu_millicores() != 0) {
_this->_internal_set_total_cpu_millicores(from._internal_total_cpu_millicores());
}
if (from._internal_total_memory_bytes() != 0) {
_this->_internal_set_total_memory_bytes(from._internal_total_memory_bytes());
}
if (from._internal_cpu_usage_millicores() != 0) {
_this->_internal_set_cpu_usage_millicores(from._internal_cpu_usage_millicores());
}
if (from._internal_memory_usage_bytes() != 0) {
_this->_internal_set_memory_usage_bytes(from._internal_memory_usage_bytes());
}
if (from._internal_cpus() != 0) { if (from._internal_cpus() != 0) {
_this->_internal_set_cpus(from._internal_cpus()); _this->_internal_set_cpus(from._internal_cpus());
} }
+134 -10
View File
@@ -1229,6 +1229,10 @@ class NodeInfo final :
kHostnameFieldNumber = 6, kHostnameFieldNumber = 6,
kStartTimeMsFieldNumber = 3, kStartTimeMsFieldNumber = 3,
kMemoryBytesFieldNumber = 5, kMemoryBytesFieldNumber = 5,
kTotalCpuMillicoresFieldNumber = 7,
kTotalMemoryBytesFieldNumber = 8,
kCpuUsageMillicoresFieldNumber = 9,
kMemoryUsageBytesFieldNumber = 10,
kCpusFieldNumber = 4, kCpusFieldNumber = 4,
}; };
// string version = 1; // string version = 1;
@@ -1282,19 +1286,55 @@ class NodeInfo final :
void _internal_set_start_time_ms(uint64_t value); void _internal_set_start_time_ms(uint64_t value);
public: public:
// uint64 memory_bytes = 5; // uint64 memory_bytes = 5 [deprecated = true];
void clear_memory_bytes(); PROTOBUF_DEPRECATED void clear_memory_bytes();
uint64_t memory_bytes() const; PROTOBUF_DEPRECATED uint64_t memory_bytes() const;
void set_memory_bytes(uint64_t value); PROTOBUF_DEPRECATED void set_memory_bytes(uint64_t value);
private: private:
uint64_t _internal_memory_bytes() const; uint64_t _internal_memory_bytes() const;
void _internal_set_memory_bytes(uint64_t value); void _internal_set_memory_bytes(uint64_t value);
public: public:
// uint32 cpus = 4; // int64 total_cpu_millicores = 7;
void clear_cpus(); void clear_total_cpu_millicores();
uint32_t cpus() const; int64_t total_cpu_millicores() const;
void set_cpus(uint32_t value); void set_total_cpu_millicores(int64_t value);
private:
int64_t _internal_total_cpu_millicores() const;
void _internal_set_total_cpu_millicores(int64_t value);
public:
// int64 total_memory_bytes = 8;
void clear_total_memory_bytes();
int64_t total_memory_bytes() const;
void set_total_memory_bytes(int64_t value);
private:
int64_t _internal_total_memory_bytes() const;
void _internal_set_total_memory_bytes(int64_t value);
public:
// int64 cpu_usage_millicores = 9;
void clear_cpu_usage_millicores();
int64_t cpu_usage_millicores() const;
void set_cpu_usage_millicores(int64_t value);
private:
int64_t _internal_cpu_usage_millicores() const;
void _internal_set_cpu_usage_millicores(int64_t value);
public:
// int64 memory_usage_bytes = 10;
void clear_memory_usage_bytes();
int64_t memory_usage_bytes() const;
void set_memory_usage_bytes(int64_t value);
private:
int64_t _internal_memory_usage_bytes() const;
void _internal_set_memory_usage_bytes(int64_t value);
public:
// uint32 cpus = 4 [deprecated = true];
PROTOBUF_DEPRECATED void clear_cpus();
PROTOBUF_DEPRECATED uint32_t cpus() const;
PROTOBUF_DEPRECATED void set_cpus(uint32_t value);
private: private:
uint32_t _internal_cpus() const; uint32_t _internal_cpus() const;
void _internal_set_cpus(uint32_t value); void _internal_set_cpus(uint32_t value);
@@ -1313,6 +1353,10 @@ class NodeInfo final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hostname_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hostname_;
uint64_t start_time_ms_; uint64_t start_time_ms_;
uint64_t memory_bytes_; uint64_t memory_bytes_;
int64_t total_cpu_millicores_;
int64_t total_memory_bytes_;
int64_t cpu_usage_millicores_;
int64_t memory_usage_bytes_;
uint32_t cpus_; uint32_t cpus_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
}; };
@@ -4384,7 +4428,7 @@ inline void NodeInfo::set_start_time_ms(uint64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.start_time_ms) // @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.start_time_ms)
} }
// uint32 cpus = 4; // uint32 cpus = 4 [deprecated = true];
inline void NodeInfo::clear_cpus() { inline void NodeInfo::clear_cpus() {
_impl_.cpus_ = 0u; _impl_.cpus_ = 0u;
} }
@@ -4404,7 +4448,7 @@ inline void NodeInfo::set_cpus(uint32_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.cpus) // @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.cpus)
} }
// uint64 memory_bytes = 5; // uint64 memory_bytes = 5 [deprecated = true];
inline void NodeInfo::clear_memory_bytes() { inline void NodeInfo::clear_memory_bytes() {
_impl_.memory_bytes_ = uint64_t{0u}; _impl_.memory_bytes_ = uint64_t{0u};
} }
@@ -4474,6 +4518,86 @@ inline void NodeInfo::set_allocated_hostname(std::string* hostname) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.NodeInfo.hostname) // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.NodeInfo.hostname)
} }
// int64 total_cpu_millicores = 7;
inline void NodeInfo::clear_total_cpu_millicores() {
_impl_.total_cpu_millicores_ = int64_t{0};
}
inline int64_t NodeInfo::_internal_total_cpu_millicores() const {
return _impl_.total_cpu_millicores_;
}
inline int64_t NodeInfo::total_cpu_millicores() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.total_cpu_millicores)
return _internal_total_cpu_millicores();
}
inline void NodeInfo::_internal_set_total_cpu_millicores(int64_t value) {
_impl_.total_cpu_millicores_ = value;
}
inline void NodeInfo::set_total_cpu_millicores(int64_t value) {
_internal_set_total_cpu_millicores(value);
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.total_cpu_millicores)
}
// int64 total_memory_bytes = 8;
inline void NodeInfo::clear_total_memory_bytes() {
_impl_.total_memory_bytes_ = int64_t{0};
}
inline int64_t NodeInfo::_internal_total_memory_bytes() const {
return _impl_.total_memory_bytes_;
}
inline int64_t NodeInfo::total_memory_bytes() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.total_memory_bytes)
return _internal_total_memory_bytes();
}
inline void NodeInfo::_internal_set_total_memory_bytes(int64_t value) {
_impl_.total_memory_bytes_ = value;
}
inline void NodeInfo::set_total_memory_bytes(int64_t value) {
_internal_set_total_memory_bytes(value);
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.total_memory_bytes)
}
// int64 cpu_usage_millicores = 9;
inline void NodeInfo::clear_cpu_usage_millicores() {
_impl_.cpu_usage_millicores_ = int64_t{0};
}
inline int64_t NodeInfo::_internal_cpu_usage_millicores() const {
return _impl_.cpu_usage_millicores_;
}
inline int64_t NodeInfo::cpu_usage_millicores() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.cpu_usage_millicores)
return _internal_cpu_usage_millicores();
}
inline void NodeInfo::_internal_set_cpu_usage_millicores(int64_t value) {
_impl_.cpu_usage_millicores_ = value;
}
inline void NodeInfo::set_cpu_usage_millicores(int64_t value) {
_internal_set_cpu_usage_millicores(value);
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.cpu_usage_millicores)
}
// int64 memory_usage_bytes = 10;
inline void NodeInfo::clear_memory_usage_bytes() {
_impl_.memory_usage_bytes_ = int64_t{0};
}
inline int64_t NodeInfo::_internal_memory_usage_bytes() const {
return _impl_.memory_usage_bytes_;
}
inline int64_t NodeInfo::memory_usage_bytes() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.NodeInfo.memory_usage_bytes)
return _internal_memory_usage_bytes();
}
inline void NodeInfo::_internal_set_memory_usage_bytes(int64_t value) {
_impl_.memory_usage_bytes_ = value;
}
inline void NodeInfo::set_memory_usage_bytes(int64_t value) {
_internal_set_memory_usage_bytes(value);
// @@protoc_insertion_point(field_set:greptime.v1.meta.NodeInfo.memory_usage_bytes)
}
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// ------------------------------------------------------------------- // -------------------------------------------------------------------
+195 -140
View File
@@ -437,12 +437,24 @@ type NodeInfo struct {
GitCommit string `protobuf:"bytes,2,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` GitCommit string `protobuf:"bytes,2,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
// The node start timestamp // The node start timestamp
StartTimeMs uint64 `protobuf:"varint,3,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"` StartTimeMs uint64 `protobuf:"varint,3,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"`
// The CPU cores number of the node. // Deprecated: Use total_cpu_millicores instead. The CPU cores number of the node.
//
// Deprecated: Do not use.
Cpus uint32 `protobuf:"varint,4,opt,name=cpus,proto3" json:"cpus,omitempty"` Cpus uint32 `protobuf:"varint,4,opt,name=cpus,proto3" json:"cpus,omitempty"`
// The memory bytes of the node. // Deprecated: Use total_memory_bytes instead. The memory bytes of the node.
//
// Deprecated: Do not use.
MemoryBytes uint64 `protobuf:"varint,5,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` MemoryBytes uint64 `protobuf:"varint,5,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"`
// The hostname of the node. // The hostname of the node.
Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"` Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"`
// The total CPU millicores of the node.
TotalCpuMillicores int64 `protobuf:"varint,7,opt,name=total_cpu_millicores,json=totalCpuMillicores,proto3" json:"total_cpu_millicores,omitempty"`
// The total memory bytes of the node.
TotalMemoryBytes int64 `protobuf:"varint,8,opt,name=total_memory_bytes,json=totalMemoryBytes,proto3" json:"total_memory_bytes,omitempty"`
// The CPU usage millicores of the node.
CpuUsageMillicores int64 `protobuf:"varint,9,opt,name=cpu_usage_millicores,json=cpuUsageMillicores,proto3" json:"cpu_usage_millicores,omitempty"`
// The memory usage bytes of the node.
MemoryUsageBytes int64 `protobuf:"varint,10,opt,name=memory_usage_bytes,json=memoryUsageBytes,proto3" json:"memory_usage_bytes,omitempty"`
} }
func (x *NodeInfo) Reset() { func (x *NodeInfo) Reset() {
@@ -498,6 +510,7 @@ func (x *NodeInfo) GetStartTimeMs() uint64 {
return 0 return 0
} }
// Deprecated: Do not use.
func (x *NodeInfo) GetCpus() uint32 { func (x *NodeInfo) GetCpus() uint32 {
if x != nil { if x != nil {
return x.Cpus return x.Cpus
@@ -505,6 +518,7 @@ func (x *NodeInfo) GetCpus() uint32 {
return 0 return 0
} }
// Deprecated: Do not use.
func (x *NodeInfo) GetMemoryBytes() uint64 { func (x *NodeInfo) GetMemoryBytes() uint64 {
if x != nil { if x != nil {
return x.MemoryBytes return x.MemoryBytes
@@ -519,6 +533,34 @@ func (x *NodeInfo) GetHostname() string {
return "" return ""
} }
func (x *NodeInfo) GetTotalCpuMillicores() int64 {
if x != nil {
return x.TotalCpuMillicores
}
return 0
}
func (x *NodeInfo) GetTotalMemoryBytes() int64 {
if x != nil {
return x.TotalMemoryBytes
}
return 0
}
func (x *NodeInfo) GetCpuUsageMillicores() int64 {
if x != nil {
return x.CpuUsageMillicores
}
return 0
}
func (x *NodeInfo) GetMemoryUsageBytes() int64 {
if x != nil {
return x.MemoryUsageBytes
}
return 0
}
type RegionStat struct { type RegionStat struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -1240,157 +1282,170 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x29, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x29,
0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x6e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x6e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f,
0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x61, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x28, 0x05, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x82, 0x03, 0x0a, 0x08, 0x4e, 0x6f,
0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12,
0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73,
0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d,
0x65, 0x4d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x65, 0x4d, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0c, 0x6d,
0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74,
0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06,
0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30,
0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x69, 0x6c, 0x6c,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x69, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x74, 0x6f,
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x74, 0x61, 0x6c, 0x43, 0x70, 0x75, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x63, 0x6f, 0x72, 0x65, 0x73,
0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x03, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79,
0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x6f,
0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x30,
0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x0a, 0x14, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c,
0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x69, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x63, 0x70,
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x75, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x63, 0x6f, 0x72, 0x65, 0x73,
0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65,
0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6d, 0x65,
0x6d, 0x6f, 0x72, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xd5,
0x02, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1b, 0x0a,
0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63,
0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12,
0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63,
0x75, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74,
0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x61,
0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12,
0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,
0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52,
0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 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, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65,
0x65, 0x12, 0x4c, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18,
0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53,
0x74, 0x61, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a,
0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x92,
0x01, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72,
0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04,
0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04,
0x52, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x0f, 0x6c,
0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04,
0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x49, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74,
0x12, 0x52, 0x0a, 0x0e, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77,
0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a,
0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74,
0x53, 0x69, 0x7a, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x73,
0x74, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x18,
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61,
0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69,
0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x66, 0x6c, 0x6f, 0x77,
0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x1a,
0x3f, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
0x1a, 0x46, 0x0a, 0x18, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63,
0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, 0x61,
0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38,
0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c,
0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65,
0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xee, 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65,
0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4f, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72,
0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, 0x65,
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 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, 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, 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, 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, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x92, 0x01, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63,
0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69,
0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x6e,
0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x4e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e,
0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x74, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61,
0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x08,
0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x66, 0x6c, 0x6f, 0x77,
0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f,
0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c,
0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x66, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x69, 0x0a, 0x17,
0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74,
0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x4c, 0x61,
0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x13, 0x66, 0x6c, 0x6f, 0x77, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63,
0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x1a, 0x3f, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x53,
0x74, 0x61, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x46, 0x0a, 0x18, 0x46, 0x6c, 0x6f, 0x77,
0x4c, 0x61, 0x73, 0x74, 0x45, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x69,
0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x6d, 0x61, 0x69,
0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65,
0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xee, 0x01,
0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12,
0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04,
0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x4f,
0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x63, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a,
0x3d, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1,
0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x39,
0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63,
0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c,
0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01,
0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73,
0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12,
0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49,
0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22,
0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e,
0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 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, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa,
0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69,
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12,
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73,
0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x3d, 0x0a, 0x0a, 0x52,
0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65, 0x61,
0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65,
0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x72, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x6f, 0x77, 0x6e, 0x67, 0x72, 0x61, 0x64, 0x69,
0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x6e, 0x67, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x02, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48,
0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72,
0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65,
0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x6f, 0x61, 0x64, 0x2a, 0x3d, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61,
0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65,
0x6f, 0x77, 0x6e, 0x67, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x10, 0x02, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65,
0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, 0x2e, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64,
0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a,
0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74,
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x09, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x6f, 0x33,
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 (
@@ -6146,23 +6146,27 @@ com.google.protobuf.ByteString defaultValue);
/** /**
* <pre> * <pre>
* The CPU cores number of the node. * Deprecated: Use total_cpu_millicores instead. The CPU cores number of the node.
* </pre> * </pre>
* *
* <code>uint32 cpus = 4;</code> * <code>uint32 cpus = 4 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.cpus is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=97
* @return The cpus. * @return The cpus.
*/ */
int getCpus(); @java.lang.Deprecated int getCpus();
/** /**
* <pre> * <pre>
* The memory bytes of the node. * Deprecated: Use total_memory_bytes instead. The memory bytes of the node.
* </pre> * </pre>
* *
* <code>uint64 memory_bytes = 5;</code> * <code>uint64 memory_bytes = 5 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.memory_bytes is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=99
* @return The memoryBytes. * @return The memoryBytes.
*/ */
long getMemoryBytes(); @java.lang.Deprecated long getMemoryBytes();
/** /**
* <pre> * <pre>
@@ -6183,6 +6187,46 @@ com.google.protobuf.ByteString defaultValue);
*/ */
com.google.protobuf.ByteString com.google.protobuf.ByteString
getHostnameBytes(); getHostnameBytes();
/**
* <pre>
* The total CPU millicores of the node.
* </pre>
*
* <code>int64 total_cpu_millicores = 7;</code>
* @return The totalCpuMillicores.
*/
long getTotalCpuMillicores();
/**
* <pre>
* The total memory bytes of the node.
* </pre>
*
* <code>int64 total_memory_bytes = 8;</code>
* @return The totalMemoryBytes.
*/
long getTotalMemoryBytes();
/**
* <pre>
* The CPU usage millicores of the node.
* </pre>
*
* <code>int64 cpu_usage_millicores = 9;</code>
* @return The cpuUsageMillicores.
*/
long getCpuUsageMillicores();
/**
* <pre>
* The memory usage bytes of the node.
* </pre>
*
* <code>int64 memory_usage_bytes = 10;</code>
* @return The memoryUsageBytes.
*/
long getMemoryUsageBytes();
} }
/** /**
* Protobuf type {@code greptime.v1.meta.NodeInfo} * Protobuf type {@code greptime.v1.meta.NodeInfo}
@@ -6265,6 +6309,26 @@ com.google.protobuf.ByteString defaultValue);
hostname_ = s; hostname_ = s;
break; break;
} }
case 56: {
totalCpuMillicores_ = input.readInt64();
break;
}
case 64: {
totalMemoryBytes_ = input.readInt64();
break;
}
case 72: {
cpuUsageMillicores_ = input.readInt64();
break;
}
case 80: {
memoryUsageBytes_ = input.readInt64();
break;
}
default: { default: {
if (!parseUnknownField( if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) { input, unknownFields, extensionRegistry, tag)) {
@@ -6410,14 +6474,16 @@ com.google.protobuf.ByteString defaultValue);
private int cpus_; private int cpus_;
/** /**
* <pre> * <pre>
* The CPU cores number of the node. * Deprecated: Use total_cpu_millicores instead. The CPU cores number of the node.
* </pre> * </pre>
* *
* <code>uint32 cpus = 4;</code> * <code>uint32 cpus = 4 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.cpus is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=97
* @return The cpus. * @return The cpus.
*/ */
@java.lang.Override @java.lang.Override
public int getCpus() { @java.lang.Deprecated public int getCpus() {
return cpus_; return cpus_;
} }
@@ -6425,14 +6491,16 @@ com.google.protobuf.ByteString defaultValue);
private long memoryBytes_; private long memoryBytes_;
/** /**
* <pre> * <pre>
* The memory bytes of the node. * Deprecated: Use total_memory_bytes instead. The memory bytes of the node.
* </pre> * </pre>
* *
* <code>uint64 memory_bytes = 5;</code> * <code>uint64 memory_bytes = 5 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.memory_bytes is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=99
* @return The memoryBytes. * @return The memoryBytes.
*/ */
@java.lang.Override @java.lang.Override
public long getMemoryBytes() { @java.lang.Deprecated public long getMemoryBytes() {
return memoryBytes_; return memoryBytes_;
} }
@@ -6482,6 +6550,66 @@ com.google.protobuf.ByteString defaultValue);
} }
} }
public static final int TOTAL_CPU_MILLICORES_FIELD_NUMBER = 7;
private long totalCpuMillicores_;
/**
* <pre>
* The total CPU millicores of the node.
* </pre>
*
* <code>int64 total_cpu_millicores = 7;</code>
* @return The totalCpuMillicores.
*/
@java.lang.Override
public long getTotalCpuMillicores() {
return totalCpuMillicores_;
}
public static final int TOTAL_MEMORY_BYTES_FIELD_NUMBER = 8;
private long totalMemoryBytes_;
/**
* <pre>
* The total memory bytes of the node.
* </pre>
*
* <code>int64 total_memory_bytes = 8;</code>
* @return The totalMemoryBytes.
*/
@java.lang.Override
public long getTotalMemoryBytes() {
return totalMemoryBytes_;
}
public static final int CPU_USAGE_MILLICORES_FIELD_NUMBER = 9;
private long cpuUsageMillicores_;
/**
* <pre>
* The CPU usage millicores of the node.
* </pre>
*
* <code>int64 cpu_usage_millicores = 9;</code>
* @return The cpuUsageMillicores.
*/
@java.lang.Override
public long getCpuUsageMillicores() {
return cpuUsageMillicores_;
}
public static final int MEMORY_USAGE_BYTES_FIELD_NUMBER = 10;
private long memoryUsageBytes_;
/**
* <pre>
* The memory usage bytes of the node.
* </pre>
*
* <code>int64 memory_usage_bytes = 10;</code>
* @return The memoryUsageBytes.
*/
@java.lang.Override
public long getMemoryUsageBytes() {
return memoryUsageBytes_;
}
private byte memoizedIsInitialized = -1; private byte memoizedIsInitialized = -1;
@java.lang.Override @java.lang.Override
public final boolean isInitialized() { public final boolean isInitialized() {
@@ -6514,6 +6642,18 @@ com.google.protobuf.ByteString defaultValue);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hostname_); com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hostname_);
} }
if (totalCpuMillicores_ != 0L) {
output.writeInt64(7, totalCpuMillicores_);
}
if (totalMemoryBytes_ != 0L) {
output.writeInt64(8, totalMemoryBytes_);
}
if (cpuUsageMillicores_ != 0L) {
output.writeInt64(9, cpuUsageMillicores_);
}
if (memoryUsageBytes_ != 0L) {
output.writeInt64(10, memoryUsageBytes_);
}
unknownFields.writeTo(output); unknownFields.writeTo(output);
} }
@@ -6544,6 +6684,22 @@ com.google.protobuf.ByteString defaultValue);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hostname_); size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hostname_);
} }
if (totalCpuMillicores_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, totalCpuMillicores_);
}
if (totalMemoryBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, totalMemoryBytes_);
}
if (cpuUsageMillicores_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, cpuUsageMillicores_);
}
if (memoryUsageBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, memoryUsageBytes_);
}
size += unknownFields.getSerializedSize(); size += unknownFields.getSerializedSize();
memoizedSize = size; memoizedSize = size;
return size; return size;
@@ -6571,6 +6727,14 @@ com.google.protobuf.ByteString defaultValue);
!= other.getMemoryBytes()) return false; != other.getMemoryBytes()) return false;
if (!getHostname() if (!getHostname()
.equals(other.getHostname())) return false; .equals(other.getHostname())) return false;
if (getTotalCpuMillicores()
!= other.getTotalCpuMillicores()) return false;
if (getTotalMemoryBytes()
!= other.getTotalMemoryBytes()) return false;
if (getCpuUsageMillicores()
!= other.getCpuUsageMillicores()) return false;
if (getMemoryUsageBytes()
!= other.getMemoryUsageBytes()) return false;
if (!unknownFields.equals(other.unknownFields)) return false; if (!unknownFields.equals(other.unknownFields)) return false;
return true; return true;
} }
@@ -6596,6 +6760,18 @@ com.google.protobuf.ByteString defaultValue);
getMemoryBytes()); getMemoryBytes());
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getHostname().hashCode(); hash = (53 * hash) + getHostname().hashCode();
hash = (37 * hash) + TOTAL_CPU_MILLICORES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalCpuMillicores());
hash = (37 * hash) + TOTAL_MEMORY_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalMemoryBytes());
hash = (37 * hash) + CPU_USAGE_MILLICORES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCpuUsageMillicores());
hash = (37 * hash) + MEMORY_USAGE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMemoryUsageBytes());
hash = (29 * hash) + unknownFields.hashCode(); hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash; memoizedHashCode = hash;
return hash; return hash;
@@ -6741,6 +6917,14 @@ com.google.protobuf.ByteString defaultValue);
hostname_ = ""; hostname_ = "";
totalCpuMillicores_ = 0L;
totalMemoryBytes_ = 0L;
cpuUsageMillicores_ = 0L;
memoryUsageBytes_ = 0L;
return this; return this;
} }
@@ -6773,6 +6957,10 @@ com.google.protobuf.ByteString defaultValue);
result.cpus_ = cpus_; result.cpus_ = cpus_;
result.memoryBytes_ = memoryBytes_; result.memoryBytes_ = memoryBytes_;
result.hostname_ = hostname_; result.hostname_ = hostname_;
result.totalCpuMillicores_ = totalCpuMillicores_;
result.totalMemoryBytes_ = totalMemoryBytes_;
result.cpuUsageMillicores_ = cpuUsageMillicores_;
result.memoryUsageBytes_ = memoryUsageBytes_;
onBuilt(); onBuilt();
return result; return result;
} }
@@ -6842,6 +7030,18 @@ com.google.protobuf.ByteString defaultValue);
hostname_ = other.hostname_; hostname_ = other.hostname_;
onChanged(); onChanged();
} }
if (other.getTotalCpuMillicores() != 0L) {
setTotalCpuMillicores(other.getTotalCpuMillicores());
}
if (other.getTotalMemoryBytes() != 0L) {
setTotalMemoryBytes(other.getTotalMemoryBytes());
}
if (other.getCpuUsageMillicores() != 0L) {
setCpuUsageMillicores(other.getCpuUsageMillicores());
}
if (other.getMemoryUsageBytes() != 0L) {
setMemoryUsageBytes(other.getMemoryUsageBytes());
}
this.mergeUnknownFields(other.unknownFields); this.mergeUnknownFields(other.unknownFields);
onChanged(); onChanged();
return this; return this;
@@ -7109,26 +7309,30 @@ com.google.protobuf.ByteString defaultValue);
private int cpus_ ; private int cpus_ ;
/** /**
* <pre> * <pre>
* The CPU cores number of the node. * Deprecated: Use total_cpu_millicores instead. The CPU cores number of the node.
* </pre> * </pre>
* *
* <code>uint32 cpus = 4;</code> * <code>uint32 cpus = 4 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.cpus is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=97
* @return The cpus. * @return The cpus.
*/ */
@java.lang.Override @java.lang.Override
public int getCpus() { @java.lang.Deprecated public int getCpus() {
return cpus_; return cpus_;
} }
/** /**
* <pre> * <pre>
* The CPU cores number of the node. * Deprecated: Use total_cpu_millicores instead. The CPU cores number of the node.
* </pre> * </pre>
* *
* <code>uint32 cpus = 4;</code> * <code>uint32 cpus = 4 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.cpus is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=97
* @param value The cpus to set. * @param value The cpus to set.
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder setCpus(int value) { @java.lang.Deprecated public Builder setCpus(int value) {
cpus_ = value; cpus_ = value;
onChanged(); onChanged();
@@ -7136,13 +7340,15 @@ com.google.protobuf.ByteString defaultValue);
} }
/** /**
* <pre> * <pre>
* The CPU cores number of the node. * Deprecated: Use total_cpu_millicores instead. The CPU cores number of the node.
* </pre> * </pre>
* *
* <code>uint32 cpus = 4;</code> * <code>uint32 cpus = 4 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.cpus is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=97
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder clearCpus() { @java.lang.Deprecated public Builder clearCpus() {
cpus_ = 0; cpus_ = 0;
onChanged(); onChanged();
@@ -7152,26 +7358,30 @@ com.google.protobuf.ByteString defaultValue);
private long memoryBytes_ ; private long memoryBytes_ ;
/** /**
* <pre> * <pre>
* The memory bytes of the node. * Deprecated: Use total_memory_bytes instead. The memory bytes of the node.
* </pre> * </pre>
* *
* <code>uint64 memory_bytes = 5;</code> * <code>uint64 memory_bytes = 5 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.memory_bytes is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=99
* @return The memoryBytes. * @return The memoryBytes.
*/ */
@java.lang.Override @java.lang.Override
public long getMemoryBytes() { @java.lang.Deprecated public long getMemoryBytes() {
return memoryBytes_; return memoryBytes_;
} }
/** /**
* <pre> * <pre>
* The memory bytes of the node. * Deprecated: Use total_memory_bytes instead. The memory bytes of the node.
* </pre> * </pre>
* *
* <code>uint64 memory_bytes = 5;</code> * <code>uint64 memory_bytes = 5 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.memory_bytes is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=99
* @param value The memoryBytes to set. * @param value The memoryBytes to set.
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder setMemoryBytes(long value) { @java.lang.Deprecated public Builder setMemoryBytes(long value) {
memoryBytes_ = value; memoryBytes_ = value;
onChanged(); onChanged();
@@ -7179,13 +7389,15 @@ com.google.protobuf.ByteString defaultValue);
} }
/** /**
* <pre> * <pre>
* The memory bytes of the node. * Deprecated: Use total_memory_bytes instead. The memory bytes of the node.
* </pre> * </pre>
* *
* <code>uint64 memory_bytes = 5;</code> * <code>uint64 memory_bytes = 5 [deprecated = true];</code>
* @deprecated greptime.v1.meta.NodeInfo.memory_bytes is deprecated.
* See greptime/v1/meta/heartbeat.proto;l=99
* @return This builder for chaining. * @return This builder for chaining.
*/ */
public Builder clearMemoryBytes() { @java.lang.Deprecated public Builder clearMemoryBytes() {
memoryBytes_ = 0L; memoryBytes_ = 0L;
onChanged(); onChanged();
@@ -7287,6 +7499,178 @@ com.google.protobuf.ByteString defaultValue);
onChanged(); onChanged();
return this; return this;
} }
private long totalCpuMillicores_ ;
/**
* <pre>
* The total CPU millicores of the node.
* </pre>
*
* <code>int64 total_cpu_millicores = 7;</code>
* @return The totalCpuMillicores.
*/
@java.lang.Override
public long getTotalCpuMillicores() {
return totalCpuMillicores_;
}
/**
* <pre>
* The total CPU millicores of the node.
* </pre>
*
* <code>int64 total_cpu_millicores = 7;</code>
* @param value The totalCpuMillicores to set.
* @return This builder for chaining.
*/
public Builder setTotalCpuMillicores(long value) {
totalCpuMillicores_ = value;
onChanged();
return this;
}
/**
* <pre>
* The total CPU millicores of the node.
* </pre>
*
* <code>int64 total_cpu_millicores = 7;</code>
* @return This builder for chaining.
*/
public Builder clearTotalCpuMillicores() {
totalCpuMillicores_ = 0L;
onChanged();
return this;
}
private long totalMemoryBytes_ ;
/**
* <pre>
* The total memory bytes of the node.
* </pre>
*
* <code>int64 total_memory_bytes = 8;</code>
* @return The totalMemoryBytes.
*/
@java.lang.Override
public long getTotalMemoryBytes() {
return totalMemoryBytes_;
}
/**
* <pre>
* The total memory bytes of the node.
* </pre>
*
* <code>int64 total_memory_bytes = 8;</code>
* @param value The totalMemoryBytes to set.
* @return This builder for chaining.
*/
public Builder setTotalMemoryBytes(long value) {
totalMemoryBytes_ = value;
onChanged();
return this;
}
/**
* <pre>
* The total memory bytes of the node.
* </pre>
*
* <code>int64 total_memory_bytes = 8;</code>
* @return This builder for chaining.
*/
public Builder clearTotalMemoryBytes() {
totalMemoryBytes_ = 0L;
onChanged();
return this;
}
private long cpuUsageMillicores_ ;
/**
* <pre>
* The CPU usage millicores of the node.
* </pre>
*
* <code>int64 cpu_usage_millicores = 9;</code>
* @return The cpuUsageMillicores.
*/
@java.lang.Override
public long getCpuUsageMillicores() {
return cpuUsageMillicores_;
}
/**
* <pre>
* The CPU usage millicores of the node.
* </pre>
*
* <code>int64 cpu_usage_millicores = 9;</code>
* @param value The cpuUsageMillicores to set.
* @return This builder for chaining.
*/
public Builder setCpuUsageMillicores(long value) {
cpuUsageMillicores_ = value;
onChanged();
return this;
}
/**
* <pre>
* The CPU usage millicores of the node.
* </pre>
*
* <code>int64 cpu_usage_millicores = 9;</code>
* @return This builder for chaining.
*/
public Builder clearCpuUsageMillicores() {
cpuUsageMillicores_ = 0L;
onChanged();
return this;
}
private long memoryUsageBytes_ ;
/**
* <pre>
* The memory usage bytes of the node.
* </pre>
*
* <code>int64 memory_usage_bytes = 10;</code>
* @return The memoryUsageBytes.
*/
@java.lang.Override
public long getMemoryUsageBytes() {
return memoryUsageBytes_;
}
/**
* <pre>
* The memory usage bytes of the node.
* </pre>
*
* <code>int64 memory_usage_bytes = 10;</code>
* @param value The memoryUsageBytes to set.
* @return This builder for chaining.
*/
public Builder setMemoryUsageBytes(long value) {
memoryUsageBytes_ = value;
onChanged();
return this;
}
/**
* <pre>
* The memory usage bytes of the node.
* </pre>
*
* <code>int64 memory_usage_bytes = 10;</code>
* @return This builder for chaining.
*/
public Builder clearMemoryUsageBytes() {
memoryUsageBytes_ = 0L;
onChanged();
return this;
}
@java.lang.Override @java.lang.Override
public final Builder setUnknownFields( public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) { final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -16795,55 +17179,58 @@ com.google.protobuf.ByteString defaultValue);
"8\001B\020\n\016node_workloads\"\"\n\021DatanodeWorkload" + "8\001B\020\n\016node_workloads\"\"\n\021DatanodeWorkload" +
"s\022\r\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n" + "s\022\r\n\005types\030\001 \003(\005\"\"\n\021FrontendWorkloads\022\r\n" +
"\005types\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005typ" + "\005types\030\001 \003(\005\"\"\n\021FlownodeWorkloads\022\r\n\005typ" +
"es\030\001 \003(\005\"|\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022\n" + "es\030\001 \003(\005\"\370\001\n\010NodeInfo\022\017\n\007version\030\001 \001(\t\022\022" +
"\ngit_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001(\004" + "\n\ngit_commit\030\002 \001(\t\022\025\n\rstart_time_ms\030\003 \001(" +
"\022\014\n\004cpus\030\004 \001(\r\022\024\n\014memory_bytes\030\005 \001(\004\022\020\n\010" + "\004\022\020\n\004cpus\030\004 \001(\rB\002\030\001\022\030\n\014memory_bytes\030\005 \001(" +
"hostname\030\006 \001(\t\"\207\002\n\nRegionStat\022\021\n\tregion_" + "\004B\002\030\001\022\020\n\010hostname\030\006 \001(\t\022\034\n\024total_cpu_mil" +
"id\030\001 \001(\004\022\014\n\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001(\003\022\031\n\021" + "licores\030\007 \001(\003\022\032\n\022total_memory_bytes\030\010 \001(" +
"approximate_bytes\030\004 \001(\003\022\016\n\006engine\030\006 \001(\t\022" + "\003\022\034\n\024cpu_usage_millicores\030\t \001(\003\022\032\n\022memor" +
"*\n\004role\030\007 \001(\0162\034.greptime.v1.meta.RegionR" + "y_usage_bytes\030\n \001(\003\"\207\002\n\nRegionStat\022\021\n\tre" +
"ole\022@\n\nextensions\030c \003(\0132,.greptime.v1.me" + "gion_id\030\001 \001(\004\022\014\n\004rcus\030\002 \001(\003\022\014\n\004wcus\030\003 \001(" +
"ta.RegionStat.ExtensionsEntry\0321\n\017Extensi" + "\003\022\031\n\021approximate_bytes\030\004 \001(\003\022\016\n\006engine\030\006" +
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001" + " \001(\t\022*\n\004role\030\007 \001(\0162\034.greptime.v1.meta.Re" +
"\"a\n\tTopicStat\022\022\n\ntopic_name\030\001 \001(\t\022\023\n\013rec" + "gionRole\022@\n\nextensions\030c \003(\0132,.greptime." +
"ord_size\030\002 \001(\004\022\022\n\nrecord_num\030\003 \001(\004\022\027\n\017la" + "v1.meta.RegionStat.ExtensionsEntry\0321\n\017Ex" +
"test_entry_id\030\004 \001(\004\"\227\002\n\010FlowStat\022D\n\016flow" + "tensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" +
"_stat_size\030\001 \003(\0132,.greptime.v1.meta.Flow" + "\014:\0028\001\"a\n\tTopicStat\022\022\n\ntopic_name\030\001 \001(\t\022\023" +
"Stat.FlowStatSizeEntry\022T\n\027flow_last_exec" + "\n\013record_size\030\002 \001(\004\022\022\n\nrecord_num\030\003 \001(\004\022" +
"_time_map\030\002 \003(\01323.greptime.v1.meta.FlowS" + "\027\n\017latest_entry_id\030\004 \001(\004\"\227\002\n\010FlowStat\022D\n" +
"tat.FlowLastExecTimeMapEntry\0323\n\021FlowStat" + "\016flow_stat_size\030\001 \003(\0132,.greptime.v1.meta" +
"SizeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\004:\0028" + ".FlowStat.FlowStatSizeEntry\022T\n\027flow_last" +
"\001\032:\n\030FlowLastExecTimeMapEntry\022\013\n\003key\030\001 \001" + "_exec_time_map\030\002 \003(\01323.greptime.v1.meta." +
"(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\265\001\n\021HeartbeatRespo" + "FlowStat.FlowLastExecTimeMapEntry\0323\n\021Flo" +
"nse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.R" + "wStatSizeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001" +
"esponseHeader\0229\n\017mailbox_message\030\002 \001(\0132 " + "(\004:\0028\001\032:\n\030FlowLastExecTimeMapEntry\022\013\n\003ke" +
".greptime.v1.meta.MailboxMessage\0223\n\014regi" + "y\030\001 \001(\r\022\r\n\005value\030\002 \001(\003:\0028\001\"\265\001\n\021Heartbeat" +
"on_lease\030\003 \001(\0132\035.greptime.v1.meta.Region" + "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" +
"Lease\"\306\001\n\rGrantedRegion\022\021\n\tregion_id\030\001 \001" + "eta.ResponseHeader\0229\n\017mailbox_message\030\002 " +
"(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta.Regi" + "\001(\0132 .greptime.v1.meta.MailboxMessage\0223\n" +
"onRole\022C\n\nextensions\030c \003(\0132/.greptime.v1" + "\014region_lease\030\003 \001(\0132\035.greptime.v1.meta.R" +
".meta.GrantedRegion.ExtensionsEntry\0321\n\017E" + "egionLease\"\306\001\n\rGrantedRegion\022\021\n\tregion_i" +
"xtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + "d\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta" +
"(\014:\0028\001\"\222\001\n\013RegionLease\0220\n\007regions\030\001 \003(\0132" + ".RegionRole\022C\n\nextensions\030c \003(\0132/.grepti" +
"\037.greptime.v1.meta.GrantedRegion\022\034\n\024dura" + "me.v1.meta.GrantedRegion.ExtensionsEntry" +
"tion_since_epoch\030\002 \001(\004\022\025\n\rlease_seconds\030" + "\0321\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" +
"\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004\"C\n\020A" + "e\030\002 \001(\014:\0028\001\"\222\001\n\013RegionLease\0220\n\007regions\030\001" +
"skLeaderRequest\022/\n\006header\030\001 \001(\0132\037.grepti" + " \003(\0132\037.greptime.v1.meta.GrantedRegion\022\034\n" +
"me.v1.meta.RequestHeader\"m\n\021AskLeaderRes" + "\024duration_since_epoch\030\002 \001(\004\022\025\n\rlease_sec" +
"ponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta" + "onds\030\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004" +
".ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.grepti" + "\"C\n\020AskLeaderRequest\022/\n\006header\030\001 \001(\0132\037.g" +
"me.v1.meta.Peer\"|\n\016MailboxMessage\022\n\n\002id\030" + "reptime.v1.meta.RequestHeader\"m\n\021AskLead" +
"\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002" + "erResponse\0220\n\006header\030\001 \001(\0132 .greptime.v1" +
"to\030\004 \001(\t\022\030\n\020timestamp_millis\030\005 \001(\003\022\016\n\004js" + ".meta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.g" +
"on\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRole\022\n\n\006L" + "reptime.v1.meta.Peer\"|\n\016MailboxMessage\022\n" +
"eader\020\000\022\014\n\010Follower\020\001\022\025\n\021DowngradingLead" + "\n\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014\n\004from\030\003 \001(" +
"er\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\".grepti" + "\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp_millis\030\005 \001(\003\022" +
"me.v1.meta.HeartbeatRequest\032#.greptime.v" + "\016\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRole" +
"1.meta.HeartbeatResponse\"\000(\0010\001\022V\n\tAskLea" + "\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n\021Downgradin" +
"der\022\".greptime.v1.meta.AskLeaderRequest\032" + "gLeader\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\".g" +
"#.greptime.v1.meta.AskLeaderResponse\"\000B<" + "reptime.v1.meta.HeartbeatRequest\032#.grept" +
"Z:github.com/GreptimeTeam/greptime-proto" + "ime.v1.meta.HeartbeatResponse\"\000(\0010\001\022V\n\tA" +
"/go/greptime/v1/metab\006proto3" "skLeader\022\".greptime.v1.meta.AskLeaderReq" +
"uest\032#.greptime.v1.meta.AskLeaderRespons" +
"e\"\000B<Z:github.com/GreptimeTeam/greptime-" +
"proto/go/greptime/v1/metab\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
@@ -16885,7 +17272,7 @@ com.google.protobuf.ByteString defaultValue);
internal_static_greptime_v1_meta_NodeInfo_fieldAccessorTable = new internal_static_greptime_v1_meta_NodeInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_meta_NodeInfo_descriptor, internal_static_greptime_v1_meta_NodeInfo_descriptor,
new java.lang.String[] { "Version", "GitCommit", "StartTimeMs", "Cpus", "MemoryBytes", "Hostname", }); new java.lang.String[] { "Version", "GitCommit", "StartTimeMs", "Cpus", "MemoryBytes", "Hostname", "TotalCpuMillicores", "TotalMemoryBytes", "CpuUsageMillicores", "MemoryUsageBytes", });
internal_static_greptime_v1_meta_RegionStat_descriptor = internal_static_greptime_v1_meta_RegionStat_descriptor =
getDescriptor().getMessageTypes().get(5); getDescriptor().getMessageTypes().get(5);
internal_static_greptime_v1_meta_RegionStat_fieldAccessorTable = new internal_static_greptime_v1_meta_RegionStat_fieldAccessorTable = new
+12 -4
View File
@@ -94,12 +94,20 @@ message NodeInfo {
string git_commit = 2; string git_commit = 2;
// The node start timestamp // The node start timestamp
uint64 start_time_ms = 3; uint64 start_time_ms = 3;
// The CPU cores number of the node. // Deprecated: Use total_cpu_millicores instead. The CPU cores number of the node.
uint32 cpus = 4; uint32 cpus = 4 [deprecated = true];
// The memory bytes of the node. // Deprecated: Use total_memory_bytes instead. The memory bytes of the node.
uint64 memory_bytes = 5; uint64 memory_bytes = 5 [deprecated = true];
// The hostname of the node. // The hostname of the node.
string hostname = 6; string hostname = 6;
// The total CPU millicores of the node.
int64 total_cpu_millicores = 7;
// The total memory bytes of the node.
int64 total_memory_bytes = 8;
// The CPU usage millicores of the node.
int64 cpu_usage_millicores = 9;
// The memory usage bytes of the node.
int64 memory_usage_bytes = 10;
} }
message RegionStat { message RegionStat {