diff --git a/c++/greptime/v1/meta/common.pb.cc b/c++/greptime/v1/meta/common.pb.cc index 0ac5a2e..5b66391 100644 --- a/c++/greptime/v1/meta/common.pb.cc +++ b/c++/greptime/v1/meta/common.pb.cc @@ -38,7 +38,6 @@ PROTOBUF_CONSTEXPR RequestHeader::RequestHeader( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.tracing_context_)*/{::_pbi::ConstantInitialized()} , /*decltype(_impl_.protocol_version_)*/uint64_t{0u} - , /*decltype(_impl_.cluster_id_)*/uint64_t{0u} , /*decltype(_impl_.member_id_)*/uint64_t{0u} , /*decltype(_impl_.role_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} @@ -55,7 +54,6 @@ PROTOBUF_CONSTEXPR ResponseHeader::ResponseHeader( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.error_)*/nullptr , /*decltype(_impl_.protocol_version_)*/uint64_t{0u} - , /*decltype(_impl_.cluster_id_)*/uint64_t{0u} , /*decltype(_impl_._cached_size_)*/{}} {} struct ResponseHeaderDefaultTypeInternal { PROTOBUF_CONSTEXPR ResponseHeaderDefaultTypeInternal() @@ -160,7 +158,6 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.protocol_version_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.cluster_id_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.member_id_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.role_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::RequestHeader, _impl_.tracing_context_), @@ -171,7 +168,6 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ResponseHeader, _impl_.protocol_version_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ResponseHeader, _impl_.cluster_id_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ResponseHeader, _impl_.error_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::Error, _internal_metadata_), @@ -216,12 +212,12 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, -1, sizeof(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse)}, { 10, -1, -1, sizeof(::greptime::v1::meta::RequestHeader)}, - { 21, -1, -1, sizeof(::greptime::v1::meta::ResponseHeader)}, - { 30, -1, -1, sizeof(::greptime::v1::meta::Error)}, - { 38, -1, -1, sizeof(::greptime::v1::meta::Peer)}, - { 46, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)}, - { 54, -1, -1, sizeof(::greptime::v1::meta::KeyValue)}, - { 62, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)}, + { 20, -1, -1, sizeof(::greptime::v1::meta::ResponseHeader)}, + { 28, -1, -1, sizeof(::greptime::v1::meta::Error)}, + { 36, -1, -1, sizeof(::greptime::v1::meta::Peer)}, + { 44, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)}, + { 52, -1, -1, sizeof(::greptime::v1::meta::KeyValue)}, + { 60, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -237,15 +233,14 @@ static const ::_pb::Message* const file_default_instances[] = { const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\035greptime/v1/meta/common.proto\022\020greptim" - "e.v1.meta\"\373\001\n\rRequestHeader\022\030\n\020protocol_" - "version\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022\021\n\tmem" - "ber_id\030\003 \001(\004\022$\n\004role\030\004 \001(\0162\026.greptime.v1" - ".meta.Role\022L\n\017tracing_context\030\005 \003(\01323.gr" - "eptime.v1.meta.RequestHeader.TracingCont" - "extEntry\0325\n\023TracingContextEntry\022\013\n\003key\030\001" - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\016ResponseHeade" - "r\022\030\n\020protocol_version\030\001 \001(\004\022\022\n\ncluster_i" - "d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" + "e.v1.meta\"\347\001\n\rRequestHeader\022\030\n\020protocol_" + "version\030\001 \001(\004\022\021\n\tmember_id\030\003 \001(\004\022$\n\004role" + "\030\004 \001(\0162\026.greptime.v1.meta.Role\022L\n\017tracin" + "g_context\030\005 \003(\01323.greptime.v1.meta.Reque" + "stHeader.TracingContextEntry\0325\n\023TracingC" + "ontextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + "\0028\001\"R\n\016ResponseHeader\022\030\n\020protocol_versio" + "n\030\001 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" "a.Error\"&\n\005Error\022\014\n\004code\030\001 \001(\005\022\017\n\007err_ms" "g\030\002 \001(\t\" \n\004Peer\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001(" "\t\"L\n\014TimeInterval\022\036\n\026start_timestamp_mil" @@ -258,7 +253,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PRO ; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto = { - false, false, 747, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto, + false, false, 707, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto, "greptime/v1/meta/common.proto", &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 8, schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets, @@ -325,7 +320,6 @@ RequestHeader::RequestHeader(const RequestHeader& from) new (&_impl_) Impl_{ /*decltype(_impl_.tracing_context_)*/{} , decltype(_impl_.protocol_version_){} - , decltype(_impl_.cluster_id_){} , decltype(_impl_.member_id_){} , decltype(_impl_.role_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -345,7 +339,6 @@ inline void RequestHeader::SharedCtor( new (&_impl_) Impl_{ /*decltype(_impl_.tracing_context_)*/{::_pbi::ArenaInitialized(), arena} , decltype(_impl_.protocol_version_){uint64_t{0u}} - , decltype(_impl_.cluster_id_){uint64_t{0u}} , decltype(_impl_.member_id_){uint64_t{0u}} , decltype(_impl_.role_){0} , /*decltype(_impl_._cached_size_)*/{} @@ -403,14 +396,6 @@ const char* RequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // uint64 cluster_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.cluster_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; // uint64 member_id = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { @@ -476,12 +461,6 @@ uint8_t* RequestHeader::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_protocol_version(), target); } - // uint64 cluster_id = 2; - if (this->_internal_cluster_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_cluster_id(), target); - } - // uint64 member_id = 3; if (this->_internal_member_id() != 0) { target = stream->EnsureSpace(target); @@ -555,11 +534,6 @@ size_t RequestHeader::ByteSizeLong() const { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_protocol_version()); } - // uint64 cluster_id = 2; - if (this->_internal_cluster_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_cluster_id()); - } - // uint64 member_id = 3; if (this->_internal_member_id() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_member_id()); @@ -593,9 +567,6 @@ void RequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: if (from._internal_protocol_version() != 0) { _this->_internal_set_protocol_version(from._internal_protocol_version()); } - if (from._internal_cluster_id() != 0) { - _this->_internal_set_cluster_id(from._internal_cluster_id()); - } if (from._internal_member_id() != 0) { _this->_internal_set_member_id(from._internal_member_id()); } @@ -657,16 +628,13 @@ ResponseHeader::ResponseHeader(const ResponseHeader& from) new (&_impl_) Impl_{ decltype(_impl_.error_){nullptr} , decltype(_impl_.protocol_version_){} - , decltype(_impl_.cluster_id_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_error()) { _this->_impl_.error_ = new ::greptime::v1::meta::Error(*from._impl_.error_); } - ::memcpy(&_impl_.protocol_version_, &from._impl_.protocol_version_, - static_cast(reinterpret_cast(&_impl_.cluster_id_) - - reinterpret_cast(&_impl_.protocol_version_)) + sizeof(_impl_.cluster_id_)); + _this->_impl_.protocol_version_ = from._impl_.protocol_version_; // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ResponseHeader) } @@ -677,7 +645,6 @@ inline void ResponseHeader::SharedCtor( new (&_impl_) Impl_{ decltype(_impl_.error_){nullptr} , decltype(_impl_.protocol_version_){uint64_t{0u}} - , decltype(_impl_.cluster_id_){uint64_t{0u}} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -710,9 +677,7 @@ void ResponseHeader::Clear() { delete _impl_.error_; } _impl_.error_ = nullptr; - ::memset(&_impl_.protocol_version_, 0, static_cast( - reinterpret_cast(&_impl_.cluster_id_) - - reinterpret_cast(&_impl_.protocol_version_)) + sizeof(_impl_.cluster_id_)); + _impl_.protocol_version_ = uint64_t{0u}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -730,14 +695,6 @@ const char* ResponseHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; - // uint64 cluster_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.cluster_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; // .greptime.v1.meta.Error error = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { @@ -781,12 +738,6 @@ uint8_t* ResponseHeader::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_protocol_version(), target); } - // uint64 cluster_id = 2; - if (this->_internal_cluster_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_cluster_id(), target); - } - // .greptime.v1.meta.Error error = 3; if (this->_internal_has_error()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: @@ -822,11 +773,6 @@ size_t ResponseHeader::ByteSizeLong() const { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_protocol_version()); } - // uint64 cluster_id = 2; - if (this->_internal_cluster_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_cluster_id()); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -852,9 +798,6 @@ void ResponseHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (from._internal_protocol_version() != 0) { _this->_internal_set_protocol_version(from._internal_protocol_version()); } - if (from._internal_cluster_id() != 0) { - _this->_internal_set_cluster_id(from._internal_cluster_id()); - } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -873,8 +816,8 @@ void ResponseHeader::InternalSwap(ResponseHeader* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResponseHeader, _impl_.cluster_id_) - + sizeof(ResponseHeader::_impl_.cluster_id_) + PROTOBUF_FIELD_OFFSET(ResponseHeader, _impl_.protocol_version_) + + sizeof(ResponseHeader::_impl_.protocol_version_) - PROTOBUF_FIELD_OFFSET(ResponseHeader, _impl_.error_)>( reinterpret_cast(&_impl_.error_), reinterpret_cast(&other->_impl_.error_)); diff --git a/c++/greptime/v1/meta/common.pb.h b/c++/greptime/v1/meta/common.pb.h index 23dfda2..10ac2c3 100644 --- a/c++/greptime/v1/meta/common.pb.h +++ b/c++/greptime/v1/meta/common.pb.h @@ -274,7 +274,6 @@ class RequestHeader final : enum : int { kTracingContextFieldNumber = 5, kProtocolVersionFieldNumber = 1, - kClusterIdFieldNumber = 2, kMemberIdFieldNumber = 3, kRoleFieldNumber = 4, }; @@ -304,15 +303,6 @@ class RequestHeader final : void _internal_set_protocol_version(uint64_t value); public: - // uint64 cluster_id = 2; - void clear_cluster_id(); - uint64_t cluster_id() const; - void set_cluster_id(uint64_t value); - private: - uint64_t _internal_cluster_id() const; - void _internal_set_cluster_id(uint64_t value); - public: - // uint64 member_id = 3; void clear_member_id(); uint64_t member_id() const; @@ -345,7 +335,6 @@ class RequestHeader final : ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> tracing_context_; uint64_t protocol_version_; - uint64_t cluster_id_; uint64_t member_id_; int role_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -478,7 +467,6 @@ class ResponseHeader final : enum : int { kErrorFieldNumber = 3, kProtocolVersionFieldNumber = 1, - kClusterIdFieldNumber = 2, }; // .greptime.v1.meta.Error error = 3; bool has_error() const; @@ -507,15 +495,6 @@ class ResponseHeader final : void _internal_set_protocol_version(uint64_t value); public: - // uint64 cluster_id = 2; - void clear_cluster_id(); - uint64_t cluster_id() const; - void set_cluster_id(uint64_t value); - private: - uint64_t _internal_cluster_id() const; - void _internal_set_cluster_id(uint64_t value); - public: - // @@protoc_insertion_point(class_scope:greptime.v1.meta.ResponseHeader) private: class _Internal; @@ -526,7 +505,6 @@ class ResponseHeader final : struct Impl_ { ::greptime::v1::meta::Error* error_; uint64_t protocol_version_; - uint64_t cluster_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1374,26 +1352,6 @@ inline void RequestHeader::set_protocol_version(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.RequestHeader.protocol_version) } -// uint64 cluster_id = 2; -inline void RequestHeader::clear_cluster_id() { - _impl_.cluster_id_ = uint64_t{0u}; -} -inline uint64_t RequestHeader::_internal_cluster_id() const { - return _impl_.cluster_id_; -} -inline uint64_t RequestHeader::cluster_id() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.RequestHeader.cluster_id) - return _internal_cluster_id(); -} -inline void RequestHeader::_internal_set_cluster_id(uint64_t value) { - - _impl_.cluster_id_ = value; -} -inline void RequestHeader::set_cluster_id(uint64_t value) { - _internal_set_cluster_id(value); - // @@protoc_insertion_point(field_set:greptime.v1.meta.RequestHeader.cluster_id) -} - // uint64 member_id = 3; inline void RequestHeader::clear_member_id() { _impl_.member_id_ = uint64_t{0u}; @@ -1487,26 +1445,6 @@ inline void ResponseHeader::set_protocol_version(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.ResponseHeader.protocol_version) } -// uint64 cluster_id = 2; -inline void ResponseHeader::clear_cluster_id() { - _impl_.cluster_id_ = uint64_t{0u}; -} -inline uint64_t ResponseHeader::_internal_cluster_id() const { - return _impl_.cluster_id_; -} -inline uint64_t ResponseHeader::cluster_id() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.ResponseHeader.cluster_id) - return _internal_cluster_id(); -} -inline void ResponseHeader::_internal_set_cluster_id(uint64_t value) { - - _impl_.cluster_id_ = value; -} -inline void ResponseHeader::set_cluster_id(uint64_t value) { - _internal_set_cluster_id(value); - // @@protoc_insertion_point(field_set:greptime.v1.meta.ResponseHeader.cluster_id) -} - // .greptime.v1.meta.Error error = 3; inline bool ResponseHeader::_internal_has_error() const { return this != internal_default_instance() && _impl_.error_ != nullptr; diff --git a/go/greptime/v1/meta/common.pb.go b/go/greptime/v1/meta/common.pb.go index 42811ae..895541d 100644 --- a/go/greptime/v1/meta/common.pb.go +++ b/go/greptime/v1/meta/common.pb.go @@ -89,8 +89,6 @@ type RequestHeader struct { unknownFields protoimpl.UnknownFields ProtocolVersion uint64 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` - // cluster_id is the ID of the cluster which be sent to. - ClusterId uint64 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` // member_id is the ID of the sender server. MemberId uint64 `protobuf:"varint,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=greptime.v1.meta.Role" json:"role,omitempty"` @@ -138,13 +136,6 @@ func (x *RequestHeader) GetProtocolVersion() uint64 { return 0 } -func (x *RequestHeader) GetClusterId() uint64 { - if x != nil { - return x.ClusterId - } - return 0 -} - func (x *RequestHeader) GetMemberId() uint64 { if x != nil { return x.MemberId @@ -172,9 +163,7 @@ type ResponseHeader struct { unknownFields protoimpl.UnknownFields ProtocolVersion uint64 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` - // cluster_id is the ID of the cluster which sent the response. - ClusterId uint64 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` } func (x *ResponseHeader) Reset() { @@ -216,13 +205,6 @@ func (x *ResponseHeader) GetProtocolVersion() uint64 { return 0 } -func (x *ResponseHeader) GetClusterId() uint64 { - if x != nil { - return x.ClusterId - } - return 0 -} - func (x *ResponseHeader) GetError() *Error { if x != nil { return x.Error @@ -508,62 +490,58 @@ var file_greptime_v1_meta_common_proto_rawDesc = []byte{ 0x0a, 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, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, - 0x61, 0x22, 0xc3, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, + 0x61, 0x22, 0xa4, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, - 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, - 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x72, 0x6f, - 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x6c, 0x65, - 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x5c, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, - 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x33, 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, - 0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, - 0x74, 0x65, 0x78, 0x74, 0x1a, 0x41, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 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, 0x89, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, + 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x72, + 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x6c, + 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x5c, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x33, 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, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x1a, 0x41, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 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, 0x6a, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x22, 0x34, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, - 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x2a, 0x0a, 0x04, 0x50, 0x65, 0x65, - 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x61, 0x64, 0x64, 0x72, 0x22, 0x76, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, - 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, - 0x6c, 0x69, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x22, 0x32, 0x0a, - 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x2a, 0x30, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, - 0x54, 0x41, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x52, 0x4f, 0x4e, - 0x54, 0x45, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4c, 0x4f, 0x57, 0x4e, 0x4f, - 0x44, 0x45, 0x10, 0x02, 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, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x22, 0x34, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x2a, 0x0a, 0x04, 0x50, 0x65, + 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x22, 0x76, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x12, 0x30, 0x0a, 0x14, + 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, + 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x22, 0x32, + 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, + 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x2a, 0x30, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, + 0x41, 0x54, 0x41, 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x52, 0x4f, + 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4c, 0x4f, 0x57, 0x4e, + 0x4f, 0x44, 0x45, 0x10, 0x02, 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 ( diff --git a/java/src/main/java/greptime/v1/meta/Common.java b/java/src/main/java/greptime/v1/meta/Common.java index be49f22..906294a 100644 --- a/java/src/main/java/greptime/v1/meta/Common.java +++ b/java/src/main/java/greptime/v1/meta/Common.java @@ -141,16 +141,6 @@ public final class Common { */ long getProtocolVersion(); - /** - *
-     * cluster_id is the ID of the cluster which be sent to.
-     * 
- * - * uint64 cluster_id = 2; - * @return The clusterId. - */ - long getClusterId(); - /** *
      * member_id is the ID of the sender server.
@@ -285,11 +275,6 @@ java.lang.String defaultValue);
               protocolVersion_ = input.readUInt64();
               break;
             }
-            case 16: {
-
-              clusterId_ = input.readUInt64();
-              break;
-            }
             case 24: {
 
               memberId_ = input.readUInt64();
@@ -371,21 +356,6 @@ java.lang.String defaultValue);
       return protocolVersion_;
     }
 
-    public static final int CLUSTER_ID_FIELD_NUMBER = 2;
-    private long clusterId_;
-    /**
-     * 
-     * cluster_id is the ID of the cluster which be sent to.
-     * 
- * - * uint64 cluster_id = 2; - * @return The clusterId. - */ - @java.lang.Override - public long getClusterId() { - return clusterId_; - } - public static final int MEMBER_ID_FIELD_NUMBER = 3; private long memberId_; /** @@ -538,9 +508,6 @@ java.lang.String defaultValue); if (protocolVersion_ != 0L) { output.writeUInt64(1, protocolVersion_); } - if (clusterId_ != 0L) { - output.writeUInt64(2, clusterId_); - } if (memberId_ != 0L) { output.writeUInt64(3, memberId_); } @@ -566,10 +533,6 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, protocolVersion_); } - if (clusterId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, clusterId_); - } if (memberId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, memberId_); @@ -605,8 +568,6 @@ java.lang.String defaultValue); if (getProtocolVersion() != other.getProtocolVersion()) return false; - if (getClusterId() - != other.getClusterId()) return false; if (getMemberId() != other.getMemberId()) return false; if (role_ != other.role_) return false; @@ -626,9 +587,6 @@ java.lang.String defaultValue); hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProtocolVersion()); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClusterId()); hash = (37 * hash) + MEMBER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemberId()); @@ -795,8 +753,6 @@ java.lang.String defaultValue); super.clear(); protocolVersion_ = 0L; - clusterId_ = 0L; - memberId_ = 0L; role_ = 0; @@ -830,7 +786,6 @@ java.lang.String defaultValue); greptime.v1.meta.Common.RequestHeader result = new greptime.v1.meta.Common.RequestHeader(this); int from_bitField0_ = bitField0_; result.protocolVersion_ = protocolVersion_; - result.clusterId_ = clusterId_; result.memberId_ = memberId_; result.role_ = role_; result.tracingContext_ = internalGetTracingContext(); @@ -886,9 +841,6 @@ java.lang.String defaultValue); if (other.getProtocolVersion() != 0L) { setProtocolVersion(other.getProtocolVersion()); } - if (other.getClusterId() != 0L) { - setClusterId(other.getClusterId()); - } if (other.getMemberId() != 0L) { setMemberId(other.getMemberId()); } @@ -958,49 +910,6 @@ java.lang.String defaultValue); return this; } - private long clusterId_ ; - /** - *
-       * cluster_id is the ID of the cluster which be sent to.
-       * 
- * - * uint64 cluster_id = 2; - * @return The clusterId. - */ - @java.lang.Override - public long getClusterId() { - return clusterId_; - } - /** - *
-       * cluster_id is the ID of the cluster which be sent to.
-       * 
- * - * uint64 cluster_id = 2; - * @param value The clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterId(long value) { - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-       * cluster_id is the ID of the cluster which be sent to.
-       * 
- * - * uint64 cluster_id = 2; - * @return This builder for chaining. - */ - public Builder clearClusterId() { - - clusterId_ = 0L; - onChanged(); - return this; - } - private long memberId_ ; /** *
@@ -1326,16 +1235,6 @@ java.lang.String defaultValue);
      */
     long getProtocolVersion();
 
-    /**
-     * 
-     * cluster_id is the ID of the cluster which sent the response.
-     * 
- * - * uint64 cluster_id = 2; - * @return The clusterId. - */ - long getClusterId(); - /** * .greptime.v1.meta.Error error = 3; * @return Whether the error field is set. @@ -1401,11 +1300,6 @@ java.lang.String defaultValue); protocolVersion_ = input.readUInt64(); break; } - case 16: { - - clusterId_ = input.readUInt64(); - break; - } case 26: { greptime.v1.meta.Common.Error.Builder subBuilder = null; if (error_ != null) { @@ -1464,21 +1358,6 @@ java.lang.String defaultValue); return protocolVersion_; } - public static final int CLUSTER_ID_FIELD_NUMBER = 2; - private long clusterId_; - /** - *
-     * cluster_id is the ID of the cluster which sent the response.
-     * 
- * - * uint64 cluster_id = 2; - * @return The clusterId. - */ - @java.lang.Override - public long getClusterId() { - return clusterId_; - } - public static final int ERROR_FIELD_NUMBER = 3; private greptime.v1.meta.Common.Error error_; /** @@ -1522,9 +1401,6 @@ java.lang.String defaultValue); if (protocolVersion_ != 0L) { output.writeUInt64(1, protocolVersion_); } - if (clusterId_ != 0L) { - output.writeUInt64(2, clusterId_); - } if (error_ != null) { output.writeMessage(3, getError()); } @@ -1541,10 +1417,6 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, protocolVersion_); } - if (clusterId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, clusterId_); - } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getError()); @@ -1566,8 +1438,6 @@ java.lang.String defaultValue); if (getProtocolVersion() != other.getProtocolVersion()) return false; - if (getClusterId() - != other.getClusterId()) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError() @@ -1587,9 +1457,6 @@ java.lang.String defaultValue); hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProtocolVersion()); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClusterId()); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); @@ -1729,8 +1596,6 @@ java.lang.String defaultValue); super.clear(); protocolVersion_ = 0L; - clusterId_ = 0L; - if (errorBuilder_ == null) { error_ = null; } else { @@ -1764,7 +1629,6 @@ java.lang.String defaultValue); public greptime.v1.meta.Common.ResponseHeader buildPartial() { greptime.v1.meta.Common.ResponseHeader result = new greptime.v1.meta.Common.ResponseHeader(this); result.protocolVersion_ = protocolVersion_; - result.clusterId_ = clusterId_; if (errorBuilder_ == null) { result.error_ = error_; } else { @@ -1821,9 +1685,6 @@ java.lang.String defaultValue); if (other.getProtocolVersion() != 0L) { setProtocolVersion(other.getProtocolVersion()); } - if (other.getClusterId() != 0L) { - setClusterId(other.getClusterId()); - } if (other.hasError()) { mergeError(other.getError()); } @@ -1887,49 +1748,6 @@ java.lang.String defaultValue); return this; } - private long clusterId_ ; - /** - *
-       * cluster_id is the ID of the cluster which sent the response.
-       * 
- * - * uint64 cluster_id = 2; - * @return The clusterId. - */ - @java.lang.Override - public long getClusterId() { - return clusterId_; - } - /** - *
-       * cluster_id is the ID of the cluster which sent the response.
-       * 
- * - * uint64 cluster_id = 2; - * @param value The clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterId(long value) { - - clusterId_ = value; - onChanged(); - return this; - } - /** - *
-       * cluster_id is the ID of the cluster which sent the response.
-       * 
- * - * uint64 cluster_id = 2; - * @return This builder for chaining. - */ - public Builder clearClusterId() { - - clusterId_ = 0L; - onChanged(); - return this; - } - private greptime.v1.meta.Common.Error error_; private com.google.protobuf.SingleFieldBuilderV3< greptime.v1.meta.Common.Error, greptime.v1.meta.Common.Error.Builder, greptime.v1.meta.Common.ErrorOrBuilder> errorBuilder_; @@ -5144,15 +4962,14 @@ java.lang.String defaultValue); static { java.lang.String[] descriptorData = { "\n\035greptime/v1/meta/common.proto\022\020greptim" + - "e.v1.meta\"\373\001\n\rRequestHeader\022\030\n\020protocol_" + - "version\030\001 \001(\004\022\022\n\ncluster_id\030\002 \001(\004\022\021\n\tmem" + - "ber_id\030\003 \001(\004\022$\n\004role\030\004 \001(\0162\026.greptime.v1" + - ".meta.Role\022L\n\017tracing_context\030\005 \003(\01323.gr" + - "eptime.v1.meta.RequestHeader.TracingCont" + - "extEntry\0325\n\023TracingContextEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\016ResponseHeade" + - "r\022\030\n\020protocol_version\030\001 \001(\004\022\022\n\ncluster_i" + - "d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" + + "e.v1.meta\"\347\001\n\rRequestHeader\022\030\n\020protocol_" + + "version\030\001 \001(\004\022\021\n\tmember_id\030\003 \001(\004\022$\n\004role" + + "\030\004 \001(\0162\026.greptime.v1.meta.Role\022L\n\017tracin" + + "g_context\030\005 \003(\01323.greptime.v1.meta.Reque" + + "stHeader.TracingContextEntry\0325\n\023TracingC" + + "ontextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"R\n\016ResponseHeader\022\030\n\020protocol_versio" + + "n\030\001 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" + "a.Error\"&\n\005Error\022\014\n\004code\030\001 \001(\005\022\017\n\007err_ms" + "g\030\002 \001(\t\" \n\004Peer\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001(" + "\t\"L\n\014TimeInterval\022\036\n\026start_timestamp_mil" + @@ -5172,7 +4989,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_meta_RequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_meta_RequestHeader_descriptor, - new java.lang.String[] { "ProtocolVersion", "ClusterId", "MemberId", "Role", "TracingContext", }); + new java.lang.String[] { "ProtocolVersion", "MemberId", "Role", "TracingContext", }); internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_descriptor = internal_static_greptime_v1_meta_RequestHeader_descriptor.getNestedTypes().get(0); internal_static_greptime_v1_meta_RequestHeader_TracingContextEntry_fieldAccessorTable = new @@ -5184,7 +5001,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_meta_ResponseHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_meta_ResponseHeader_descriptor, - new java.lang.String[] { "ProtocolVersion", "ClusterId", "Error", }); + new java.lang.String[] { "ProtocolVersion", "Error", }); internal_static_greptime_v1_meta_Error_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_meta_Error_fieldAccessorTable = new diff --git a/proto/greptime/v1/meta/common.proto b/proto/greptime/v1/meta/common.proto index eeea0cf..bd7e639 100644 --- a/proto/greptime/v1/meta/common.proto +++ b/proto/greptime/v1/meta/common.proto @@ -20,8 +20,6 @@ option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta" message RequestHeader { uint64 protocol_version = 1; - // cluster_id is the ID of the cluster which be sent to. - uint64 cluster_id = 2; // member_id is the ID of the sender server. uint64 member_id = 3; Role role = 4; @@ -38,8 +36,6 @@ enum Role { message ResponseHeader { uint64 protocol_version = 1; - // cluster_id is the ID of the cluster which sent the response. - uint64 cluster_id = 2; Error error = 3; } diff --git a/src/v1/meta.rs b/src/v1/meta.rs index 634ef84..4d83169 100644 --- a/src/v1/meta.rs +++ b/src/v1/meta.rs @@ -59,14 +59,9 @@ impl Eq for Peer {} impl RequestHeader { #[inline] - pub fn new( - (cluster_id, member_id): (u64, u64), - role: Role, - tracing_context: HashMap, - ) -> Self { + pub fn new(member_id: u64, role: Role, tracing_context: HashMap) -> Self { Self { protocol_version: PROTOCOL_VERSION, - cluster_id, member_id, role: role.into(), tracing_context, @@ -76,19 +71,17 @@ impl RequestHeader { impl ResponseHeader { #[inline] - pub fn success(cluster_id: u64) -> Self { + pub fn success() -> Self { Self { protocol_version: PROTOCOL_VERSION, - cluster_id, ..Default::default() } } #[inline] - pub fn failed(cluster_id: u64, error: Error) -> Self { + pub fn failed(error: Error) -> Self { Self { protocol_version: PROTOCOL_VERSION, - cluster_id, error: Some(error), } } @@ -145,23 +138,18 @@ macro_rules! gen_set_header { #[inline] pub fn set_header( &mut self, - (cluster_id, member_id): (u64, u64), + member_id: u64, role: Role, tracing_context: HashMap, ) { match self.header.as_mut() { Some(header) => { - header.cluster_id = cluster_id; header.member_id = member_id; header.role = role.into(); header.tracing_context = tracing_context; } None => { - self.header = Some(RequestHeader::new( - (cluster_id, member_id), - role, - tracing_context, - )); + self.header = Some(RequestHeader::new(member_id, role, tracing_context)); } } }