feat: add manifest_version to GrantedRegion (#224)
This commit is contained in:
@@ -144,6 +144,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
||||
PROTOBUF_CONSTEXPR GrantedRegion::GrantedRegion(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.region_id_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.manifest_version_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_.role_)*/0
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct GrantedRegionDefaultTypeInternal {
|
||||
@@ -319,6 +320,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets[] P
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GrantedRegion, _impl_.region_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GrantedRegion, _impl_.role_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::GrantedRegion, _impl_.manifest_version_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RegionLease, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -368,10 +370,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 68, -1, -1, sizeof(::greptime::v1::meta::FlowStat)},
|
||||
{ 76, -1, -1, sizeof(::greptime::v1::meta::HeartbeatResponse)},
|
||||
{ 85, -1, -1, sizeof(::greptime::v1::meta::GrantedRegion)},
|
||||
{ 93, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
|
||||
{ 103, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
|
||||
{ 110, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
|
||||
{ 118, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
|
||||
{ 94, -1, -1, sizeof(::greptime::v1::meta::RegionLease)},
|
||||
{ 104, -1, -1, sizeof(::greptime::v1::meta::AskLeaderRequest)},
|
||||
{ 111, -1, -1, sizeof(::greptime::v1::meta::AskLeaderResponse)},
|
||||
{ 119, -1, -1, sizeof(::greptime::v1::meta::MailboxMessage)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -423,36 +425,37 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto[]
|
||||
"ader\030\001 \001(\0132 .greptime.v1.meta.ResponseHe"
|
||||
"ader\0229\n\017mailbox_message\030\002 \001(\0132 .greptime"
|
||||
".v1.meta.MailboxMessage\0223\n\014region_lease\030"
|
||||
"\003 \001(\0132\035.greptime.v1.meta.RegionLease\"N\n\r"
|
||||
"\003 \001(\0132\035.greptime.v1.meta.RegionLease\"h\n\r"
|
||||
"GrantedRegion\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role"
|
||||
"\030\002 \001(\0162\034.greptime.v1.meta.RegionRole\"\222\001\n"
|
||||
"\013RegionLease\0220\n\007regions\030\001 \003(\0132\037.greptime"
|
||||
".v1.meta.GrantedRegion\022\034\n\024duration_since"
|
||||
"_epoch\030\002 \001(\004\022\025\n\rlease_seconds\030\003 \001(\004\022\034\n\024c"
|
||||
"loseable_region_ids\030\004 \003(\004\"C\n\020AskLeaderRe"
|
||||
"quest\022/\n\006header\030\001 \001(\0132\037.greptime.v1.meta"
|
||||
".RequestHeader\"m\n\021AskLeaderResponse\0220\n\006h"
|
||||
"eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH"
|
||||
"eader\022&\n\006leader\030\002 \001(\0132\026.greptime.v1.meta"
|
||||
".Peer\"|\n\016MailboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007s"
|
||||
"ubject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030"
|
||||
"\n\020timestamp_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000"
|
||||
"B\t\n\007payload*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n"
|
||||
"\010Follower\020\001\022\025\n\021DowngradingLeader\020\0022\277\001\n\tH"
|
||||
"eartbeat\022Z\n\tHeartbeat\022\".greptime.v1.meta"
|
||||
".HeartbeatRequest\032#.greptime.v1.meta.Hea"
|
||||
"rtbeatResponse\"\000(\0010\001\022V\n\tAskLeader\022\".grep"
|
||||
"time.v1.meta.AskLeaderRequest\032#.greptime"
|
||||
".v1.meta.AskLeaderResponse\"\000B<Z:github.c"
|
||||
"om/GreptimeTeam/greptime-proto/go/grepti"
|
||||
"me/v1/metab\006proto3"
|
||||
"\030\002 \001(\0162\034.greptime.v1.meta.RegionRole\022\030\n\020"
|
||||
"manifest_version\030\003 \001(\004\"\222\001\n\013RegionLease\0220"
|
||||
"\n\007regions\030\001 \003(\0132\037.greptime.v1.meta.Grant"
|
||||
"edRegion\022\034\n\024duration_since_epoch\030\002 \001(\004\022\025"
|
||||
"\n\rlease_seconds\030\003 \001(\004\022\034\n\024closeable_regio"
|
||||
"n_ids\030\004 \003(\004\"C\n\020AskLeaderRequest\022/\n\006heade"
|
||||
"r\030\001 \001(\0132\037.greptime.v1.meta.RequestHeader"
|
||||
"\"m\n\021AskLeaderResponse\0220\n\006header\030\001 \001(\0132 ."
|
||||
"greptime.v1.meta.ResponseHeader\022&\n\006leade"
|
||||
"r\030\002 \001(\0132\026.greptime.v1.meta.Peer\"|\n\016Mailb"
|
||||
"oxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014"
|
||||
"\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp_mi"
|
||||
"llis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n"
|
||||
"\nRegionRole\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n"
|
||||
"\021DowngradingLeader\020\0022\277\001\n\tHeartbeat\022Z\n\tHe"
|
||||
"artbeat\022\".greptime.v1.meta.HeartbeatRequ"
|
||||
"est\032#.greptime.v1.meta.HeartbeatResponse"
|
||||
"\"\000(\0010\001\022V\n\tAskLeader\022\".greptime.v1.meta.A"
|
||||
"skLeaderRequest\032#.greptime.v1.meta.AskLe"
|
||||
"aderResponse\"\000B<Z:github.com/GreptimeTea"
|
||||
"m/greptime-proto/go/greptime/v1/metab\006pr"
|
||||
"oto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps[1] = {
|
||||
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto = {
|
||||
false, false, 2178, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
|
||||
false, false, 2204, descriptor_table_protodef_greptime_2fv1_2fmeta_2fheartbeat_2eproto,
|
||||
"greptime/v1/meta/heartbeat.proto",
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fheartbeat_2eproto_deps, 1, 13,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fheartbeat_2eproto::offsets,
|
||||
@@ -2307,6 +2310,7 @@ GrantedRegion::GrantedRegion(const GrantedRegion& from)
|
||||
GrantedRegion* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.region_id_){}
|
||||
, decltype(_impl_.manifest_version_){}
|
||||
, decltype(_impl_.role_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
@@ -2323,6 +2327,7 @@ inline void GrantedRegion::SharedCtor(
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.region_id_){uint64_t{0u}}
|
||||
, decltype(_impl_.manifest_version_){uint64_t{0u}}
|
||||
, decltype(_impl_.role_){0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
@@ -2380,6 +2385,14 @@ const char* GrantedRegion::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint64 manifest_version = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_impl_.manifest_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -2422,6 +2435,12 @@ uint8_t* GrantedRegion::_InternalSerialize(
|
||||
2, this->_internal_role(), target);
|
||||
}
|
||||
|
||||
// uint64 manifest_version = 3;
|
||||
if (this->_internal_manifest_version() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_manifest_version(), target);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
@@ -2443,6 +2462,11 @@ size_t GrantedRegion::ByteSizeLong() const {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
|
||||
}
|
||||
|
||||
// uint64 manifest_version = 3;
|
||||
if (this->_internal_manifest_version() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_manifest_version());
|
||||
}
|
||||
|
||||
// .greptime.v1.meta.RegionRole role = 2;
|
||||
if (this->_internal_role() != 0) {
|
||||
total_size += 1 +
|
||||
@@ -2470,6 +2494,9 @@ void GrantedRegion::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
||||
if (from._internal_region_id() != 0) {
|
||||
_this->_internal_set_region_id(from._internal_region_id());
|
||||
}
|
||||
if (from._internal_manifest_version() != 0) {
|
||||
_this->_internal_set_manifest_version(from._internal_manifest_version());
|
||||
}
|
||||
if (from._internal_role() != 0) {
|
||||
_this->_internal_set_role(from._internal_role());
|
||||
}
|
||||
|
||||
@@ -1444,6 +1444,7 @@ class GrantedRegion final :
|
||||
|
||||
enum : int {
|
||||
kRegionIdFieldNumber = 1,
|
||||
kManifestVersionFieldNumber = 3,
|
||||
kRoleFieldNumber = 2,
|
||||
};
|
||||
// uint64 region_id = 1;
|
||||
@@ -1455,6 +1456,15 @@ class GrantedRegion final :
|
||||
void _internal_set_region_id(uint64_t value);
|
||||
public:
|
||||
|
||||
// uint64 manifest_version = 3;
|
||||
void clear_manifest_version();
|
||||
uint64_t manifest_version() const;
|
||||
void set_manifest_version(uint64_t value);
|
||||
private:
|
||||
uint64_t _internal_manifest_version() const;
|
||||
void _internal_set_manifest_version(uint64_t value);
|
||||
public:
|
||||
|
||||
// .greptime.v1.meta.RegionRole role = 2;
|
||||
void clear_role();
|
||||
::greptime::v1::meta::RegionRole role() const;
|
||||
@@ -1473,6 +1483,7 @@ class GrantedRegion final :
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
uint64_t region_id_;
|
||||
uint64_t manifest_version_;
|
||||
int role_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
@@ -3585,6 +3596,26 @@ inline void GrantedRegion::set_role(::greptime::v1::meta::RegionRole value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.GrantedRegion.role)
|
||||
}
|
||||
|
||||
// uint64 manifest_version = 3;
|
||||
inline void GrantedRegion::clear_manifest_version() {
|
||||
_impl_.manifest_version_ = uint64_t{0u};
|
||||
}
|
||||
inline uint64_t GrantedRegion::_internal_manifest_version() const {
|
||||
return _impl_.manifest_version_;
|
||||
}
|
||||
inline uint64_t GrantedRegion::manifest_version() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.GrantedRegion.manifest_version)
|
||||
return _internal_manifest_version();
|
||||
}
|
||||
inline void GrantedRegion::_internal_set_manifest_version(uint64_t value) {
|
||||
|
||||
_impl_.manifest_version_ = value;
|
||||
}
|
||||
inline void GrantedRegion::set_manifest_version(uint64_t value) {
|
||||
_internal_set_manifest_version(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.GrantedRegion.manifest_version)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// RegionLease
|
||||
|
||||
@@ -503,6 +503,7 @@ func (x *HeartbeatResponse) GetRegionLease() *RegionLease {
|
||||
return nil
|
||||
}
|
||||
|
||||
// The granted region is the region that the meta server granted leases.
|
||||
type GrantedRegion struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -510,6 +511,8 @@ type GrantedRegion struct {
|
||||
|
||||
RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||||
Role RegionRole `protobuf:"varint,2,opt,name=role,proto3,enum=greptime.v1.meta.RegionRole" json:"role,omitempty"`
|
||||
// The manifest version of the region leader.
|
||||
ManifestVersion uint64 `protobuf:"varint,3,opt,name=manifest_version,json=manifestVersion,proto3" json:"manifest_version,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GrantedRegion) Reset() {
|
||||
@@ -558,6 +561,13 @@ func (x *GrantedRegion) GetRole() RegionRole {
|
||||
return RegionRole_Leader
|
||||
}
|
||||
|
||||
func (x *GrantedRegion) GetManifestVersion() uint64 {
|
||||
if x != nil {
|
||||
return x.ManifestVersion
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type RegionLease struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -949,70 +959,73 @@ var file_greptime_v1_meta_heartbeat_proto_rawDesc = []byte{
|
||||
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65,
|
||||
0x61, 0x73, 0x65, 0x22, 0x5e, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49,
|
||||
0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
||||
0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72,
|
||||
0x6f, 0x6c, 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65,
|
||||
0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30,
|
||||
0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65,
|
||||
0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75,
|
||||
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68,
|
||||
0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
|
||||
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65,
|
||||
0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20,
|
||||
0x03, 0x28, 0x04, 0x52, 0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68,
|
||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x22, 0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d,
|
||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63,
|
||||
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||
0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x02, 0x74, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||
0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12,
|
||||
0x14, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
|
||||
0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
|
||||
0x2a, 0x3d, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a,
|
||||
0x0a, 0x06, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x6f,
|
||||
0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x6f, 0x77, 0x6e,
|
||||
0x67, 0x72, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x02, 0x32,
|
||||
0xbf, 0x01, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x5a, 0x0a,
|
||||
0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x61, 0x73, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
|
||||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
|
||||
0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04,
|
||||
0x72, 0x6f, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
|
||||
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f,
|
||||
0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22,
|
||||
0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4c, 0x65, 0x61, 0x73, 0x65, 0x12,
|
||||
0x39, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x75,
|
||||
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x70, 0x6f,
|
||||
0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d,
|
||||
0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x04, 0x52, 0x0c, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64,
|
||||
0x73, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x04, 0x52,
|
||||
0x12, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x49, 0x64, 0x73, 0x22, 0x4b, 0x0a, 0x10, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||
0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x6b, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
|
||||
0x2e, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22,
|
||||
0xaa, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x62, 0x6f, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||
0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
|
||||
0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d,
|
||||
0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f,
|
||||
0x12, 0x29, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69,
|
||||
0x6c, 0x6c, 0x69, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6a,
|
||||
0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6a, 0x73, 0x6f,
|
||||
0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0x3d, 0x0a, 0x0a,
|
||||
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77,
|
||||
0x65, 0x72, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x6f, 0x77, 0x6e, 0x67, 0x72, 0x61, 0x64,
|
||||
0x69, 0x6e, 0x67, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x10, 0x02, 0x32, 0xbf, 0x01, 0x0a, 0x09,
|
||||
0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x5a, 0x0a, 0x09, 0x48, 0x65, 0x61,
|
||||
0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62,
|
||||
0x65, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x65,
|
||||
0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 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,
|
||||
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, 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,
|
||||
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 (
|
||||
|
||||
@@ -7213,8 +7213,22 @@ com.google.protobuf.ByteString defaultValue);
|
||||
* @return The role.
|
||||
*/
|
||||
greptime.v1.meta.HeartbeatOuterClass.RegionRole getRole();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* The manifest version of the region leader.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 manifest_version = 3;</code>
|
||||
* @return The manifestVersion.
|
||||
*/
|
||||
long getManifestVersion();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The granted region is the region that the meta server granted leases.
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code greptime.v1.meta.GrantedRegion}
|
||||
*/
|
||||
public static final class GrantedRegion extends
|
||||
@@ -7271,6 +7285,11 @@ com.google.protobuf.ByteString defaultValue);
|
||||
role_ = rawValue;
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
|
||||
manifestVersion_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -7335,6 +7354,21 @@ com.google.protobuf.ByteString defaultValue);
|
||||
return result == null ? greptime.v1.meta.HeartbeatOuterClass.RegionRole.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int MANIFEST_VERSION_FIELD_NUMBER = 3;
|
||||
private long manifestVersion_;
|
||||
/**
|
||||
* <pre>
|
||||
* The manifest version of the region leader.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 manifest_version = 3;</code>
|
||||
* @return The manifestVersion.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getManifestVersion() {
|
||||
return manifestVersion_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -7355,6 +7389,9 @@ com.google.protobuf.ByteString defaultValue);
|
||||
if (role_ != greptime.v1.meta.HeartbeatOuterClass.RegionRole.Leader.getNumber()) {
|
||||
output.writeEnum(2, role_);
|
||||
}
|
||||
if (manifestVersion_ != 0L) {
|
||||
output.writeUInt64(3, manifestVersion_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -7372,6 +7409,10 @@ com.google.protobuf.ByteString defaultValue);
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(2, role_);
|
||||
}
|
||||
if (manifestVersion_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(3, manifestVersion_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -7390,6 +7431,8 @@ com.google.protobuf.ByteString defaultValue);
|
||||
if (getRegionId()
|
||||
!= other.getRegionId()) return false;
|
||||
if (role_ != other.role_) return false;
|
||||
if (getManifestVersion()
|
||||
!= other.getManifestVersion()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -7406,6 +7449,9 @@ com.google.protobuf.ByteString defaultValue);
|
||||
getRegionId());
|
||||
hash = (37 * hash) + ROLE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + role_;
|
||||
hash = (37 * hash) + MANIFEST_VERSION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getManifestVersion());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -7502,6 +7548,10 @@ com.google.protobuf.ByteString defaultValue);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The granted region is the region that the meta server granted leases.
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code greptime.v1.meta.GrantedRegion}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
@@ -7543,6 +7593,8 @@ com.google.protobuf.ByteString defaultValue);
|
||||
|
||||
role_ = 0;
|
||||
|
||||
manifestVersion_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -7571,6 +7623,7 @@ com.google.protobuf.ByteString defaultValue);
|
||||
greptime.v1.meta.HeartbeatOuterClass.GrantedRegion result = new greptime.v1.meta.HeartbeatOuterClass.GrantedRegion(this);
|
||||
result.regionId_ = regionId_;
|
||||
result.role_ = role_;
|
||||
result.manifestVersion_ = manifestVersion_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -7625,6 +7678,9 @@ com.google.protobuf.ByteString defaultValue);
|
||||
if (other.role_ != 0) {
|
||||
setRoleValue(other.getRoleValue());
|
||||
}
|
||||
if (other.getManifestVersion() != 0L) {
|
||||
setManifestVersion(other.getManifestVersion());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -7738,6 +7794,49 @@ com.google.protobuf.ByteString defaultValue);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long manifestVersion_ ;
|
||||
/**
|
||||
* <pre>
|
||||
* The manifest version of the region leader.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 manifest_version = 3;</code>
|
||||
* @return The manifestVersion.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getManifestVersion() {
|
||||
return manifestVersion_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The manifest version of the region leader.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 manifest_version = 3;</code>
|
||||
* @param value The manifestVersion to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setManifestVersion(long value) {
|
||||
|
||||
manifestVersion_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The manifest version of the region leader.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 manifest_version = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearManifestVersion() {
|
||||
|
||||
manifestVersion_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -11842,29 +11941,30 @@ com.google.protobuf.ByteString defaultValue);
|
||||
"ader\030\001 \001(\0132 .greptime.v1.meta.ResponseHe" +
|
||||
"ader\0229\n\017mailbox_message\030\002 \001(\0132 .greptime" +
|
||||
".v1.meta.MailboxMessage\0223\n\014region_lease\030" +
|
||||
"\003 \001(\0132\035.greptime.v1.meta.RegionLease\"N\n\r" +
|
||||
"\003 \001(\0132\035.greptime.v1.meta.RegionLease\"h\n\r" +
|
||||
"GrantedRegion\022\021\n\tregion_id\030\001 \001(\004\022*\n\004role" +
|
||||
"\030\002 \001(\0162\034.greptime.v1.meta.RegionRole\"\222\001\n" +
|
||||
"\013RegionLease\0220\n\007regions\030\001 \003(\0132\037.greptime" +
|
||||
".v1.meta.GrantedRegion\022\034\n\024duration_since" +
|
||||
"_epoch\030\002 \001(\004\022\025\n\rlease_seconds\030\003 \001(\004\022\034\n\024c" +
|
||||
"loseable_region_ids\030\004 \003(\004\"C\n\020AskLeaderRe" +
|
||||
"quest\022/\n\006header\030\001 \001(\0132\037.greptime.v1.meta" +
|
||||
".RequestHeader\"m\n\021AskLeaderResponse\0220\n\006h" +
|
||||
"eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH" +
|
||||
"eader\022&\n\006leader\030\002 \001(\0132\026.greptime.v1.meta" +
|
||||
".Peer\"|\n\016MailboxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007s" +
|
||||
"ubject\030\002 \001(\t\022\014\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030" +
|
||||
"\n\020timestamp_millis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000" +
|
||||
"B\t\n\007payload*=\n\nRegionRole\022\n\n\006Leader\020\000\022\014\n" +
|
||||
"\010Follower\020\001\022\025\n\021DowngradingLeader\020\0022\277\001\n\tH" +
|
||||
"eartbeat\022Z\n\tHeartbeat\022\".greptime.v1.meta" +
|
||||
".HeartbeatRequest\032#.greptime.v1.meta.Hea" +
|
||||
"rtbeatResponse\"\000(\0010\001\022V\n\tAskLeader\022\".grep" +
|
||||
"time.v1.meta.AskLeaderRequest\032#.greptime" +
|
||||
".v1.meta.AskLeaderResponse\"\000B<Z:github.c" +
|
||||
"om/GreptimeTeam/greptime-proto/go/grepti" +
|
||||
"me/v1/metab\006proto3"
|
||||
"\030\002 \001(\0162\034.greptime.v1.meta.RegionRole\022\030\n\020" +
|
||||
"manifest_version\030\003 \001(\004\"\222\001\n\013RegionLease\0220" +
|
||||
"\n\007regions\030\001 \003(\0132\037.greptime.v1.meta.Grant" +
|
||||
"edRegion\022\034\n\024duration_since_epoch\030\002 \001(\004\022\025" +
|
||||
"\n\rlease_seconds\030\003 \001(\004\022\034\n\024closeable_regio" +
|
||||
"n_ids\030\004 \003(\004\"C\n\020AskLeaderRequest\022/\n\006heade" +
|
||||
"r\030\001 \001(\0132\037.greptime.v1.meta.RequestHeader" +
|
||||
"\"m\n\021AskLeaderResponse\0220\n\006header\030\001 \001(\0132 ." +
|
||||
"greptime.v1.meta.ResponseHeader\022&\n\006leade" +
|
||||
"r\030\002 \001(\0132\026.greptime.v1.meta.Peer\"|\n\016Mailb" +
|
||||
"oxMessage\022\n\n\002id\030\001 \001(\004\022\017\n\007subject\030\002 \001(\t\022\014" +
|
||||
"\n\004from\030\003 \001(\t\022\n\n\002to\030\004 \001(\t\022\030\n\020timestamp_mi" +
|
||||
"llis\030\005 \001(\003\022\016\n\004json\030\006 \001(\tH\000B\t\n\007payload*=\n" +
|
||||
"\nRegionRole\022\n\n\006Leader\020\000\022\014\n\010Follower\020\001\022\025\n" +
|
||||
"\021DowngradingLeader\020\0022\277\001\n\tHeartbeat\022Z\n\tHe" +
|
||||
"artbeat\022\".greptime.v1.meta.HeartbeatRequ" +
|
||||
"est\032#.greptime.v1.meta.HeartbeatResponse" +
|
||||
"\"\000(\0010\001\022V\n\tAskLeader\022\".greptime.v1.meta.A" +
|
||||
"skLeaderRequest\032#.greptime.v1.meta.AskLe" +
|
||||
"aderResponse\"\000B<Z:github.com/GreptimeTea" +
|
||||
"m/greptime-proto/go/greptime/v1/metab\006pr" +
|
||||
"oto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -11924,7 +12024,7 @@ com.google.protobuf.ByteString defaultValue);
|
||||
internal_static_greptime_v1_meta_GrantedRegion_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_meta_GrantedRegion_descriptor,
|
||||
new java.lang.String[] { "RegionId", "Role", });
|
||||
new java.lang.String[] { "RegionId", "Role", "ManifestVersion", });
|
||||
internal_static_greptime_v1_meta_RegionLease_descriptor =
|
||||
getDescriptor().getMessageTypes().get(6);
|
||||
internal_static_greptime_v1_meta_RegionLease_fieldAccessorTable = new
|
||||
|
||||
@@ -103,9 +103,12 @@ message HeartbeatResponse {
|
||||
RegionLease region_lease = 3;
|
||||
}
|
||||
|
||||
// The granted region is the region that the meta server granted leases.
|
||||
message GrantedRegion {
|
||||
uint64 region_id = 1;
|
||||
RegionRole role = 2;
|
||||
// The manifest version of the region leader.
|
||||
uint64 manifest_version = 3;
|
||||
}
|
||||
|
||||
message RegionLease {
|
||||
|
||||
Reference in New Issue
Block a user