feat: add start_time_ms for metasrv node info (#167)
This commit is contained in:
@@ -56,6 +56,7 @@ PROTOBUF_CONSTEXPR MetasrvNodeInfo::MetasrvNodeInfo(
|
||||
/*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.git_commit_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.peer_)*/nullptr
|
||||
, /*decltype(_impl_.start_time_ms_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct MetasrvNodeInfoDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR MetasrvNodeInfoDefaultTypeInternal()
|
||||
@@ -99,6 +100,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcluster_2eproto::offsets[] PRO
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.peer_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.version_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.git_commit_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MetasrvNodeInfo, _impl_.start_time_ms_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::meta::MetasrvPeersRequest)},
|
||||
@@ -122,17 +124,18 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcluster_2eproto[] PR
|
||||
"eta.ResponseHeader\0221\n\006leader\030\002 \001(\0132!.gre"
|
||||
"ptime.v1.meta.MetasrvNodeInfo\0224\n\tfollowe"
|
||||
"rs\030\003 \003(\0132!.greptime.v1.meta.MetasrvNodeI"
|
||||
"nfo\"\\\n\017MetasrvNodeInfo\022$\n\004peer\030\001 \001(\0132\026.g"
|
||||
"nfo\"s\n\017MetasrvNodeInfo\022$\n\004peer\030\001 \001(\0132\026.g"
|
||||
"reptime.v1.meta.Peer\022\017\n\007version\030\002 \001(\t\022\022\n"
|
||||
"\ngit_commit\030\003 \001(\t2\205\002\n\007Cluster\022Q\n\010BatchGe"
|
||||
"t\022!.greptime.v1.meta.BatchGetRequest\032\".g"
|
||||
"reptime.v1.meta.BatchGetResponse\022H\n\005Rang"
|
||||
"e\022\036.greptime.v1.meta.RangeRequest\032\037.grep"
|
||||
"time.v1.meta.RangeResponse\022]\n\014MetasrvPee"
|
||||
"rs\022%.greptime.v1.meta.MetasrvPeersReques"
|
||||
"t\032&.greptime.v1.meta.MetasrvPeersRespons"
|
||||
"eB<Z:github.com/GreptimeTeam/greptime-pr"
|
||||
"oto/go/greptime/v1/metab\006proto3"
|
||||
"\ngit_commit\030\003 \001(\t\022\025\n\rstart_time_ms\030\004 \001(\004"
|
||||
"2\205\002\n\007Cluster\022Q\n\010BatchGet\022!.greptime.v1.m"
|
||||
"eta.BatchGetRequest\032\".greptime.v1.meta.B"
|
||||
"atchGetResponse\022H\n\005Range\022\036.greptime.v1.m"
|
||||
"eta.RangeRequest\032\037.greptime.v1.meta.Rang"
|
||||
"eResponse\022]\n\014MetasrvPeers\022%.greptime.v1."
|
||||
"meta.MetasrvPeersRequest\032&.greptime.v1.m"
|
||||
"eta.MetasrvPeersResponseB<Z:github.com/G"
|
||||
"reptimeTeam/greptime-proto/go/greptime/v"
|
||||
"1/metab\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fcluster_2eproto_deps[2] = {
|
||||
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
|
||||
@@ -140,7 +143,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmet
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcluster_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcluster_2eproto = {
|
||||
false, false, 791, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcluster_2eproto,
|
||||
false, false, 814, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcluster_2eproto,
|
||||
"greptime/v1/meta/cluster.proto",
|
||||
&descriptor_table_greptime_2fv1_2fmeta_2fcluster_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fcluster_2eproto_deps, 2, 3,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcluster_2eproto::offsets,
|
||||
@@ -665,6 +668,7 @@ MetasrvNodeInfo::MetasrvNodeInfo(const MetasrvNodeInfo& from)
|
||||
decltype(_impl_.version_){}
|
||||
, decltype(_impl_.git_commit_){}
|
||||
, decltype(_impl_.peer_){nullptr}
|
||||
, decltype(_impl_.start_time_ms_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
@@ -687,6 +691,7 @@ MetasrvNodeInfo::MetasrvNodeInfo(const MetasrvNodeInfo& from)
|
||||
if (from._internal_has_peer()) {
|
||||
_this->_impl_.peer_ = new ::greptime::v1::meta::Peer(*from._impl_.peer_);
|
||||
}
|
||||
_this->_impl_.start_time_ms_ = from._impl_.start_time_ms_;
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.MetasrvNodeInfo)
|
||||
}
|
||||
|
||||
@@ -698,6 +703,7 @@ inline void MetasrvNodeInfo::SharedCtor(
|
||||
decltype(_impl_.version_){}
|
||||
, decltype(_impl_.git_commit_){}
|
||||
, decltype(_impl_.peer_){nullptr}
|
||||
, decltype(_impl_.start_time_ms_){uint64_t{0u}}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
_impl_.version_.InitDefault();
|
||||
@@ -742,6 +748,7 @@ void MetasrvNodeInfo::Clear() {
|
||||
delete _impl_.peer_;
|
||||
}
|
||||
_impl_.peer_ = nullptr;
|
||||
_impl_.start_time_ms_ = uint64_t{0u};
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
@@ -779,6 +786,14 @@ const char* MetasrvNodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContex
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// uint64 start_time_ms = 4;
|
||||
case 4:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
|
||||
_impl_.start_time_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -835,6 +850,12 @@ uint8_t* MetasrvNodeInfo::_InternalSerialize(
|
||||
3, this->_internal_git_commit(), target);
|
||||
}
|
||||
|
||||
// uint64 start_time_ms = 4;
|
||||
if (this->_internal_start_time_ms() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_start_time_ms(), 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);
|
||||
@@ -872,6 +893,11 @@ size_t MetasrvNodeInfo::ByteSizeLong() const {
|
||||
*_impl_.peer_);
|
||||
}
|
||||
|
||||
// uint64 start_time_ms = 4;
|
||||
if (this->_internal_start_time_ms() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_time_ms());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
@@ -900,6 +926,9 @@ void MetasrvNodeInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
|
||||
_this->_internal_mutable_peer()->::greptime::v1::meta::Peer::MergeFrom(
|
||||
from._internal_peer());
|
||||
}
|
||||
if (from._internal_start_time_ms() != 0) {
|
||||
_this->_internal_set_start_time_ms(from._internal_start_time_ms());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
@@ -927,7 +956,12 @@ void MetasrvNodeInfo::InternalSwap(MetasrvNodeInfo* other) {
|
||||
&_impl_.git_commit_, lhs_arena,
|
||||
&other->_impl_.git_commit_, rhs_arena
|
||||
);
|
||||
swap(_impl_.peer_, other->_impl_.peer_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(MetasrvNodeInfo, _impl_.start_time_ms_)
|
||||
+ sizeof(MetasrvNodeInfo::_impl_.start_time_ms_)
|
||||
- PROTOBUF_FIELD_OFFSET(MetasrvNodeInfo, _impl_.peer_)>(
|
||||
reinterpret_cast<char*>(&_impl_.peer_),
|
||||
reinterpret_cast<char*>(&other->_impl_.peer_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata MetasrvNodeInfo::GetMetadata() const {
|
||||
|
||||
@@ -550,6 +550,7 @@ class MetasrvNodeInfo final :
|
||||
kVersionFieldNumber = 2,
|
||||
kGitCommitFieldNumber = 3,
|
||||
kPeerFieldNumber = 1,
|
||||
kStartTimeMsFieldNumber = 4,
|
||||
};
|
||||
// string version = 2;
|
||||
void clear_version();
|
||||
@@ -597,6 +598,15 @@ class MetasrvNodeInfo final :
|
||||
::greptime::v1::meta::Peer* peer);
|
||||
::greptime::v1::meta::Peer* unsafe_arena_release_peer();
|
||||
|
||||
// uint64 start_time_ms = 4;
|
||||
void clear_start_time_ms();
|
||||
uint64_t start_time_ms() const;
|
||||
void set_start_time_ms(uint64_t value);
|
||||
private:
|
||||
uint64_t _internal_start_time_ms() const;
|
||||
void _internal_set_start_time_ms(uint64_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.MetasrvNodeInfo)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -608,6 +618,7 @@ class MetasrvNodeInfo final :
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr git_commit_;
|
||||
::greptime::v1::meta::Peer* peer_;
|
||||
uint64_t start_time_ms_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
@@ -1117,6 +1128,26 @@ inline void MetasrvNodeInfo::set_allocated_git_commit(std::string* git_commit) {
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MetasrvNodeInfo.git_commit)
|
||||
}
|
||||
|
||||
// uint64 start_time_ms = 4;
|
||||
inline void MetasrvNodeInfo::clear_start_time_ms() {
|
||||
_impl_.start_time_ms_ = uint64_t{0u};
|
||||
}
|
||||
inline uint64_t MetasrvNodeInfo::_internal_start_time_ms() const {
|
||||
return _impl_.start_time_ms_;
|
||||
}
|
||||
inline uint64_t MetasrvNodeInfo::start_time_ms() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.meta.MetasrvNodeInfo.start_time_ms)
|
||||
return _internal_start_time_ms();
|
||||
}
|
||||
inline void MetasrvNodeInfo::_internal_set_start_time_ms(uint64_t value) {
|
||||
|
||||
_impl_.start_time_ms_ = value;
|
||||
}
|
||||
inline void MetasrvNodeInfo::set_start_time_ms(uint64_t value) {
|
||||
_internal_set_start_time_ms(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.meta.MetasrvNodeInfo.start_time_ms)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
@@ -152,6 +152,8 @@ type MetasrvNodeInfo struct {
|
||||
Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
GitCommit string `protobuf:"bytes,3,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
|
||||
// The node start timestamp in milliseconds.
|
||||
StartTimeMs uint64 `protobuf:"varint,4,opt,name=start_time_ms,json=startTimeMs,proto3" json:"start_time_ms,omitempty"`
|
||||
}
|
||||
|
||||
func (x *MetasrvNodeInfo) Reset() {
|
||||
@@ -207,6 +209,13 @@ func (x *MetasrvNodeInfo) GetGitCommit() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *MetasrvNodeInfo) GetStartTimeMs() uint64 {
|
||||
if x != nil {
|
||||
return x.StartTimeMs
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_greptime_v1_meta_cluster_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_greptime_v1_meta_cluster_proto_rawDesc = []byte{
|
||||
@@ -234,36 +243,38 @@ var file_greptime_v1_meta_cluster_proto_rawDesc = []byte{
|
||||
0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, 0x6f, 0x64, 0x65, 0x49,
|
||||
0x6e, 0x66, 0x6f, 0x52, 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x22, 0x76,
|
||||
0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66,
|
||||
0x6f, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x65, 0x65, 0x72, 0x18, 0x01, 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, 0x04, 0x70, 0x65, 0x65, 0x72, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
||||
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63,
|
||||
0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x74,
|
||||
0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x32, 0x85, 0x02, 0x0a, 0x07, 0x43, 0x6c, 0x75, 0x73, 0x74,
|
||||
0x65, 0x72, 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x21,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x5d, 0x0a, 0x0c, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 0x12,
|
||||
0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72,
|
||||
0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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,
|
||||
0x6e, 0x66, 0x6f, 0x52, 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x22, 0x9a,
|
||||
0x01, 0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e,
|
||||
0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x04, 0x70, 0x65, 0x65, 0x72, 0x18, 0x01, 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, 0x04, 0x70, 0x65, 0x65, 0x72, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f,
|
||||
0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69,
|
||||
0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74,
|
||||
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b,
|
||||
0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x32, 0x85, 0x02, 0x0a, 0x07,
|
||||
0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68,
|
||||
0x47, 0x65, 0x74, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,
|
||||
0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x61,
|
||||
0x6e, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0c, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50,
|
||||
0x65, 0x65, 0x72, 0x73, 0x12, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50,
|
||||
0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d,
|
||||
0x65, 0x74, 0x61, 0x73, 0x72, 0x76, 0x50, 0x65, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 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 (
|
||||
|
||||
@@ -1880,6 +1880,16 @@ public final class ClusterOuterClass {
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getGitCommitBytes();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* The node start timestamp in milliseconds.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 start_time_ms = 4;</code>
|
||||
* @return The startTimeMs.
|
||||
*/
|
||||
long getStartTimeMs();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code greptime.v1.meta.MetasrvNodeInfo}
|
||||
@@ -1953,6 +1963,11 @@ public final class ClusterOuterClass {
|
||||
gitCommit_ = s;
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
|
||||
startTimeMs_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@@ -2089,6 +2104,21 @@ public final class ClusterOuterClass {
|
||||
}
|
||||
}
|
||||
|
||||
public static final int START_TIME_MS_FIELD_NUMBER = 4;
|
||||
private long startTimeMs_;
|
||||
/**
|
||||
* <pre>
|
||||
* The node start timestamp in milliseconds.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 start_time_ms = 4;</code>
|
||||
* @return The startTimeMs.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getStartTimeMs() {
|
||||
return startTimeMs_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -2112,6 +2142,9 @@ public final class ClusterOuterClass {
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommit_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gitCommit_);
|
||||
}
|
||||
if (startTimeMs_ != 0L) {
|
||||
output.writeUInt64(4, startTimeMs_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@@ -2131,6 +2164,10 @@ public final class ClusterOuterClass {
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitCommit_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gitCommit_);
|
||||
}
|
||||
if (startTimeMs_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(4, startTimeMs_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@@ -2155,6 +2192,8 @@ public final class ClusterOuterClass {
|
||||
.equals(other.getVersion())) return false;
|
||||
if (!getGitCommit()
|
||||
.equals(other.getGitCommit())) return false;
|
||||
if (getStartTimeMs()
|
||||
!= other.getStartTimeMs()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -2174,6 +2213,9 @@ public final class ClusterOuterClass {
|
||||
hash = (53 * hash) + getVersion().hashCode();
|
||||
hash = (37 * hash) + GIT_COMMIT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGitCommit().hashCode();
|
||||
hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getStartTimeMs());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -2317,6 +2359,8 @@ public final class ClusterOuterClass {
|
||||
|
||||
gitCommit_ = "";
|
||||
|
||||
startTimeMs_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -2350,6 +2394,7 @@ public final class ClusterOuterClass {
|
||||
}
|
||||
result.version_ = version_;
|
||||
result.gitCommit_ = gitCommit_;
|
||||
result.startTimeMs_ = startTimeMs_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -2409,6 +2454,9 @@ public final class ClusterOuterClass {
|
||||
gitCommit_ = other.gitCommit_;
|
||||
onChanged();
|
||||
}
|
||||
if (other.getStartTimeMs() != 0L) {
|
||||
setStartTimeMs(other.getStartTimeMs());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -2708,6 +2756,49 @@ public final class ClusterOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long startTimeMs_ ;
|
||||
/**
|
||||
* <pre>
|
||||
* The node start timestamp in milliseconds.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 start_time_ms = 4;</code>
|
||||
* @return The startTimeMs.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getStartTimeMs() {
|
||||
return startTimeMs_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The node start timestamp in milliseconds.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 start_time_ms = 4;</code>
|
||||
* @param value The startTimeMs to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStartTimeMs(long value) {
|
||||
|
||||
startTimeMs_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* The node start timestamp in milliseconds.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 start_time_ms = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearStartTimeMs() {
|
||||
|
||||
startTimeMs_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -2794,17 +2885,18 @@ public final class ClusterOuterClass {
|
||||
"eta.ResponseHeader\0221\n\006leader\030\002 \001(\0132!.gre" +
|
||||
"ptime.v1.meta.MetasrvNodeInfo\0224\n\tfollowe" +
|
||||
"rs\030\003 \003(\0132!.greptime.v1.meta.MetasrvNodeI" +
|
||||
"nfo\"\\\n\017MetasrvNodeInfo\022$\n\004peer\030\001 \001(\0132\026.g" +
|
||||
"nfo\"s\n\017MetasrvNodeInfo\022$\n\004peer\030\001 \001(\0132\026.g" +
|
||||
"reptime.v1.meta.Peer\022\017\n\007version\030\002 \001(\t\022\022\n" +
|
||||
"\ngit_commit\030\003 \001(\t2\205\002\n\007Cluster\022Q\n\010BatchGe" +
|
||||
"t\022!.greptime.v1.meta.BatchGetRequest\032\".g" +
|
||||
"reptime.v1.meta.BatchGetResponse\022H\n\005Rang" +
|
||||
"e\022\036.greptime.v1.meta.RangeRequest\032\037.grep" +
|
||||
"time.v1.meta.RangeResponse\022]\n\014MetasrvPee" +
|
||||
"rs\022%.greptime.v1.meta.MetasrvPeersReques" +
|
||||
"t\032&.greptime.v1.meta.MetasrvPeersRespons" +
|
||||
"eB<Z:github.com/GreptimeTeam/greptime-pr" +
|
||||
"oto/go/greptime/v1/metab\006proto3"
|
||||
"\ngit_commit\030\003 \001(\t\022\025\n\rstart_time_ms\030\004 \001(\004" +
|
||||
"2\205\002\n\007Cluster\022Q\n\010BatchGet\022!.greptime.v1.m" +
|
||||
"eta.BatchGetRequest\032\".greptime.v1.meta.B" +
|
||||
"atchGetResponse\022H\n\005Range\022\036.greptime.v1.m" +
|
||||
"eta.RangeRequest\032\037.greptime.v1.meta.Rang" +
|
||||
"eResponse\022]\n\014MetasrvPeers\022%.greptime.v1." +
|
||||
"meta.MetasrvPeersRequest\032&.greptime.v1.m" +
|
||||
"eta.MetasrvPeersResponseB<Z:github.com/G" +
|
||||
"reptimeTeam/greptime-proto/go/greptime/v" +
|
||||
"1/metab\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@@ -2829,7 +2921,7 @@ public final class ClusterOuterClass {
|
||||
internal_static_greptime_v1_meta_MetasrvNodeInfo_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_greptime_v1_meta_MetasrvNodeInfo_descriptor,
|
||||
new java.lang.String[] { "Peer", "Version", "GitCommit", });
|
||||
new java.lang.String[] { "Peer", "Version", "GitCommit", "StartTimeMs", });
|
||||
greptime.v1.meta.Common.getDescriptor();
|
||||
greptime.v1.meta.StoreOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
@@ -46,4 +46,6 @@ message MetasrvNodeInfo {
|
||||
Peer peer = 1;
|
||||
string version = 2;
|
||||
string git_commit = 3;
|
||||
// The node start timestamp in milliseconds.
|
||||
uint64 start_time_ms = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user