feat: enhancement information_schema.flows (#221)
* feat:enhancement information_schema.flows * chore: make all --------- Co-authored-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -101,9 +101,21 @@ struct FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal _FlowStat_FlowStatSizeEntry_DoNotUse_default_instance_;
|
||||
PROTOBUF_CONSTEXPR FlowStat_FlowLastExecTimeMapEntry_DoNotUse::FlowStat_FlowLastExecTimeMapEntry_DoNotUse(
|
||||
::_pbi::ConstantInitialized) {}
|
||||
struct FlowStat_FlowLastExecTimeMapEntry_DoNotUseDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR FlowStat_FlowLastExecTimeMapEntry_DoNotUseDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~FlowStat_FlowLastExecTimeMapEntry_DoNotUseDefaultTypeInternal() {}
|
||||
union {
|
||||
FlowStat_FlowLastExecTimeMapEntry_DoNotUse _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowStat_FlowLastExecTimeMapEntry_DoNotUseDefaultTypeInternal _FlowStat_FlowLastExecTimeMapEntry_DoNotUse_default_instance_;
|
||||
PROTOBUF_CONSTEXPR FlowStat::FlowStat(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.flow_stat_size_)*/{::_pbi::ConstantInitialized()}
|
||||
, /*decltype(_impl_.flow_last_exec_time_map_)*/{::_pbi::ConstantInitialized()}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct FlowStatDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR FlowStatDefaultTypeInternal()
|
||||
@@ -209,7 +221,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
||||
} // namespace meta
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[12];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[13];
|
||||
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;
|
||||
|
||||
@@ -272,6 +284,16 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse, value_),
|
||||
0,
|
||||
1,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_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_FlowLastExecTimeMapEntry_DoNotUse, key_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse, value_),
|
||||
0,
|
||||
1,
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -279,6 +301,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat, _impl_.flow_stat_size_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::FlowStat, _impl_.flow_last_exec_time_map_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::HeartbeatResponse, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -341,13 +364,14 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 25, 33, -1, sizeof(::greptime::v1::meta::RegionStat_ExtensionsEntry_DoNotUse)},
|
||||
{ 35, -1, -1, sizeof(::greptime::v1::meta::RegionStat)},
|
||||
{ 48, 56, -1, sizeof(::greptime::v1::meta::FlowStat_FlowStatSizeEntry_DoNotUse)},
|
||||
{ 58, -1, -1, sizeof(::greptime::v1::meta::FlowStat)},
|
||||
{ 65, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)},
|
||||
{ 74, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)},
|
||||
{ 82, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
|
||||
{ 92, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
|
||||
{ 99, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
|
||||
{ 107, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
|
||||
{ 58, 66, -1, sizeof(::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse)},
|
||||
{ 68, -1, -1, sizeof(::greptime::v1::meta::FlowStat)},
|
||||
{ 76, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)},
|
||||
{ 85, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)},
|
||||
{ 93, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
|
||||
{ 103, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
|
||||
{ 110, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
|
||||
{ 118, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -356,6 +380,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::meta::_RegionStat_ExtensionsEntry_DoNotUse_default_instance_._instance,
|
||||
&::greptime::v1::meta::_RegionStat_default_instance_._instance,
|
||||
&::greptime::v1::meta::_FlowStat_FlowStatSizeEntry_DoNotUse_default_instance_._instance,
|
||||
&::greptime::v1::meta::_FlowStat_FlowLastExecTimeMapEntry_DoNotUse_default_instance_._instance,
|
||||
&::greptime::v1::meta::_FlowStat_default_instance_._instance,
|
||||
&::greptime::v1::meta::_HeartbeatResponse_default_instance_._instance,
|
||||
&::greptime::v1::meta::_GrantedRegion_default_instance_._instance,
|
||||
@@ -387,45 +412,49 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[]
|
||||
"ta.RegionRole\022@\n\nextensions\030c \003(\0132,.grep"
|
||||
"time.v1.meta.RegionStat.ExtensionsEntry\032"
|
||||
"1\n\017ExtensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
|
||||
"\030\002 \001(\014:\0028\001\"\205\001\n\010FlowStat\022D\n\016flow_stat_siz"
|
||||
"\030\002 \001(\014:\0028\001\"\227\002\n\010FlowStat\022D\n\016flow_stat_siz"
|
||||
"e\030\001 \003(\0132,.greptime.v1.meta.FlowStat.Flow"
|
||||
"StatSizeEntry\0323\n\021FlowStatSizeEntry\022\013\n\003ke"
|
||||
"y\030\001 \001(\r\022\r\n\005value\030\002 \001(\004:\0028\001\"\265\001\n\021Heartbeat"
|
||||
"Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m"
|
||||
"eta.ResponseHeader\0229\n\017mailbox_message\030\002 "
|
||||
"\001(\0132 .greptime.v1.meta.MailboxMessage\0223\n"
|
||||
"\014region_lease\030\003 \001(\0132\035.greptime.v1.meta.R"
|
||||
"egionLease\"N\n\rGrantedRegion\022\021\n\tregion_id"
|
||||
"\030\001 \001(\004\022*\n\004role\030\002 \001(\0162\034.greptime.v1.meta."
|
||||
"RegionRole\"\222\001\n\013RegionLease\0220\n\007regions\030\001 "
|
||||
"\003(\0132\037.greptime.v1.meta.GrantedRegion\022\034\n\024"
|
||||
"duration_since_epoch\030\002 \001(\004\022\025\n\rlease_seco"
|
||||
"nds\030\003 \001(\004\022\034\n\024closeable_region_ids\030\004 \003(\004\""
|
||||
"C\n\020AskLeaderRequest\022/\n\006header\030\001 \001(\0132\037.gr"
|
||||
"eptime.v1.meta.RequestHeader\"m\n\021AskLeade"
|
||||
"rResponse\0220\n\006header\030\001 \001(\0132 .greptime.v1."
|
||||
"meta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.gr"
|
||||
"eptime.v1.meta.Peer\"|\n\016MailboxMessage\022\n\n"
|
||||
"\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t"
|
||||
"\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp_millis\030\005 \001(\003\022\016"
|
||||
"\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n\nRegionRole\022"
|
||||
"\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n\021Downgrading"
|
||||
"Leader\020\0022\277\001\n\tHeartbeat\022Z\n\tHeartbeat\022\".gr"
|
||||
"eptime.v1.meta.HeartbeatRequest\032#.grepti"
|
||||
"me.v1.meta.HeartbeatResponse\"\000(\0010\001\022V\n\tAs"
|
||||
"kLeader\022\".greptime.v1.meta.AskLeaderRequ"
|
||||
"est\032#.greptime.v1.meta.AskLeaderResponse"
|
||||
"\"\000B<Z:github.com/GreptimeTeam/greptime-p"
|
||||
"roto/go/greptime/v1/metab\006proto3"
|
||||
"StatSizeEntry\022T\n\027flow_last_exec_time_map"
|
||||
"\030\002 \003(\01323.greptime.v1.meta.FlowStat.FlowL"
|
||||
"astExecTimeMapEntry\0323\n\021FlowStatSizeEntry"
|
||||
"\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\004:\0028\001\032:\n\030Flow"
|
||||
"LastExecTimeMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005val"
|
||||
"ue\030\002 \001(\003:\0028\001\"\265\001\n\021HeartbeatResponse\0220\n\006he"
|
||||
"ader\030\001 \001(\0132 .greptime.v1.meta.ResponseHe"
|
||||
"ader\0229\n\017mailbox_message\030\002 \001(\0132 .greptime"
|
||||
".v1.meta.MailboxMessage\0223\n\014region_lease\030"
|
||||
"\003 \001(\0132\035.greptime.v1.meta.RegionLease\"N\n\r"
|
||||
"GrantedRegion\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role"
|
||||
"\030\002 \001(\0162\034.greptime.v1.meta.RegionRole\"\222\001\n"
|
||||
"\013RegionLease\0220\n\007regions\030\001 \003(\0132\037.greptime"
|
||||
".v1.meta.GrantedRegion\022\034\n\024duration_since"
|
||||
"_epoch\030\002 \001(\004\022\025\n\rlease_seconds\030\003 \001(\004\022\034\n\024c"
|
||||
"loseable_region_ids\030\004 \003(\004\"C\n\020AskLeaderRe"
|
||||
"quest\022/\n\006header\030\001 \001(\0132\037.greptime.v1.meta"
|
||||
".RequestHeader\"m\n\021AskLeaderResponse\0220\n\006h"
|
||||
"eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH"
|
||||
"eader\022&\n\006leader\030\002 \001(\0132\026.greptime.v1.meta"
|
||||
".Peer\"|\n\016MailboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007s"
|
||||
"ubject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030"
|
||||
"\n\020timestamp_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000"
|
||||
"B\t\n\007payload*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n"
|
||||
"\010Follower\020\001\022\025\n\021DowngradingLeader\020\0022\277\001\n\tH"
|
||||
"eartbeat\022Z\n\tHeartbeat\022\".greptime.v1.meta"
|
||||
".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] = {
|
||||
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto = {
|
||||
false, false, 2032, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
|
||||
false, false, 2178, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
|
||||
"greptime/v1/meta/heartbeat.proto",
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 12,
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 13,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
|
||||
@@ -1709,6 +1738,20 @@ void FlowStat_FlowStatSizeEntry_DoNotUse::MergeFrom(const FlowStat_FlowStatSizeE
|
||||
|
||||
// ===================================================================
|
||||
|
||||
FlowStat_FlowLastExecTimeMapEntry_DoNotUse::FlowStat_FlowLastExecTimeMapEntry_DoNotUse() {}
|
||||
FlowStat_FlowLastExecTimeMapEntry_DoNotUse::FlowStat_FlowLastExecTimeMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||
: SuperType(arena) {}
|
||||
void FlowStat_FlowLastExecTimeMapEntry_DoNotUse::MergeFrom(const FlowStat_FlowLastExecTimeMapEntry_DoNotUse& other) {
|
||||
MergeFromInternal(other);
|
||||
}
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowStat_FlowLastExecTimeMapEntry_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[5]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class FlowStat::_Internal {
|
||||
public:
|
||||
};
|
||||
@@ -1727,10 +1770,12 @@ FlowStat::FlowStat(const FlowStat& from)
|
||||
FlowStat* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
/*decltype(_impl_.flow_stat_size_)*/{}
|
||||
, /*decltype(_impl_.flow_last_exec_time_map_)*/{}
|
||||
, /*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_);
|
||||
_this->_impl_.flow_last_exec_time_map_.MergeFrom(from._impl_.flow_last_exec_time_map_);
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.FlowStat)
|
||||
}
|
||||
|
||||
@@ -1740,6 +1785,7 @@ inline void FlowStat::SharedCtor(
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
/*decltype(_impl_.flow_stat_size_)*/{::_pbi::ArenaInitialized(), arena}
|
||||
, /*decltype(_impl_.flow_last_exec_time_map_)*/{::_pbi::ArenaInitialized(), arena}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
@@ -1758,11 +1804,14 @@ inline void FlowStat::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.flow_stat_size_.Destruct();
|
||||
_impl_.flow_stat_size_.~MapField();
|
||||
_impl_.flow_last_exec_time_map_.Destruct();
|
||||
_impl_.flow_last_exec_time_map_.~MapField();
|
||||
}
|
||||
|
||||
void FlowStat::ArenaDtor(void* object) {
|
||||
FlowStat* _this = reinterpret_cast< FlowStat* >(object);
|
||||
_this->_impl_.flow_stat_size_.Destruct();
|
||||
_this->_impl_.flow_last_exec_time_map_.Destruct();
|
||||
}
|
||||
void FlowStat::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
@@ -1775,6 +1824,7 @@ void FlowStat::Clear() {
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.flow_stat_size_.Clear();
|
||||
_impl_.flow_last_exec_time_map_.Clear();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
@@ -1797,6 +1847,19 @@ const char* FlowStat::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// map<uint32, int64> flow_last_exec_time_map = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr -= 1;
|
||||
do {
|
||||
ptr += 1;
|
||||
ptr = ctx->ParseMessage(&_impl_.flow_last_exec_time_map_, ptr);
|
||||
CHK_(ptr);
|
||||
if (!ctx->DataAvailable(ptr)) break;
|
||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -1843,6 +1906,23 @@ uint8_t* FlowStat::_InternalSerialize(
|
||||
}
|
||||
}
|
||||
|
||||
// map<uint32, int64> flow_last_exec_time_map = 2;
|
||||
if (!this->_internal_flow_last_exec_time_map().empty()) {
|
||||
using MapType = ::_pb::Map<uint32_t, int64_t>;
|
||||
using WireHelper = FlowStat_FlowLastExecTimeMapEntry_DoNotUse::Funcs;
|
||||
const auto& map_field = this->_internal_flow_last_exec_time_map();
|
||||
|
||||
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
||||
for (const auto& entry : ::_pbi::MapSorterFlat<MapType>(map_field)) {
|
||||
target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream);
|
||||
}
|
||||
} else {
|
||||
for (const auto& entry : map_field) {
|
||||
target = WireHelper::InternalSerialize(2, 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);
|
||||
@@ -1868,6 +1948,15 @@ size_t FlowStat::ByteSizeLong() const {
|
||||
total_size += FlowStat_FlowStatSizeEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
||||
}
|
||||
|
||||
// map<uint32, int64> flow_last_exec_time_map = 2;
|
||||
total_size += 1 *
|
||||
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_flow_last_exec_time_map_size());
|
||||
for (::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >::const_iterator
|
||||
it = this->_internal_flow_last_exec_time_map().begin();
|
||||
it != this->_internal_flow_last_exec_time_map().end(); ++it) {
|
||||
total_size += FlowStat_FlowLastExecTimeMapEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
@@ -1887,6 +1976,7 @@ void FlowStat::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.flow_stat_size_.MergeFrom(from._impl_.flow_stat_size_);
|
||||
_this->_impl_.flow_last_exec_time_map_.MergeFrom(from._impl_.flow_last_exec_time_map_);
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
@@ -1905,12 +1995,13 @@ void FlowStat::InternalSwap(FlowStat* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.flow_stat_size_.InternalSwap(&other->_impl_.flow_stat_size_);
|
||||
_impl_.flow_last_exec_time_map_.InternalSwap(&other->_impl_.flow_last_exec_time_map_);
|
||||
}
|
||||
|
||||
::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]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2196,7 +2287,7 @@ void HeartbeatResponse::InternalSwap(HeartbeatResponse* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata HeartbeatResponse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[6]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2410,7 +2501,7 @@ void GrantedRegion::InternalSwap(GrantedRegion* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GrantedRegion::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[7]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2697,7 +2788,7 @@ void RegionLease::InternalSwap(RegionLease* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata RegionLease::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[8]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2896,7 +2987,7 @@ void AskLeaderRequest::InternalSwap(AskLeaderRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[9]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[10]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -3147,7 +3238,7 @@ void AskLeaderResponse::InternalSwap(AskLeaderResponse* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata AskLeaderResponse::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[10]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[11]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -3587,7 +3678,7 @@ void MailboxMessage::InternalSwap(MailboxMessage* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata MailboxMessage::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[11]);
|
||||
file_level_metadata_greptime_2fv1_2fmeta_2fheartbeat_2eproto[12]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -3615,6 +3706,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::FlowStat_FlowStatSizeEntry_Do
|
||||
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_FlowLastExecTimeMapEntry_DoNotUse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_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);
|
||||
|
||||
@@ -61,6 +61,9 @@ extern AskLeaderResponseDefaultTypeInternal _AskLeaderResponse_default_instance_
|
||||
class FlowStat;
|
||||
struct FlowStatDefaultTypeInternal;
|
||||
extern FlowStatDefaultTypeInternal _FlowStat_default_instance_;
|
||||
class FlowStat_FlowLastExecTimeMapEntry_DoNotUse;
|
||||
struct FlowStat_FlowLastExecTimeMapEntry_DoNotUseDefaultTypeInternal;
|
||||
extern FlowStat_FlowLastExecTimeMapEntry_DoNotUseDefaultTypeInternal _FlowStat_FlowLastExecTimeMapEntry_DoNotUse_default_instance_;
|
||||
class FlowStat_FlowStatSizeEntry_DoNotUse;
|
||||
struct FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal;
|
||||
extern FlowStat_FlowStatSizeEntry_DoNotUseDefaultTypeInternal _FlowStat_FlowStatSizeEntry_DoNotUse_default_instance_;
|
||||
@@ -95,6 +98,7 @@ PROTOBUF_NAMESPACE_OPEN
|
||||
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::FlowStat* Arena::CreateMaybeMessage<::greptime::v1::meta::FlowStat>(Arena*);
|
||||
template<> ::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::FlowStat_FlowLastExecTimeMapEntry_DoNotUse>(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::HeartbeatRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::HeartbeatRequest>(Arena*);
|
||||
@@ -911,6 +915,30 @@ public:
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class FlowStat_FlowLastExecTimeMapEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowStat_FlowLastExecTimeMapEntry_DoNotUse,
|
||||
uint32_t, int64_t,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64> {
|
||||
public:
|
||||
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowStat_FlowLastExecTimeMapEntry_DoNotUse,
|
||||
uint32_t, int64_t,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64> SuperType;
|
||||
FlowStat_FlowLastExecTimeMapEntry_DoNotUse();
|
||||
explicit PROTOBUF_CONSTEXPR FlowStat_FlowLastExecTimeMapEntry_DoNotUse(
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
explicit FlowStat_FlowLastExecTimeMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||
void MergeFrom(const FlowStat_FlowLastExecTimeMapEntry_DoNotUse& other);
|
||||
static const FlowStat_FlowLastExecTimeMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FlowStat_FlowLastExecTimeMapEntry_DoNotUse*>(&_FlowStat_FlowLastExecTimeMapEntry_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:
|
||||
@@ -959,7 +987,7 @@ class FlowStat final :
|
||||
&_FlowStat_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
5;
|
||||
6;
|
||||
|
||||
friend void swap(FlowStat& a, FlowStat& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1036,6 +1064,7 @@ class FlowStat final :
|
||||
|
||||
enum : int {
|
||||
kFlowStatSizeFieldNumber = 1,
|
||||
kFlowLastExecTimeMapFieldNumber = 2,
|
||||
};
|
||||
// map<uint32, uint64> flow_stat_size = 1;
|
||||
int flow_stat_size_size() const;
|
||||
@@ -1054,6 +1083,23 @@ class FlowStat final :
|
||||
::PROTOBUF_NAMESPACE_ID::Map< uint32_t, uint64_t >*
|
||||
mutable_flow_stat_size();
|
||||
|
||||
// map<uint32, int64> flow_last_exec_time_map = 2;
|
||||
int flow_last_exec_time_map_size() const;
|
||||
private:
|
||||
int _internal_flow_last_exec_time_map_size() const;
|
||||
public:
|
||||
void clear_flow_last_exec_time_map();
|
||||
private:
|
||||
const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >&
|
||||
_internal_flow_last_exec_time_map() const;
|
||||
::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >*
|
||||
_internal_mutable_flow_last_exec_time_map();
|
||||
public:
|
||||
const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >&
|
||||
flow_last_exec_time_map() const;
|
||||
::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >*
|
||||
mutable_flow_last_exec_time_map();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.FlowStat)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -1067,6 +1113,11 @@ class FlowStat final :
|
||||
uint32_t, uint64_t,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64> flow_stat_size_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::MapField<
|
||||
FlowStat_FlowLastExecTimeMapEntry_DoNotUse,
|
||||
uint32_t, int64_t,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64> flow_last_exec_time_map_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
@@ -1122,7 +1173,7 @@ class HeartbeatResponse final :
|
||||
&_HeartbeatResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
6;
|
||||
7;
|
||||
|
||||
friend void swap(HeartbeatResponse& a, HeartbeatResponse& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1319,7 +1370,7 @@ class GrantedRegion final :
|
||||
&_GrantedRegion_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
7;
|
||||
8;
|
||||
|
||||
friend void swap(GrantedRegion& a, GrantedRegion& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1478,7 +1529,7 @@ class RegionLease final :
|
||||
&_RegionLease_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
8;
|
||||
9;
|
||||
|
||||
friend void swap(RegionLease& a, RegionLease& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1682,7 +1733,7 @@ class AskLeaderRequest final :
|
||||
&_AskLeaderRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
10;
|
||||
|
||||
friend void swap(AskLeaderRequest& a, AskLeaderRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1839,7 +1890,7 @@ class AskLeaderResponse final :
|
||||
&_AskLeaderResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
10;
|
||||
11;
|
||||
|
||||
friend void swap(AskLeaderResponse& a, AskLeaderResponse& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2021,7 +2072,7 @@ class MailboxMessage final :
|
||||
&_MailboxMessage_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
11;
|
||||
12;
|
||||
|
||||
friend void swap(MailboxMessage& a, MailboxMessage& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3159,6 +3210,8 @@ RegionStat::mutable_extensions() {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// FlowStat
|
||||
|
||||
// map<uint32, uint64> flow_stat_size = 1;
|
||||
@@ -3190,6 +3243,35 @@ FlowStat::mutable_flow_stat_size() {
|
||||
return _internal_mutable_flow_stat_size();
|
||||
}
|
||||
|
||||
// map<uint32, int64> flow_last_exec_time_map = 2;
|
||||
inline int FlowStat::_internal_flow_last_exec_time_map_size() const {
|
||||
return _impl_.flow_last_exec_time_map_.size();
|
||||
}
|
||||
inline int FlowStat::flow_last_exec_time_map_size() const {
|
||||
return _internal_flow_last_exec_time_map_size();
|
||||
}
|
||||
inline void FlowStat::clear_flow_last_exec_time_map() {
|
||||
_impl_.flow_last_exec_time_map_.Clear();
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >&
|
||||
FlowStat::_internal_flow_last_exec_time_map() const {
|
||||
return _impl_.flow_last_exec_time_map_.GetMap();
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >&
|
||||
FlowStat::flow_last_exec_time_map() const {
|
||||
// @@protoc_insertion_point(field_map:greptime.v1.meta.FlowStat.flow_last_exec_time_map)
|
||||
return _internal_flow_last_exec_time_map();
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >*
|
||||
FlowStat::_internal_mutable_flow_last_exec_time_map() {
|
||||
return _impl_.flow_last_exec_time_map_.MutableMap();
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Map< uint32_t, int64_t >*
|
||||
FlowStat::mutable_flow_last_exec_time_map() {
|
||||
// @@protoc_insertion_point(field_mutable_map:greptime.v1.meta.FlowStat.flow_last_exec_time_map)
|
||||
return _internal_mutable_flow_last_exec_time_map();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// HeartbeatResponse
|
||||
@@ -4202,6 +4284,8 @@ inline MailboxMessage::PayloadCase MailboxMessage::payload_case() const {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user