feat: v04 new heartbeat (#96)
* feat: new heartbeat * feat: single RegionLease to handle all region ids
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+214
-874
File diff suppressed because it is too large
Load Diff
@@ -25,10 +25,9 @@ namespace v1 {
|
||||
namespace region {
|
||||
PROTOBUF_CONSTEXPR RegionRequestHeader::RegionRequestHeader(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_._has_bits_)*/{}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_.trace_id_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.span_id_)*/uint64_t{0u}} {}
|
||||
/*decltype(_impl_.trace_id_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.span_id_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct RegionRequestHeaderDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR RegionRequestHeaderDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
@@ -286,7 +285,7 @@ static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_grept
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_._has_bits_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
@@ -294,8 +293,6 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.trace_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.span_id_),
|
||||
0,
|
||||
1,
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -453,24 +450,24 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.semantic_type_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 8, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
|
||||
{ 10, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
|
||||
{ 27, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
|
||||
{ 35, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
|
||||
{ 42, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
|
||||
{ 49, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
|
||||
{ 57, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
|
||||
{ 65, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
||||
{ 73, 81, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
||||
{ 83, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
||||
{ 97, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
||||
{ 104, 112, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
||||
{ 114, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
||||
{ 125, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||
{ 132, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||
{ 139, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 146, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 153, -1, -1, sizeof(::greptime::v1::region::ColumnDef)},
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
|
||||
{ 8, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
|
||||
{ 25, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
|
||||
{ 33, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
|
||||
{ 40, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
|
||||
{ 47, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
|
||||
{ 55, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
|
||||
{ 63, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
|
||||
{ 71, 79, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
|
||||
{ 81, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
|
||||
{ 95, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
|
||||
{ 102, 110, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
|
||||
{ 112, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
|
||||
{ 123, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||
{ 130, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||
{ 137, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 144, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 151, -1, -1, sizeof(::greptime::v1::region::ColumnDef)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -497,60 +494,59 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
"\n\037greptime/v1/region/server.proto\022\022grept"
|
||||
"ime.v1.region\032\030greptime/v1/common.proto\032"
|
||||
"\025greptime/v1/row.proto\"[\n\023RegionRequestH"
|
||||
"eader\022\025\n\010trace_id\030\001 \001(\004H\000\210\001\001\022\024\n\007span_id\030"
|
||||
"\002 \001(\004H\001\210\001\001B\013\n\t_trace_idB\n\n\010_span_id\"\245\004\n\r"
|
||||
"RegionRequest\0227\n\006header\030\001 \001(\0132\'.greptime"
|
||||
".v1.region.RegionRequestHeader\0225\n\007insert"
|
||||
"s\030\003 \001(\0132\".greptime.v1.region.InsertReque"
|
||||
"stsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v1.reg"
|
||||
"ion.DeleteRequestsH\000\0223\n\006create\030\005 \001(\0132!.g"
|
||||
"reptime.v1.region.CreateRequestH\000\022/\n\004dro"
|
||||
"p\030\006 \001(\0132\037.greptime.v1.region.DropRequest"
|
||||
"H\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.region.Op"
|
||||
"enRequestH\000\0221\n\005close\030\010 \001(\0132 .greptime.v1"
|
||||
".region.CloseRequestH\000\0221\n\005alter\030\t \001(\0132 ."
|
||||
"greptime.v1.region.AlterRequestH\000\0221\n\005flu"
|
||||
"sh\030\n \001(\0132 .greptime.v1.region.FlushReque"
|
||||
"stH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1.regi"
|
||||
"on.CompactRequestH\000B\006\n\004body\"T\n\016RegionRes"
|
||||
"ponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Resp"
|
||||
"onseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E\n\016Ins"
|
||||
"ertRequests\0223\n\010requests\030\001 \003(\0132!.greptime"
|
||||
".v1.region.InsertRequest\"E\n\016DeleteReques"
|
||||
"ts\0223\n\010requests\030\001 \003(\0132!.greptime.v1.regio"
|
||||
"n.DeleteRequest\"C\n\rInsertRequest\022\021\n\tregi"
|
||||
"on_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1."
|
||||
"Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030\001 \001(\004"
|
||||
"\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/\n\014Que"
|
||||
"ryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004plan\030\002 \001"
|
||||
"(\014\"\253\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022"
|
||||
"\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003(\0132\035.g"
|
||||
"reptime.v1.region.ColumnDef\022\023\n\013primary_k"
|
||||
"ey\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 \001(\010\022\017"
|
||||
"\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022\?\n\007optio"
|
||||
"ns\030\010 \003(\0132..greptime.v1.region.CreateRequ"
|
||||
"est.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030"
|
||||
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022"
|
||||
"\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022\021\n\tre"
|
||||
"gion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007catalog"
|
||||
"\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005 \003(\0132"
|
||||
",.greptime.v1.region.OpenRequest.Options"
|
||||
"Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
|
||||
"lue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_"
|
||||
"id\030\001 \001(\004\"!\n\014AlterRequest\022\021\n\tregion_id\030\001 "
|
||||
"\001(\004\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"#"
|
||||
"\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"\276\001\n\t"
|
||||
"ColumnDef\022\014\n\004name\030\001 \001(\t\022\021\n\tcolumn_id\030\002 \001"
|
||||
"(\r\022-\n\010datatype\030\003 \001(\0162\033.greptime.v1.Colum"
|
||||
"nDataType\022\023\n\013is_nullable\030\004 \001(\010\022\032\n\022defaul"
|
||||
"t_constraint\030\005 \001(\014\0220\n\rsemantic_type\030\006 \001("
|
||||
"\0162\031.greptime.v1.SemanticType2Y\n\006Region\022O"
|
||||
"\n\006Handle\022!.greptime.v1.region.RegionRequ"
|
||||
"est\032\".greptime.v1.region.RegionResponseB"
|
||||
"]\n\025io.greptime.v1.regionB\006ServerZ<github"
|
||||
".com/GreptimeTeam/greptime-proto/go/grep"
|
||||
"time/v1/regionb\006proto3"
|
||||
"\025greptime/v1/row.proto\"8\n\023RegionRequestH"
|
||||
"eader\022\020\n\010trace_id\030\001 \001(\004\022\017\n\007span_id\030\002 \001(\004"
|
||||
"\"\245\004\n\rRegionRequest\0227\n\006header\030\001 \001(\0132\'.gre"
|
||||
"ptime.v1.region.RegionRequestHeader\0225\n\007i"
|
||||
"nserts\030\003 \001(\0132\".greptime.v1.region.Insert"
|
||||
"RequestsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v"
|
||||
"1.region.DeleteRequestsH\000\0223\n\006create\030\005 \001("
|
||||
"\0132!.greptime.v1.region.CreateRequestH\000\022/"
|
||||
"\n\004drop\030\006 \001(\0132\037.greptime.v1.region.DropRe"
|
||||
"questH\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.regi"
|
||||
"on.OpenRequestH\000\0221\n\005close\030\010 \001(\0132 .grepti"
|
||||
"me.v1.region.CloseRequestH\000\0221\n\005alter\030\t \001"
|
||||
"(\0132 .greptime.v1.region.AlterRequestH\000\0221"
|
||||
"\n\005flush\030\n \001(\0132 .greptime.v1.region.Flush"
|
||||
"RequestH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1"
|
||||
".region.CompactRequestH\000B\006\n\004body\"T\n\016Regi"
|
||||
"onResponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1"
|
||||
".ResponseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E"
|
||||
"\n\016InsertRequests\0223\n\010requests\030\001 \003(\0132!.gre"
|
||||
"ptime.v1.region.InsertRequest\"E\n\016DeleteR"
|
||||
"equests\0223\n\010requests\030\001 \003(\0132!.greptime.v1."
|
||||
"region.DeleteRequest\"C\n\rInsertRequest\022\021\n"
|
||||
"\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptim"
|
||||
"e.v1.Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030"
|
||||
"\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/"
|
||||
"\n\014QueryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004pla"
|
||||
"n\030\002 \001(\014\"\253\002\n\rCreateRequest\022\021\n\tregion_id\030\001"
|
||||
" \001(\004\022\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003("
|
||||
"\0132\035.greptime.v1.region.ColumnDef\022\023\n\013prim"
|
||||
"ary_key\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 "
|
||||
"\001(\010\022\017\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022\?\n\007"
|
||||
"options\030\010 \003(\0132..greptime.v1.region.Creat"
|
||||
"eRequest.OptionsEntry\032.\n\014OptionsEntry\022\013\n"
|
||||
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropReq"
|
||||
"uest\022\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022"
|
||||
"\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007ca"
|
||||
"talog\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005"
|
||||
" \003(\0132,.greptime.v1.region.OpenRequest.Op"
|
||||
"tionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022"
|
||||
"\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tre"
|
||||
"gion_id\030\001 \001(\004\"!\n\014AlterRequest\022\021\n\tregion_"
|
||||
"id\030\001 \001(\004\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 "
|
||||
"\001(\004\"#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004"
|
||||
"\"\276\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022\021\n\tcolumn_i"
|
||||
"d\030\002 \001(\r\022-\n\010datatype\030\003 \001(\0162\033.greptime.v1."
|
||||
"ColumnDataType\022\023\n\013is_nullable\030\004 \001(\010\022\032\n\022d"
|
||||
"efault_constraint\030\005 \001(\014\0220\n\rsemantic_type"
|
||||
"\030\006 \001(\0162\031.greptime.v1.SemanticType2Y\n\006Reg"
|
||||
"ion\022O\n\006Handle\022!.greptime.v1.region.Regio"
|
||||
"nRequest\032\".greptime.v1.region.RegionResp"
|
||||
"onseB]\n\025io.greptime.v1.regionB\006ServerZ<g"
|
||||
"ithub.com/GreptimeTeam/greptime-proto/go"
|
||||
"/greptime/v1/regionb\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[2] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -558,7 +554,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
||||
false, false, 2222, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
false, false, 2187, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
"greptime/v1/region/server.proto",
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 2, 18,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||
@@ -579,13 +575,6 @@ namespace region {
|
||||
|
||||
class RegionRequestHeader::_Internal {
|
||||
public:
|
||||
using HasBits = decltype(std::declval<RegionRequestHeader>()._impl_._has_bits_);
|
||||
static void set_has_trace_id(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 1u;
|
||||
}
|
||||
static void set_has_span_id(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 2u;
|
||||
}
|
||||
};
|
||||
|
||||
RegionRequestHeader::RegionRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
@@ -598,10 +587,9 @@ RegionRequestHeader::RegionRequestHeader(const RegionRequestHeader& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
RegionRequestHeader* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, decltype(_impl_.trace_id_){}
|
||||
, decltype(_impl_.span_id_){}};
|
||||
decltype(_impl_.trace_id_){}
|
||||
, decltype(_impl_.span_id_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::memcpy(&_impl_.trace_id_, &from._impl_.trace_id_,
|
||||
@@ -615,10 +603,9 @@ inline void RegionRequestHeader::SharedCtor(
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_._has_bits_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, decltype(_impl_.trace_id_){uint64_t{0u}}
|
||||
decltype(_impl_.trace_id_){uint64_t{0u}}
|
||||
, decltype(_impl_.span_id_){uint64_t{0u}}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -645,36 +632,29 @@ void RegionRequestHeader::Clear() {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _impl_._has_bits_[0];
|
||||
if (cached_has_bits & 0x00000003u) {
|
||||
::memset(&_impl_.trace_id_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.span_id_) -
|
||||
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
|
||||
}
|
||||
_impl_._has_bits_.Clear();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
_Internal::HasBits has_bits{};
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// optional uint64 trace_id = 1;
|
||||
// uint64 trace_id = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_Internal::set_has_trace_id(&has_bits);
|
||||
_impl_.trace_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional uint64 span_id = 2;
|
||||
// uint64 span_id = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
_Internal::set_has_span_id(&has_bits);
|
||||
_impl_.span_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
@@ -696,7 +676,6 @@ const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseCo
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
_impl_._has_bits_.Or(has_bits);
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
@@ -710,14 +689,14 @@ uint8_t* RegionRequestHeader::_InternalSerialize(
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// optional uint64 trace_id = 1;
|
||||
if (_internal_has_trace_id()) {
|
||||
// uint64 trace_id = 1;
|
||||
if (this->_internal_trace_id() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_trace_id(), target);
|
||||
}
|
||||
|
||||
// optional uint64 span_id = 2;
|
||||
if (_internal_has_span_id()) {
|
||||
// uint64 span_id = 2;
|
||||
if (this->_internal_span_id() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_span_id(), target);
|
||||
}
|
||||
@@ -738,19 +717,16 @@ size_t RegionRequestHeader::ByteSizeLong() const {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _impl_._has_bits_[0];
|
||||
if (cached_has_bits & 0x00000003u) {
|
||||
// optional uint64 trace_id = 1;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
// uint64 trace_id = 1;
|
||||
if (this->_internal_trace_id() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trace_id());
|
||||
}
|
||||
|
||||
// optional uint64 span_id = 2;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
// uint64 span_id = 2;
|
||||
if (this->_internal_span_id() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_span_id());
|
||||
}
|
||||
|
||||
}
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
@@ -769,15 +745,11 @@ void RegionRequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = from._impl_._has_bits_[0];
|
||||
if (cached_has_bits & 0x00000003u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
_this->_impl_.trace_id_ = from._impl_.trace_id_;
|
||||
if (from._internal_trace_id() != 0) {
|
||||
_this->_internal_set_trace_id(from._internal_trace_id());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
_this->_impl_.span_id_ = from._impl_.span_id_;
|
||||
}
|
||||
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
||||
if (from._internal_span_id() != 0) {
|
||||
_this->_internal_set_span_id(from._internal_span_id());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
@@ -796,7 +768,6 @@ bool RegionRequestHeader::IsInitialized() const {
|
||||
void RegionRequestHeader::InternalSwap(RegionRequestHeader* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(RegionRequestHeader, _impl_.span_id_)
|
||||
+ sizeof(RegionRequestHeader::_impl_.span_id_)
|
||||
|
||||
@@ -259,11 +259,7 @@ class RegionRequestHeader final :
|
||||
kTraceIdFieldNumber = 1,
|
||||
kSpanIdFieldNumber = 2,
|
||||
};
|
||||
// optional uint64 trace_id = 1;
|
||||
bool has_trace_id() const;
|
||||
private:
|
||||
bool _internal_has_trace_id() const;
|
||||
public:
|
||||
// uint64 trace_id = 1;
|
||||
void clear_trace_id();
|
||||
uint64_t trace_id() const;
|
||||
void set_trace_id(uint64_t value);
|
||||
@@ -272,11 +268,7 @@ class RegionRequestHeader final :
|
||||
void _internal_set_trace_id(uint64_t value);
|
||||
public:
|
||||
|
||||
// optional uint64 span_id = 2;
|
||||
bool has_span_id() const;
|
||||
private:
|
||||
bool _internal_has_span_id() const;
|
||||
public:
|
||||
// uint64 span_id = 2;
|
||||
void clear_span_id();
|
||||
uint64_t span_id() const;
|
||||
void set_span_id(uint64_t value);
|
||||
@@ -293,10 +285,9 @@ class RegionRequestHeader final :
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint64_t trace_id_;
|
||||
uint64_t span_id_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
|
||||
@@ -3173,17 +3164,9 @@ class ColumnDef final :
|
||||
#endif // __GNUC__
|
||||
// RegionRequestHeader
|
||||
|
||||
// optional uint64 trace_id = 1;
|
||||
inline bool RegionRequestHeader::_internal_has_trace_id() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool RegionRequestHeader::has_trace_id() const {
|
||||
return _internal_has_trace_id();
|
||||
}
|
||||
// uint64 trace_id = 1;
|
||||
inline void RegionRequestHeader::clear_trace_id() {
|
||||
_impl_.trace_id_ = uint64_t{0u};
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline uint64_t RegionRequestHeader::_internal_trace_id() const {
|
||||
return _impl_.trace_id_;
|
||||
@@ -3193,7 +3176,7 @@ inline uint64_t RegionRequestHeader::trace_id() const {
|
||||
return _internal_trace_id();
|
||||
}
|
||||
inline void RegionRequestHeader::_internal_set_trace_id(uint64_t value) {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
|
||||
_impl_.trace_id_ = value;
|
||||
}
|
||||
inline void RegionRequestHeader::set_trace_id(uint64_t value) {
|
||||
@@ -3201,17 +3184,9 @@ inline void RegionRequestHeader::set_trace_id(uint64_t value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionRequestHeader.trace_id)
|
||||
}
|
||||
|
||||
// optional uint64 span_id = 2;
|
||||
inline bool RegionRequestHeader::_internal_has_span_id() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool RegionRequestHeader::has_span_id() const {
|
||||
return _internal_has_span_id();
|
||||
}
|
||||
// uint64 span_id = 2;
|
||||
inline void RegionRequestHeader::clear_span_id() {
|
||||
_impl_.span_id_ = uint64_t{0u};
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline uint64_t RegionRequestHeader::_internal_span_id() const {
|
||||
return _impl_.span_id_;
|
||||
@@ -3221,7 +3196,7 @@ inline uint64_t RegionRequestHeader::span_id() const {
|
||||
return _internal_span_id();
|
||||
}
|
||||
inline void RegionRequestHeader::_internal_set_span_id(uint64_t value) {
|
||||
_impl_._has_bits_[0] |= 0x00000002u;
|
||||
|
||||
_impl_.span_id_ = value;
|
||||
}
|
||||
inline void RegionRequestHeader::set_span_id(uint64_t value) {
|
||||
|
||||
+160
-322
@@ -44,16 +44,14 @@ type HeartbeatRequest struct {
|
||||
Peer *Peer `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"`
|
||||
// Actually reported time interval
|
||||
ReportInterval *TimeInterval `protobuf:"bytes,3,opt,name=report_interval,json=reportInterval,proto3" json:"report_interval,omitempty"`
|
||||
// Node stat
|
||||
NodeStat *NodeStat `protobuf:"bytes,4,opt,name=node_stat,json=nodeStat,proto3" json:"node_stat,omitempty"`
|
||||
// Region stats on this node
|
||||
RegionStats []*RegionStat `protobuf:"bytes,5,rep,name=region_stats,json=regionStats,proto3" json:"region_stats,omitempty"`
|
||||
RegionStats []*RegionStat `protobuf:"bytes,4,rep,name=region_stats,json=regionStats,proto3" json:"region_stats,omitempty"`
|
||||
// Mailbox send message to Metasrv
|
||||
MailboxMessage *MailboxMessage `protobuf:"bytes,6,opt,name=mailbox_message,json=mailboxMessage,proto3" json:"mailbox_message,omitempty"`
|
||||
MailboxMessage *MailboxMessage `protobuf:"bytes,5,opt,name=mailbox_message,json=mailboxMessage,proto3" json:"mailbox_message,omitempty"`
|
||||
// The duration since the heartbeat task's epoch in milliseconds.
|
||||
DurationSinceEpoch uint64 `protobuf:"varint,7,opt,name=duration_since_epoch,json=durationSinceEpoch,proto3" json:"duration_since_epoch,omitempty"`
|
||||
DurationSinceEpoch uint64 `protobuf:"varint,6,opt,name=duration_since_epoch,json=durationSinceEpoch,proto3" json:"duration_since_epoch,omitempty"`
|
||||
// The node's epoch
|
||||
NodeEpoch uint64 `protobuf:"varint,8,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"`
|
||||
NodeEpoch uint64 `protobuf:"varint,7,opt,name=node_epoch,json=nodeEpoch,proto3" json:"node_epoch,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HeartbeatRequest) Reset() {
|
||||
@@ -109,13 +107,6 @@ func (x *HeartbeatRequest) GetReportInterval() *TimeInterval {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HeartbeatRequest) GetNodeStat() *NodeStat {
|
||||
if x != nil {
|
||||
return x.NodeStat
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HeartbeatRequest) GetRegionStats() []*RegionStat {
|
||||
if x != nil {
|
||||
return x.RegionStats
|
||||
@@ -144,113 +135,28 @@ func (x *HeartbeatRequest) GetNodeEpoch() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
type NodeStat struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// The read capacity units during this period
|
||||
Rcus int64 `protobuf:"varint,1,opt,name=rcus,proto3" json:"rcus,omitempty"`
|
||||
// The write capacity units during this period
|
||||
Wcus int64 `protobuf:"varint,2,opt,name=wcus,proto3" json:"wcus,omitempty"`
|
||||
// How many tables on this node
|
||||
TableNum int64 `protobuf:"varint,3,opt,name=table_num,json=tableNum,proto3" json:"table_num,omitempty"`
|
||||
// How many regions on this node
|
||||
RegionNum int64 `protobuf:"varint,4,opt,name=region_num,json=regionNum,proto3" json:"region_num,omitempty"`
|
||||
// Others
|
||||
Attrs map[string]string `protobuf:"bytes,100,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
}
|
||||
|
||||
func (x *NodeStat) Reset() {
|
||||
*x = NodeStat{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *NodeStat) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*NodeStat) ProtoMessage() {}
|
||||
|
||||
func (x *NodeStat) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use NodeStat.ProtoReflect.Descriptor instead.
|
||||
func (*NodeStat) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *NodeStat) GetRcus() int64 {
|
||||
if x != nil {
|
||||
return x.Rcus
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *NodeStat) GetWcus() int64 {
|
||||
if x != nil {
|
||||
return x.Wcus
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *NodeStat) GetTableNum() int64 {
|
||||
if x != nil {
|
||||
return x.TableNum
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *NodeStat) GetRegionNum() int64 {
|
||||
if x != nil {
|
||||
return x.RegionNum
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *NodeStat) GetAttrs() map[string]string {
|
||||
if x != nil {
|
||||
return x.Attrs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RegionStat struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||||
TableIdent *TableIdent `protobuf:"bytes,2,opt,name=table_ident,json=tableIdent,proto3" json:"table_ident,omitempty"`
|
||||
// The read capacity units during this period
|
||||
Rcus int64 `protobuf:"varint,3,opt,name=rcus,proto3" json:"rcus,omitempty"`
|
||||
Rcus int64 `protobuf:"varint,2,opt,name=rcus,proto3" json:"rcus,omitempty"`
|
||||
// The write capacity units during this period
|
||||
Wcus int64 `protobuf:"varint,4,opt,name=wcus,proto3" json:"wcus,omitempty"`
|
||||
Wcus int64 `protobuf:"varint,3,opt,name=wcus,proto3" json:"wcus,omitempty"`
|
||||
// Approximate bytes of this region
|
||||
ApproximateBytes int64 `protobuf:"varint,5,opt,name=approximate_bytes,json=approximateBytes,proto3" json:"approximate_bytes,omitempty"`
|
||||
ApproximateBytes int64 `protobuf:"varint,4,opt,name=approximate_bytes,json=approximateBytes,proto3" json:"approximate_bytes,omitempty"`
|
||||
// Approximate number of rows in this region
|
||||
ApproximateRows int64 `protobuf:"varint,6,opt,name=approximate_rows,json=approximateRows,proto3" json:"approximate_rows,omitempty"`
|
||||
// Others
|
||||
Attrs map[string]string `protobuf:"bytes,100,rep,name=attrs,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
ApproximateRows int64 `protobuf:"varint,5,opt,name=approximate_rows,json=approximateRows,proto3" json:"approximate_rows,omitempty"`
|
||||
// engine name
|
||||
Engine string `protobuf:"bytes,6,opt,name=engine,proto3" json:"engine,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RegionStat) Reset() {
|
||||
*x = RegionStat{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -263,7 +169,7 @@ func (x *RegionStat) String() string {
|
||||
func (*RegionStat) ProtoMessage() {}
|
||||
|
||||
func (x *RegionStat) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -276,7 +182,7 @@ func (x *RegionStat) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RegionStat.ProtoReflect.Descriptor instead.
|
||||
func (*RegionStat) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{2}
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *RegionStat) GetRegionId() uint64 {
|
||||
@@ -286,13 +192,6 @@ func (x *RegionStat) GetRegionId() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RegionStat) GetTableIdent() *TableIdent {
|
||||
if x != nil {
|
||||
return x.TableIdent
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RegionStat) GetRcus() int64 {
|
||||
if x != nil {
|
||||
return x.Rcus
|
||||
@@ -321,11 +220,11 @@ func (x *RegionStat) GetApproximateRows() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RegionStat) GetAttrs() map[string]string {
|
||||
func (x *RegionStat) GetEngine() string {
|
||||
if x != nil {
|
||||
return x.Attrs
|
||||
return x.Engine
|
||||
}
|
||||
return nil
|
||||
return ""
|
||||
}
|
||||
|
||||
type HeartbeatResponse struct {
|
||||
@@ -335,13 +234,13 @@ type HeartbeatResponse struct {
|
||||
|
||||
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
MailboxMessage *MailboxMessage `protobuf:"bytes,2,opt,name=mailbox_message,json=mailboxMessage,proto3" json:"mailbox_message,omitempty"`
|
||||
RegionLeases []*RegionLease `protobuf:"bytes,3,rep,name=region_leases,json=regionLeases,proto3" json:"region_leases,omitempty"`
|
||||
RegionLease *RegionLease `protobuf:"bytes,3,opt,name=region_lease,json=regionLease,proto3" json:"region_lease,omitempty"`
|
||||
}
|
||||
|
||||
func (x *HeartbeatResponse) Reset() {
|
||||
*x = HeartbeatResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -354,7 +253,7 @@ func (x *HeartbeatResponse) String() string {
|
||||
func (*HeartbeatResponse) ProtoMessage() {}
|
||||
|
||||
func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -367,7 +266,7 @@ func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.
|
||||
func (*HeartbeatResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3}
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *HeartbeatResponse) GetHeader() *ResponseHeader {
|
||||
@@ -384,9 +283,9 @@ func (x *HeartbeatResponse) GetMailboxMessage() *MailboxMessage {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *HeartbeatResponse) GetRegionLeases() []*RegionLease {
|
||||
func (x *HeartbeatResponse) GetRegionLease() *RegionLease {
|
||||
if x != nil {
|
||||
return x.RegionLeases
|
||||
return x.RegionLease
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -396,16 +295,15 @@ type RegionLease struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TableIdent *TableIdent `protobuf:"bytes,1,opt,name=table_ident,json=tableIdent,proto3" json:"table_ident,omitempty"`
|
||||
Regions []uint32 `protobuf:"varint,2,rep,packed,name=regions,proto3" json:"regions,omitempty"`
|
||||
DurationSinceEpoch uint64 `protobuf:"varint,3,opt,name=duration_since_epoch,json=durationSinceEpoch,proto3" json:"duration_since_epoch,omitempty"`
|
||||
LeaseSeconds uint64 `protobuf:"varint,4,opt,name=lease_seconds,json=leaseSeconds,proto3" json:"lease_seconds,omitempty"`
|
||||
RegionIds []uint64 `protobuf:"varint,1,rep,packed,name=region_ids,json=regionIds,proto3" json:"region_ids,omitempty"`
|
||||
DurationSinceEpoch uint64 `protobuf:"varint,2,opt,name=duration_since_epoch,json=durationSinceEpoch,proto3" json:"duration_since_epoch,omitempty"`
|
||||
LeaseSeconds uint64 `protobuf:"varint,3,opt,name=lease_seconds,json=leaseSeconds,proto3" json:"lease_seconds,omitempty"`
|
||||
}
|
||||
|
||||
func (x *RegionLease) Reset() {
|
||||
*x = RegionLease{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -418,7 +316,7 @@ func (x *RegionLease) String() string {
|
||||
func (*RegionLease) ProtoMessage() {}
|
||||
|
||||
func (x *RegionLease) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -431,19 +329,12 @@ func (x *RegionLease) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RegionLease.ProtoReflect.Descriptor instead.
|
||||
func (*RegionLease) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4}
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *RegionLease) GetTableIdent() *TableIdent {
|
||||
func (x *RegionLease) GetRegionIds() []uint64 {
|
||||
if x != nil {
|
||||
return x.TableIdent
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RegionLease) GetRegions() []uint32 {
|
||||
if x != nil {
|
||||
return x.Regions
|
||||
return x.RegionIds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -473,7 +364,7 @@ type AskLeaderRequest struct {
|
||||
func (x *AskLeaderRequest) Reset() {
|
||||
*x = AskLeaderRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -486,7 +377,7 @@ func (x *AskLeaderRequest) String() string {
|
||||
func (*AskLeaderRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -499,7 +390,7 @@ func (x *AskLeaderRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AskLeaderRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AskLeaderRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5}
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *AskLeaderRequest) GetHeader() *RequestHeader {
|
||||
@@ -521,7 +412,7 @@ type AskLeaderResponse struct {
|
||||
func (x *AskLeaderResponse) Reset() {
|
||||
*x = AskLeaderResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -534,7 +425,7 @@ func (x *AskLeaderResponse) String() string {
|
||||
func (*AskLeaderResponse) ProtoMessage() {}
|
||||
|
||||
func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -547,7 +438,7 @@ func (x *AskLeaderResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use AskLeaderResponse.ProtoReflect.Descriptor instead.
|
||||
func (*AskLeaderResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6}
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *AskLeaderResponse) GetHeader() *ResponseHeader {
|
||||
@@ -589,7 +480,7 @@ type MailboxMessage struct {
|
||||
func (x *MailboxMessage) Reset() {
|
||||
*x = MailboxMessage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -602,7 +493,7 @@ func (x *MailboxMessage) String() string {
|
||||
func (*MailboxMessage) ProtoMessage() {}
|
||||
|
||||
func (x *MailboxMessage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[7]
|
||||
mi := &file_greptime_v1_meta_heartbeat_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -615,7 +506,7 @@ func (x *MailboxMessage) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use MailboxMessage.ProtoReflect.Descriptor instead.
|
||||
func (*MailboxMessage) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{7}
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *MailboxMessage) GetId() uint64 {
|
||||
@@ -685,7 +576,7 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
|
||||
0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
|
||||
0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x03, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61,
|
||||
0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x03, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61,
|
||||
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64,
|
||||
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75,
|
||||
@@ -697,127 +588,95 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e,
|
||||
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x37, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x73,
|
||||
0x74, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4e, 0x6f, 0x64,
|
||||
0x65, 0x53, 0x74, 0x61, 0x74, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x12,
|
||||
0x3f, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18,
|
||||
0x05, 0x20, 0x03, 0x28, 0x0b, 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, 0x53,
|
||||
0x74, 0x61, 0x74, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73,
|
||||
0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73,
|
||||
0x61, 0x67, 0x65, 0x18, 0x06, 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, 0x30, 0x0a, 0x14, 0x64,
|
||||
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70,
|
||||
0x6f, 0x63, 0x68, 0x18, 0x07, 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, 0x1d, 0x0a,
|
||||
0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28,
|
||||
0x04, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x22, 0xe5, 0x01, 0x0a,
|
||||
0x08, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x63, 0x75,
|
||||
0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x63, 0x75, 0x73, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x63, 0x75,
|
||||
0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1d,
|
||||
0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x12, 0x3b, 0x0a,
|
||||
0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67,
|
||||
0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x3f, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67,
|
||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
|
||||
0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e,
|
||||
0x74, 0x72, 0x79, 0x52, 0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x41, 0x74,
|
||||
0x74, 0x72, 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, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x22, 0xe1, 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, 0x3d, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
|
||||
0x65, 0x6e, 0x74, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72,
|
||||
0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x62,
|
||||
0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 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, 0x30, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73,
|
||||
0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x06, 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, 0x1d, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x70, 0x6f,
|
||||
0x63, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x70,
|
||||
0x6f, 0x63, 0x68, 0x22, 0xc1, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74,
|
||||
0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
|
||||
0x12, 0x0a, 0x04, 0x72, 0x63, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72,
|
||||
0x63, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x63, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x04, 0x77, 0x63, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x70, 0x70, 0x72, 0x6f,
|
||||
0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01,
|
||||
0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x42,
|
||||
0x79, 0x74, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d,
|
||||
0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
|
||||
0x61, 0x74, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
|
||||
0x61, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x12,
|
||||
0x3d, 0x0a, 0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27,
|
||||
0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x11, 0x48, 0x65, 0x61, 0x72,
|
||||
0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a,
|
||||
0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
|
||||
0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x62,
|
||||
0x6f, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x52, 0x0e, 0x6d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65, 0x61,
|
||||
0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c,
|
||||
0x65, 0x61, 0x73, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c,
|
||||
0x65, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
|
||||
0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x49, 0x64, 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, 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, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x2e, 0x41, 0x74, 0x74,
|
||||
0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x1a, 0x38,
|
||||
0x0a, 0x0a, 0x41, 0x74, 0x74, 0x72, 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, 0x09, 0x52, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xdc, 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, 0x42, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x65,
|
||||
0x61, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 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, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67,
|
||||
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,
|
||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 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, 0x03, 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, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65,
|
||||
0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68,
|
||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63,
|
||||
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||
0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12,
|
||||
0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
|
||||
0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
|
||||
0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x5a,
|
||||
0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48,
|
||||
0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x09, 0x41, 0x73,
|
||||
0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41,
|
||||
0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06,
|
||||
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06,
|
||||
0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62,
|
||||
0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62,
|
||||
0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a,
|
||||
0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
||||
0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c,
|
||||
0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
|
||||
0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
|
||||
0x6f, 0x61, 0x64, 0x32, 0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61,
|
||||
0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a,
|
||||
0x09, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x73,
|
||||
0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
||||
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d,
|
||||
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
|
||||
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -832,50 +691,41 @@ func file_greptime_v1_meta_heartbeat_proto_rawDescGZIP() []byte {
|
||||
return file_greptime_v1_meta_heartbeat_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_greptime_v1_meta_heartbeat_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_greptime_v1_meta_heartbeat_proto_goTypes = []interface{}{
|
||||
(*HeartbeatRequest)(nil), // 0: greptime.v1.meta.HeartbeatRequest
|
||||
(*NodeStat)(nil), // 1: greptime.v1.meta.NodeStat
|
||||
(*RegionStat)(nil), // 2: greptime.v1.meta.RegionStat
|
||||
(*HeartbeatResponse)(nil), // 3: greptime.v1.meta.HeartbeatResponse
|
||||
(*RegionLease)(nil), // 4: greptime.v1.meta.RegionLease
|
||||
(*AskLeaderRequest)(nil), // 5: greptime.v1.meta.AskLeaderRequest
|
||||
(*AskLeaderResponse)(nil), // 6: greptime.v1.meta.AskLeaderResponse
|
||||
(*MailboxMessage)(nil), // 7: greptime.v1.meta.MailboxMessage
|
||||
nil, // 8: greptime.v1.meta.NodeStat.AttrsEntry
|
||||
nil, // 9: greptime.v1.meta.RegionStat.AttrsEntry
|
||||
(*RequestHeader)(nil), // 10: greptime.v1.meta.RequestHeader
|
||||
(*Peer)(nil), // 11: greptime.v1.meta.Peer
|
||||
(*TimeInterval)(nil), // 12: greptime.v1.meta.TimeInterval
|
||||
(*TableIdent)(nil), // 13: greptime.v1.meta.TableIdent
|
||||
(*ResponseHeader)(nil), // 14: greptime.v1.meta.ResponseHeader
|
||||
(*RegionStat)(nil), // 1: greptime.v1.meta.RegionStat
|
||||
(*HeartbeatResponse)(nil), // 2: greptime.v1.meta.HeartbeatResponse
|
||||
(*RegionLease)(nil), // 3: greptime.v1.meta.RegionLease
|
||||
(*AskLeaderRequest)(nil), // 4: greptime.v1.meta.AskLeaderRequest
|
||||
(*AskLeaderResponse)(nil), // 5: greptime.v1.meta.AskLeaderResponse
|
||||
(*MailboxMessage)(nil), // 6: greptime.v1.meta.MailboxMessage
|
||||
(*RequestHeader)(nil), // 7: greptime.v1.meta.RequestHeader
|
||||
(*Peer)(nil), // 8: greptime.v1.meta.Peer
|
||||
(*TimeInterval)(nil), // 9: greptime.v1.meta.TimeInterval
|
||||
(*ResponseHeader)(nil), // 10: greptime.v1.meta.ResponseHeader
|
||||
}
|
||||
var file_greptime_v1_meta_heartbeat_proto_depIdxs = []int32{
|
||||
10, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
11, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer
|
||||
12, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval
|
||||
1, // 3: greptime.v1.meta.HeartbeatRequest.node_stat:type_name -> greptime.v1.meta.NodeStat
|
||||
2, // 4: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat
|
||||
7, // 5: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
|
||||
8, // 6: greptime.v1.meta.NodeStat.attrs:type_name -> greptime.v1.meta.NodeStat.AttrsEntry
|
||||
13, // 7: greptime.v1.meta.RegionStat.table_ident:type_name -> greptime.v1.meta.TableIdent
|
||||
9, // 8: greptime.v1.meta.RegionStat.attrs:type_name -> greptime.v1.meta.RegionStat.AttrsEntry
|
||||
14, // 9: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
7, // 10: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
|
||||
4, // 11: greptime.v1.meta.HeartbeatResponse.region_leases:type_name -> greptime.v1.meta.RegionLease
|
||||
13, // 12: greptime.v1.meta.RegionLease.table_ident:type_name -> greptime.v1.meta.TableIdent
|
||||
10, // 13: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
14, // 14: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
11, // 15: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer
|
||||
0, // 16: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest
|
||||
5, // 17: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest
|
||||
3, // 18: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse
|
||||
6, // 19: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse
|
||||
18, // [18:20] is the sub-list for method output_type
|
||||
16, // [16:18] is the sub-list for method input_type
|
||||
16, // [16:16] is the sub-list for extension type_name
|
||||
16, // [16:16] is the sub-list for extension extendee
|
||||
0, // [0:16] is the sub-list for field type_name
|
||||
7, // 0: greptime.v1.meta.HeartbeatRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
8, // 1: greptime.v1.meta.HeartbeatRequest.peer:type_name -> greptime.v1.meta.Peer
|
||||
9, // 2: greptime.v1.meta.HeartbeatRequest.report_interval:type_name -> greptime.v1.meta.TimeInterval
|
||||
1, // 3: greptime.v1.meta.HeartbeatRequest.region_stats:type_name -> greptime.v1.meta.RegionStat
|
||||
6, // 4: greptime.v1.meta.HeartbeatRequest.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
|
||||
10, // 5: greptime.v1.meta.HeartbeatResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
6, // 6: greptime.v1.meta.HeartbeatResponse.mailbox_message:type_name -> greptime.v1.meta.MailboxMessage
|
||||
3, // 7: greptime.v1.meta.HeartbeatResponse.region_lease:type_name -> greptime.v1.meta.RegionLease
|
||||
7, // 8: greptime.v1.meta.AskLeaderRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
10, // 9: greptime.v1.meta.AskLeaderResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
8, // 10: greptime.v1.meta.AskLeaderResponse.leader:type_name -> greptime.v1.meta.Peer
|
||||
0, // 11: greptime.v1.meta.Heartbeat.Heartbeat:input_type -> greptime.v1.meta.HeartbeatRequest
|
||||
4, // 12: greptime.v1.meta.Heartbeat.AskLeader:input_type -> greptime.v1.meta.AskLeaderRequest
|
||||
2, // 13: greptime.v1.meta.Heartbeat.Heartbeat:output_type -> greptime.v1.meta.HeartbeatResponse
|
||||
5, // 14: greptime.v1.meta.Heartbeat.AskLeader:output_type -> greptime.v1.meta.AskLeaderResponse
|
||||
13, // [13:15] is the sub-list for method output_type
|
||||
11, // [11:13] is the sub-list for method input_type
|
||||
11, // [11:11] is the sub-list for extension type_name
|
||||
11, // [11:11] is the sub-list for extension extendee
|
||||
0, // [0:11] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_meta_heartbeat_proto_init() }
|
||||
@@ -898,18 +748,6 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*NodeStat); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RegionStat); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -921,7 +759,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*HeartbeatResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -933,7 +771,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RegionLease); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -945,7 +783,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AskLeaderRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -957,7 +795,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AskLeaderResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -969,7 +807,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*MailboxMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -982,7 +820,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[7].OneofWrappers = []interface{}{
|
||||
file_greptime_v1_meta_heartbeat_proto_msgTypes[6].OneofWrappers = []interface{}{
|
||||
(*MailboxMessage_Json)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
@@ -991,7 +829,7 @@ func file_greptime_v1_meta_heartbeat_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_greptime_v1_meta_heartbeat_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -23,16 +23,7 @@ public final class Server {
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* @return Whether the traceId field is set.
|
||||
*/
|
||||
boolean hasTraceId();
|
||||
/**
|
||||
* <pre>
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* <code>uint64 trace_id = 1;</code>
|
||||
* @return The traceId.
|
||||
*/
|
||||
long getTraceId();
|
||||
@@ -42,16 +33,7 @@ public final class Server {
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* @return Whether the spanId field is set.
|
||||
*/
|
||||
boolean hasSpanId();
|
||||
/**
|
||||
* <pre>
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* <code>uint64 span_id = 2;</code>
|
||||
* @return The spanId.
|
||||
*/
|
||||
long getSpanId();
|
||||
@@ -91,7 +73,6 @@ public final class Server {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@@ -103,12 +84,12 @@ public final class Server {
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
bitField0_ |= 0x00000001;
|
||||
|
||||
traceId_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
bitField0_ |= 0x00000002;
|
||||
|
||||
spanId_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
@@ -146,7 +127,6 @@ public final class Server {
|
||||
io.greptime.v1.region.Server.RegionRequestHeader.class, io.greptime.v1.region.Server.RegionRequestHeader.Builder.class);
|
||||
}
|
||||
|
||||
private int bitField0_;
|
||||
public static final int TRACE_ID_FIELD_NUMBER = 1;
|
||||
private long traceId_;
|
||||
/**
|
||||
@@ -154,19 +134,7 @@ public final class Server {
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* @return Whether the traceId field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasTraceId() {
|
||||
return ((bitField0_ & 0x00000001) != 0);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* <code>uint64 trace_id = 1;</code>
|
||||
* @return The traceId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -181,19 +149,7 @@ public final class Server {
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* @return Whether the spanId field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasSpanId() {
|
||||
return ((bitField0_ & 0x00000002) != 0);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* <code>uint64 span_id = 2;</code>
|
||||
* @return The spanId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -215,10 +171,10 @@ public final class Server {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
if (traceId_ != 0L) {
|
||||
output.writeUInt64(1, traceId_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) != 0)) {
|
||||
if (spanId_ != 0L) {
|
||||
output.writeUInt64(2, spanId_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
@@ -230,11 +186,11 @@ public final class Server {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
if (traceId_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(1, traceId_);
|
||||
}
|
||||
if (((bitField0_ & 0x00000002) != 0)) {
|
||||
if (spanId_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(2, spanId_);
|
||||
}
|
||||
@@ -253,16 +209,10 @@ public final class Server {
|
||||
}
|
||||
io.greptime.v1.region.Server.RegionRequestHeader other = (io.greptime.v1.region.Server.RegionRequestHeader) obj;
|
||||
|
||||
if (hasTraceId() != other.hasTraceId()) return false;
|
||||
if (hasTraceId()) {
|
||||
if (getTraceId()
|
||||
!= other.getTraceId()) return false;
|
||||
}
|
||||
if (hasSpanId() != other.hasSpanId()) return false;
|
||||
if (hasSpanId()) {
|
||||
if (getSpanId()
|
||||
!= other.getSpanId()) return false;
|
||||
}
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -274,16 +224,12 @@ public final class Server {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (hasTraceId()) {
|
||||
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getTraceId());
|
||||
}
|
||||
if (hasSpanId()) {
|
||||
hash = (37 * hash) + SPAN_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getSpanId());
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -418,9 +364,9 @@ public final class Server {
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
traceId_ = 0L;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
|
||||
spanId_ = 0L;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -447,17 +393,8 @@ public final class Server {
|
||||
@java.lang.Override
|
||||
public io.greptime.v1.region.Server.RegionRequestHeader buildPartial() {
|
||||
io.greptime.v1.region.Server.RegionRequestHeader result = new io.greptime.v1.region.Server.RegionRequestHeader(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
int to_bitField0_ = 0;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.traceId_ = traceId_;
|
||||
to_bitField0_ |= 0x00000001;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.spanId_ = spanId_;
|
||||
to_bitField0_ |= 0x00000002;
|
||||
}
|
||||
result.bitField0_ = to_bitField0_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -506,10 +443,10 @@ public final class Server {
|
||||
|
||||
public Builder mergeFrom(io.greptime.v1.region.Server.RegionRequestHeader other) {
|
||||
if (other == io.greptime.v1.region.Server.RegionRequestHeader.getDefaultInstance()) return this;
|
||||
if (other.hasTraceId()) {
|
||||
if (other.getTraceId() != 0L) {
|
||||
setTraceId(other.getTraceId());
|
||||
}
|
||||
if (other.hasSpanId()) {
|
||||
if (other.getSpanId() != 0L) {
|
||||
setSpanId(other.getSpanId());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
@@ -540,7 +477,6 @@ public final class Server {
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private long traceId_ ;
|
||||
/**
|
||||
@@ -548,19 +484,7 @@ public final class Server {
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* @return Whether the traceId field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasTraceId() {
|
||||
return ((bitField0_ & 0x00000001) != 0);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* <code>uint64 trace_id = 1;</code>
|
||||
* @return The traceId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -572,12 +496,12 @@ public final class Server {
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* <code>uint64 trace_id = 1;</code>
|
||||
* @param value The traceId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTraceId(long value) {
|
||||
bitField0_ |= 0x00000001;
|
||||
|
||||
traceId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -587,11 +511,11 @@ public final class Server {
|
||||
* TraceID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 trace_id = 1;</code>
|
||||
* <code>uint64 trace_id = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTraceId() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
|
||||
traceId_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -603,19 +527,7 @@ public final class Server {
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* @return Whether the spanId field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasSpanId() {
|
||||
return ((bitField0_ & 0x00000002) != 0);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* <code>uint64 span_id = 2;</code>
|
||||
* @return The spanId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -627,12 +539,12 @@ public final class Server {
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* <code>uint64 span_id = 2;</code>
|
||||
* @param value The spanId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSpanId(long value) {
|
||||
bitField0_ |= 0x00000002;
|
||||
|
||||
spanId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -642,11 +554,11 @@ public final class Server {
|
||||
* SpanID of request
|
||||
* </pre>
|
||||
*
|
||||
* <code>optional uint64 span_id = 2;</code>
|
||||
* <code>uint64 span_id = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSpanId() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
|
||||
spanId_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -7801,7 +7713,7 @@ public final class Server {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -7810,7 +7722,7 @@ public final class Server {
|
||||
java.util.List<java.lang.Integer> getPrimaryKeyList();
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -7819,7 +7731,7 @@ public final class Server {
|
||||
int getPrimaryKeyCount();
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -8231,7 +8143,7 @@ java.lang.String defaultValue);
|
||||
private com.google.protobuf.Internal.IntList primaryKey_;
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -8244,7 +8156,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -8255,7 +8167,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -9444,7 +9356,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -9457,7 +9369,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -9468,7 +9380,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -9480,7 +9392,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -9497,7 +9409,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -9512,7 +9424,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -9529,7 +9441,7 @@ java.lang.String defaultValue);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Columns in the primary key.
|
||||
* Column Id of primary keys.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated uint32 primary_key = 4;</code>
|
||||
@@ -15003,60 +14915,59 @@ java.lang.String defaultValue);
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\037greptime/v1/region/server.proto\022\022grept" +
|
||||
"ime.v1.region\032\030greptime/v1/common.proto\032" +
|
||||
"\025greptime/v1/row.proto\"[\n\023RegionRequestH" +
|
||||
"eader\022\025\n\010trace_id\030\001 \001(\004H\000\210\001\001\022\024\n\007span_id\030" +
|
||||
"\002 \001(\004H\001\210\001\001B\013\n\t_trace_idB\n\n\010_span_id\"\245\004\n\r" +
|
||||
"RegionRequest\0227\n\006header\030\001 \001(\0132\'.greptime" +
|
||||
".v1.region.RegionRequestHeader\0225\n\007insert" +
|
||||
"s\030\003 \001(\0132\".greptime.v1.region.InsertReque" +
|
||||
"stsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v1.reg" +
|
||||
"ion.DeleteRequestsH\000\0223\n\006create\030\005 \001(\0132!.g" +
|
||||
"reptime.v1.region.CreateRequestH\000\022/\n\004dro" +
|
||||
"p\030\006 \001(\0132\037.greptime.v1.region.DropRequest" +
|
||||
"H\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.region.Op" +
|
||||
"enRequestH\000\0221\n\005close\030\010 \001(\0132 .greptime.v1" +
|
||||
".region.CloseRequestH\000\0221\n\005alter\030\t \001(\0132 ." +
|
||||
"greptime.v1.region.AlterRequestH\000\0221\n\005flu" +
|
||||
"sh\030\n \001(\0132 .greptime.v1.region.FlushReque" +
|
||||
"stH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1.regi" +
|
||||
"on.CompactRequestH\000B\006\n\004body\"T\n\016RegionRes" +
|
||||
"ponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Resp" +
|
||||
"onseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E\n\016Ins" +
|
||||
"ertRequests\0223\n\010requests\030\001 \003(\0132!.greptime" +
|
||||
".v1.region.InsertRequest\"E\n\016DeleteReques" +
|
||||
"ts\0223\n\010requests\030\001 \003(\0132!.greptime.v1.regio" +
|
||||
"n.DeleteRequest\"C\n\rInsertRequest\022\021\n\tregi" +
|
||||
"on_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1." +
|
||||
"Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030\001 \001(\004" +
|
||||
"\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/\n\014Que" +
|
||||
"ryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004plan\030\002 \001" +
|
||||
"(\014\"\253\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022" +
|
||||
"\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003(\0132\035.g" +
|
||||
"reptime.v1.region.ColumnDef\022\023\n\013primary_k" +
|
||||
"ey\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 \001(\010\022\017" +
|
||||
"\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022?\n\007optio" +
|
||||
"ns\030\010 \003(\0132..greptime.v1.region.CreateRequ" +
|
||||
"est.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030" +
|
||||
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022" +
|
||||
"\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022\021\n\tre" +
|
||||
"gion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007catalog" +
|
||||
"\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005 \003(\0132" +
|
||||
",.greptime.v1.region.OpenRequest.Options" +
|
||||
"Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" +
|
||||
"lue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_" +
|
||||
"id\030\001 \001(\004\"!\n\014AlterRequest\022\021\n\tregion_id\030\001 " +
|
||||
"\001(\004\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"#" +
|
||||
"\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"\276\001\n\t" +
|
||||
"ColumnDef\022\014\n\004name\030\001 \001(\t\022\021\n\tcolumn_id\030\002 \001" +
|
||||
"(\r\022-\n\010datatype\030\003 \001(\0162\033.greptime.v1.Colum" +
|
||||
"nDataType\022\023\n\013is_nullable\030\004 \001(\010\022\032\n\022defaul" +
|
||||
"t_constraint\030\005 \001(\014\0220\n\rsemantic_type\030\006 \001(" +
|
||||
"\0162\031.greptime.v1.SemanticType2Y\n\006Region\022O" +
|
||||
"\n\006Handle\022!.greptime.v1.region.RegionRequ" +
|
||||
"est\032\".greptime.v1.region.RegionResponseB" +
|
||||
"]\n\025io.greptime.v1.regionB\006ServerZ<github" +
|
||||
".com/GreptimeTeam/greptime-proto/go/grep" +
|
||||
"time/v1/regionb\006proto3"
|
||||
"\025greptime/v1/row.proto\"8\n\023RegionRequestH" +
|
||||
"eader\022\020\n\010trace_id\030\001 \001(\004\022\017\n\007span_id\030\002 \001(\004" +
|
||||
"\"\245\004\n\rRegionRequest\0227\n\006header\030\001 \001(\0132\'.gre" +
|
||||
"ptime.v1.region.RegionRequestHeader\0225\n\007i" +
|
||||
"nserts\030\003 \001(\0132\".greptime.v1.region.Insert" +
|
||||
"RequestsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v" +
|
||||
"1.region.DeleteRequestsH\000\0223\n\006create\030\005 \001(" +
|
||||
"\0132!.greptime.v1.region.CreateRequestH\000\022/" +
|
||||
"\n\004drop\030\006 \001(\0132\037.greptime.v1.region.DropRe" +
|
||||
"questH\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.regi" +
|
||||
"on.OpenRequestH\000\0221\n\005close\030\010 \001(\0132 .grepti" +
|
||||
"me.v1.region.CloseRequestH\000\0221\n\005alter\030\t \001" +
|
||||
"(\0132 .greptime.v1.region.AlterRequestH\000\0221" +
|
||||
"\n\005flush\030\n \001(\0132 .greptime.v1.region.Flush" +
|
||||
"RequestH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1" +
|
||||
".region.CompactRequestH\000B\006\n\004body\"T\n\016Regi" +
|
||||
"onResponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1" +
|
||||
".ResponseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E" +
|
||||
"\n\016InsertRequests\0223\n\010requests\030\001 \003(\0132!.gre" +
|
||||
"ptime.v1.region.InsertRequest\"E\n\016DeleteR" +
|
||||
"equests\0223\n\010requests\030\001 \003(\0132!.greptime.v1." +
|
||||
"region.DeleteRequest\"C\n\rInsertRequest\022\021\n" +
|
||||
"\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptim" +
|
||||
"e.v1.Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030" +
|
||||
"\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/" +
|
||||
"\n\014QueryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004pla" +
|
||||
"n\030\002 \001(\014\"\253\002\n\rCreateRequest\022\021\n\tregion_id\030\001" +
|
||||
" \001(\004\022\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003(" +
|
||||
"\0132\035.greptime.v1.region.ColumnDef\022\023\n\013prim" +
|
||||
"ary_key\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 " +
|
||||
"\001(\010\022\017\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022?\n\007" +
|
||||
"options\030\010 \003(\0132..greptime.v1.region.Creat" +
|
||||
"eRequest.OptionsEntry\032.\n\014OptionsEntry\022\013\n" +
|
||||
"\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropReq" +
|
||||
"uest\022\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022" +
|
||||
"\021\n\tregion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007ca" +
|
||||
"talog\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005" +
|
||||
" \003(\0132,.greptime.v1.region.OpenRequest.Op" +
|
||||
"tionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022" +
|
||||
"\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tre" +
|
||||
"gion_id\030\001 \001(\004\"!\n\014AlterRequest\022\021\n\tregion_" +
|
||||
"id\030\001 \001(\004\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 " +
|
||||
"\001(\004\"#\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004" +
|
||||
"\"\276\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022\021\n\tcolumn_i" +
|
||||
"d\030\002 \001(\r\022-\n\010datatype\030\003 \001(\0162\033.greptime.v1." +
|
||||
"ColumnDataType\022\023\n\013is_nullable\030\004 \001(\010\022\032\n\022d" +
|
||||
"efault_constraint\030\005 \001(\014\0220\n\rsemantic_type" +
|
||||
"\030\006 \001(\0162\031.greptime.v1.SemanticType2Y\n\006Reg" +
|
||||
"ion\022O\n\006Handle\022!.greptime.v1.region.Regio" +
|
||||
"nRequest\032\".greptime.v1.region.RegionResp" +
|
||||
"onseB]\n\025io.greptime.v1.regionB\006ServerZ<g" +
|
||||
"ithub.com/GreptimeTeam/greptime-proto/go" +
|
||||
"/greptime/v1/regionb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -15069,7 +14980,7 @@ java.lang.String defaultValue);
|
||||
internal_static_greptime_v1_region_RegionRequestHeader_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_region_RegionRequestHeader_descriptor,
|
||||
new java.lang.String[] { "TraceId", "SpanId", "TraceId", "SpanId", });
|
||||
new java.lang.String[] { "TraceId", "SpanId", });
|
||||
internal_static_greptime_v1_region_RegionRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_greptime_v1_region_RegionRequest_fieldAccessorTable = new
|
||||
|
||||
@@ -34,72 +34,50 @@ service Heartbeat {
|
||||
|
||||
message HeartbeatRequest {
|
||||
RequestHeader header = 1;
|
||||
|
||||
// Self peer
|
||||
Peer peer = 2;
|
||||
// Actually reported time interval
|
||||
TimeInterval report_interval = 3;
|
||||
// Node stat
|
||||
NodeStat node_stat = 4;
|
||||
// Region stats on this node
|
||||
repeated RegionStat region_stats = 5;
|
||||
repeated RegionStat region_stats = 4;
|
||||
// Mailbox send message to Metasrv
|
||||
MailboxMessage mailbox_message = 6;
|
||||
MailboxMessage mailbox_message = 5;
|
||||
// The duration since the heartbeat task's epoch in milliseconds.
|
||||
uint64 duration_since_epoch = 7;
|
||||
uint64 duration_since_epoch = 6;
|
||||
// The node's epoch
|
||||
uint64 node_epoch = 8;
|
||||
}
|
||||
|
||||
message NodeStat {
|
||||
// The read capacity units during this period
|
||||
int64 rcus = 1;
|
||||
// The write capacity units during this period
|
||||
int64 wcus = 2;
|
||||
// How many tables on this node
|
||||
int64 table_num = 3;
|
||||
// How many regions on this node
|
||||
int64 region_num = 4;
|
||||
|
||||
// Others
|
||||
map<string, string> attrs = 100;
|
||||
uint64 node_epoch = 7;
|
||||
}
|
||||
|
||||
message RegionStat {
|
||||
uint64 region_id = 1;
|
||||
TableIdent table_ident = 2;
|
||||
// The read capacity units during this period
|
||||
int64 rcus = 3;
|
||||
int64 rcus = 2;
|
||||
// The write capacity units during this period
|
||||
int64 wcus = 4;
|
||||
int64 wcus = 3;
|
||||
// Approximate bytes of this region
|
||||
int64 approximate_bytes = 5;
|
||||
int64 approximate_bytes = 4;
|
||||
// Approximate number of rows in this region
|
||||
int64 approximate_rows = 6;
|
||||
|
||||
// Others
|
||||
map<string, string> attrs = 100;
|
||||
int64 approximate_rows = 5;
|
||||
// engine name
|
||||
string engine = 6;
|
||||
}
|
||||
|
||||
message HeartbeatResponse {
|
||||
ResponseHeader header = 1;
|
||||
|
||||
MailboxMessage mailbox_message = 2;
|
||||
repeated RegionLease region_leases = 3;
|
||||
RegionLease region_lease = 3;
|
||||
}
|
||||
|
||||
message RegionLease {
|
||||
TableIdent table_ident = 1;
|
||||
repeated uint32 regions = 2;
|
||||
uint64 duration_since_epoch = 3;
|
||||
uint64 lease_seconds = 4;
|
||||
repeated uint64 region_ids = 1;
|
||||
uint64 duration_since_epoch = 2;
|
||||
uint64 lease_seconds = 3;
|
||||
}
|
||||
|
||||
message AskLeaderRequest { RequestHeader header = 1; }
|
||||
|
||||
message AskLeaderResponse {
|
||||
ResponseHeader header = 1;
|
||||
|
||||
Peer leader = 2;
|
||||
}
|
||||
|
||||
@@ -113,7 +91,6 @@ message MailboxMessage {
|
||||
string to = 4;
|
||||
// The unix timestamp in milliseconds.
|
||||
int64 timestamp_millis = 5;
|
||||
|
||||
// The message body.
|
||||
oneof payload { string json = 6; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user