diff --git a/build.rs b/build.rs index dd4f0976..8460fbfe 100644 --- a/build.rs +++ b/build.rs @@ -39,9 +39,11 @@ fn main() { "proto/greptime/v1/meta/heartbeat.proto", "proto/greptime/v1/meta/route.proto", "proto/greptime/v1/meta/ddl.proto", + "proto/greptime/v1/meta/region.proto", "proto/greptime/v1/meta/store.proto", "proto/greptime/v1/meta/lock.proto", "proto/greptime/v1/meta/cluster.proto", + "proto/greptime/v1/meta/procedure.proto", "proto/greptime/v1/region/server.proto", "proto/greptime/v1/index/inverted_index.proto", "proto/prometheus/remote/remote.proto", diff --git a/c++/greptime/v1/meta/common.pb.cc b/c++/greptime/v1/meta/common.pb.cc index 5415bb4f..0daeeed0 100644 --- a/c++/greptime/v1/meta/common.pb.cc +++ b/c++/greptime/v1/meta/common.pb.cc @@ -150,10 +150,23 @@ struct KeyValueDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueDefaultTypeInternal _KeyValue_default_instance_; +PROTOBUF_CONSTEXPR ProcedureId::ProcedureId( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ProcedureIdDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcedureIdDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcedureIdDefaultTypeInternal() {} + union { + ProcedureId _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureIdDefaultTypeInternal _ProcedureId_default_instance_; } // namespace meta } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[10]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto = nullptr; @@ -236,6 +249,13 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::KeyValue, _impl_.key_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::KeyValue, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureId, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureId, _impl_.key_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, -1, sizeof(::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse)}, @@ -247,6 +267,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 53, -1, -1, sizeof(::greptime::v1::meta::TableName)}, { 62, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)}, { 70, -1, -1, sizeof(::greptime::v1::meta::KeyValue)}, + { 78, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -259,6 +280,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_TableName_default_instance_._instance, &::greptime::v1::meta::_TimeInterval_default_instance_._instance, &::greptime::v1::meta::_KeyValue_default_instance_._instance, + &::greptime::v1::meta::_ProcedureId_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -279,16 +301,16 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PRO "\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" "start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" "stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " - "\001(\014\022\r\n\005value\030\002 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000" - "\022\014\n\010FRONTEND\020\001B(from._internal_metadata_); + _impl_.key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + _this->_impl_.key_.Set(from._internal_key(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureId) +} + +inline void ProcedureId::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.key_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ProcedureId::~ProcedureId() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureId) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ProcedureId::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.key_.Destroy(); +} + +void ProcedureId::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ProcedureId::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureId) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.key_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProcedureId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bytes key = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ProcedureId::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureId) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bytes key = 1; + if (!this->_internal_key().empty()) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_key(), 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); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.ProcedureId) + return target; +} + +size_t ProcedureId::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureId) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes key = 1; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_key()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureId::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ProcedureId::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureId::GetClassData() const { return &_class_data_; } + + +void ProcedureId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.ProcedureId) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_key().empty()) { + _this->_internal_set_key(from._internal_key()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProcedureId::CopyFrom(const ProcedureId& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureId) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureId::IsInitialized() const { + return true; +} + +void ProcedureId::InternalSwap(ProcedureId* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.key_, lhs_arena, + &other->_impl_.key_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProcedureId::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace meta } // namespace v1 @@ -2349,6 +2569,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::KeyValue* Arena::CreateMaybeMessage< ::greptime::v1::meta::KeyValue >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::KeyValue >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureId* +Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureId >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureId >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/meta/common.pb.h b/c++/greptime/v1/meta/common.pb.h index ae3a05ad..9b2bda90 100644 --- a/c++/greptime/v1/meta/common.pb.h +++ b/c++/greptime/v1/meta/common.pb.h @@ -60,6 +60,9 @@ extern KeyValueDefaultTypeInternal _KeyValue_default_instance_; class Peer; struct PeerDefaultTypeInternal; extern PeerDefaultTypeInternal _Peer_default_instance_; +class ProcedureId; +struct ProcedureIdDefaultTypeInternal; +extern ProcedureIdDefaultTypeInternal _ProcedureId_default_instance_; class RequestHeader; struct RequestHeaderDefaultTypeInternal; extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_; @@ -85,6 +88,7 @@ PROTOBUF_NAMESPACE_OPEN template<> ::greptime::v1::meta::Error* Arena::CreateMaybeMessage<::greptime::v1::meta::Error>(Arena*); template<> ::greptime::v1::meta::KeyValue* Arena::CreateMaybeMessage<::greptime::v1::meta::KeyValue>(Arena*); template<> ::greptime::v1::meta::Peer* Arena::CreateMaybeMessage<::greptime::v1::meta::Peer>(Arena*); +template<> ::greptime::v1::meta::ProcedureId* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(Arena*); template<> ::greptime::v1::meta::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(Arena*); template<> ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse>(Arena*); template<> ::greptime::v1::meta::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(Arena*); @@ -1524,6 +1528,159 @@ class KeyValue final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto; }; +// ------------------------------------------------------------------- + +class ProcedureId final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.ProcedureId) */ { + public: + inline ProcedureId() : ProcedureId(nullptr) {} + ~ProcedureId() override; + explicit PROTOBUF_CONSTEXPR ProcedureId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProcedureId(const ProcedureId& from); + ProcedureId(ProcedureId&& from) noexcept + : ProcedureId() { + *this = ::std::move(from); + } + + inline ProcedureId& operator=(const ProcedureId& from) { + CopyFrom(from); + return *this; + } + inline ProcedureId& operator=(ProcedureId&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ProcedureId& default_instance() { + return *internal_default_instance(); + } + static inline const ProcedureId* internal_default_instance() { + return reinterpret_cast( + &_ProcedureId_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(ProcedureId& a, ProcedureId& b) { + a.Swap(&b); + } + inline void Swap(ProcedureId* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProcedureId* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProcedureId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcedureId& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ProcedureId& from) { + ProcedureId::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProcedureId* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.ProcedureId"; + } + protected: + explicit ProcedureId(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyFieldNumber = 1, + }; + // bytes key = 1; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureId) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto; +}; // =================================================================== @@ -2254,6 +2411,60 @@ inline void KeyValue::set_allocated_value(std::string* value) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.KeyValue.value) } +// ------------------------------------------------------------------- + +// ProcedureId + +// bytes key = 1; +inline void ProcedureId::clear_key() { + _impl_.key_.ClearToEmpty(); +} +inline const std::string& ProcedureId::key() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureId.key) + return _internal_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcedureId::set_key(ArgT0&& arg0, ArgT... args) { + + _impl_.key_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureId.key) +} +inline std::string* ProcedureId::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureId.key) + return _s; +} +inline const std::string& ProcedureId::_internal_key() const { + return _impl_.key_.Get(); +} +inline void ProcedureId::_internal_set_key(const std::string& value) { + + _impl_.key_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProcedureId::_internal_mutable_key() { + + return _impl_.key_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProcedureId::release_key() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureId.key) + return _impl_.key_.Release(); +} +inline void ProcedureId::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + _impl_.key_.SetAllocated(key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.key_.IsDefault()) { + _impl_.key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureId.key) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -2273,6 +2484,8 @@ inline void KeyValue::set_allocated_value(std::string* value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/meta/ddl.grpc.pb.cc b/c++/greptime/v1/meta/ddl.grpc.pb.cc index 480507be..f8a5648c 100644 --- a/c++/greptime/v1/meta/ddl.grpc.pb.cc +++ b/c++/greptime/v1/meta/ddl.grpc.pb.cc @@ -23,67 +23,6 @@ namespace greptime { namespace v1 { namespace meta { -static const char* DdlTask_method_names[] = { - "/greptime.v1.meta.DdlTask/SubmitDdlTask", -}; - -std::unique_ptr< DdlTask::Stub> DdlTask::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< DdlTask::Stub> stub(new DdlTask::Stub(channel, options)); - return stub; -} - -DdlTask::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) - : channel_(channel), rpcmethod_SubmitDdlTask_(DdlTask_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status DdlTask::Stub::SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SubmitDdlTask_, context, request, response); -} - -void DdlTask::Stub::async::SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitDdlTask_, context, request, response, std::move(f)); -} - -void DdlTask::Stub::async::SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SubmitDdlTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>* DdlTask::Stub::PrepareAsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::SubmitDdlTaskResponse, ::greptime::v1::meta::SubmitDdlTaskRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SubmitDdlTask_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>* DdlTask::Stub::AsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSubmitDdlTaskRaw(context, request, cq); - result->StartCall(); - return result; -} - -DdlTask::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - DdlTask_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DdlTask::Service, ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](DdlTask::Service* service, - ::grpc::ServerContext* ctx, - const ::greptime::v1::meta::SubmitDdlTaskRequest* req, - ::greptime::v1::meta::SubmitDdlTaskResponse* resp) { - return service->SubmitDdlTask(ctx, req, resp); - }, this))); -} - -DdlTask::Service::~Service() { -} - -::grpc::Status DdlTask::Service::SubmitDdlTask(::grpc::ServerContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - } // namespace greptime } // namespace v1 } // namespace meta diff --git a/c++/greptime/v1/meta/ddl.grpc.pb.h b/c++/greptime/v1/meta/ddl.grpc.pb.h index 344f4ce4..fef1ed2e 100644 --- a/c++/greptime/v1/meta/ddl.grpc.pb.h +++ b/c++/greptime/v1/meta/ddl.grpc.pb.h @@ -44,216 +44,6 @@ namespace greptime { namespace v1 { namespace meta { -class DdlTask final { - public: - static constexpr char const* service_full_name() { - return "greptime.v1.meta.DdlTask"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Submits a DDL task to meta. - virtual ::grpc::Status SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>> AsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>>(AsyncSubmitDdlTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>> PrepareAsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>>(PrepareAsyncSubmitDdlTaskRaw(context, request, cq)); - } - class async_interface { - public: - virtual ~async_interface() {} - // Submits a DDL task to meta. - virtual void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, std::function) = 0; - virtual void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - }; - typedef class async_interface experimental_async_interface; - virtual class async_interface* async() { return nullptr; } - class async_interface* experimental_async() { return async(); } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>* AsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::SubmitDdlTaskResponse>* PrepareAsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>> AsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>>(AsyncSubmitDdlTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>> PrepareAsyncSubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>>(PrepareAsyncSubmitDdlTaskRaw(context, request, cq)); - } - class async final : - public StubInterface::async_interface { - public: - void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, std::function) override; - void SubmitDdlTask(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class async* async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>* AsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::SubmitDdlTaskResponse>* PrepareAsyncSubmitDdlTaskRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_SubmitDdlTask_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Submits a DDL task to meta. - virtual ::grpc::Status SubmitDdlTask(::grpc::ServerContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response); - }; - template - class WithAsyncMethod_SubmitDdlTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SubmitDdlTask() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_SubmitDdlTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSubmitDdlTask(::grpc::ServerContext* context, ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::SubmitDdlTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_SubmitDdlTask AsyncService; - template - class WithCallbackMethod_SubmitDdlTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_SubmitDdlTask() { - ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::SubmitDdlTaskRequest* request, ::greptime::v1::meta::SubmitDdlTaskResponse* response) { return this->SubmitDdlTask(context, request, response); }));} - void SetMessageAllocatorFor_SubmitDdlTask( - ::grpc::MessageAllocator< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_SubmitDdlTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SubmitDdlTask( - ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) { return nullptr; } - }; - typedef WithCallbackMethod_SubmitDdlTask CallbackService; - typedef CallbackService ExperimentalCallbackService; - template - class WithGenericMethod_SubmitDdlTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SubmitDdlTask() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_SubmitDdlTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_SubmitDdlTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SubmitDdlTask() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_SubmitDdlTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSubmitDdlTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawCallbackMethod_SubmitDdlTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_SubmitDdlTask() { - ::grpc::Service::MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SubmitDdlTask(context, request, response); })); - } - ~WithRawCallbackMethod_SubmitDdlTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SubmitDdlTask( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithStreamedUnaryMethod_SubmitDdlTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SubmitDdlTask() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< - ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::greptime::v1::meta::SubmitDdlTaskRequest, ::greptime::v1::meta::SubmitDdlTaskResponse>* streamer) { - return this->StreamedSubmitDdlTask(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SubmitDdlTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SubmitDdlTask(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::SubmitDdlTaskRequest* /*request*/, ::greptime::v1::meta::SubmitDdlTaskResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSubmitDdlTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::SubmitDdlTaskRequest,::greptime::v1::meta::SubmitDdlTaskResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_SubmitDdlTask StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_SubmitDdlTask StreamedService; -}; - } // namespace meta } // namespace v1 } // namespace greptime diff --git a/c++/greptime/v1/meta/ddl.pb.cc b/c++/greptime/v1/meta/ddl.pb.cc index 9ce8c58a..42c1b620 100644 --- a/c++/greptime/v1/meta/ddl.pb.cc +++ b/c++/greptime/v1/meta/ddl.pb.cc @@ -116,37 +116,37 @@ struct TruncateTableTaskDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_; -PROTOBUF_CONSTEXPR SubmitDdlTaskRequest::SubmitDdlTaskRequest( +PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.header_)*/nullptr , /*decltype(_impl_.task_)*/{} , /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._oneof_case_)*/{}} {} -struct SubmitDdlTaskRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitDdlTaskRequestDefaultTypeInternal() +struct DdlTaskRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR DdlTaskRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitDdlTaskRequestDefaultTypeInternal() {} + ~DdlTaskRequestDefaultTypeInternal() {} union { - SubmitDdlTaskRequest _instance; + DdlTaskRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitDdlTaskRequestDefaultTypeInternal _SubmitDdlTaskRequest_default_instance_; -PROTOBUF_CONSTEXPR SubmitDdlTaskResponse::SubmitDdlTaskResponse( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DdlTaskRequestDefaultTypeInternal _DdlTaskRequest_default_instance_; +PROTOBUF_CONSTEXPR DdlTaskResponse::DdlTaskResponse( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.table_ids_)*/{} - , /*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.pid_)*/nullptr , /*decltype(_impl_.table_id_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} -struct SubmitDdlTaskResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitDdlTaskResponseDefaultTypeInternal() +struct DdlTaskResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR DdlTaskResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitDdlTaskResponseDefaultTypeInternal() {} + ~DdlTaskResponseDefaultTypeInternal() {} union { - SubmitDdlTaskResponse _instance; + DdlTaskResponse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitDdlTaskResponseDefaultTypeInternal _SubmitDdlTaskResponse_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DdlTaskResponseDefaultTypeInternal _DdlTaskResponse_default_instance_; } // namespace meta } // namespace v1 } // namespace greptime @@ -207,12 +207,12 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TruncateTableTask, _impl_.truncate_table_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_._oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.header_), ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, @@ -220,17 +220,17 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskRequest, _impl_.task_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.task_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.table_id_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::SubmitDdlTaskResponse, _impl_.table_ids_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.pid_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.table_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _impl_.table_ids_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::meta::CreateTableTask)}, @@ -240,8 +240,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 30, -1, -1, sizeof(::greptime::v1::meta::AlterTableTask)}, { 37, -1, -1, sizeof(::greptime::v1::meta::AlterTableTasks)}, { 44, -1, -1, sizeof(::greptime::v1::meta::TruncateTableTask)}, - { 51, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskRequest)}, - { 66, -1, -1, sizeof(::greptime::v1::meta::SubmitDdlTaskResponse)}, + { 51, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)}, + { 66, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -252,8 +252,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_AlterTableTask_default_instance_._instance, &::greptime::v1::meta::_AlterTableTasks_default_instance_._instance, &::greptime::v1::meta::_TruncateTableTask_default_instance_._instance, - &::greptime::v1::meta::_SubmitDdlTaskRequest_default_instance_._instance, - &::greptime::v1::meta::_SubmitDdlTaskResponse_default_instance_._instance, + &::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance, + &::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -274,30 +274,27 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB "sks\030\001 \003(\0132 .greptime.v1.meta.AlterTableT" "ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab" "le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr" - "\"\215\004\n\024SubmitDdlTaskRequest\022/\n\006header\030\001 \001(" - "\0132\037.greptime.v1.meta.RequestHeader\022>\n\021cr" - "eate_table_task\030\002 \001(\0132!.greptime.v1.meta" - ".CreateTableTaskH\000\022:\n\017drop_table_task\030\003 " - "\001(\0132\037.greptime.v1.meta.DropTableTaskH\000\022<" - "\n\020alter_table_task\030\004 \001(\0132 .greptime.v1.m" - "eta.AlterTableTaskH\000\022B\n\023truncate_table_t" - "ask\030\005 \001(\0132#.greptime.v1.meta.TruncateTab" - "leTaskH\000\022@\n\022create_table_tasks\030\006 \001(\0132\".g" - "reptime.v1.meta.CreateTableTasksH\000\022<\n\020dr" - "op_table_tasks\030\007 \001(\0132 .greptime.v1.meta." - "DropTableTasksH\000\022>\n\021alter_table_tasks\030\010 " - "\001(\0132!.greptime.v1.meta.AlterTableTasksH\000" - "B\006\n\004task\"\261\001\n\025SubmitDdlTaskResponse\0220\n\006he" - "ader\030\001 \001(\0132 .greptime.v1.meta.ResponseHe" - "ader\022\013\n\003key\030\002 \001(\014\022+\n\010table_id\030\004 \001(\0132\031.gr" - "eptime.v1.meta.TableId\022,\n\ttable_ids\030\005 \003(" - "\0132\031.greptime.v1.meta.TableId*#\n\013DdlTaskT" - "ype\022\n\n\006Create\020\000\022\010\n\004Drop\020\0012k\n\007DdlTask\022`\n\r" - "SubmitDdlTask\022&.greptime.v1.meta.SubmitD" - "dlTaskRequest\032\'.greptime.v1.meta.SubmitD" - "dlTaskResponseB\n\021create_t" + "able_task\030\002 \001(\0132!.greptime.v1.meta.Creat" + "eTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037." + "greptime.v1.meta.DropTableTaskH\000\022<\n\020alte" + "r_table_task\030\004 \001(\0132 .greptime.v1.meta.Al" + "terTableTaskH\000\022B\n\023truncate_table_task\030\005 " + "\001(\0132#.greptime.v1.meta.TruncateTableTask" + "H\000\022@\n\022create_table_tasks\030\006 \001(\0132\".greptim" + "e.v1.meta.CreateTableTasksH\000\022<\n\020drop_tab" + "le_tasks\030\007 \001(\0132 .greptime.v1.meta.DropTa" + "bleTasksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!." + "greptime.v1.meta.AlterTableTasksH\000B\006\n\004ta" + "sk\"\312\001\n\017DdlTaskResponse\0220\n\006header\030\001 \001(\0132 " + ".greptime.v1.meta.ResponseHeader\022*\n\003pid\030" + "\002 \001(\0132\035.greptime.v1.meta.ProcedureId\022+\n\010" + "table_id\030\004 \001(\0132\031.greptime.v1.meta.TableI" + "d\022,\n\ttable_ids\030\005 \003(\0132\031.greptime.v1.meta." + "TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Dr" + "op\020\001B_impl_.header_; } const ::greptime::v1::meta::CreateTableTask& -SubmitDdlTaskRequest::_Internal::create_table_task(const SubmitDdlTaskRequest* msg) { +DdlTaskRequest::_Internal::create_table_task(const DdlTaskRequest* msg) { return *msg->_impl_.task_.create_table_task_; } const ::greptime::v1::meta::DropTableTask& -SubmitDdlTaskRequest::_Internal::drop_table_task(const SubmitDdlTaskRequest* msg) { +DdlTaskRequest::_Internal::drop_table_task(const DdlTaskRequest* msg) { return *msg->_impl_.task_.drop_table_task_; } const ::greptime::v1::meta::AlterTableTask& -SubmitDdlTaskRequest::_Internal::alter_table_task(const SubmitDdlTaskRequest* msg) { +DdlTaskRequest::_Internal::alter_table_task(const DdlTaskRequest* msg) { return *msg->_impl_.task_.alter_table_task_; } const ::greptime::v1::meta::TruncateTableTask& -SubmitDdlTaskRequest::_Internal::truncate_table_task(const SubmitDdlTaskRequest* msg) { +DdlTaskRequest::_Internal::truncate_table_task(const DdlTaskRequest* msg) { return *msg->_impl_.task_.truncate_table_task_; } const ::greptime::v1::meta::CreateTableTasks& -SubmitDdlTaskRequest::_Internal::create_table_tasks(const SubmitDdlTaskRequest* msg) { +DdlTaskRequest::_Internal::create_table_tasks(const DdlTaskRequest* msg) { return *msg->_impl_.task_.create_table_tasks_; } const ::greptime::v1::meta::DropTableTasks& -SubmitDdlTaskRequest::_Internal::drop_table_tasks(const SubmitDdlTaskRequest* msg) { +DdlTaskRequest::_Internal::drop_table_tasks(const DdlTaskRequest* msg) { return *msg->_impl_.task_.drop_table_tasks_; } const ::greptime::v1::meta::AlterTableTasks& -SubmitDdlTaskRequest::_Internal::alter_table_tasks(const SubmitDdlTaskRequest* msg) { +DdlTaskRequest::_Internal::alter_table_tasks(const DdlTaskRequest* msg) { return *msg->_impl_.task_.alter_table_tasks_; } -void SubmitDdlTaskRequest::clear_header() { +void DdlTaskRequest::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } _impl_.header_ = nullptr; } -void SubmitDdlTaskRequest::set_allocated_create_table_task(::greptime::v1::meta::CreateTableTask* create_table_task) { +void DdlTaskRequest::set_allocated_create_table_task(::greptime::v1::meta::CreateTableTask* create_table_task) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_task(); if (create_table_task) { @@ -1837,9 +1834,9 @@ void SubmitDdlTaskRequest::set_allocated_create_table_task(::greptime::v1::meta: set_has_create_table_task(); _impl_.task_.create_table_task_ = create_table_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.create_table_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_table_task) } -void SubmitDdlTaskRequest::set_allocated_drop_table_task(::greptime::v1::meta::DropTableTask* drop_table_task) { +void DdlTaskRequest::set_allocated_drop_table_task(::greptime::v1::meta::DropTableTask* drop_table_task) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_task(); if (drop_table_task) { @@ -1852,9 +1849,9 @@ void SubmitDdlTaskRequest::set_allocated_drop_table_task(::greptime::v1::meta::D set_has_drop_table_task(); _impl_.task_.drop_table_task_ = drop_table_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_table_task) } -void SubmitDdlTaskRequest::set_allocated_alter_table_task(::greptime::v1::meta::AlterTableTask* alter_table_task) { +void DdlTaskRequest::set_allocated_alter_table_task(::greptime::v1::meta::AlterTableTask* alter_table_task) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_task(); if (alter_table_task) { @@ -1867,9 +1864,9 @@ void SubmitDdlTaskRequest::set_allocated_alter_table_task(::greptime::v1::meta:: set_has_alter_table_task(); _impl_.task_.alter_table_task_ = alter_table_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_task) } -void SubmitDdlTaskRequest::set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) { +void DdlTaskRequest::set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_task(); if (truncate_table_task) { @@ -1882,9 +1879,9 @@ void SubmitDdlTaskRequest::set_allocated_truncate_table_task(::greptime::v1::met set_has_truncate_table_task(); _impl_.task_.truncate_table_task_ = truncate_table_task; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.truncate_table_task) } -void SubmitDdlTaskRequest::set_allocated_create_table_tasks(::greptime::v1::meta::CreateTableTasks* create_table_tasks) { +void DdlTaskRequest::set_allocated_create_table_tasks(::greptime::v1::meta::CreateTableTasks* create_table_tasks) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_task(); if (create_table_tasks) { @@ -1897,9 +1894,9 @@ void SubmitDdlTaskRequest::set_allocated_create_table_tasks(::greptime::v1::meta set_has_create_table_tasks(); _impl_.task_.create_table_tasks_ = create_table_tasks; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.create_table_tasks) } -void SubmitDdlTaskRequest::set_allocated_drop_table_tasks(::greptime::v1::meta::DropTableTasks* drop_table_tasks) { +void DdlTaskRequest::set_allocated_drop_table_tasks(::greptime::v1::meta::DropTableTasks* drop_table_tasks) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_task(); if (drop_table_tasks) { @@ -1912,9 +1909,9 @@ void SubmitDdlTaskRequest::set_allocated_drop_table_tasks(::greptime::v1::meta:: set_has_drop_table_tasks(); _impl_.task_.drop_table_tasks_ = drop_table_tasks; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_table_tasks) } -void SubmitDdlTaskRequest::set_allocated_alter_table_tasks(::greptime::v1::meta::AlterTableTasks* alter_table_tasks) { +void DdlTaskRequest::set_allocated_alter_table_tasks(::greptime::v1::meta::AlterTableTasks* alter_table_tasks) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_task(); if (alter_table_tasks) { @@ -1927,17 +1924,17 @@ void SubmitDdlTaskRequest::set_allocated_alter_table_tasks(::greptime::v1::meta: set_has_alter_table_tasks(); _impl_.task_.alter_table_tasks_ = alter_table_tasks; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_tasks) } -SubmitDdlTaskRequest::SubmitDdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DdlTaskRequest::DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.SubmitDdlTaskRequest) + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.DdlTaskRequest) } -SubmitDdlTaskRequest::SubmitDdlTaskRequest(const SubmitDdlTaskRequest& from) +DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - SubmitDdlTaskRequest* const _this = this; (void)_this; + DdlTaskRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.header_){nullptr} , decltype(_impl_.task_){} @@ -1989,10 +1986,10 @@ SubmitDdlTaskRequest::SubmitDdlTaskRequest(const SubmitDdlTaskRequest& from) break; } } - // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.SubmitDdlTaskRequest) + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DdlTaskRequest) } -inline void SubmitDdlTaskRequest::SharedCtor( +inline void DdlTaskRequest::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -2005,8 +2002,8 @@ inline void SubmitDdlTaskRequest::SharedCtor( clear_has_task(); } -SubmitDdlTaskRequest::~SubmitDdlTaskRequest() { - // @@protoc_insertion_point(destructor:greptime.v1.meta.SubmitDdlTaskRequest) +DdlTaskRequest::~DdlTaskRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.DdlTaskRequest) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2014,7 +2011,7 @@ SubmitDdlTaskRequest::~SubmitDdlTaskRequest() { SharedDtor(); } -inline void SubmitDdlTaskRequest::SharedDtor() { +inline void DdlTaskRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.header_; if (has_task()) { @@ -2022,12 +2019,12 @@ inline void SubmitDdlTaskRequest::SharedDtor() { } } -void SubmitDdlTaskRequest::SetCachedSize(int size) const { +void DdlTaskRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void SubmitDdlTaskRequest::clear_task() { -// @@protoc_insertion_point(one_of_clear_start:greptime.v1.meta.SubmitDdlTaskRequest) +void DdlTaskRequest::clear_task() { +// @@protoc_insertion_point(one_of_clear_start:greptime.v1.meta.DdlTaskRequest) switch (task_case()) { case kCreateTableTask: { if (GetArenaForAllocation() == nullptr) { @@ -2079,8 +2076,8 @@ void SubmitDdlTaskRequest::clear_task() { } -void SubmitDdlTaskRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.SubmitDdlTaskRequest) +void DdlTaskRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DdlTaskRequest) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2093,7 +2090,7 @@ void SubmitDdlTaskRequest::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SubmitDdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -2186,9 +2183,9 @@ const char* SubmitDdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseC #undef CHK_ } -uint8_t* SubmitDdlTaskRequest::_InternalSerialize( +uint8_t* DdlTaskRequest::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.SubmitDdlTaskRequest) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DdlTaskRequest) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2252,12 +2249,12 @@ uint8_t* SubmitDdlTaskRequest::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.SubmitDdlTaskRequest) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.DdlTaskRequest) return target; } -size_t SubmitDdlTaskRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.SubmitDdlTaskRequest) +size_t DdlTaskRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DdlTaskRequest) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -2328,17 +2325,17 @@ size_t SubmitDdlTaskRequest::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitDdlTaskRequest::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DdlTaskRequest::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SubmitDdlTaskRequest::MergeImpl + DdlTaskRequest::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitDdlTaskRequest::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DdlTaskRequest::GetClassData() const { return &_class_data_; } -void SubmitDdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.SubmitDdlTaskRequest) +void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DdlTaskRequest) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2390,18 +2387,18 @@ void SubmitDdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, c _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void SubmitDdlTaskRequest::CopyFrom(const SubmitDdlTaskRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.SubmitDdlTaskRequest) +void DdlTaskRequest::CopyFrom(const DdlTaskRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DdlTaskRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool SubmitDdlTaskRequest::IsInitialized() const { +bool DdlTaskRequest::IsInitialized() const { return true; } -void SubmitDdlTaskRequest::InternalSwap(SubmitDdlTaskRequest* other) { +void DdlTaskRequest::InternalSwap(DdlTaskRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.header_, other->_impl_.header_); @@ -2409,7 +2406,7 @@ void SubmitDdlTaskRequest::InternalSwap(SubmitDdlTaskRequest* other) { swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskRequest::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[7]); @@ -2417,88 +2414,90 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskRequest::GetMetadata() const { // =================================================================== -class SubmitDdlTaskResponse::_Internal { +class DdlTaskResponse::_Internal { public: - static const ::greptime::v1::meta::ResponseHeader& header(const SubmitDdlTaskResponse* msg); - static const ::greptime::v1::meta::TableId& table_id(const SubmitDdlTaskResponse* msg); + static const ::greptime::v1::meta::ResponseHeader& header(const DdlTaskResponse* msg); + static const ::greptime::v1::meta::ProcedureId& pid(const DdlTaskResponse* msg); + static const ::greptime::v1::meta::TableId& table_id(const DdlTaskResponse* msg); }; const ::greptime::v1::meta::ResponseHeader& -SubmitDdlTaskResponse::_Internal::header(const SubmitDdlTaskResponse* msg) { +DdlTaskResponse::_Internal::header(const DdlTaskResponse* msg) { return *msg->_impl_.header_; } +const ::greptime::v1::meta::ProcedureId& +DdlTaskResponse::_Internal::pid(const DdlTaskResponse* msg) { + return *msg->_impl_.pid_; +} const ::greptime::v1::meta::TableId& -SubmitDdlTaskResponse::_Internal::table_id(const SubmitDdlTaskResponse* msg) { +DdlTaskResponse::_Internal::table_id(const DdlTaskResponse* msg) { return *msg->_impl_.table_id_; } -void SubmitDdlTaskResponse::clear_header() { +void DdlTaskResponse::clear_header() { if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } _impl_.header_ = nullptr; } -void SubmitDdlTaskResponse::clear_table_id() { +void DdlTaskResponse::clear_pid() { + if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; +} +void DdlTaskResponse::clear_table_id() { if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) { delete _impl_.table_id_; } _impl_.table_id_ = nullptr; } -void SubmitDdlTaskResponse::clear_table_ids() { +void DdlTaskResponse::clear_table_ids() { _impl_.table_ids_.Clear(); } -SubmitDdlTaskResponse::SubmitDdlTaskResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DdlTaskResponse::DdlTaskResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.SubmitDdlTaskResponse) + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.DdlTaskResponse) } -SubmitDdlTaskResponse::SubmitDdlTaskResponse(const SubmitDdlTaskResponse& from) +DdlTaskResponse::DdlTaskResponse(const DdlTaskResponse& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - SubmitDdlTaskResponse* const _this = this; (void)_this; + DdlTaskResponse* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.table_ids_){from._impl_.table_ids_} - , decltype(_impl_.key_){} , decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} , decltype(_impl_.table_id_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_key().empty()) { - _this->_impl_.key_.Set(from._internal_key(), - _this->GetArenaForAllocation()); - } if (from._internal_has_header()) { _this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_); } + if (from._internal_has_pid()) { + _this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_); + } if (from._internal_has_table_id()) { _this->_impl_.table_id_ = new ::greptime::v1::meta::TableId(*from._impl_.table_id_); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.SubmitDdlTaskResponse) + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DdlTaskResponse) } -inline void SubmitDdlTaskResponse::SharedCtor( +inline void DdlTaskResponse::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.table_ids_){arena} - , decltype(_impl_.key_){} , decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} , decltype(_impl_.table_id_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -SubmitDdlTaskResponse::~SubmitDdlTaskResponse() { - // @@protoc_insertion_point(destructor:greptime.v1.meta.SubmitDdlTaskResponse) +DdlTaskResponse::~DdlTaskResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.DdlTaskResponse) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -2506,30 +2505,33 @@ SubmitDdlTaskResponse::~SubmitDdlTaskResponse() { SharedDtor(); } -inline void SubmitDdlTaskResponse::SharedDtor() { +inline void DdlTaskResponse::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.table_ids_.~RepeatedPtrField(); - _impl_.key_.Destroy(); if (this != internal_default_instance()) delete _impl_.header_; + if (this != internal_default_instance()) delete _impl_.pid_; if (this != internal_default_instance()) delete _impl_.table_id_; } -void SubmitDdlTaskResponse::SetCachedSize(int size) const { +void DdlTaskResponse::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void SubmitDdlTaskResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.SubmitDdlTaskResponse) +void DdlTaskResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DdlTaskResponse) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.table_ids_.Clear(); - _impl_.key_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { delete _impl_.header_; } _impl_.header_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) { delete _impl_.table_id_; } @@ -2537,7 +2539,7 @@ void SubmitDdlTaskResponse::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SubmitDdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -2551,11 +2553,10 @@ const char* SubmitDdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::Parse } else goto handle_unusual; continue; - // bytes key = 2; + // .greptime.v1.meta.ProcedureId pid = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_key(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_mutable_pid(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -2604,9 +2605,9 @@ const char* SubmitDdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::Parse #undef CHK_ } -uint8_t* SubmitDdlTaskResponse::_InternalSerialize( +uint8_t* DdlTaskResponse::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.SubmitDdlTaskResponse) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DdlTaskResponse) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -2617,10 +2618,11 @@ uint8_t* SubmitDdlTaskResponse::_InternalSerialize( _Internal::header(this).GetCachedSize(), target, stream); } - // bytes key = 2; - if (!this->_internal_key().empty()) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_key(), target); + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pid(this), + _Internal::pid(this).GetCachedSize(), target, stream); } // .greptime.v1.meta.TableId table_id = 4; @@ -2642,12 +2644,12 @@ uint8_t* SubmitDdlTaskResponse::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.SubmitDdlTaskResponse) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.DdlTaskResponse) return target; } -size_t SubmitDdlTaskResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.SubmitDdlTaskResponse) +size_t DdlTaskResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DdlTaskResponse) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -2661,13 +2663,6 @@ size_t SubmitDdlTaskResponse::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - // bytes key = 2; - if (!this->_internal_key().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_key()); - } - // .greptime.v1.meta.ResponseHeader header = 1; if (this->_internal_has_header()) { total_size += 1 + @@ -2675,6 +2670,13 @@ size_t SubmitDdlTaskResponse::ByteSizeLong() const { *_impl_.header_); } + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pid_); + } + // .greptime.v1.meta.TableId table_id = 4; if (this->_internal_has_table_id()) { total_size += 1 + @@ -2685,29 +2687,30 @@ size_t SubmitDdlTaskResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SubmitDdlTaskResponse::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DdlTaskResponse::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SubmitDdlTaskResponse::MergeImpl + DdlTaskResponse::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SubmitDdlTaskResponse::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DdlTaskResponse::GetClassData() const { return &_class_data_; } -void SubmitDdlTaskResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.SubmitDdlTaskResponse) +void DdlTaskResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DdlTaskResponse) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.table_ids_.MergeFrom(from._impl_.table_ids_); - if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); - } if (from._internal_has_header()) { _this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom( from._internal_header()); } + if (from._internal_has_pid()) { + _this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom( + from._internal_pid()); + } if (from._internal_has_table_id()) { _this->_internal_mutable_table_id()->::greptime::v1::meta::TableId::MergeFrom( from._internal_table_id()); @@ -2715,36 +2718,30 @@ void SubmitDdlTaskResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void SubmitDdlTaskResponse::CopyFrom(const SubmitDdlTaskResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.SubmitDdlTaskResponse) +void DdlTaskResponse::CopyFrom(const DdlTaskResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DdlTaskResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool SubmitDdlTaskResponse::IsInitialized() const { +bool DdlTaskResponse::IsInitialized() const { return true; } -void SubmitDdlTaskResponse::InternalSwap(SubmitDdlTaskResponse* other) { +void DdlTaskResponse::InternalSwap(DdlTaskResponse* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.table_ids_.InternalSwap(&other->_impl_.table_ids_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.key_, lhs_arena, - &other->_impl_.key_, rhs_arena - ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SubmitDdlTaskResponse, _impl_.table_id_) - + sizeof(SubmitDdlTaskResponse::_impl_.table_id_) - - PROTOBUF_FIELD_OFFSET(SubmitDdlTaskResponse, _impl_.header_)>( + PROTOBUF_FIELD_OFFSET(DdlTaskResponse, _impl_.table_id_) + + sizeof(DdlTaskResponse::_impl_.table_id_) + - PROTOBUF_FIELD_OFFSET(DdlTaskResponse, _impl_.header_)>( reinterpret_cast(&_impl_.header_), reinterpret_cast(&other->_impl_.header_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SubmitDdlTaskResponse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[8]); @@ -2783,13 +2780,13 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage< ::greptime::v1::meta::TruncateTableTask >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::TruncateTableTask >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::meta::SubmitDdlTaskRequest* -Arena::CreateMaybeMessage< ::greptime::v1::meta::SubmitDdlTaskRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::meta::SubmitDdlTaskRequest >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskRequest* +Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskRequest >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::meta::SubmitDdlTaskResponse* -Arena::CreateMaybeMessage< ::greptime::v1::meta::SubmitDdlTaskResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::meta::SubmitDdlTaskResponse >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskResponse* +Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskResponse >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/c++/greptime/v1/meta/ddl.pb.h b/c++/greptime/v1/meta/ddl.pb.h index de527ac4..071ac32d 100644 --- a/c++/greptime/v1/meta/ddl.pb.h +++ b/c++/greptime/v1/meta/ddl.pb.h @@ -63,18 +63,18 @@ extern CreateTableTaskDefaultTypeInternal _CreateTableTask_default_instance_; class CreateTableTasks; struct CreateTableTasksDefaultTypeInternal; extern CreateTableTasksDefaultTypeInternal _CreateTableTasks_default_instance_; +class DdlTaskRequest; +struct DdlTaskRequestDefaultTypeInternal; +extern DdlTaskRequestDefaultTypeInternal _DdlTaskRequest_default_instance_; +class DdlTaskResponse; +struct DdlTaskResponseDefaultTypeInternal; +extern DdlTaskResponseDefaultTypeInternal _DdlTaskResponse_default_instance_; class DropTableTask; struct DropTableTaskDefaultTypeInternal; extern DropTableTaskDefaultTypeInternal _DropTableTask_default_instance_; class DropTableTasks; struct DropTableTasksDefaultTypeInternal; extern DropTableTasksDefaultTypeInternal _DropTableTasks_default_instance_; -class SubmitDdlTaskRequest; -struct SubmitDdlTaskRequestDefaultTypeInternal; -extern SubmitDdlTaskRequestDefaultTypeInternal _SubmitDdlTaskRequest_default_instance_; -class SubmitDdlTaskResponse; -struct SubmitDdlTaskResponseDefaultTypeInternal; -extern SubmitDdlTaskResponseDefaultTypeInternal _SubmitDdlTaskResponse_default_instance_; class TruncateTableTask; struct TruncateTableTaskDefaultTypeInternal; extern TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_; @@ -86,10 +86,10 @@ template<> ::greptime::v1::meta::AlterTableTask* Arena::CreateMaybeMessage<::gre template<> ::greptime::v1::meta::AlterTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::AlterTableTasks>(Arena*); template<> ::greptime::v1::meta::CreateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTask>(Arena*); template<> ::greptime::v1::meta::CreateTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTasks>(Arena*); +template<> ::greptime::v1::meta::DdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskRequest>(Arena*); +template<> ::greptime::v1::meta::DdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskResponse>(Arena*); template<> ::greptime::v1::meta::DropTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTask>(Arena*); template<> ::greptime::v1::meta::DropTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTasks>(Arena*); -template<> ::greptime::v1::meta::SubmitDdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::SubmitDdlTaskRequest>(Arena*); -template<> ::greptime::v1::meta::SubmitDdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::SubmitDdlTaskResponse>(Arena*); template<> ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::TruncateTableTask>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -1258,24 +1258,24 @@ class TruncateTableTask final : }; // ------------------------------------------------------------------- -class SubmitDdlTaskRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.SubmitDdlTaskRequest) */ { +class DdlTaskRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DdlTaskRequest) */ { public: - inline SubmitDdlTaskRequest() : SubmitDdlTaskRequest(nullptr) {} - ~SubmitDdlTaskRequest() override; - explicit PROTOBUF_CONSTEXPR SubmitDdlTaskRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DdlTaskRequest() : DdlTaskRequest(nullptr) {} + ~DdlTaskRequest() override; + explicit PROTOBUF_CONSTEXPR DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - SubmitDdlTaskRequest(const SubmitDdlTaskRequest& from); - SubmitDdlTaskRequest(SubmitDdlTaskRequest&& from) noexcept - : SubmitDdlTaskRequest() { + DdlTaskRequest(const DdlTaskRequest& from); + DdlTaskRequest(DdlTaskRequest&& from) noexcept + : DdlTaskRequest() { *this = ::std::move(from); } - inline SubmitDdlTaskRequest& operator=(const SubmitDdlTaskRequest& from) { + inline DdlTaskRequest& operator=(const DdlTaskRequest& from) { CopyFrom(from); return *this; } - inline SubmitDdlTaskRequest& operator=(SubmitDdlTaskRequest&& from) noexcept { + inline DdlTaskRequest& operator=(DdlTaskRequest&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1298,7 +1298,7 @@ class SubmitDdlTaskRequest final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubmitDdlTaskRequest& default_instance() { + static const DdlTaskRequest& default_instance() { return *internal_default_instance(); } enum TaskCase { @@ -1312,17 +1312,17 @@ class SubmitDdlTaskRequest final : TASK_NOT_SET = 0, }; - static inline const SubmitDdlTaskRequest* internal_default_instance() { - return reinterpret_cast( - &_SubmitDdlTaskRequest_default_instance_); + static inline const DdlTaskRequest* internal_default_instance() { + return reinterpret_cast( + &_DdlTaskRequest_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(SubmitDdlTaskRequest& a, SubmitDdlTaskRequest& b) { + friend void swap(DdlTaskRequest& a, DdlTaskRequest& b) { a.Swap(&b); } - inline void Swap(SubmitDdlTaskRequest* other) { + inline void Swap(DdlTaskRequest* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1335,7 +1335,7 @@ class SubmitDdlTaskRequest final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitDdlTaskRequest* other) { + void UnsafeArenaSwap(DdlTaskRequest* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1343,14 +1343,14 @@ class SubmitDdlTaskRequest final : // implements Message ---------------------------------------------- - SubmitDdlTaskRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DdlTaskRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SubmitDdlTaskRequest& from); + void CopyFrom(const DdlTaskRequest& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SubmitDdlTaskRequest& from) { - SubmitDdlTaskRequest::MergeImpl(*this, from); + void MergeFrom( const DdlTaskRequest& from) { + DdlTaskRequest::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -1368,15 +1368,15 @@ class SubmitDdlTaskRequest final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SubmitDdlTaskRequest* other); + void InternalSwap(DdlTaskRequest* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.meta.SubmitDdlTaskRequest"; + return "greptime.v1.meta.DdlTaskRequest"; } protected: - explicit SubmitDdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1545,7 +1545,7 @@ class SubmitDdlTaskRequest final : void clear_task(); TaskCase task_case() const; - // @@protoc_insertion_point(class_scope:greptime.v1.meta.SubmitDdlTaskRequest) + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest) private: class _Internal; void set_has_create_table_task(); @@ -1584,24 +1584,24 @@ class SubmitDdlTaskRequest final : }; // ------------------------------------------------------------------- -class SubmitDdlTaskResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.SubmitDdlTaskResponse) */ { +class DdlTaskResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DdlTaskResponse) */ { public: - inline SubmitDdlTaskResponse() : SubmitDdlTaskResponse(nullptr) {} - ~SubmitDdlTaskResponse() override; - explicit PROTOBUF_CONSTEXPR SubmitDdlTaskResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DdlTaskResponse() : DdlTaskResponse(nullptr) {} + ~DdlTaskResponse() override; + explicit PROTOBUF_CONSTEXPR DdlTaskResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - SubmitDdlTaskResponse(const SubmitDdlTaskResponse& from); - SubmitDdlTaskResponse(SubmitDdlTaskResponse&& from) noexcept - : SubmitDdlTaskResponse() { + DdlTaskResponse(const DdlTaskResponse& from); + DdlTaskResponse(DdlTaskResponse&& from) noexcept + : DdlTaskResponse() { *this = ::std::move(from); } - inline SubmitDdlTaskResponse& operator=(const SubmitDdlTaskResponse& from) { + inline DdlTaskResponse& operator=(const DdlTaskResponse& from) { CopyFrom(from); return *this; } - inline SubmitDdlTaskResponse& operator=(SubmitDdlTaskResponse&& from) noexcept { + inline DdlTaskResponse& operator=(DdlTaskResponse&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -1624,20 +1624,20 @@ class SubmitDdlTaskResponse final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SubmitDdlTaskResponse& default_instance() { + static const DdlTaskResponse& default_instance() { return *internal_default_instance(); } - static inline const SubmitDdlTaskResponse* internal_default_instance() { - return reinterpret_cast( - &_SubmitDdlTaskResponse_default_instance_); + static inline const DdlTaskResponse* internal_default_instance() { + return reinterpret_cast( + &_DdlTaskResponse_default_instance_); } static constexpr int kIndexInFileMessages = 8; - friend void swap(SubmitDdlTaskResponse& a, SubmitDdlTaskResponse& b) { + friend void swap(DdlTaskResponse& a, DdlTaskResponse& b) { a.Swap(&b); } - inline void Swap(SubmitDdlTaskResponse* other) { + inline void Swap(DdlTaskResponse* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -1650,7 +1650,7 @@ class SubmitDdlTaskResponse final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SubmitDdlTaskResponse* other) { + void UnsafeArenaSwap(DdlTaskResponse* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -1658,14 +1658,14 @@ class SubmitDdlTaskResponse final : // implements Message ---------------------------------------------- - SubmitDdlTaskResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DdlTaskResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SubmitDdlTaskResponse& from); + void CopyFrom(const DdlTaskResponse& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SubmitDdlTaskResponse& from) { - SubmitDdlTaskResponse::MergeImpl(*this, from); + void MergeFrom( const DdlTaskResponse& from) { + DdlTaskResponse::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -1683,15 +1683,15 @@ class SubmitDdlTaskResponse final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SubmitDdlTaskResponse* other); + void InternalSwap(DdlTaskResponse* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.meta.SubmitDdlTaskResponse"; + return "greptime.v1.meta.DdlTaskResponse"; } protected: - explicit SubmitDdlTaskResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DdlTaskResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -1706,8 +1706,8 @@ class SubmitDdlTaskResponse final : enum : int { kTableIdsFieldNumber = 5, - kKeyFieldNumber = 2, kHeaderFieldNumber = 1, + kPidFieldNumber = 2, kTableIdFieldNumber = 4, }; // repeated .greptime.v1.meta.TableId table_ids = 5; @@ -1728,20 +1728,6 @@ class SubmitDdlTaskResponse final : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId >& table_ids() const; - // bytes key = 2; - void clear_key(); - const std::string& key() const; - template - void set_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_key(); - PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* key); - private: - const std::string& _internal_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); - std::string* _internal_mutable_key(); - public: - // .greptime.v1.meta.ResponseHeader header = 1; bool has_header() const; private: @@ -1760,6 +1746,24 @@ class SubmitDdlTaskResponse final : ::greptime::v1::meta::ResponseHeader* header); ::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header(); + // .greptime.v1.meta.ProcedureId pid = 2; + bool has_pid() const; + private: + bool _internal_has_pid() const; + public: + void clear_pid(); + const ::greptime::v1::meta::ProcedureId& pid() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ProcedureId* release_pid(); + ::greptime::v1::meta::ProcedureId* mutable_pid(); + void set_allocated_pid(::greptime::v1::meta::ProcedureId* pid); + private: + const ::greptime::v1::meta::ProcedureId& _internal_pid() const; + ::greptime::v1::meta::ProcedureId* _internal_mutable_pid(); + public: + void unsafe_arena_set_allocated_pid( + ::greptime::v1::meta::ProcedureId* pid); + ::greptime::v1::meta::ProcedureId* unsafe_arena_release_pid(); + // .greptime.v1.meta.TableId table_id = 4; bool has_table_id() const; private: @@ -1778,7 +1782,7 @@ class SubmitDdlTaskResponse final : ::greptime::v1::meta::TableId* table_id); ::greptime::v1::meta::TableId* unsafe_arena_release_table_id(); - // @@protoc_insertion_point(class_scope:greptime.v1.meta.SubmitDdlTaskResponse) + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskResponse) private: class _Internal; @@ -1787,8 +1791,8 @@ class SubmitDdlTaskResponse final : typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId > table_ids_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; ::greptime::v1::meta::ResponseHeader* header_; + ::greptime::v1::meta::ProcedureId* pid_; ::greptime::v1::meta::TableId* table_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -2379,25 +2383,25 @@ inline void TruncateTableTask::set_allocated_truncate_table(::greptime::v1::Trun // ------------------------------------------------------------------- -// SubmitDdlTaskRequest +// DdlTaskRequest // .greptime.v1.meta.RequestHeader header = 1; -inline bool SubmitDdlTaskRequest::_internal_has_header() const { +inline bool DdlTaskRequest::_internal_has_header() const { return this != internal_default_instance() && _impl_.header_ != nullptr; } -inline bool SubmitDdlTaskRequest::has_header() const { +inline bool DdlTaskRequest::has_header() const { return _internal_has_header(); } -inline const ::greptime::v1::meta::RequestHeader& SubmitDdlTaskRequest::_internal_header() const { +inline const ::greptime::v1::meta::RequestHeader& DdlTaskRequest::_internal_header() const { const ::greptime::v1::meta::RequestHeader* p = _impl_.header_; return p != nullptr ? *p : reinterpret_cast( ::greptime::v1::meta::_RequestHeader_default_instance_); } -inline const ::greptime::v1::meta::RequestHeader& SubmitDdlTaskRequest::header() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.header) +inline const ::greptime::v1::meta::RequestHeader& DdlTaskRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.header) return _internal_header(); } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_header( +inline void DdlTaskRequest::unsafe_arena_set_allocated_header( ::greptime::v1::meta::RequestHeader* header) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); @@ -2408,9 +2412,9 @@ inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_header( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.header) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.header) } -inline ::greptime::v1::meta::RequestHeader* SubmitDdlTaskRequest::release_header() { +inline ::greptime::v1::meta::RequestHeader* DdlTaskRequest::release_header() { ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; _impl_.header_ = nullptr; @@ -2425,14 +2429,14 @@ inline ::greptime::v1::meta::RequestHeader* SubmitDdlTaskRequest::release_header #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::meta::RequestHeader* SubmitDdlTaskRequest::unsafe_arena_release_header() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.header) +inline ::greptime::v1::meta::RequestHeader* DdlTaskRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.header) ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; _impl_.header_ = nullptr; return temp; } -inline ::greptime::v1::meta::RequestHeader* SubmitDdlTaskRequest::_internal_mutable_header() { +inline ::greptime::v1::meta::RequestHeader* DdlTaskRequest::_internal_mutable_header() { if (_impl_.header_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation()); @@ -2440,12 +2444,12 @@ inline ::greptime::v1::meta::RequestHeader* SubmitDdlTaskRequest::_internal_muta } return _impl_.header_; } -inline ::greptime::v1::meta::RequestHeader* SubmitDdlTaskRequest::mutable_header() { +inline ::greptime::v1::meta::RequestHeader* DdlTaskRequest::mutable_header() { ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.header) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.header) return _msg; } -inline void SubmitDdlTaskRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) { +inline void DdlTaskRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); @@ -2463,20 +2467,20 @@ inline void SubmitDdlTaskRequest::set_allocated_header(::greptime::v1::meta::Req } _impl_.header_ = header; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.header) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.header) } // .greptime.v1.meta.CreateTableTask create_table_task = 2; -inline bool SubmitDdlTaskRequest::_internal_has_create_table_task() const { +inline bool DdlTaskRequest::_internal_has_create_table_task() const { return task_case() == kCreateTableTask; } -inline bool SubmitDdlTaskRequest::has_create_table_task() const { +inline bool DdlTaskRequest::has_create_table_task() const { return _internal_has_create_table_task(); } -inline void SubmitDdlTaskRequest::set_has_create_table_task() { +inline void DdlTaskRequest::set_has_create_table_task() { _impl_._oneof_case_[0] = kCreateTableTask; } -inline void SubmitDdlTaskRequest::clear_create_table_task() { +inline void DdlTaskRequest::clear_create_table_task() { if (_internal_has_create_table_task()) { if (GetArenaForAllocation() == nullptr) { delete _impl_.task_.create_table_task_; @@ -2484,8 +2488,8 @@ inline void SubmitDdlTaskRequest::clear_create_table_task() { clear_has_task(); } } -inline ::greptime::v1::meta::CreateTableTask* SubmitDdlTaskRequest::release_create_table_task() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.create_table_task) +inline ::greptime::v1::meta::CreateTableTask* DdlTaskRequest::release_create_table_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.create_table_task) if (_internal_has_create_table_task()) { clear_has_task(); ::greptime::v1::meta::CreateTableTask* temp = _impl_.task_.create_table_task_; @@ -2498,17 +2502,17 @@ inline ::greptime::v1::meta::CreateTableTask* SubmitDdlTaskRequest::release_crea return nullptr; } } -inline const ::greptime::v1::meta::CreateTableTask& SubmitDdlTaskRequest::_internal_create_table_task() const { +inline const ::greptime::v1::meta::CreateTableTask& DdlTaskRequest::_internal_create_table_task() const { return _internal_has_create_table_task() ? *_impl_.task_.create_table_task_ : reinterpret_cast< ::greptime::v1::meta::CreateTableTask&>(::greptime::v1::meta::_CreateTableTask_default_instance_); } -inline const ::greptime::v1::meta::CreateTableTask& SubmitDdlTaskRequest::create_table_task() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.create_table_task) +inline const ::greptime::v1::meta::CreateTableTask& DdlTaskRequest::create_table_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.create_table_task) return _internal_create_table_task(); } -inline ::greptime::v1::meta::CreateTableTask* SubmitDdlTaskRequest::unsafe_arena_release_create_table_task() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.create_table_task) +inline ::greptime::v1::meta::CreateTableTask* DdlTaskRequest::unsafe_arena_release_create_table_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.create_table_task) if (_internal_has_create_table_task()) { clear_has_task(); ::greptime::v1::meta::CreateTableTask* temp = _impl_.task_.create_table_task_; @@ -2518,15 +2522,15 @@ inline ::greptime::v1::meta::CreateTableTask* SubmitDdlTaskRequest::unsafe_arena return nullptr; } } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_create_table_task(::greptime::v1::meta::CreateTableTask* create_table_task) { +inline void DdlTaskRequest::unsafe_arena_set_allocated_create_table_task(::greptime::v1::meta::CreateTableTask* create_table_task) { clear_task(); if (create_table_task) { set_has_create_table_task(); _impl_.task_.create_table_task_ = create_table_task; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.create_table_task) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.create_table_task) } -inline ::greptime::v1::meta::CreateTableTask* SubmitDdlTaskRequest::_internal_mutable_create_table_task() { +inline ::greptime::v1::meta::CreateTableTask* DdlTaskRequest::_internal_mutable_create_table_task() { if (!_internal_has_create_table_task()) { clear_task(); set_has_create_table_task(); @@ -2534,23 +2538,23 @@ inline ::greptime::v1::meta::CreateTableTask* SubmitDdlTaskRequest::_internal_mu } return _impl_.task_.create_table_task_; } -inline ::greptime::v1::meta::CreateTableTask* SubmitDdlTaskRequest::mutable_create_table_task() { +inline ::greptime::v1::meta::CreateTableTask* DdlTaskRequest::mutable_create_table_task() { ::greptime::v1::meta::CreateTableTask* _msg = _internal_mutable_create_table_task(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.create_table_task) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.create_table_task) return _msg; } // .greptime.v1.meta.DropTableTask drop_table_task = 3; -inline bool SubmitDdlTaskRequest::_internal_has_drop_table_task() const { +inline bool DdlTaskRequest::_internal_has_drop_table_task() const { return task_case() == kDropTableTask; } -inline bool SubmitDdlTaskRequest::has_drop_table_task() const { +inline bool DdlTaskRequest::has_drop_table_task() const { return _internal_has_drop_table_task(); } -inline void SubmitDdlTaskRequest::set_has_drop_table_task() { +inline void DdlTaskRequest::set_has_drop_table_task() { _impl_._oneof_case_[0] = kDropTableTask; } -inline void SubmitDdlTaskRequest::clear_drop_table_task() { +inline void DdlTaskRequest::clear_drop_table_task() { if (_internal_has_drop_table_task()) { if (GetArenaForAllocation() == nullptr) { delete _impl_.task_.drop_table_task_; @@ -2558,8 +2562,8 @@ inline void SubmitDdlTaskRequest::clear_drop_table_task() { clear_has_task(); } } -inline ::greptime::v1::meta::DropTableTask* SubmitDdlTaskRequest::release_drop_table_task() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task) +inline ::greptime::v1::meta::DropTableTask* DdlTaskRequest::release_drop_table_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.drop_table_task) if (_internal_has_drop_table_task()) { clear_has_task(); ::greptime::v1::meta::DropTableTask* temp = _impl_.task_.drop_table_task_; @@ -2572,17 +2576,17 @@ inline ::greptime::v1::meta::DropTableTask* SubmitDdlTaskRequest::release_drop_t return nullptr; } } -inline const ::greptime::v1::meta::DropTableTask& SubmitDdlTaskRequest::_internal_drop_table_task() const { +inline const ::greptime::v1::meta::DropTableTask& DdlTaskRequest::_internal_drop_table_task() const { return _internal_has_drop_table_task() ? *_impl_.task_.drop_table_task_ : reinterpret_cast< ::greptime::v1::meta::DropTableTask&>(::greptime::v1::meta::_DropTableTask_default_instance_); } -inline const ::greptime::v1::meta::DropTableTask& SubmitDdlTaskRequest::drop_table_task() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task) +inline const ::greptime::v1::meta::DropTableTask& DdlTaskRequest::drop_table_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.drop_table_task) return _internal_drop_table_task(); } -inline ::greptime::v1::meta::DropTableTask* SubmitDdlTaskRequest::unsafe_arena_release_drop_table_task() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task) +inline ::greptime::v1::meta::DropTableTask* DdlTaskRequest::unsafe_arena_release_drop_table_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.drop_table_task) if (_internal_has_drop_table_task()) { clear_has_task(); ::greptime::v1::meta::DropTableTask* temp = _impl_.task_.drop_table_task_; @@ -2592,15 +2596,15 @@ inline ::greptime::v1::meta::DropTableTask* SubmitDdlTaskRequest::unsafe_arena_r return nullptr; } } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_drop_table_task(::greptime::v1::meta::DropTableTask* drop_table_task) { +inline void DdlTaskRequest::unsafe_arena_set_allocated_drop_table_task(::greptime::v1::meta::DropTableTask* drop_table_task) { clear_task(); if (drop_table_task) { set_has_drop_table_task(); _impl_.task_.drop_table_task_ = drop_table_task; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_table_task) } -inline ::greptime::v1::meta::DropTableTask* SubmitDdlTaskRequest::_internal_mutable_drop_table_task() { +inline ::greptime::v1::meta::DropTableTask* DdlTaskRequest::_internal_mutable_drop_table_task() { if (!_internal_has_drop_table_task()) { clear_task(); set_has_drop_table_task(); @@ -2608,23 +2612,23 @@ inline ::greptime::v1::meta::DropTableTask* SubmitDdlTaskRequest::_internal_muta } return _impl_.task_.drop_table_task_; } -inline ::greptime::v1::meta::DropTableTask* SubmitDdlTaskRequest::mutable_drop_table_task() { +inline ::greptime::v1::meta::DropTableTask* DdlTaskRequest::mutable_drop_table_task() { ::greptime::v1::meta::DropTableTask* _msg = _internal_mutable_drop_table_task(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.drop_table_task) return _msg; } // .greptime.v1.meta.AlterTableTask alter_table_task = 4; -inline bool SubmitDdlTaskRequest::_internal_has_alter_table_task() const { +inline bool DdlTaskRequest::_internal_has_alter_table_task() const { return task_case() == kAlterTableTask; } -inline bool SubmitDdlTaskRequest::has_alter_table_task() const { +inline bool DdlTaskRequest::has_alter_table_task() const { return _internal_has_alter_table_task(); } -inline void SubmitDdlTaskRequest::set_has_alter_table_task() { +inline void DdlTaskRequest::set_has_alter_table_task() { _impl_._oneof_case_[0] = kAlterTableTask; } -inline void SubmitDdlTaskRequest::clear_alter_table_task() { +inline void DdlTaskRequest::clear_alter_table_task() { if (_internal_has_alter_table_task()) { if (GetArenaForAllocation() == nullptr) { delete _impl_.task_.alter_table_task_; @@ -2632,8 +2636,8 @@ inline void SubmitDdlTaskRequest::clear_alter_table_task() { clear_has_task(); } } -inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::release_alter_table_task() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task) +inline ::greptime::v1::meta::AlterTableTask* DdlTaskRequest::release_alter_table_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.alter_table_task) if (_internal_has_alter_table_task()) { clear_has_task(); ::greptime::v1::meta::AlterTableTask* temp = _impl_.task_.alter_table_task_; @@ -2646,17 +2650,17 @@ inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::release_alter return nullptr; } } -inline const ::greptime::v1::meta::AlterTableTask& SubmitDdlTaskRequest::_internal_alter_table_task() const { +inline const ::greptime::v1::meta::AlterTableTask& DdlTaskRequest::_internal_alter_table_task() const { return _internal_has_alter_table_task() ? *_impl_.task_.alter_table_task_ : reinterpret_cast< ::greptime::v1::meta::AlterTableTask&>(::greptime::v1::meta::_AlterTableTask_default_instance_); } -inline const ::greptime::v1::meta::AlterTableTask& SubmitDdlTaskRequest::alter_table_task() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task) +inline const ::greptime::v1::meta::AlterTableTask& DdlTaskRequest::alter_table_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.alter_table_task) return _internal_alter_table_task(); } -inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::unsafe_arena_release_alter_table_task() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task) +inline ::greptime::v1::meta::AlterTableTask* DdlTaskRequest::unsafe_arena_release_alter_table_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.alter_table_task) if (_internal_has_alter_table_task()) { clear_has_task(); ::greptime::v1::meta::AlterTableTask* temp = _impl_.task_.alter_table_task_; @@ -2666,15 +2670,15 @@ inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::unsafe_arena_ return nullptr; } } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_alter_table_task(::greptime::v1::meta::AlterTableTask* alter_table_task) { +inline void DdlTaskRequest::unsafe_arena_set_allocated_alter_table_task(::greptime::v1::meta::AlterTableTask* alter_table_task) { clear_task(); if (alter_table_task) { set_has_alter_table_task(); _impl_.task_.alter_table_task_ = alter_table_task; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_task) } -inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::_internal_mutable_alter_table_task() { +inline ::greptime::v1::meta::AlterTableTask* DdlTaskRequest::_internal_mutable_alter_table_task() { if (!_internal_has_alter_table_task()) { clear_task(); set_has_alter_table_task(); @@ -2682,23 +2686,23 @@ inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::_internal_mut } return _impl_.task_.alter_table_task_; } -inline ::greptime::v1::meta::AlterTableTask* SubmitDdlTaskRequest::mutable_alter_table_task() { +inline ::greptime::v1::meta::AlterTableTask* DdlTaskRequest::mutable_alter_table_task() { ::greptime::v1::meta::AlterTableTask* _msg = _internal_mutable_alter_table_task(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.alter_table_task) return _msg; } // .greptime.v1.meta.TruncateTableTask truncate_table_task = 5; -inline bool SubmitDdlTaskRequest::_internal_has_truncate_table_task() const { +inline bool DdlTaskRequest::_internal_has_truncate_table_task() const { return task_case() == kTruncateTableTask; } -inline bool SubmitDdlTaskRequest::has_truncate_table_task() const { +inline bool DdlTaskRequest::has_truncate_table_task() const { return _internal_has_truncate_table_task(); } -inline void SubmitDdlTaskRequest::set_has_truncate_table_task() { +inline void DdlTaskRequest::set_has_truncate_table_task() { _impl_._oneof_case_[0] = kTruncateTableTask; } -inline void SubmitDdlTaskRequest::clear_truncate_table_task() { +inline void DdlTaskRequest::clear_truncate_table_task() { if (_internal_has_truncate_table_task()) { if (GetArenaForAllocation() == nullptr) { delete _impl_.task_.truncate_table_task_; @@ -2706,8 +2710,8 @@ inline void SubmitDdlTaskRequest::clear_truncate_table_task() { clear_has_task(); } } -inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::release_truncate_table_task() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task) +inline ::greptime::v1::meta::TruncateTableTask* DdlTaskRequest::release_truncate_table_task() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.truncate_table_task) if (_internal_has_truncate_table_task()) { clear_has_task(); ::greptime::v1::meta::TruncateTableTask* temp = _impl_.task_.truncate_table_task_; @@ -2720,17 +2724,17 @@ inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::release_tr return nullptr; } } -inline const ::greptime::v1::meta::TruncateTableTask& SubmitDdlTaskRequest::_internal_truncate_table_task() const { +inline const ::greptime::v1::meta::TruncateTableTask& DdlTaskRequest::_internal_truncate_table_task() const { return _internal_has_truncate_table_task() ? *_impl_.task_.truncate_table_task_ : reinterpret_cast< ::greptime::v1::meta::TruncateTableTask&>(::greptime::v1::meta::_TruncateTableTask_default_instance_); } -inline const ::greptime::v1::meta::TruncateTableTask& SubmitDdlTaskRequest::truncate_table_task() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task) +inline const ::greptime::v1::meta::TruncateTableTask& DdlTaskRequest::truncate_table_task() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.truncate_table_task) return _internal_truncate_table_task(); } -inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::unsafe_arena_release_truncate_table_task() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task) +inline ::greptime::v1::meta::TruncateTableTask* DdlTaskRequest::unsafe_arena_release_truncate_table_task() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.truncate_table_task) if (_internal_has_truncate_table_task()) { clear_has_task(); ::greptime::v1::meta::TruncateTableTask* temp = _impl_.task_.truncate_table_task_; @@ -2740,15 +2744,15 @@ inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::unsafe_are return nullptr; } } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) { +inline void DdlTaskRequest::unsafe_arena_set_allocated_truncate_table_task(::greptime::v1::meta::TruncateTableTask* truncate_table_task) { clear_task(); if (truncate_table_task) { set_has_truncate_table_task(); _impl_.task_.truncate_table_task_ = truncate_table_task; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.truncate_table_task) } -inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::_internal_mutable_truncate_table_task() { +inline ::greptime::v1::meta::TruncateTableTask* DdlTaskRequest::_internal_mutable_truncate_table_task() { if (!_internal_has_truncate_table_task()) { clear_task(); set_has_truncate_table_task(); @@ -2756,23 +2760,23 @@ inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::_internal_ } return _impl_.task_.truncate_table_task_; } -inline ::greptime::v1::meta::TruncateTableTask* SubmitDdlTaskRequest::mutable_truncate_table_task() { +inline ::greptime::v1::meta::TruncateTableTask* DdlTaskRequest::mutable_truncate_table_task() { ::greptime::v1::meta::TruncateTableTask* _msg = _internal_mutable_truncate_table_task(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.truncate_table_task) return _msg; } // .greptime.v1.meta.CreateTableTasks create_table_tasks = 6; -inline bool SubmitDdlTaskRequest::_internal_has_create_table_tasks() const { +inline bool DdlTaskRequest::_internal_has_create_table_tasks() const { return task_case() == kCreateTableTasks; } -inline bool SubmitDdlTaskRequest::has_create_table_tasks() const { +inline bool DdlTaskRequest::has_create_table_tasks() const { return _internal_has_create_table_tasks(); } -inline void SubmitDdlTaskRequest::set_has_create_table_tasks() { +inline void DdlTaskRequest::set_has_create_table_tasks() { _impl_._oneof_case_[0] = kCreateTableTasks; } -inline void SubmitDdlTaskRequest::clear_create_table_tasks() { +inline void DdlTaskRequest::clear_create_table_tasks() { if (_internal_has_create_table_tasks()) { if (GetArenaForAllocation() == nullptr) { delete _impl_.task_.create_table_tasks_; @@ -2780,8 +2784,8 @@ inline void SubmitDdlTaskRequest::clear_create_table_tasks() { clear_has_task(); } } -inline ::greptime::v1::meta::CreateTableTasks* SubmitDdlTaskRequest::release_create_table_tasks() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks) +inline ::greptime::v1::meta::CreateTableTasks* DdlTaskRequest::release_create_table_tasks() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.create_table_tasks) if (_internal_has_create_table_tasks()) { clear_has_task(); ::greptime::v1::meta::CreateTableTasks* temp = _impl_.task_.create_table_tasks_; @@ -2794,17 +2798,17 @@ inline ::greptime::v1::meta::CreateTableTasks* SubmitDdlTaskRequest::release_cre return nullptr; } } -inline const ::greptime::v1::meta::CreateTableTasks& SubmitDdlTaskRequest::_internal_create_table_tasks() const { +inline const ::greptime::v1::meta::CreateTableTasks& DdlTaskRequest::_internal_create_table_tasks() const { return _internal_has_create_table_tasks() ? *_impl_.task_.create_table_tasks_ : reinterpret_cast< ::greptime::v1::meta::CreateTableTasks&>(::greptime::v1::meta::_CreateTableTasks_default_instance_); } -inline const ::greptime::v1::meta::CreateTableTasks& SubmitDdlTaskRequest::create_table_tasks() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks) +inline const ::greptime::v1::meta::CreateTableTasks& DdlTaskRequest::create_table_tasks() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.create_table_tasks) return _internal_create_table_tasks(); } -inline ::greptime::v1::meta::CreateTableTasks* SubmitDdlTaskRequest::unsafe_arena_release_create_table_tasks() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks) +inline ::greptime::v1::meta::CreateTableTasks* DdlTaskRequest::unsafe_arena_release_create_table_tasks() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.create_table_tasks) if (_internal_has_create_table_tasks()) { clear_has_task(); ::greptime::v1::meta::CreateTableTasks* temp = _impl_.task_.create_table_tasks_; @@ -2814,15 +2818,15 @@ inline ::greptime::v1::meta::CreateTableTasks* SubmitDdlTaskRequest::unsafe_aren return nullptr; } } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_create_table_tasks(::greptime::v1::meta::CreateTableTasks* create_table_tasks) { +inline void DdlTaskRequest::unsafe_arena_set_allocated_create_table_tasks(::greptime::v1::meta::CreateTableTasks* create_table_tasks) { clear_task(); if (create_table_tasks) { set_has_create_table_tasks(); _impl_.task_.create_table_tasks_ = create_table_tasks; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.create_table_tasks) } -inline ::greptime::v1::meta::CreateTableTasks* SubmitDdlTaskRequest::_internal_mutable_create_table_tasks() { +inline ::greptime::v1::meta::CreateTableTasks* DdlTaskRequest::_internal_mutable_create_table_tasks() { if (!_internal_has_create_table_tasks()) { clear_task(); set_has_create_table_tasks(); @@ -2830,23 +2834,23 @@ inline ::greptime::v1::meta::CreateTableTasks* SubmitDdlTaskRequest::_internal_m } return _impl_.task_.create_table_tasks_; } -inline ::greptime::v1::meta::CreateTableTasks* SubmitDdlTaskRequest::mutable_create_table_tasks() { +inline ::greptime::v1::meta::CreateTableTasks* DdlTaskRequest::mutable_create_table_tasks() { ::greptime::v1::meta::CreateTableTasks* _msg = _internal_mutable_create_table_tasks(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.create_table_tasks) return _msg; } // .greptime.v1.meta.DropTableTasks drop_table_tasks = 7; -inline bool SubmitDdlTaskRequest::_internal_has_drop_table_tasks() const { +inline bool DdlTaskRequest::_internal_has_drop_table_tasks() const { return task_case() == kDropTableTasks; } -inline bool SubmitDdlTaskRequest::has_drop_table_tasks() const { +inline bool DdlTaskRequest::has_drop_table_tasks() const { return _internal_has_drop_table_tasks(); } -inline void SubmitDdlTaskRequest::set_has_drop_table_tasks() { +inline void DdlTaskRequest::set_has_drop_table_tasks() { _impl_._oneof_case_[0] = kDropTableTasks; } -inline void SubmitDdlTaskRequest::clear_drop_table_tasks() { +inline void DdlTaskRequest::clear_drop_table_tasks() { if (_internal_has_drop_table_tasks()) { if (GetArenaForAllocation() == nullptr) { delete _impl_.task_.drop_table_tasks_; @@ -2854,8 +2858,8 @@ inline void SubmitDdlTaskRequest::clear_drop_table_tasks() { clear_has_task(); } } -inline ::greptime::v1::meta::DropTableTasks* SubmitDdlTaskRequest::release_drop_table_tasks() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks) +inline ::greptime::v1::meta::DropTableTasks* DdlTaskRequest::release_drop_table_tasks() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.drop_table_tasks) if (_internal_has_drop_table_tasks()) { clear_has_task(); ::greptime::v1::meta::DropTableTasks* temp = _impl_.task_.drop_table_tasks_; @@ -2868,17 +2872,17 @@ inline ::greptime::v1::meta::DropTableTasks* SubmitDdlTaskRequest::release_drop_ return nullptr; } } -inline const ::greptime::v1::meta::DropTableTasks& SubmitDdlTaskRequest::_internal_drop_table_tasks() const { +inline const ::greptime::v1::meta::DropTableTasks& DdlTaskRequest::_internal_drop_table_tasks() const { return _internal_has_drop_table_tasks() ? *_impl_.task_.drop_table_tasks_ : reinterpret_cast< ::greptime::v1::meta::DropTableTasks&>(::greptime::v1::meta::_DropTableTasks_default_instance_); } -inline const ::greptime::v1::meta::DropTableTasks& SubmitDdlTaskRequest::drop_table_tasks() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks) +inline const ::greptime::v1::meta::DropTableTasks& DdlTaskRequest::drop_table_tasks() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.drop_table_tasks) return _internal_drop_table_tasks(); } -inline ::greptime::v1::meta::DropTableTasks* SubmitDdlTaskRequest::unsafe_arena_release_drop_table_tasks() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks) +inline ::greptime::v1::meta::DropTableTasks* DdlTaskRequest::unsafe_arena_release_drop_table_tasks() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.drop_table_tasks) if (_internal_has_drop_table_tasks()) { clear_has_task(); ::greptime::v1::meta::DropTableTasks* temp = _impl_.task_.drop_table_tasks_; @@ -2888,15 +2892,15 @@ inline ::greptime::v1::meta::DropTableTasks* SubmitDdlTaskRequest::unsafe_arena_ return nullptr; } } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_drop_table_tasks(::greptime::v1::meta::DropTableTasks* drop_table_tasks) { +inline void DdlTaskRequest::unsafe_arena_set_allocated_drop_table_tasks(::greptime::v1::meta::DropTableTasks* drop_table_tasks) { clear_task(); if (drop_table_tasks) { set_has_drop_table_tasks(); _impl_.task_.drop_table_tasks_ = drop_table_tasks; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_table_tasks) } -inline ::greptime::v1::meta::DropTableTasks* SubmitDdlTaskRequest::_internal_mutable_drop_table_tasks() { +inline ::greptime::v1::meta::DropTableTasks* DdlTaskRequest::_internal_mutable_drop_table_tasks() { if (!_internal_has_drop_table_tasks()) { clear_task(); set_has_drop_table_tasks(); @@ -2904,23 +2908,23 @@ inline ::greptime::v1::meta::DropTableTasks* SubmitDdlTaskRequest::_internal_mut } return _impl_.task_.drop_table_tasks_; } -inline ::greptime::v1::meta::DropTableTasks* SubmitDdlTaskRequest::mutable_drop_table_tasks() { +inline ::greptime::v1::meta::DropTableTasks* DdlTaskRequest::mutable_drop_table_tasks() { ::greptime::v1::meta::DropTableTasks* _msg = _internal_mutable_drop_table_tasks(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.drop_table_tasks) return _msg; } // .greptime.v1.meta.AlterTableTasks alter_table_tasks = 8; -inline bool SubmitDdlTaskRequest::_internal_has_alter_table_tasks() const { +inline bool DdlTaskRequest::_internal_has_alter_table_tasks() const { return task_case() == kAlterTableTasks; } -inline bool SubmitDdlTaskRequest::has_alter_table_tasks() const { +inline bool DdlTaskRequest::has_alter_table_tasks() const { return _internal_has_alter_table_tasks(); } -inline void SubmitDdlTaskRequest::set_has_alter_table_tasks() { +inline void DdlTaskRequest::set_has_alter_table_tasks() { _impl_._oneof_case_[0] = kAlterTableTasks; } -inline void SubmitDdlTaskRequest::clear_alter_table_tasks() { +inline void DdlTaskRequest::clear_alter_table_tasks() { if (_internal_has_alter_table_tasks()) { if (GetArenaForAllocation() == nullptr) { delete _impl_.task_.alter_table_tasks_; @@ -2928,8 +2932,8 @@ inline void SubmitDdlTaskRequest::clear_alter_table_tasks() { clear_has_task(); } } -inline ::greptime::v1::meta::AlterTableTasks* SubmitDdlTaskRequest::release_alter_table_tasks() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks) +inline ::greptime::v1::meta::AlterTableTasks* DdlTaskRequest::release_alter_table_tasks() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.alter_table_tasks) if (_internal_has_alter_table_tasks()) { clear_has_task(); ::greptime::v1::meta::AlterTableTasks* temp = _impl_.task_.alter_table_tasks_; @@ -2942,17 +2946,17 @@ inline ::greptime::v1::meta::AlterTableTasks* SubmitDdlTaskRequest::release_alte return nullptr; } } -inline const ::greptime::v1::meta::AlterTableTasks& SubmitDdlTaskRequest::_internal_alter_table_tasks() const { +inline const ::greptime::v1::meta::AlterTableTasks& DdlTaskRequest::_internal_alter_table_tasks() const { return _internal_has_alter_table_tasks() ? *_impl_.task_.alter_table_tasks_ : reinterpret_cast< ::greptime::v1::meta::AlterTableTasks&>(::greptime::v1::meta::_AlterTableTasks_default_instance_); } -inline const ::greptime::v1::meta::AlterTableTasks& SubmitDdlTaskRequest::alter_table_tasks() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks) +inline const ::greptime::v1::meta::AlterTableTasks& DdlTaskRequest::alter_table_tasks() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.alter_table_tasks) return _internal_alter_table_tasks(); } -inline ::greptime::v1::meta::AlterTableTasks* SubmitDdlTaskRequest::unsafe_arena_release_alter_table_tasks() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks) +inline ::greptime::v1::meta::AlterTableTasks* DdlTaskRequest::unsafe_arena_release_alter_table_tasks() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.alter_table_tasks) if (_internal_has_alter_table_tasks()) { clear_has_task(); ::greptime::v1::meta::AlterTableTasks* temp = _impl_.task_.alter_table_tasks_; @@ -2962,15 +2966,15 @@ inline ::greptime::v1::meta::AlterTableTasks* SubmitDdlTaskRequest::unsafe_arena return nullptr; } } -inline void SubmitDdlTaskRequest::unsafe_arena_set_allocated_alter_table_tasks(::greptime::v1::meta::AlterTableTasks* alter_table_tasks) { +inline void DdlTaskRequest::unsafe_arena_set_allocated_alter_table_tasks(::greptime::v1::meta::AlterTableTasks* alter_table_tasks) { clear_task(); if (alter_table_tasks) { set_has_alter_table_tasks(); _impl_.task_.alter_table_tasks_ = alter_table_tasks; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_tasks) } -inline ::greptime::v1::meta::AlterTableTasks* SubmitDdlTaskRequest::_internal_mutable_alter_table_tasks() { +inline ::greptime::v1::meta::AlterTableTasks* DdlTaskRequest::_internal_mutable_alter_table_tasks() { if (!_internal_has_alter_table_tasks()) { clear_task(); set_has_alter_table_tasks(); @@ -2978,42 +2982,42 @@ inline ::greptime::v1::meta::AlterTableTasks* SubmitDdlTaskRequest::_internal_mu } return _impl_.task_.alter_table_tasks_; } -inline ::greptime::v1::meta::AlterTableTasks* SubmitDdlTaskRequest::mutable_alter_table_tasks() { +inline ::greptime::v1::meta::AlterTableTasks* DdlTaskRequest::mutable_alter_table_tasks() { ::greptime::v1::meta::AlterTableTasks* _msg = _internal_mutable_alter_table_tasks(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.alter_table_tasks) return _msg; } -inline bool SubmitDdlTaskRequest::has_task() const { +inline bool DdlTaskRequest::has_task() const { return task_case() != TASK_NOT_SET; } -inline void SubmitDdlTaskRequest::clear_has_task() { +inline void DdlTaskRequest::clear_has_task() { _impl_._oneof_case_[0] = TASK_NOT_SET; } -inline SubmitDdlTaskRequest::TaskCase SubmitDdlTaskRequest::task_case() const { - return SubmitDdlTaskRequest::TaskCase(_impl_._oneof_case_[0]); +inline DdlTaskRequest::TaskCase DdlTaskRequest::task_case() const { + return DdlTaskRequest::TaskCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- -// SubmitDdlTaskResponse +// DdlTaskResponse // .greptime.v1.meta.ResponseHeader header = 1; -inline bool SubmitDdlTaskResponse::_internal_has_header() const { +inline bool DdlTaskResponse::_internal_has_header() const { return this != internal_default_instance() && _impl_.header_ != nullptr; } -inline bool SubmitDdlTaskResponse::has_header() const { +inline bool DdlTaskResponse::has_header() const { return _internal_has_header(); } -inline const ::greptime::v1::meta::ResponseHeader& SubmitDdlTaskResponse::_internal_header() const { +inline const ::greptime::v1::meta::ResponseHeader& DdlTaskResponse::_internal_header() const { const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_; return p != nullptr ? *p : reinterpret_cast( ::greptime::v1::meta::_ResponseHeader_default_instance_); } -inline const ::greptime::v1::meta::ResponseHeader& SubmitDdlTaskResponse::header() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskResponse.header) +inline const ::greptime::v1::meta::ResponseHeader& DdlTaskResponse::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskResponse.header) return _internal_header(); } -inline void SubmitDdlTaskResponse::unsafe_arena_set_allocated_header( +inline void DdlTaskResponse::unsafe_arena_set_allocated_header( ::greptime::v1::meta::ResponseHeader* header) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); @@ -3024,9 +3028,9 @@ inline void SubmitDdlTaskResponse::unsafe_arena_set_allocated_header( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskResponse.header) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskResponse.header) } -inline ::greptime::v1::meta::ResponseHeader* SubmitDdlTaskResponse::release_header() { +inline ::greptime::v1::meta::ResponseHeader* DdlTaskResponse::release_header() { ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; _impl_.header_ = nullptr; @@ -3041,14 +3045,14 @@ inline ::greptime::v1::meta::ResponseHeader* SubmitDdlTaskResponse::release_head #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::meta::ResponseHeader* SubmitDdlTaskResponse::unsafe_arena_release_header() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskResponse.header) +inline ::greptime::v1::meta::ResponseHeader* DdlTaskResponse::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskResponse.header) ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; _impl_.header_ = nullptr; return temp; } -inline ::greptime::v1::meta::ResponseHeader* SubmitDdlTaskResponse::_internal_mutable_header() { +inline ::greptime::v1::meta::ResponseHeader* DdlTaskResponse::_internal_mutable_header() { if (_impl_.header_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation()); @@ -3056,12 +3060,12 @@ inline ::greptime::v1::meta::ResponseHeader* SubmitDdlTaskResponse::_internal_mu } return _impl_.header_; } -inline ::greptime::v1::meta::ResponseHeader* SubmitDdlTaskResponse::mutable_header() { +inline ::greptime::v1::meta::ResponseHeader* DdlTaskResponse::mutable_header() { ::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskResponse.header) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskResponse.header) return _msg; } -inline void SubmitDdlTaskResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) { +inline void DdlTaskResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); @@ -3079,76 +3083,111 @@ inline void SubmitDdlTaskResponse::set_allocated_header(::greptime::v1::meta::Re } _impl_.header_ = header; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskResponse.header) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskResponse.header) } -// bytes key = 2; -inline void SubmitDdlTaskResponse::clear_key() { - _impl_.key_.ClearToEmpty(); +// .greptime.v1.meta.ProcedureId pid = 2; +inline bool DdlTaskResponse::_internal_has_pid() const { + return this != internal_default_instance() && _impl_.pid_ != nullptr; } -inline const std::string& SubmitDdlTaskResponse::key() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskResponse.key) - return _internal_key(); +inline bool DdlTaskResponse::has_pid() const { + return _internal_has_pid(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SubmitDdlTaskResponse::set_key(ArgT0&& arg0, ArgT... args) { - - _impl_.key_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.meta.SubmitDdlTaskResponse.key) +inline const ::greptime::v1::meta::ProcedureId& DdlTaskResponse::_internal_pid() const { + const ::greptime::v1::meta::ProcedureId* p = _impl_.pid_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ProcedureId_default_instance_); } -inline std::string* SubmitDdlTaskResponse::mutable_key() { - std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskResponse.key) - return _s; +inline const ::greptime::v1::meta::ProcedureId& DdlTaskResponse::pid() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskResponse.pid) + return _internal_pid(); } -inline const std::string& SubmitDdlTaskResponse::_internal_key() const { - return _impl_.key_.Get(); +inline void DdlTaskResponse::unsafe_arena_set_allocated_pid( + ::greptime::v1::meta::ProcedureId* pid) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_); + } + _impl_.pid_ = pid; + if (pid) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskResponse.pid) +} +inline ::greptime::v1::meta::ProcedureId* DdlTaskResponse::release_pid() { + + ::greptime::v1::meta::ProcedureId* temp = _impl_.pid_; + _impl_.pid_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; } -inline void SubmitDdlTaskResponse::_internal_set_key(const std::string& value) { +inline ::greptime::v1::meta::ProcedureId* DdlTaskResponse::unsafe_arena_release_pid() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskResponse.pid) - _impl_.key_.Set(value, GetArenaForAllocation()); + ::greptime::v1::meta::ProcedureId* temp = _impl_.pid_; + _impl_.pid_ = nullptr; + return temp; } -inline std::string* SubmitDdlTaskResponse::_internal_mutable_key() { +inline ::greptime::v1::meta::ProcedureId* DdlTaskResponse::_internal_mutable_pid() { - return _impl_.key_.Mutable(GetArenaForAllocation()); + if (_impl_.pid_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(GetArenaForAllocation()); + _impl_.pid_ = p; + } + return _impl_.pid_; } -inline std::string* SubmitDdlTaskResponse::release_key() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskResponse.key) - return _impl_.key_.Release(); +inline ::greptime::v1::meta::ProcedureId* DdlTaskResponse::mutable_pid() { + ::greptime::v1::meta::ProcedureId* _msg = _internal_mutable_pid(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskResponse.pid) + return _msg; } -inline void SubmitDdlTaskResponse::set_allocated_key(std::string* key) { - if (key != nullptr) { +inline void DdlTaskResponse::set_allocated_pid(::greptime::v1::meta::ProcedureId* pid) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_); + } + if (pid) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pid)); + if (message_arena != submessage_arena) { + pid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pid, submessage_arena); + } } else { } - _impl_.key_.SetAllocated(key, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskResponse.key) + _impl_.pid_ = pid; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskResponse.pid) } // .greptime.v1.meta.TableId table_id = 4; -inline bool SubmitDdlTaskResponse::_internal_has_table_id() const { +inline bool DdlTaskResponse::_internal_has_table_id() const { return this != internal_default_instance() && _impl_.table_id_ != nullptr; } -inline bool SubmitDdlTaskResponse::has_table_id() const { +inline bool DdlTaskResponse::has_table_id() const { return _internal_has_table_id(); } -inline const ::greptime::v1::meta::TableId& SubmitDdlTaskResponse::_internal_table_id() const { +inline const ::greptime::v1::meta::TableId& DdlTaskResponse::_internal_table_id() const { const ::greptime::v1::meta::TableId* p = _impl_.table_id_; return p != nullptr ? *p : reinterpret_cast( ::greptime::v1::meta::_TableId_default_instance_); } -inline const ::greptime::v1::meta::TableId& SubmitDdlTaskResponse::table_id() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskResponse.table_id) +inline const ::greptime::v1::meta::TableId& DdlTaskResponse::table_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskResponse.table_id) return _internal_table_id(); } -inline void SubmitDdlTaskResponse::unsafe_arena_set_allocated_table_id( +inline void DdlTaskResponse::unsafe_arena_set_allocated_table_id( ::greptime::v1::meta::TableId* table_id) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_id_); @@ -3159,9 +3198,9 @@ inline void SubmitDdlTaskResponse::unsafe_arena_set_allocated_table_id( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.SubmitDdlTaskResponse.table_id) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskResponse.table_id) } -inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::release_table_id() { +inline ::greptime::v1::meta::TableId* DdlTaskResponse::release_table_id() { ::greptime::v1::meta::TableId* temp = _impl_.table_id_; _impl_.table_id_ = nullptr; @@ -3176,14 +3215,14 @@ inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::release_table_id() #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::unsafe_arena_release_table_id() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.SubmitDdlTaskResponse.table_id) +inline ::greptime::v1::meta::TableId* DdlTaskResponse::unsafe_arena_release_table_id() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskResponse.table_id) ::greptime::v1::meta::TableId* temp = _impl_.table_id_; _impl_.table_id_ = nullptr; return temp; } -inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::_internal_mutable_table_id() { +inline ::greptime::v1::meta::TableId* DdlTaskResponse::_internal_mutable_table_id() { if (_impl_.table_id_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::meta::TableId>(GetArenaForAllocation()); @@ -3191,12 +3230,12 @@ inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::_internal_mutable_t } return _impl_.table_id_; } -inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::mutable_table_id() { +inline ::greptime::v1::meta::TableId* DdlTaskResponse::mutable_table_id() { ::greptime::v1::meta::TableId* _msg = _internal_mutable_table_id(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskResponse.table_id) + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskResponse.table_id) return _msg; } -inline void SubmitDdlTaskResponse::set_allocated_table_id(::greptime::v1::meta::TableId* table_id) { +inline void DdlTaskResponse::set_allocated_table_id(::greptime::v1::meta::TableId* table_id) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_id_); @@ -3214,43 +3253,43 @@ inline void SubmitDdlTaskResponse::set_allocated_table_id(::greptime::v1::meta:: } _impl_.table_id_ = table_id; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.SubmitDdlTaskResponse.table_id) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskResponse.table_id) } // repeated .greptime.v1.meta.TableId table_ids = 5; -inline int SubmitDdlTaskResponse::_internal_table_ids_size() const { +inline int DdlTaskResponse::_internal_table_ids_size() const { return _impl_.table_ids_.size(); } -inline int SubmitDdlTaskResponse::table_ids_size() const { +inline int DdlTaskResponse::table_ids_size() const { return _internal_table_ids_size(); } -inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::mutable_table_ids(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.SubmitDdlTaskResponse.table_ids) +inline ::greptime::v1::meta::TableId* DdlTaskResponse::mutable_table_ids(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskResponse.table_ids) return _impl_.table_ids_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId >* -SubmitDdlTaskResponse::mutable_table_ids() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.SubmitDdlTaskResponse.table_ids) +DdlTaskResponse::mutable_table_ids() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.DdlTaskResponse.table_ids) return &_impl_.table_ids_; } -inline const ::greptime::v1::meta::TableId& SubmitDdlTaskResponse::_internal_table_ids(int index) const { +inline const ::greptime::v1::meta::TableId& DdlTaskResponse::_internal_table_ids(int index) const { return _impl_.table_ids_.Get(index); } -inline const ::greptime::v1::meta::TableId& SubmitDdlTaskResponse::table_ids(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.SubmitDdlTaskResponse.table_ids) +inline const ::greptime::v1::meta::TableId& DdlTaskResponse::table_ids(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskResponse.table_ids) return _internal_table_ids(index); } -inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::_internal_add_table_ids() { +inline ::greptime::v1::meta::TableId* DdlTaskResponse::_internal_add_table_ids() { return _impl_.table_ids_.Add(); } -inline ::greptime::v1::meta::TableId* SubmitDdlTaskResponse::add_table_ids() { +inline ::greptime::v1::meta::TableId* DdlTaskResponse::add_table_ids() { ::greptime::v1::meta::TableId* _add = _internal_add_table_ids(); - // @@protoc_insertion_point(field_add:greptime.v1.meta.SubmitDdlTaskResponse.table_ids) + // @@protoc_insertion_point(field_add:greptime.v1.meta.DdlTaskResponse.table_ids) return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId >& -SubmitDdlTaskResponse::table_ids() const { - // @@protoc_insertion_point(field_list:greptime.v1.meta.SubmitDdlTaskResponse.table_ids) +DdlTaskResponse::table_ids() const { + // @@protoc_insertion_point(field_list:greptime.v1.meta.DdlTaskResponse.table_ids) return _impl_.table_ids_; } diff --git a/c++/greptime/v1/meta/procedure.grpc.pb.cc b/c++/greptime/v1/meta/procedure.grpc.pb.cc new file mode 100644 index 00000000..03d81fe4 --- /dev/null +++ b/c++/greptime/v1/meta/procedure.grpc.pb.cc @@ -0,0 +1,174 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/meta/procedure.proto + +#include "greptime/v1/meta/procedure.pb.h" +#include "greptime/v1/meta/procedure.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace greptime { +namespace v1 { +namespace meta { + +static const char* ProcedureService_method_names[] = { + "/greptime.v1.meta.ProcedureService/query", + "/greptime.v1.meta.ProcedureService/ddl", + "/greptime.v1.meta.ProcedureService/migrate", +}; + +std::unique_ptr< ProcedureService::Stub> ProcedureService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ProcedureService::Stub> stub(new ProcedureService::Stub(channel, options)); + return stub; +} + +ProcedureService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_query_(ProcedureService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ddl_(ProcedureService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_migrate_(ProcedureService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ProcedureService::Stub::query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::greptime::v1::meta::ProcedureStateResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_query_, context, request, response); +} + +void ProcedureService::Stub::async::query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_query_, context, request, response, std::move(f)); +} + +void ProcedureService::Stub::async::query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_query_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>* ProcedureService::Stub::PrepareAsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::ProcedureStateResponse, ::greptime::v1::meta::QueryProcedureRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_query_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>* ProcedureService::Stub::AsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncqueryRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ProcedureService::Stub::ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::greptime::v1::meta::DdlTaskResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ddl_, context, request, response); +} + +void ProcedureService::Stub::async::ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ddl_, context, request, response, std::move(f)); +} + +void ProcedureService::Stub::async::ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ddl_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* ProcedureService::Stub::PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::DdlTaskResponse, ::greptime::v1::meta::DdlTaskRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ddl_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* ProcedureService::Stub::AsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncddlRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status ProcedureService::Stub::migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::greptime::v1::meta::MigrateRegionResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_migrate_, context, request, response); +} + +void ProcedureService::Stub::async::migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_migrate_, context, request, response, std::move(f)); +} + +void ProcedureService::Stub::async::migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_migrate_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* ProcedureService::Stub::PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::greptime::v1::meta::MigrateRegionResponse, ::greptime::v1::meta::MigrateRegionRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_migrate_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* ProcedureService::Stub::AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncmigrateRaw(context, request, cq); + result->StartCall(); + return result; +} + +ProcedureService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProcedureService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProcedureService::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::meta::QueryProcedureRequest* req, + ::greptime::v1::meta::ProcedureStateResponse* resp) { + return service->query(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProcedureService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProcedureService::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::meta::DdlTaskRequest* req, + ::greptime::v1::meta::DdlTaskResponse* resp) { + return service->ddl(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ProcedureService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ProcedureService::Service, ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](ProcedureService::Service* service, + ::grpc::ServerContext* ctx, + const ::greptime::v1::meta::MigrateRegionRequest* req, + ::greptime::v1::meta::MigrateRegionResponse* resp) { + return service->migrate(ctx, req, resp); + }, this))); +} + +ProcedureService::Service::~Service() { +} + +::grpc::Status ProcedureService::Service::query(::grpc::ServerContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ProcedureService::Service::ddl(::grpc::ServerContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ProcedureService::Service::migrate(::grpc::ServerContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace greptime +} // namespace v1 +} // namespace meta + diff --git a/c++/greptime/v1/meta/procedure.grpc.pb.h b/c++/greptime/v1/meta/procedure.grpc.pb.h new file mode 100644 index 00000000..79318854 --- /dev/null +++ b/c++/greptime/v1/meta/procedure.grpc.pb.h @@ -0,0 +1,572 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/meta/procedure.proto +// Original file comments: +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_greptime_2fv1_2fmeta_2fprocedure_2eproto__INCLUDED +#define GRPC_greptime_2fv1_2fmeta_2fprocedure_2eproto__INCLUDED + +#include "greptime/v1/meta/procedure.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace greptime { +namespace v1 { +namespace meta { + +class ProcedureService final { + public: + static constexpr char const* service_full_name() { + return "greptime.v1.meta.ProcedureService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Query a submitted procedure state + virtual ::grpc::Status query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::greptime::v1::meta::ProcedureStateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>> Asyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>>(AsyncqueryRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>> PrepareAsyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>>(PrepareAsyncqueryRaw(context, request, cq)); + } + // Submits a DDL task + virtual ::grpc::Status ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::greptime::v1::meta::DdlTaskResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>> Asyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>>(AsyncddlRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>> PrepareAsyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>>(PrepareAsyncddlRaw(context, request, cq)); + } + // Submits a region migration task + virtual ::grpc::Status migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::greptime::v1::meta::MigrateRegionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>> Asyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>>(AsyncmigrateRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>> PrepareAsyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>>(PrepareAsyncmigrateRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // Query a submitted procedure state + virtual void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, std::function) = 0; + virtual void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Submits a DDL task + virtual void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, std::function) = 0; + virtual void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // Submits a region migration task + virtual void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function) = 0; + virtual void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>* AsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::ProcedureStateResponse>* PrepareAsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>* AsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::DdlTaskResponse>* PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>* AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::greptime::v1::meta::MigrateRegionResponse>* PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + ::grpc::Status query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::greptime::v1::meta::ProcedureStateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>> Asyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>>(AsyncqueryRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>> PrepareAsyncquery(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>>(PrepareAsyncqueryRaw(context, request, cq)); + } + ::grpc::Status ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::greptime::v1::meta::DdlTaskResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>> Asyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>>(AsyncddlRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>> PrepareAsyncddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>>(PrepareAsyncddlRaw(context, request, cq)); + } + ::grpc::Status migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::greptime::v1::meta::MigrateRegionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>> Asyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>>(AsyncmigrateRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>> PrepareAsyncmigrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>>(PrepareAsyncmigrateRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, std::function) override; + void query(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, std::function) override; + void ddl(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, std::function) override; + void migrate(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>* AsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::ProcedureStateResponse>* PrepareAsyncqueryRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::QueryProcedureRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* AsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::DdlTaskResponse>* PrepareAsyncddlRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::DdlTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* AsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::greptime::v1::meta::MigrateRegionResponse>* PrepareAsyncmigrateRaw(::grpc::ClientContext* context, const ::greptime::v1::meta::MigrateRegionRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_query_; + const ::grpc::internal::RpcMethod rpcmethod_ddl_; + const ::grpc::internal::RpcMethod rpcmethod_migrate_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Query a submitted procedure state + virtual ::grpc::Status query(::grpc::ServerContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response); + // Submits a DDL task + virtual ::grpc::Status ddl(::grpc::ServerContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response); + // Submits a region migration task + virtual ::grpc::Status migrate(::grpc::ServerContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response); + }; + template + class WithAsyncMethod_query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_query() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestquery(::grpc::ServerContext* context, ::greptime::v1::meta::QueryProcedureRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::ProcedureStateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ddl : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ddl() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ddl() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestddl(::grpc::ServerContext* context, ::greptime::v1::meta::DdlTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::DdlTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_migrate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_migrate() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_migrate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestmigrate(::grpc::ServerContext* context, ::greptime::v1::meta::MigrateRegionRequest* request, ::grpc::ServerAsyncResponseWriter< ::greptime::v1::meta::MigrateRegionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_query > > AsyncService; + template + class WithCallbackMethod_query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_query() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::QueryProcedureRequest* request, ::greptime::v1::meta::ProcedureStateResponse* response) { return this->query(context, request, response); }));} + void SetMessageAllocatorFor_query( + ::grpc::MessageAllocator< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* query( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ddl : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ddl() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::DdlTaskRequest* request, ::greptime::v1::meta::DdlTaskResponse* response) { return this->ddl(context, request, response); }));} + void SetMessageAllocatorFor_ddl( + ::grpc::MessageAllocator< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ddl() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ddl( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_migrate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_migrate() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::greptime::v1::meta::MigrateRegionRequest* request, ::greptime::v1::meta::MigrateRegionResponse* response) { return this->migrate(context, request, response); }));} + void SetMessageAllocatorFor_migrate( + ::grpc::MessageAllocator< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_migrate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* migrate( + ::grpc::CallbackServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_query > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_query() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ddl : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ddl() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ddl() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_migrate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_migrate() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_migrate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_query() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestquery(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ddl : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ddl() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ddl() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestddl(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_migrate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_migrate() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_migrate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void Requestmigrate(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_query() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->query(context, request, response); })); + } + ~WithRawCallbackMethod_query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* query( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ddl : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ddl() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ddl(context, request, response); })); + } + ~WithRawCallbackMethod_ddl() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ddl( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_migrate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_migrate() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->migrate(context, request, response); })); + } + ~WithRawCallbackMethod_migrate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* migrate( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_query : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_query() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::meta::QueryProcedureRequest, ::greptime::v1::meta::ProcedureStateResponse>* streamer) { + return this->Streamedquery(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_query() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status query(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::QueryProcedureRequest* /*request*/, ::greptime::v1::meta::ProcedureStateResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status Streamedquery(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::QueryProcedureRequest,::greptime::v1::meta::ProcedureStateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ddl : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ddl() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::meta::DdlTaskRequest, ::greptime::v1::meta::DdlTaskResponse>* streamer) { + return this->Streamedddl(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ddl() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ddl(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::DdlTaskRequest* /*request*/, ::greptime::v1::meta::DdlTaskResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status Streamedddl(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::DdlTaskRequest,::greptime::v1::meta::DdlTaskResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_migrate : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_migrate() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::greptime::v1::meta::MigrateRegionRequest, ::greptime::v1::meta::MigrateRegionResponse>* streamer) { + return this->Streamedmigrate(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_migrate() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status migrate(::grpc::ServerContext* /*context*/, const ::greptime::v1::meta::MigrateRegionRequest* /*request*/, ::greptime::v1::meta::MigrateRegionResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status Streamedmigrate(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::greptime::v1::meta::MigrateRegionRequest,::greptime::v1::meta::MigrateRegionResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_query > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_query > > StreamedService; +}; + +} // namespace meta +} // namespace v1 +} // namespace greptime + + +#endif // GRPC_greptime_2fv1_2fmeta_2fprocedure_2eproto__INCLUDED diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc new file mode 100644 index 00000000..f4d5f643 --- /dev/null +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -0,0 +1,706 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/meta/procedure.proto + +#include "greptime/v1/meta/procedure.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace greptime { +namespace v1 { +namespace meta { +PROTOBUF_CONSTEXPR QueryProcedureRequest::QueryProcedureRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.pid_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct QueryProcedureRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR QueryProcedureRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~QueryProcedureRequestDefaultTypeInternal() {} + union { + QueryProcedureRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QueryProcedureRequestDefaultTypeInternal _QueryProcedureRequest_default_instance_; +PROTOBUF_CONSTEXPR ProcedureStateResponse::ProcedureStateResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.error_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.status_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ProcedureStateResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcedureStateResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcedureStateResponseDefaultTypeInternal() {} + union { + ProcedureStateResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcedureStateResponseDefaultTypeInternal _ProcedureStateResponse_default_instance_; +} // namespace meta +} // namespace v1 +} // namespace greptime +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[2]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto[1]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fprocedure_2eproto = nullptr; + +const uint32_t TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::QueryProcedureRequest, _impl_.pid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::ProcedureStateResponse, _impl_.error_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::greptime::v1::meta::QueryProcedureRequest)}, + { 8, -1, -1, sizeof(::greptime::v1::meta::ProcedureStateResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::greptime::v1::meta::_QueryProcedureRequest_default_instance_._instance, + &::greptime::v1::meta::_ProcedureStateResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n greptime/v1/meta/procedure.proto\022\020grep" + "time.v1.meta\032\035greptime/v1/meta/common.pr" + "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" + "e/v1/meta/region.proto\"t\n\025QueryProcedure" + "Request\022/\n\006header\030\001 \001(\0132\037.greptime.v1.me" + "ta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035.greptime" + ".v1.meta.ProcedureId\"\214\001\n\026ProcedureStateR" + "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" + "ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep" + "time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 " + "\001(\t*B\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D" + "one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\0032\226\002\n\020Proc" + "edureService\022Z\n\005query\022\'.greptime.v1.meta" + ".QueryProcedureRequest\032(.greptime.v1.met" + "a.ProcedureStateResponse\022J\n\003ddl\022 .grepti" + "me.v1.meta.DdlTaskRequest\032!.greptime.v1." + "meta.DdlTaskResponse\022Z\n\007migrate\022&.grepti" + "me.v1.meta.MigrateRegionRequest\032\'.grepti" + "me.v1.meta.MigrateRegionResponseB_impl_.header_; +} +const ::greptime::v1::meta::ProcedureId& +QueryProcedureRequest::_Internal::pid(const QueryProcedureRequest* msg) { + return *msg->_impl_.pid_; +} +void QueryProcedureRequest::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +void QueryProcedureRequest::clear_pid() { + if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; +} +QueryProcedureRequest::QueryProcedureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.QueryProcedureRequest) +} +QueryProcedureRequest::QueryProcedureRequest(const QueryProcedureRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + QueryProcedureRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_); + } + if (from._internal_has_pid()) { + _this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.QueryProcedureRequest) +} + +inline void QueryProcedureRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +QueryProcedureRequest::~QueryProcedureRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.QueryProcedureRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void QueryProcedureRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; + if (this != internal_default_instance()) delete _impl_.pid_; +} + +void QueryProcedureRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void QueryProcedureRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.QueryProcedureRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* QueryProcedureRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .greptime.v1.meta.RequestHeader header = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.ProcedureId pid = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pid(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* QueryProcedureRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.QueryProcedureRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::header(this), + _Internal::header(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pid(this), + _Internal::pid(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.QueryProcedureRequest) + return target; +} + +size_t QueryProcedureRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.QueryProcedureRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pid_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QueryProcedureRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + QueryProcedureRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QueryProcedureRequest::GetClassData() const { return &_class_data_; } + + +void QueryProcedureRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.QueryProcedureRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_has_pid()) { + _this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom( + from._internal_pid()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void QueryProcedureRequest::CopyFrom(const QueryProcedureRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.QueryProcedureRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QueryProcedureRequest::IsInitialized() const { + return true; +} + +void QueryProcedureRequest::InternalSwap(QueryProcedureRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.pid_) + + sizeof(QueryProcedureRequest::_impl_.pid_) + - PROTOBUF_FIELD_OFFSET(QueryProcedureRequest, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata QueryProcedureRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[0]); +} + +// =================================================================== + +class ProcedureStateResponse::_Internal { + public: + static const ::greptime::v1::meta::ResponseHeader& header(const ProcedureStateResponse* msg); +}; + +const ::greptime::v1::meta::ResponseHeader& +ProcedureStateResponse::_Internal::header(const ProcedureStateResponse* msg) { + return *msg->_impl_.header_; +} +void ProcedureStateResponse::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +ProcedureStateResponse::ProcedureStateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.ProcedureStateResponse) +} +ProcedureStateResponse::ProcedureStateResponse(const ProcedureStateResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProcedureStateResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.error_){} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.status_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.error_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.error_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_error().empty()) { + _this->_impl_.error_.Set(from._internal_error(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_); + } + _this->_impl_.status_ = from._impl_.status_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.ProcedureStateResponse) +} + +inline void ProcedureStateResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.error_){} + , decltype(_impl_.header_){nullptr} + , decltype(_impl_.status_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.error_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.error_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ProcedureStateResponse::~ProcedureStateResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.ProcedureStateResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ProcedureStateResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.error_.Destroy(); + if (this != internal_default_instance()) delete _impl_.header_; +} + +void ProcedureStateResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ProcedureStateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.ProcedureStateResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.error_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; + _impl_.status_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ProcedureStateResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .greptime.v1.meta.ResponseHeader header = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.ProcedureStatus status = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_status(static_cast<::greptime::v1::meta::ProcedureStatus>(val)); + } else + goto handle_unusual; + continue; + // string error = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_error(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.ProcedureStateResponse.error")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ProcedureStateResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.ProcedureStateResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.ResponseHeader header = 1; + if (this->_internal_has_header()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::header(this), + _Internal::header(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.meta.ProcedureStatus status = 2; + if (this->_internal_status() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_status(), target); + } + + // string error = 3; + if (!this->_internal_error().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_error().data(), static_cast(this->_internal_error().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.meta.ProcedureStateResponse.error"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_error(), 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); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.ProcedureStateResponse) + return target; +} + +size_t ProcedureStateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.ProcedureStateResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string error = 3; + if (!this->_internal_error().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_error()); + } + + // .greptime.v1.meta.ResponseHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // .greptime.v1.meta.ProcedureStatus status = 2; + if (this->_internal_status() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProcedureStateResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ProcedureStateResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProcedureStateResponse::GetClassData() const { return &_class_data_; } + + +void ProcedureStateResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.ProcedureStateResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_status() != 0) { + _this->_internal_set_status(from._internal_status()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ProcedureStateResponse::CopyFrom(const ProcedureStateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.ProcedureStateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProcedureStateResponse::IsInitialized() const { + return true; +} + +void ProcedureStateResponse::InternalSwap(ProcedureStateResponse* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.error_, lhs_arena, + &other->_impl_.error_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.status_) + + sizeof(ProcedureStateResponse::_impl_.status_) + - PROTOBUF_FIELD_OFFSET(ProcedureStateResponse, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProcedureStateResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fprocedure_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace meta +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::QueryProcedureRequest* +Arena::CreateMaybeMessage< ::greptime::v1::meta::QueryProcedureRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::QueryProcedureRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::ProcedureStateResponse* +Arena::CreateMaybeMessage< ::greptime::v1::meta::ProcedureStateResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::ProcedureStateResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/c++/greptime/v1/meta/procedure.pb.h b/c++/greptime/v1/meta/procedure.pb.h new file mode 100644 index 00000000..a3ca813b --- /dev/null +++ b/c++/greptime/v1/meta/procedure.pb.h @@ -0,0 +1,824 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/meta/procedure.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fprocedure_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fprocedure_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "greptime/v1/meta/common.pb.h" +#include "greptime/v1/meta/ddl.pb.h" +#include "greptime/v1/meta/region.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2fprocedure_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto; +namespace greptime { +namespace v1 { +namespace meta { +class ProcedureStateResponse; +struct ProcedureStateResponseDefaultTypeInternal; +extern ProcedureStateResponseDefaultTypeInternal _ProcedureStateResponse_default_instance_; +class QueryProcedureRequest; +struct QueryProcedureRequestDefaultTypeInternal; +extern QueryProcedureRequestDefaultTypeInternal _QueryProcedureRequest_default_instance_; +} // namespace meta +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> ::greptime::v1::meta::ProcedureStateResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::ProcedureStateResponse>(Arena*); +template<> ::greptime::v1::meta::QueryProcedureRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::QueryProcedureRequest>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace greptime { +namespace v1 { +namespace meta { + +enum ProcedureStatus : int { + Running = 0, + Done = 1, + Retrying = 2, + Failed = 3, + ProcedureStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ProcedureStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool ProcedureStatus_IsValid(int value); +constexpr ProcedureStatus ProcedureStatus_MIN = Running; +constexpr ProcedureStatus ProcedureStatus_MAX = Failed; +constexpr int ProcedureStatus_ARRAYSIZE = ProcedureStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcedureStatus_descriptor(); +template +inline const std::string& ProcedureStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ProcedureStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ProcedureStatus_descriptor(), enum_t_value); +} +inline bool ProcedureStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProcedureStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ProcedureStatus_descriptor(), name, value); +} +// =================================================================== + +class QueryProcedureRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.QueryProcedureRequest) */ { + public: + inline QueryProcedureRequest() : QueryProcedureRequest(nullptr) {} + ~QueryProcedureRequest() override; + explicit PROTOBUF_CONSTEXPR QueryProcedureRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + QueryProcedureRequest(const QueryProcedureRequest& from); + QueryProcedureRequest(QueryProcedureRequest&& from) noexcept + : QueryProcedureRequest() { + *this = ::std::move(from); + } + + inline QueryProcedureRequest& operator=(const QueryProcedureRequest& from) { + CopyFrom(from); + return *this; + } + inline QueryProcedureRequest& operator=(QueryProcedureRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const QueryProcedureRequest& default_instance() { + return *internal_default_instance(); + } + static inline const QueryProcedureRequest* internal_default_instance() { + return reinterpret_cast( + &_QueryProcedureRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(QueryProcedureRequest& a, QueryProcedureRequest& b) { + a.Swap(&b); + } + inline void Swap(QueryProcedureRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(QueryProcedureRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + QueryProcedureRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const QueryProcedureRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const QueryProcedureRequest& from) { + QueryProcedureRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(QueryProcedureRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.QueryProcedureRequest"; + } + protected: + explicit QueryProcedureRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHeaderFieldNumber = 1, + kPidFieldNumber = 2, + }; + // .greptime.v1.meta.RequestHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::RequestHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::RequestHeader* release_header(); + ::greptime::v1::meta::RequestHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::RequestHeader* header); + private: + const ::greptime::v1::meta::RequestHeader& _internal_header() const; + ::greptime::v1::meta::RequestHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header); + ::greptime::v1::meta::RequestHeader* unsafe_arena_release_header(); + + // .greptime.v1.meta.ProcedureId pid = 2; + bool has_pid() const; + private: + bool _internal_has_pid() const; + public: + void clear_pid(); + const ::greptime::v1::meta::ProcedureId& pid() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ProcedureId* release_pid(); + ::greptime::v1::meta::ProcedureId* mutable_pid(); + void set_allocated_pid(::greptime::v1::meta::ProcedureId* pid); + private: + const ::greptime::v1::meta::ProcedureId& _internal_pid() const; + ::greptime::v1::meta::ProcedureId* _internal_mutable_pid(); + public: + void unsafe_arena_set_allocated_pid( + ::greptime::v1::meta::ProcedureId* pid); + ::greptime::v1::meta::ProcedureId* unsafe_arena_release_pid(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.QueryProcedureRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::meta::RequestHeader* header_; + ::greptime::v1::meta::ProcedureId* pid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// ------------------------------------------------------------------- + +class ProcedureStateResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.ProcedureStateResponse) */ { + public: + inline ProcedureStateResponse() : ProcedureStateResponse(nullptr) {} + ~ProcedureStateResponse() override; + explicit PROTOBUF_CONSTEXPR ProcedureStateResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProcedureStateResponse(const ProcedureStateResponse& from); + ProcedureStateResponse(ProcedureStateResponse&& from) noexcept + : ProcedureStateResponse() { + *this = ::std::move(from); + } + + inline ProcedureStateResponse& operator=(const ProcedureStateResponse& from) { + CopyFrom(from); + return *this; + } + inline ProcedureStateResponse& operator=(ProcedureStateResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ProcedureStateResponse& default_instance() { + return *internal_default_instance(); + } + static inline const ProcedureStateResponse* internal_default_instance() { + return reinterpret_cast( + &_ProcedureStateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(ProcedureStateResponse& a, ProcedureStateResponse& b) { + a.Swap(&b); + } + inline void Swap(ProcedureStateResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProcedureStateResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ProcedureStateResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ProcedureStateResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ProcedureStateResponse& from) { + ProcedureStateResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProcedureStateResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.ProcedureStateResponse"; + } + protected: + explicit ProcedureStateResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kErrorFieldNumber = 3, + kHeaderFieldNumber = 1, + kStatusFieldNumber = 2, + }; + // string error = 3; + void clear_error(); + const std::string& error() const; + template + void set_error(ArgT0&& arg0, ArgT... args); + std::string* mutable_error(); + PROTOBUF_NODISCARD std::string* release_error(); + void set_allocated_error(std::string* error); + private: + const std::string& _internal_error() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value); + std::string* _internal_mutable_error(); + public: + + // .greptime.v1.meta.ResponseHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::ResponseHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ResponseHeader* release_header(); + ::greptime::v1::meta::ResponseHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::ResponseHeader* header); + private: + const ::greptime::v1::meta::ResponseHeader& _internal_header() const; + ::greptime::v1::meta::ResponseHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header); + ::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header(); + + // .greptime.v1.meta.ProcedureStatus status = 2; + void clear_status(); + ::greptime::v1::meta::ProcedureStatus status() const; + void set_status(::greptime::v1::meta::ProcedureStatus value); + private: + ::greptime::v1::meta::ProcedureStatus _internal_status() const; + void _internal_set_status(::greptime::v1::meta::ProcedureStatus value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureStateResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; + ::greptime::v1::meta::ResponseHeader* header_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// QueryProcedureRequest + +// .greptime.v1.meta.RequestHeader header = 1; +inline bool QueryProcedureRequest::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool QueryProcedureRequest::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::RequestHeader& QueryProcedureRequest::_internal_header() const { + const ::greptime::v1::meta::RequestHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_RequestHeader_default_instance_); +} +inline const ::greptime::v1::meta::RequestHeader& QueryProcedureRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.QueryProcedureRequest.header) + return _internal_header(); +} +inline void QueryProcedureRequest::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.QueryProcedureRequest.header) +} +inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::release_header() { + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.QueryProcedureRequest.header) + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::RequestHeader* QueryProcedureRequest::mutable_header() { + ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.QueryProcedureRequest.header) + return _msg; +} +inline void QueryProcedureRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.QueryProcedureRequest.header) +} + +// .greptime.v1.meta.ProcedureId pid = 2; +inline bool QueryProcedureRequest::_internal_has_pid() const { + return this != internal_default_instance() && _impl_.pid_ != nullptr; +} +inline bool QueryProcedureRequest::has_pid() const { + return _internal_has_pid(); +} +inline const ::greptime::v1::meta::ProcedureId& QueryProcedureRequest::_internal_pid() const { + const ::greptime::v1::meta::ProcedureId* p = _impl_.pid_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ProcedureId_default_instance_); +} +inline const ::greptime::v1::meta::ProcedureId& QueryProcedureRequest::pid() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.QueryProcedureRequest.pid) + return _internal_pid(); +} +inline void QueryProcedureRequest::unsafe_arena_set_allocated_pid( + ::greptime::v1::meta::ProcedureId* pid) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_); + } + _impl_.pid_ = pid; + if (pid) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.QueryProcedureRequest.pid) +} +inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::release_pid() { + + ::greptime::v1::meta::ProcedureId* temp = _impl_.pid_; + _impl_.pid_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::unsafe_arena_release_pid() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.QueryProcedureRequest.pid) + + ::greptime::v1::meta::ProcedureId* temp = _impl_.pid_; + _impl_.pid_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::_internal_mutable_pid() { + + if (_impl_.pid_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(GetArenaForAllocation()); + _impl_.pid_ = p; + } + return _impl_.pid_; +} +inline ::greptime::v1::meta::ProcedureId* QueryProcedureRequest::mutable_pid() { + ::greptime::v1::meta::ProcedureId* _msg = _internal_mutable_pid(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.QueryProcedureRequest.pid) + return _msg; +} +inline void QueryProcedureRequest::set_allocated_pid(::greptime::v1::meta::ProcedureId* pid) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_); + } + if (pid) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pid)); + if (message_arena != submessage_arena) { + pid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pid, submessage_arena); + } + + } else { + + } + _impl_.pid_ = pid; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.QueryProcedureRequest.pid) +} + +// ------------------------------------------------------------------- + +// ProcedureStateResponse + +// .greptime.v1.meta.ResponseHeader header = 1; +inline bool ProcedureStateResponse::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool ProcedureStateResponse::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::ResponseHeader& ProcedureStateResponse::_internal_header() const { + const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ResponseHeader_default_instance_); +} +inline const ::greptime::v1::meta::ResponseHeader& ProcedureStateResponse::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureStateResponse.header) + return _internal_header(); +} +inline void ProcedureStateResponse::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.ProcedureStateResponse.header) +} +inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::release_header() { + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureStateResponse.header) + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::ResponseHeader* ProcedureStateResponse::mutable_header() { + ::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureStateResponse.header) + return _msg; +} +inline void ProcedureStateResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureStateResponse.header) +} + +// .greptime.v1.meta.ProcedureStatus status = 2; +inline void ProcedureStateResponse::clear_status() { + _impl_.status_ = 0; +} +inline ::greptime::v1::meta::ProcedureStatus ProcedureStateResponse::_internal_status() const { + return static_cast< ::greptime::v1::meta::ProcedureStatus >(_impl_.status_); +} +inline ::greptime::v1::meta::ProcedureStatus ProcedureStateResponse::status() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureStateResponse.status) + return _internal_status(); +} +inline void ProcedureStateResponse::_internal_set_status(::greptime::v1::meta::ProcedureStatus value) { + + _impl_.status_ = value; +} +inline void ProcedureStateResponse::set_status(::greptime::v1::meta::ProcedureStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureStateResponse.status) +} + +// string error = 3; +inline void ProcedureStateResponse::clear_error() { + _impl_.error_.ClearToEmpty(); +} +inline const std::string& ProcedureStateResponse::error() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.ProcedureStateResponse.error) + return _internal_error(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ProcedureStateResponse::set_error(ArgT0&& arg0, ArgT... args) { + + _impl_.error_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.meta.ProcedureStateResponse.error) +} +inline std::string* ProcedureStateResponse::mutable_error() { + std::string* _s = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.ProcedureStateResponse.error) + return _s; +} +inline const std::string& ProcedureStateResponse::_internal_error() const { + return _impl_.error_.Get(); +} +inline void ProcedureStateResponse::_internal_set_error(const std::string& value) { + + _impl_.error_.Set(value, GetArenaForAllocation()); +} +inline std::string* ProcedureStateResponse::_internal_mutable_error() { + + return _impl_.error_.Mutable(GetArenaForAllocation()); +} +inline std::string* ProcedureStateResponse::release_error() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.ProcedureStateResponse.error) + return _impl_.error_.Release(); +} +inline void ProcedureStateResponse::set_allocated_error(std::string* error) { + if (error != nullptr) { + + } else { + + } + _impl_.error_.SetAllocated(error, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.error_.IsDefault()) { + _impl_.error_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.ProcedureStateResponse.error) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace meta +} // namespace v1 +} // namespace greptime + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::greptime::v1::meta::ProcedureStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::meta::ProcedureStatus>() { + return ::greptime::v1::meta::ProcedureStatus_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fprocedure_2eproto diff --git a/c++/greptime/v1/meta/region.grpc.pb.cc b/c++/greptime/v1/meta/region.grpc.pb.cc new file mode 100644 index 00000000..e06ebc1b --- /dev/null +++ b/c++/greptime/v1/meta/region.grpc.pb.cc @@ -0,0 +1,29 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/meta/region.proto + +#include "greptime/v1/meta/region.pb.h" +#include "greptime/v1/meta/region.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace greptime { +namespace v1 { +namespace meta { + +} // namespace greptime +} // namespace v1 +} // namespace meta + diff --git a/c++/greptime/v1/meta/region.grpc.pb.h b/c++/greptime/v1/meta/region.grpc.pb.h new file mode 100644 index 00000000..f1e22819 --- /dev/null +++ b/c++/greptime/v1/meta/region.grpc.pb.h @@ -0,0 +1,52 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: greptime/v1/meta/region.proto +// Original file comments: +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#ifndef GRPC_greptime_2fv1_2fmeta_2fregion_2eproto__INCLUDED +#define GRPC_greptime_2fv1_2fmeta_2fregion_2eproto__INCLUDED + +#include "greptime/v1/meta/region.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace greptime { +namespace v1 { +namespace meta { + +} // namespace meta +} // namespace v1 +} // namespace greptime + + +#endif // GRPC_greptime_2fv1_2fmeta_2fregion_2eproto__INCLUDED diff --git a/c++/greptime/v1/meta/region.pb.cc b/c++/greptime/v1/meta/region.pb.cc new file mode 100644 index 00000000..1f2f57a0 --- /dev/null +++ b/c++/greptime/v1/meta/region.pb.cc @@ -0,0 +1,703 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/meta/region.proto + +#include "greptime/v1/meta/region.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + +namespace greptime { +namespace v1 { +namespace meta { +PROTOBUF_CONSTEXPR MigrateRegionRequest::MigrateRegionRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.region_id_)*/uint64_t{0u} + , /*decltype(_impl_.from_peer_)*/uint64_t{0u} + , /*decltype(_impl_.to_peer_)*/uint64_t{0u} + , /*decltype(_impl_.replay_timeout_secs_)*/0u + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MigrateRegionRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR MigrateRegionRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MigrateRegionRequestDefaultTypeInternal() {} + union { + MigrateRegionRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigrateRegionRequestDefaultTypeInternal _MigrateRegionRequest_default_instance_; +PROTOBUF_CONSTEXPR MigrateRegionResponse::MigrateRegionResponse( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.header_)*/nullptr + , /*decltype(_impl_.pid_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MigrateRegionResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR MigrateRegionResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MigrateRegionResponseDefaultTypeInternal() {} + union { + MigrateRegionResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MigrateRegionResponseDefaultTypeInternal _MigrateRegionResponse_default_instance_; +} // namespace meta +} // namespace v1 +} // namespace greptime +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fregion_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fmeta_2fregion_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fregion_2eproto = nullptr; + +const uint32_t TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.from_peer_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.to_peer_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionRequest, _impl_.replay_timeout_secs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionResponse, _impl_.header_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::MigrateRegionResponse, _impl_.pid_), +}; +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::greptime::v1::meta::MigrateRegionRequest)}, + { 11, -1, -1, sizeof(::greptime::v1::meta::MigrateRegionResponse)}, +}; + +static const ::_pb::Message* const file_default_instances[] = { + &::greptime::v1::meta::_MigrateRegionRequest_default_instance_._instance, + &::greptime::v1::meta::_MigrateRegionResponse_default_instance_._instance, +}; + +const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fregion_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\035greptime/v1/meta/region.proto\022\020greptim" + "e.v1.meta\032\035greptime/v1/meta/common.proto" + "\"\233\001\n\024MigrateRegionRequest\022/\n\006header\030\001 \001(" + "\0132\037.greptime.v1.meta.RequestHeader\022\021\n\tre" + "gion_id\030\003 \001(\004\022\021\n\tfrom_peer\030\004 \001(\004\022\017\n\007to_p" + "eer\030\005 \001(\004\022\033\n\023replay_timeout_secs\030\006 \001(\r\"u" + "\n\025MigrateRegionResponse\0220\n\006header\030\001 \001(\0132" + " .greptime.v1.meta.ResponseHeader\022*\n\003pid" + "\030\002 \001(\0132\035.greptime.v1.meta.ProcedureIdB_impl_.header_; +} +void MigrateRegionRequest::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +MigrateRegionRequest::MigrateRegionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.MigrateRegionRequest) +} +MigrateRegionRequest::MigrateRegionRequest(const MigrateRegionRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MigrateRegionRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.region_id_){} + , decltype(_impl_.from_peer_){} + , decltype(_impl_.to_peer_){} + , decltype(_impl_.replay_timeout_secs_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::meta::RequestHeader(*from._impl_.header_); + } + ::memcpy(&_impl_.region_id_, &from._impl_.region_id_, + static_cast(reinterpret_cast(&_impl_.replay_timeout_secs_) - + reinterpret_cast(&_impl_.region_id_)) + sizeof(_impl_.replay_timeout_secs_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.MigrateRegionRequest) +} + +inline void MigrateRegionRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.region_id_){uint64_t{0u}} + , decltype(_impl_.from_peer_){uint64_t{0u}} + , decltype(_impl_.to_peer_){uint64_t{0u}} + , decltype(_impl_.replay_timeout_secs_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MigrateRegionRequest::~MigrateRegionRequest() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.MigrateRegionRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MigrateRegionRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; +} + +void MigrateRegionRequest::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MigrateRegionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.MigrateRegionRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; + ::memset(&_impl_.region_id_, 0, static_cast( + reinterpret_cast(&_impl_.replay_timeout_secs_) - + reinterpret_cast(&_impl_.region_id_)) + sizeof(_impl_.replay_timeout_secs_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MigrateRegionRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .greptime.v1.meta.RequestHeader header = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 region_id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 from_peer = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.from_peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint64 to_peer = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.to_peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // uint32 replay_timeout_secs = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.replay_timeout_secs_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MigrateRegionRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.MigrateRegionRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::header(this), + _Internal::header(this).GetCachedSize(), target, stream); + } + + // uint64 region_id = 3; + if (this->_internal_region_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_region_id(), target); + } + + // uint64 from_peer = 4; + if (this->_internal_from_peer() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_from_peer(), target); + } + + // uint64 to_peer = 5; + if (this->_internal_to_peer() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_to_peer(), target); + } + + // uint32 replay_timeout_secs = 6; + if (this->_internal_replay_timeout_secs() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_replay_timeout_secs(), 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); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.MigrateRegionRequest) + return target; +} + +size_t MigrateRegionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.MigrateRegionRequest) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .greptime.v1.meta.RequestHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // uint64 region_id = 3; + if (this->_internal_region_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); + } + + // uint64 from_peer = 4; + if (this->_internal_from_peer() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_from_peer()); + } + + // uint64 to_peer = 5; + if (this->_internal_to_peer() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_to_peer()); + } + + // uint32 replay_timeout_secs = 6; + if (this->_internal_replay_timeout_secs() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_replay_timeout_secs()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MigrateRegionRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MigrateRegionRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MigrateRegionRequest::GetClassData() const { return &_class_data_; } + + +void MigrateRegionRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.MigrateRegionRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::RequestHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_region_id() != 0) { + _this->_internal_set_region_id(from._internal_region_id()); + } + if (from._internal_from_peer() != 0) { + _this->_internal_set_from_peer(from._internal_from_peer()); + } + if (from._internal_to_peer() != 0) { + _this->_internal_set_to_peer(from._internal_to_peer()); + } + if (from._internal_replay_timeout_secs() != 0) { + _this->_internal_set_replay_timeout_secs(from._internal_replay_timeout_secs()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MigrateRegionRequest::CopyFrom(const MigrateRegionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.MigrateRegionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MigrateRegionRequest::IsInitialized() const { + return true; +} + +void MigrateRegionRequest::InternalSwap(MigrateRegionRequest* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MigrateRegionRequest, _impl_.replay_timeout_secs_) + + sizeof(MigrateRegionRequest::_impl_.replay_timeout_secs_) + - PROTOBUF_FIELD_OFFSET(MigrateRegionRequest, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MigrateRegionRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fregion_2eproto[0]); +} + +// =================================================================== + +class MigrateRegionResponse::_Internal { + public: + static const ::greptime::v1::meta::ResponseHeader& header(const MigrateRegionResponse* msg); + static const ::greptime::v1::meta::ProcedureId& pid(const MigrateRegionResponse* msg); +}; + +const ::greptime::v1::meta::ResponseHeader& +MigrateRegionResponse::_Internal::header(const MigrateRegionResponse* msg) { + return *msg->_impl_.header_; +} +const ::greptime::v1::meta::ProcedureId& +MigrateRegionResponse::_Internal::pid(const MigrateRegionResponse* msg) { + return *msg->_impl_.pid_; +} +void MigrateRegionResponse::clear_header() { + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; +} +void MigrateRegionResponse::clear_pid() { + if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; +} +MigrateRegionResponse::MigrateRegionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.meta.MigrateRegionResponse) +} +MigrateRegionResponse::MigrateRegionResponse(const MigrateRegionResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + MigrateRegionResponse* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_header()) { + _this->_impl_.header_ = new ::greptime::v1::meta::ResponseHeader(*from._impl_.header_); + } + if (from._internal_has_pid()) { + _this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.MigrateRegionResponse) +} + +inline void MigrateRegionResponse::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.header_){nullptr} + , decltype(_impl_.pid_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +MigrateRegionResponse::~MigrateRegionResponse() { + // @@protoc_insertion_point(destructor:greptime.v1.meta.MigrateRegionResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void MigrateRegionResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.header_; + if (this != internal_default_instance()) delete _impl_.pid_; +} + +void MigrateRegionResponse::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void MigrateRegionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.MigrateRegionResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) { + delete _impl_.header_; + } + _impl_.header_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.pid_ != nullptr) { + delete _impl_.pid_; + } + _impl_.pid_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MigrateRegionResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .greptime.v1.meta.ResponseHeader header = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_header(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.meta.ProcedureId pid = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_pid(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MigrateRegionResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.MigrateRegionResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.meta.ResponseHeader header = 1; + if (this->_internal_has_header()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::header(this), + _Internal::header(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::pid(this), + _Internal::pid(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.MigrateRegionResponse) + return target; +} + +size_t MigrateRegionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.MigrateRegionResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .greptime.v1.meta.ResponseHeader header = 1; + if (this->_internal_has_header()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.header_); + } + + // .greptime.v1.meta.ProcedureId pid = 2; + if (this->_internal_has_pid()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.pid_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MigrateRegionResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MigrateRegionResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MigrateRegionResponse::GetClassData() const { return &_class_data_; } + + +void MigrateRegionResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.MigrateRegionResponse) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_header()) { + _this->_internal_mutable_header()->::greptime::v1::meta::ResponseHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_has_pid()) { + _this->_internal_mutable_pid()->::greptime::v1::meta::ProcedureId::MergeFrom( + from._internal_pid()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MigrateRegionResponse::CopyFrom(const MigrateRegionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.MigrateRegionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MigrateRegionResponse::IsInitialized() const { + return true; +} + +void MigrateRegionResponse::InternalSwap(MigrateRegionResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MigrateRegionResponse, _impl_.pid_) + + sizeof(MigrateRegionResponse::_impl_.pid_) + - PROTOBUF_FIELD_OFFSET(MigrateRegionResponse, _impl_.header_)>( + reinterpret_cast(&_impl_.header_), + reinterpret_cast(&other->_impl_.header_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MigrateRegionResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto_once, + file_level_metadata_greptime_2fv1_2fmeta_2fregion_2eproto[1]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace meta +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::MigrateRegionRequest* +Arena::CreateMaybeMessage< ::greptime::v1::meta::MigrateRegionRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::MigrateRegionRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::meta::MigrateRegionResponse* +Arena::CreateMaybeMessage< ::greptime::v1::meta::MigrateRegionResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::meta::MigrateRegionResponse >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/c++/greptime/v1/meta/region.pb.h b/c++/greptime/v1/meta/region.pb.h new file mode 100644 index 00000000..5f85c15b --- /dev/null +++ b/c++/greptime/v1/meta/region.pb.h @@ -0,0 +1,811 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greptime/v1/meta/region.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fregion_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fregion_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3021000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "greptime/v1/meta/common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2fregion_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto { + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fregion_2eproto; +namespace greptime { +namespace v1 { +namespace meta { +class MigrateRegionRequest; +struct MigrateRegionRequestDefaultTypeInternal; +extern MigrateRegionRequestDefaultTypeInternal _MigrateRegionRequest_default_instance_; +class MigrateRegionResponse; +struct MigrateRegionResponseDefaultTypeInternal; +extern MigrateRegionResponseDefaultTypeInternal _MigrateRegionResponse_default_instance_; +} // namespace meta +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> ::greptime::v1::meta::MigrateRegionRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::MigrateRegionRequest>(Arena*); +template<> ::greptime::v1::meta::MigrateRegionResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::MigrateRegionResponse>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace greptime { +namespace v1 { +namespace meta { + +// =================================================================== + +class MigrateRegionRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.MigrateRegionRequest) */ { + public: + inline MigrateRegionRequest() : MigrateRegionRequest(nullptr) {} + ~MigrateRegionRequest() override; + explicit PROTOBUF_CONSTEXPR MigrateRegionRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MigrateRegionRequest(const MigrateRegionRequest& from); + MigrateRegionRequest(MigrateRegionRequest&& from) noexcept + : MigrateRegionRequest() { + *this = ::std::move(from); + } + + inline MigrateRegionRequest& operator=(const MigrateRegionRequest& from) { + CopyFrom(from); + return *this; + } + inline MigrateRegionRequest& operator=(MigrateRegionRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MigrateRegionRequest& default_instance() { + return *internal_default_instance(); + } + static inline const MigrateRegionRequest* internal_default_instance() { + return reinterpret_cast( + &_MigrateRegionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(MigrateRegionRequest& a, MigrateRegionRequest& b) { + a.Swap(&b); + } + inline void Swap(MigrateRegionRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MigrateRegionRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MigrateRegionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MigrateRegionRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MigrateRegionRequest& from) { + MigrateRegionRequest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MigrateRegionRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.MigrateRegionRequest"; + } + protected: + explicit MigrateRegionRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHeaderFieldNumber = 1, + kRegionIdFieldNumber = 3, + kFromPeerFieldNumber = 4, + kToPeerFieldNumber = 5, + kReplayTimeoutSecsFieldNumber = 6, + }; + // .greptime.v1.meta.RequestHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::RequestHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::RequestHeader* release_header(); + ::greptime::v1::meta::RequestHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::RequestHeader* header); + private: + const ::greptime::v1::meta::RequestHeader& _internal_header() const; + ::greptime::v1::meta::RequestHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header); + ::greptime::v1::meta::RequestHeader* unsafe_arena_release_header(); + + // uint64 region_id = 3; + void clear_region_id(); + uint64_t region_id() const; + void set_region_id(uint64_t value); + private: + uint64_t _internal_region_id() const; + void _internal_set_region_id(uint64_t value); + public: + + // uint64 from_peer = 4; + void clear_from_peer(); + uint64_t from_peer() const; + void set_from_peer(uint64_t value); + private: + uint64_t _internal_from_peer() const; + void _internal_set_from_peer(uint64_t value); + public: + + // uint64 to_peer = 5; + void clear_to_peer(); + uint64_t to_peer() const; + void set_to_peer(uint64_t value); + private: + uint64_t _internal_to_peer() const; + void _internal_set_to_peer(uint64_t value); + public: + + // uint32 replay_timeout_secs = 6; + void clear_replay_timeout_secs(); + uint32_t replay_timeout_secs() const; + void set_replay_timeout_secs(uint32_t value); + private: + uint32_t _internal_replay_timeout_secs() const; + void _internal_set_replay_timeout_secs(uint32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.MigrateRegionRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::meta::RequestHeader* header_; + uint64_t region_id_; + uint64_t from_peer_; + uint64_t to_peer_; + uint32_t replay_timeout_secs_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto; +}; +// ------------------------------------------------------------------- + +class MigrateRegionResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.MigrateRegionResponse) */ { + public: + inline MigrateRegionResponse() : MigrateRegionResponse(nullptr) {} + ~MigrateRegionResponse() override; + explicit PROTOBUF_CONSTEXPR MigrateRegionResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MigrateRegionResponse(const MigrateRegionResponse& from); + MigrateRegionResponse(MigrateRegionResponse&& from) noexcept + : MigrateRegionResponse() { + *this = ::std::move(from); + } + + inline MigrateRegionResponse& operator=(const MigrateRegionResponse& from) { + CopyFrom(from); + return *this; + } + inline MigrateRegionResponse& operator=(MigrateRegionResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MigrateRegionResponse& default_instance() { + return *internal_default_instance(); + } + static inline const MigrateRegionResponse* internal_default_instance() { + return reinterpret_cast( + &_MigrateRegionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(MigrateRegionResponse& a, MigrateRegionResponse& b) { + a.Swap(&b); + } + inline void Swap(MigrateRegionResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MigrateRegionResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MigrateRegionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MigrateRegionResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MigrateRegionResponse& from) { + MigrateRegionResponse::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MigrateRegionResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.meta.MigrateRegionResponse"; + } + protected: + explicit MigrateRegionResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHeaderFieldNumber = 1, + kPidFieldNumber = 2, + }; + // .greptime.v1.meta.ResponseHeader header = 1; + bool has_header() const; + private: + bool _internal_has_header() const; + public: + void clear_header(); + const ::greptime::v1::meta::ResponseHeader& header() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ResponseHeader* release_header(); + ::greptime::v1::meta::ResponseHeader* mutable_header(); + void set_allocated_header(::greptime::v1::meta::ResponseHeader* header); + private: + const ::greptime::v1::meta::ResponseHeader& _internal_header() const; + ::greptime::v1::meta::ResponseHeader* _internal_mutable_header(); + public: + void unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header); + ::greptime::v1::meta::ResponseHeader* unsafe_arena_release_header(); + + // .greptime.v1.meta.ProcedureId pid = 2; + bool has_pid() const; + private: + bool _internal_has_pid() const; + public: + void clear_pid(); + const ::greptime::v1::meta::ProcedureId& pid() const; + PROTOBUF_NODISCARD ::greptime::v1::meta::ProcedureId* release_pid(); + ::greptime::v1::meta::ProcedureId* mutable_pid(); + void set_allocated_pid(::greptime::v1::meta::ProcedureId* pid); + private: + const ::greptime::v1::meta::ProcedureId& _internal_pid() const; + ::greptime::v1::meta::ProcedureId* _internal_mutable_pid(); + public: + void unsafe_arena_set_allocated_pid( + ::greptime::v1::meta::ProcedureId* pid); + ::greptime::v1::meta::ProcedureId* unsafe_arena_release_pid(); + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.MigrateRegionResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::meta::ResponseHeader* header_; + ::greptime::v1::meta::ProcedureId* pid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fmeta_2fregion_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MigrateRegionRequest + +// .greptime.v1.meta.RequestHeader header = 1; +inline bool MigrateRegionRequest::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool MigrateRegionRequest::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::RequestHeader& MigrateRegionRequest::_internal_header() const { + const ::greptime::v1::meta::RequestHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_RequestHeader_default_instance_); +} +inline const ::greptime::v1::meta::RequestHeader& MigrateRegionRequest::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.header) + return _internal_header(); +} +inline void MigrateRegionRequest::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::RequestHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MigrateRegionRequest.header) +} +inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::release_header() { + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.MigrateRegionRequest.header) + + ::greptime::v1::meta::RequestHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::RequestHeader* MigrateRegionRequest::mutable_header() { + ::greptime::v1::meta::RequestHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MigrateRegionRequest.header) + return _msg; +} +inline void MigrateRegionRequest::set_allocated_header(::greptime::v1::meta::RequestHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MigrateRegionRequest.header) +} + +// uint64 region_id = 3; +inline void MigrateRegionRequest::clear_region_id() { + _impl_.region_id_ = uint64_t{0u}; +} +inline uint64_t MigrateRegionRequest::_internal_region_id() const { + return _impl_.region_id_; +} +inline uint64_t MigrateRegionRequest::region_id() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.region_id) + return _internal_region_id(); +} +inline void MigrateRegionRequest::_internal_set_region_id(uint64_t value) { + + _impl_.region_id_ = value; +} +inline void MigrateRegionRequest::set_region_id(uint64_t value) { + _internal_set_region_id(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.region_id) +} + +// uint64 from_peer = 4; +inline void MigrateRegionRequest::clear_from_peer() { + _impl_.from_peer_ = uint64_t{0u}; +} +inline uint64_t MigrateRegionRequest::_internal_from_peer() const { + return _impl_.from_peer_; +} +inline uint64_t MigrateRegionRequest::from_peer() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.from_peer) + return _internal_from_peer(); +} +inline void MigrateRegionRequest::_internal_set_from_peer(uint64_t value) { + + _impl_.from_peer_ = value; +} +inline void MigrateRegionRequest::set_from_peer(uint64_t value) { + _internal_set_from_peer(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.from_peer) +} + +// uint64 to_peer = 5; +inline void MigrateRegionRequest::clear_to_peer() { + _impl_.to_peer_ = uint64_t{0u}; +} +inline uint64_t MigrateRegionRequest::_internal_to_peer() const { + return _impl_.to_peer_; +} +inline uint64_t MigrateRegionRequest::to_peer() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.to_peer) + return _internal_to_peer(); +} +inline void MigrateRegionRequest::_internal_set_to_peer(uint64_t value) { + + _impl_.to_peer_ = value; +} +inline void MigrateRegionRequest::set_to_peer(uint64_t value) { + _internal_set_to_peer(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.to_peer) +} + +// uint32 replay_timeout_secs = 6; +inline void MigrateRegionRequest::clear_replay_timeout_secs() { + _impl_.replay_timeout_secs_ = 0u; +} +inline uint32_t MigrateRegionRequest::_internal_replay_timeout_secs() const { + return _impl_.replay_timeout_secs_; +} +inline uint32_t MigrateRegionRequest::replay_timeout_secs() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionRequest.replay_timeout_secs) + return _internal_replay_timeout_secs(); +} +inline void MigrateRegionRequest::_internal_set_replay_timeout_secs(uint32_t value) { + + _impl_.replay_timeout_secs_ = value; +} +inline void MigrateRegionRequest::set_replay_timeout_secs(uint32_t value) { + _internal_set_replay_timeout_secs(value); + // @@protoc_insertion_point(field_set:greptime.v1.meta.MigrateRegionRequest.replay_timeout_secs) +} + +// ------------------------------------------------------------------- + +// MigrateRegionResponse + +// .greptime.v1.meta.ResponseHeader header = 1; +inline bool MigrateRegionResponse::_internal_has_header() const { + return this != internal_default_instance() && _impl_.header_ != nullptr; +} +inline bool MigrateRegionResponse::has_header() const { + return _internal_has_header(); +} +inline const ::greptime::v1::meta::ResponseHeader& MigrateRegionResponse::_internal_header() const { + const ::greptime::v1::meta::ResponseHeader* p = _impl_.header_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ResponseHeader_default_instance_); +} +inline const ::greptime::v1::meta::ResponseHeader& MigrateRegionResponse::header() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionResponse.header) + return _internal_header(); +} +inline void MigrateRegionResponse::unsafe_arena_set_allocated_header( + ::greptime::v1::meta::ResponseHeader* header) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + _impl_.header_ = header; + if (header) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MigrateRegionResponse.header) +} +inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::release_header() { + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::unsafe_arena_release_header() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.MigrateRegionResponse.header) + + ::greptime::v1::meta::ResponseHeader* temp = _impl_.header_; + _impl_.header_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::_internal_mutable_header() { + + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(GetArenaForAllocation()); + _impl_.header_ = p; + } + return _impl_.header_; +} +inline ::greptime::v1::meta::ResponseHeader* MigrateRegionResponse::mutable_header() { + ::greptime::v1::meta::ResponseHeader* _msg = _internal_mutable_header(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MigrateRegionResponse.header) + return _msg; +} +inline void MigrateRegionResponse::set_allocated_header(::greptime::v1::meta::ResponseHeader* header) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_); + } + if (header) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)); + if (message_arena != submessage_arena) { + header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, header, submessage_arena); + } + + } else { + + } + _impl_.header_ = header; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MigrateRegionResponse.header) +} + +// .greptime.v1.meta.ProcedureId pid = 2; +inline bool MigrateRegionResponse::_internal_has_pid() const { + return this != internal_default_instance() && _impl_.pid_ != nullptr; +} +inline bool MigrateRegionResponse::has_pid() const { + return _internal_has_pid(); +} +inline const ::greptime::v1::meta::ProcedureId& MigrateRegionResponse::_internal_pid() const { + const ::greptime::v1::meta::ProcedureId* p = _impl_.pid_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::meta::_ProcedureId_default_instance_); +} +inline const ::greptime::v1::meta::ProcedureId& MigrateRegionResponse::pid() const { + // @@protoc_insertion_point(field_get:greptime.v1.meta.MigrateRegionResponse.pid) + return _internal_pid(); +} +inline void MigrateRegionResponse::unsafe_arena_set_allocated_pid( + ::greptime::v1::meta::ProcedureId* pid) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_); + } + _impl_.pid_ = pid; + if (pid) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.MigrateRegionResponse.pid) +} +inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::release_pid() { + + ::greptime::v1::meta::ProcedureId* temp = _impl_.pid_; + _impl_.pid_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::unsafe_arena_release_pid() { + // @@protoc_insertion_point(field_release:greptime.v1.meta.MigrateRegionResponse.pid) + + ::greptime::v1::meta::ProcedureId* temp = _impl_.pid_; + _impl_.pid_ = nullptr; + return temp; +} +inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::_internal_mutable_pid() { + + if (_impl_.pid_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::meta::ProcedureId>(GetArenaForAllocation()); + _impl_.pid_ = p; + } + return _impl_.pid_; +} +inline ::greptime::v1::meta::ProcedureId* MigrateRegionResponse::mutable_pid() { + ::greptime::v1::meta::ProcedureId* _msg = _internal_mutable_pid(); + // @@protoc_insertion_point(field_mutable:greptime.v1.meta.MigrateRegionResponse.pid) + return _msg; +} +inline void MigrateRegionResponse::set_allocated_pid(::greptime::v1::meta::ProcedureId* pid) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pid_); + } + if (pid) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pid)); + if (message_arena != submessage_arena) { + pid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, pid, submessage_arena); + } + + } else { + + } + _impl_.pid_ = pid; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.MigrateRegionResponse.pid) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace meta +} // namespace v1 +} // namespace greptime + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_greptime_2fv1_2fmeta_2fregion_2eproto diff --git a/go/greptime/v1/meta/common.pb.go b/go/greptime/v1/meta/common.pb.go index 962fd2d3..5f320558 100644 --- a/go/greptime/v1/meta/common.pb.go +++ b/go/greptime/v1/meta/common.pb.go @@ -561,6 +561,54 @@ func (x *KeyValue) GetValue() []byte { return nil } +// Procedure identifer +type ProcedureId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` +} + +func (x *ProcedureId) Reset() { + *x = ProcedureId{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_common_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcedureId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcedureId) ProtoMessage() {} + +func (x *ProcedureId) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_common_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProcedureId.ProtoReflect.Descriptor instead. +func (*ProcedureId) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{8} +} + +func (x *ProcedureId) GetKey() []byte { + if x != nil { + return x.Key + } + return nil +} + var File_greptime_v1_meta_common_proto protoreflect.FileDescriptor var file_greptime_v1_meta_common_proto_rawDesc = []byte{ @@ -621,14 +669,16 @@ var file_greptime_v1_meta_common_proto_rawDesc = []byte{ 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, 0x2a, 0x22, 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, - 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, + 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, 0x22, 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, 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 ( @@ -644,7 +694,7 @@ func file_greptime_v1_meta_common_proto_rawDescGZIP() []byte { } var file_greptime_v1_meta_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_greptime_v1_meta_common_proto_goTypes = []interface{}{ (Role)(0), // 0: greptime.v1.meta.Role (*RequestHeader)(nil), // 1: greptime.v1.meta.RequestHeader @@ -655,17 +705,18 @@ var file_greptime_v1_meta_common_proto_goTypes = []interface{}{ (*TableName)(nil), // 6: greptime.v1.meta.TableName (*TimeInterval)(nil), // 7: greptime.v1.meta.TimeInterval (*KeyValue)(nil), // 8: greptime.v1.meta.KeyValue - nil, // 9: greptime.v1.meta.RequestHeader.TracingContextEntry + (*ProcedureId)(nil), // 9: greptime.v1.meta.ProcedureId + nil, // 10: greptime.v1.meta.RequestHeader.TracingContextEntry } var file_greptime_v1_meta_common_proto_depIdxs = []int32{ - 0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role - 9, // 1: greptime.v1.meta.RequestHeader.tracing_context:type_name -> greptime.v1.meta.RequestHeader.TracingContextEntry - 3, // 2: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role + 10, // 1: greptime.v1.meta.RequestHeader.tracing_context:type_name -> greptime.v1.meta.RequestHeader.TracingContextEntry + 3, // 2: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_greptime_v1_meta_common_proto_init() } @@ -770,6 +821,18 @@ func file_greptime_v1_meta_common_proto_init() { return nil } } + file_greptime_v1_meta_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcedureId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -777,7 +840,7 @@ func file_greptime_v1_meta_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_meta_common_proto_rawDesc, NumEnums: 1, - NumMessages: 9, + NumMessages: 10, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/meta/ddl.pb.go b/go/greptime/v1/meta/ddl.pb.go index 40760d2c..b5720b4c 100644 --- a/go/greptime/v1/meta/ddl.pb.go +++ b/go/greptime/v1/meta/ddl.pb.go @@ -426,7 +426,7 @@ func (x *TruncateTableTask) GetTruncateTable() *v1.TruncateTableExpr { return nil } -type SubmitDdlTaskRequest struct { +type DdlTaskRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -434,18 +434,18 @@ type SubmitDdlTaskRequest struct { Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // Types that are assignable to Task: // - // *SubmitDdlTaskRequest_CreateTableTask - // *SubmitDdlTaskRequest_DropTableTask - // *SubmitDdlTaskRequest_AlterTableTask - // *SubmitDdlTaskRequest_TruncateTableTask - // *SubmitDdlTaskRequest_CreateTableTasks - // *SubmitDdlTaskRequest_DropTableTasks - // *SubmitDdlTaskRequest_AlterTableTasks - Task isSubmitDdlTaskRequest_Task `protobuf_oneof:"task"` -} - -func (x *SubmitDdlTaskRequest) Reset() { - *x = SubmitDdlTaskRequest{} + // *DdlTaskRequest_CreateTableTask + // *DdlTaskRequest_DropTableTask + // *DdlTaskRequest_AlterTableTask + // *DdlTaskRequest_TruncateTableTask + // *DdlTaskRequest_CreateTableTasks + // *DdlTaskRequest_DropTableTasks + // *DdlTaskRequest_AlterTableTasks + Task isDdlTaskRequest_Task `protobuf_oneof:"task"` +} + +func (x *DdlTaskRequest) Reset() { + *x = DdlTaskRequest{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -453,13 +453,13 @@ func (x *SubmitDdlTaskRequest) Reset() { } } -func (x *SubmitDdlTaskRequest) String() string { +func (x *DdlTaskRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SubmitDdlTaskRequest) ProtoMessage() {} +func (*DdlTaskRequest) ProtoMessage() {} -func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message { +func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -471,128 +471,127 @@ func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SubmitDdlTaskRequest.ProtoReflect.Descriptor instead. -func (*SubmitDdlTaskRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use DdlTaskRequest.ProtoReflect.Descriptor instead. +func (*DdlTaskRequest) Descriptor() ([]byte, []int) { return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{7} } -func (x *SubmitDdlTaskRequest) GetHeader() *RequestHeader { +func (x *DdlTaskRequest) GetHeader() *RequestHeader { if x != nil { return x.Header } return nil } -func (m *SubmitDdlTaskRequest) GetTask() isSubmitDdlTaskRequest_Task { +func (m *DdlTaskRequest) GetTask() isDdlTaskRequest_Task { if m != nil { return m.Task } return nil } -func (x *SubmitDdlTaskRequest) GetCreateTableTask() *CreateTableTask { - if x, ok := x.GetTask().(*SubmitDdlTaskRequest_CreateTableTask); ok { +func (x *DdlTaskRequest) GetCreateTableTask() *CreateTableTask { + if x, ok := x.GetTask().(*DdlTaskRequest_CreateTableTask); ok { return x.CreateTableTask } return nil } -func (x *SubmitDdlTaskRequest) GetDropTableTask() *DropTableTask { - if x, ok := x.GetTask().(*SubmitDdlTaskRequest_DropTableTask); ok { +func (x *DdlTaskRequest) GetDropTableTask() *DropTableTask { + if x, ok := x.GetTask().(*DdlTaskRequest_DropTableTask); ok { return x.DropTableTask } return nil } -func (x *SubmitDdlTaskRequest) GetAlterTableTask() *AlterTableTask { - if x, ok := x.GetTask().(*SubmitDdlTaskRequest_AlterTableTask); ok { +func (x *DdlTaskRequest) GetAlterTableTask() *AlterTableTask { + if x, ok := x.GetTask().(*DdlTaskRequest_AlterTableTask); ok { return x.AlterTableTask } return nil } -func (x *SubmitDdlTaskRequest) GetTruncateTableTask() *TruncateTableTask { - if x, ok := x.GetTask().(*SubmitDdlTaskRequest_TruncateTableTask); ok { +func (x *DdlTaskRequest) GetTruncateTableTask() *TruncateTableTask { + if x, ok := x.GetTask().(*DdlTaskRequest_TruncateTableTask); ok { return x.TruncateTableTask } return nil } -func (x *SubmitDdlTaskRequest) GetCreateTableTasks() *CreateTableTasks { - if x, ok := x.GetTask().(*SubmitDdlTaskRequest_CreateTableTasks); ok { +func (x *DdlTaskRequest) GetCreateTableTasks() *CreateTableTasks { + if x, ok := x.GetTask().(*DdlTaskRequest_CreateTableTasks); ok { return x.CreateTableTasks } return nil } -func (x *SubmitDdlTaskRequest) GetDropTableTasks() *DropTableTasks { - if x, ok := x.GetTask().(*SubmitDdlTaskRequest_DropTableTasks); ok { +func (x *DdlTaskRequest) GetDropTableTasks() *DropTableTasks { + if x, ok := x.GetTask().(*DdlTaskRequest_DropTableTasks); ok { return x.DropTableTasks } return nil } -func (x *SubmitDdlTaskRequest) GetAlterTableTasks() *AlterTableTasks { - if x, ok := x.GetTask().(*SubmitDdlTaskRequest_AlterTableTasks); ok { +func (x *DdlTaskRequest) GetAlterTableTasks() *AlterTableTasks { + if x, ok := x.GetTask().(*DdlTaskRequest_AlterTableTasks); ok { return x.AlterTableTasks } return nil } -type isSubmitDdlTaskRequest_Task interface { - isSubmitDdlTaskRequest_Task() +type isDdlTaskRequest_Task interface { + isDdlTaskRequest_Task() } -type SubmitDdlTaskRequest_CreateTableTask struct { +type DdlTaskRequest_CreateTableTask struct { CreateTableTask *CreateTableTask `protobuf:"bytes,2,opt,name=create_table_task,json=createTableTask,proto3,oneof"` } -type SubmitDdlTaskRequest_DropTableTask struct { +type DdlTaskRequest_DropTableTask struct { DropTableTask *DropTableTask `protobuf:"bytes,3,opt,name=drop_table_task,json=dropTableTask,proto3,oneof"` } -type SubmitDdlTaskRequest_AlterTableTask struct { +type DdlTaskRequest_AlterTableTask struct { AlterTableTask *AlterTableTask `protobuf:"bytes,4,opt,name=alter_table_task,json=alterTableTask,proto3,oneof"` } -type SubmitDdlTaskRequest_TruncateTableTask struct { +type DdlTaskRequest_TruncateTableTask struct { TruncateTableTask *TruncateTableTask `protobuf:"bytes,5,opt,name=truncate_table_task,json=truncateTableTask,proto3,oneof"` } -type SubmitDdlTaskRequest_CreateTableTasks struct { +type DdlTaskRequest_CreateTableTasks struct { CreateTableTasks *CreateTableTasks `protobuf:"bytes,6,opt,name=create_table_tasks,json=createTableTasks,proto3,oneof"` } -type SubmitDdlTaskRequest_DropTableTasks struct { +type DdlTaskRequest_DropTableTasks struct { DropTableTasks *DropTableTasks `protobuf:"bytes,7,opt,name=drop_table_tasks,json=dropTableTasks,proto3,oneof"` } -type SubmitDdlTaskRequest_AlterTableTasks struct { +type DdlTaskRequest_AlterTableTasks struct { AlterTableTasks *AlterTableTasks `protobuf:"bytes,8,opt,name=alter_table_tasks,json=alterTableTasks,proto3,oneof"` } -func (*SubmitDdlTaskRequest_CreateTableTask) isSubmitDdlTaskRequest_Task() {} +func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {} -func (*SubmitDdlTaskRequest_DropTableTask) isSubmitDdlTaskRequest_Task() {} +func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {} -func (*SubmitDdlTaskRequest_AlterTableTask) isSubmitDdlTaskRequest_Task() {} +func (*DdlTaskRequest_AlterTableTask) isDdlTaskRequest_Task() {} -func (*SubmitDdlTaskRequest_TruncateTableTask) isSubmitDdlTaskRequest_Task() {} +func (*DdlTaskRequest_TruncateTableTask) isDdlTaskRequest_Task() {} -func (*SubmitDdlTaskRequest_CreateTableTasks) isSubmitDdlTaskRequest_Task() {} +func (*DdlTaskRequest_CreateTableTasks) isDdlTaskRequest_Task() {} -func (*SubmitDdlTaskRequest_DropTableTasks) isSubmitDdlTaskRequest_Task() {} +func (*DdlTaskRequest_DropTableTasks) isDdlTaskRequest_Task() {} -func (*SubmitDdlTaskRequest_AlterTableTasks) isSubmitDdlTaskRequest_Task() {} +func (*DdlTaskRequest_AlterTableTasks) isDdlTaskRequest_Task() {} -type SubmitDdlTaskResponse struct { +type DdlTaskResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - // Key is the identifier for the ddl task. - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + Pid *ProcedureId `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"` // Returns if table created. // TODO(jeremy): remove it? TableId *TableId `protobuf:"bytes,4,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` @@ -600,8 +599,8 @@ type SubmitDdlTaskResponse struct { TableIds []*TableId `protobuf:"bytes,5,rep,name=table_ids,json=tableIds,proto3" json:"table_ids,omitempty"` } -func (x *SubmitDdlTaskResponse) Reset() { - *x = SubmitDdlTaskResponse{} +func (x *DdlTaskResponse) Reset() { + *x = DdlTaskResponse{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -609,13 +608,13 @@ func (x *SubmitDdlTaskResponse) Reset() { } } -func (x *SubmitDdlTaskResponse) String() string { +func (x *DdlTaskResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SubmitDdlTaskResponse) ProtoMessage() {} +func (*DdlTaskResponse) ProtoMessage() {} -func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message { +func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -627,33 +626,33 @@ func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SubmitDdlTaskResponse.ProtoReflect.Descriptor instead. -func (*SubmitDdlTaskResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use DdlTaskResponse.ProtoReflect.Descriptor instead. +func (*DdlTaskResponse) Descriptor() ([]byte, []int) { return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{8} } -func (x *SubmitDdlTaskResponse) GetHeader() *ResponseHeader { +func (x *DdlTaskResponse) GetHeader() *ResponseHeader { if x != nil { return x.Header } return nil } -func (x *SubmitDdlTaskResponse) GetKey() []byte { +func (x *DdlTaskResponse) GetPid() *ProcedureId { if x != nil { - return x.Key + return x.Pid } return nil } -func (x *SubmitDdlTaskResponse) GetTableId() *TableId { +func (x *DdlTaskResponse) GetTableId() *TableId { if x != nil { return x.TableId } return nil } -func (x *SubmitDdlTaskResponse) GetTableIds() []*TableId { +func (x *DdlTaskResponse) GetTableIds() []*TableId { if x != nil { return x.TableIds } @@ -711,75 +710,69 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{ 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, - 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x8b, 0x05, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 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, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, - 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, - 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, - 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, - 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, - 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, - 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x06, 0x0a, - 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xd1, 0x01, 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 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, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x08, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x85, 0x05, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54, + 0x61, 0x73, 0x6b, 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, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, - 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, - 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, - 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x6c, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x32, 0x6b, - 0x0a, 0x07, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x60, 0x0a, 0x0d, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75, - 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, - 0x61, 0x73, 0x6b, 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, + 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, + 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, + 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, + 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, + 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, + 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, + 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, + 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, + 0xea, 0x01, 0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 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, 0x2f, 0x0a, + 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x34, + 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, + 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, + 0x01, 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 ( @@ -797,24 +790,25 @@ func file_greptime_v1_meta_ddl_proto_rawDescGZIP() []byte { var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{ - (DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType - (*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask - (*CreateTableTasks)(nil), // 2: greptime.v1.meta.CreateTableTasks - (*DropTableTask)(nil), // 3: greptime.v1.meta.DropTableTask - (*DropTableTasks)(nil), // 4: greptime.v1.meta.DropTableTasks - (*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask - (*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks - (*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask - (*SubmitDdlTaskRequest)(nil), // 8: greptime.v1.meta.SubmitDdlTaskRequest - (*SubmitDdlTaskResponse)(nil), // 9: greptime.v1.meta.SubmitDdlTaskResponse - (*v1.CreateTableExpr)(nil), // 10: greptime.v1.CreateTableExpr - (*Partition)(nil), // 11: greptime.v1.meta.Partition - (*v1.DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr - (*v1.AlterExpr)(nil), // 13: greptime.v1.AlterExpr - (*v1.TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr - (*RequestHeader)(nil), // 15: greptime.v1.meta.RequestHeader - (*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader - (*TableId)(nil), // 17: greptime.v1.meta.TableId + (DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType + (*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask + (*CreateTableTasks)(nil), // 2: greptime.v1.meta.CreateTableTasks + (*DropTableTask)(nil), // 3: greptime.v1.meta.DropTableTask + (*DropTableTasks)(nil), // 4: greptime.v1.meta.DropTableTasks + (*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask + (*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks + (*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask + (*DdlTaskRequest)(nil), // 8: greptime.v1.meta.DdlTaskRequest + (*DdlTaskResponse)(nil), // 9: greptime.v1.meta.DdlTaskResponse + (*v1.CreateTableExpr)(nil), // 10: greptime.v1.CreateTableExpr + (*Partition)(nil), // 11: greptime.v1.meta.Partition + (*v1.DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr + (*v1.AlterExpr)(nil), // 13: greptime.v1.AlterExpr + (*v1.TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr + (*RequestHeader)(nil), // 15: greptime.v1.meta.RequestHeader + (*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader + (*ProcedureId)(nil), // 17: greptime.v1.meta.ProcedureId + (*TableId)(nil), // 18: greptime.v1.meta.TableId } var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{ 10, // 0: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr @@ -825,24 +819,23 @@ var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{ 13, // 5: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr 5, // 6: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask 14, // 7: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr - 15, // 8: greptime.v1.meta.SubmitDdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader - 1, // 9: greptime.v1.meta.SubmitDdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask - 3, // 10: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask - 5, // 11: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask - 7, // 12: greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask - 2, // 13: greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks - 4, // 14: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks - 6, // 15: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks - 16, // 16: greptime.v1.meta.SubmitDdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader - 17, // 17: greptime.v1.meta.SubmitDdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId - 17, // 18: greptime.v1.meta.SubmitDdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId - 8, // 19: greptime.v1.meta.DdlTask.SubmitDdlTask:input_type -> greptime.v1.meta.SubmitDdlTaskRequest - 9, // 20: greptime.v1.meta.DdlTask.SubmitDdlTask:output_type -> greptime.v1.meta.SubmitDdlTaskResponse - 20, // [20:21] is the sub-list for method output_type - 19, // [19:20] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name + 15, // 8: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader + 1, // 9: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask + 3, // 10: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask + 5, // 11: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask + 7, // 12: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask + 2, // 13: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks + 4, // 14: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks + 6, // 15: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks + 16, // 16: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 17, // 17: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId + 18, // 18: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId + 18, // 19: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId + 20, // [20:20] is the sub-list for method output_type + 20, // [20:20] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name } func init() { file_greptime_v1_meta_ddl_proto_init() } @@ -938,7 +931,7 @@ func file_greptime_v1_meta_ddl_proto_init() { } } file_greptime_v1_meta_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitDdlTaskRequest); i { + switch v := v.(*DdlTaskRequest); i { case 0: return &v.state case 1: @@ -950,7 +943,7 @@ func file_greptime_v1_meta_ddl_proto_init() { } } file_greptime_v1_meta_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitDdlTaskResponse); i { + switch v := v.(*DdlTaskResponse); i { case 0: return &v.state case 1: @@ -963,13 +956,13 @@ func file_greptime_v1_meta_ddl_proto_init() { } } file_greptime_v1_meta_ddl_proto_msgTypes[7].OneofWrappers = []interface{}{ - (*SubmitDdlTaskRequest_CreateTableTask)(nil), - (*SubmitDdlTaskRequest_DropTableTask)(nil), - (*SubmitDdlTaskRequest_AlterTableTask)(nil), - (*SubmitDdlTaskRequest_TruncateTableTask)(nil), - (*SubmitDdlTaskRequest_CreateTableTasks)(nil), - (*SubmitDdlTaskRequest_DropTableTasks)(nil), - (*SubmitDdlTaskRequest_AlterTableTasks)(nil), + (*DdlTaskRequest_CreateTableTask)(nil), + (*DdlTaskRequest_DropTableTask)(nil), + (*DdlTaskRequest_AlterTableTask)(nil), + (*DdlTaskRequest_TruncateTableTask)(nil), + (*DdlTaskRequest_CreateTableTasks)(nil), + (*DdlTaskRequest_DropTableTasks)(nil), + (*DdlTaskRequest_AlterTableTasks)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -979,7 +972,7 @@ func file_greptime_v1_meta_ddl_proto_init() { NumEnums: 1, NumMessages: 9, NumExtensions: 0, - NumServices: 1, + NumServices: 0, }, GoTypes: file_greptime_v1_meta_ddl_proto_goTypes, DependencyIndexes: file_greptime_v1_meta_ddl_proto_depIdxs, diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go new file mode 100644 index 00000000..74deeb57 --- /dev/null +++ b/go/greptime/v1/meta/procedure.pb.go @@ -0,0 +1,353 @@ +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.21.6 +// source: greptime/v1/meta/procedure.proto + +package meta + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ProcedureStatus int32 + +const ( + ProcedureStatus_Running ProcedureStatus = 0 + ProcedureStatus_Done ProcedureStatus = 1 + ProcedureStatus_Retrying ProcedureStatus = 2 + ProcedureStatus_Failed ProcedureStatus = 3 +) + +// Enum value maps for ProcedureStatus. +var ( + ProcedureStatus_name = map[int32]string{ + 0: "Running", + 1: "Done", + 2: "Retrying", + 3: "Failed", + } + ProcedureStatus_value = map[string]int32{ + "Running": 0, + "Done": 1, + "Retrying": 2, + "Failed": 3, + } +) + +func (x ProcedureStatus) Enum() *ProcedureStatus { + p := new(ProcedureStatus) + *p = x + return p +} + +func (x ProcedureStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProcedureStatus) Descriptor() protoreflect.EnumDescriptor { + return file_greptime_v1_meta_procedure_proto_enumTypes[0].Descriptor() +} + +func (ProcedureStatus) Type() protoreflect.EnumType { + return &file_greptime_v1_meta_procedure_proto_enumTypes[0] +} + +func (x ProcedureStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProcedureStatus.Descriptor instead. +func (ProcedureStatus) EnumDescriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{0} +} + +type QueryProcedureRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Pid *ProcedureId `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"` +} + +func (x *QueryProcedureRequest) Reset() { + *x = QueryProcedureRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryProcedureRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryProcedureRequest) ProtoMessage() {} + +func (x *QueryProcedureRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryProcedureRequest.ProtoReflect.Descriptor instead. +func (*QueryProcedureRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{0} +} + +func (x *QueryProcedureRequest) GetHeader() *RequestHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *QueryProcedureRequest) GetPid() *ProcedureId { + if x != nil { + return x.Pid + } + return nil +} + +type ProcedureStateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Status ProcedureStatus `protobuf:"varint,2,opt,name=status,proto3,enum=greptime.v1.meta.ProcedureStatus" json:"status,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *ProcedureStateResponse) Reset() { + *x = ProcedureStateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcedureStateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcedureStateResponse) ProtoMessage() {} + +func (x *ProcedureStateResponse) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_procedure_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProcedureStateResponse.ProtoReflect.Descriptor instead. +func (*ProcedureStateResponse) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_procedure_proto_rawDescGZIP(), []int{1} +} + +func (x *ProcedureStateResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *ProcedureStateResponse) GetStatus() ProcedureStatus { + if x != nil { + return x.Status + } + return ProcedureStatus_Running +} + +func (x *ProcedureStateResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +var File_greptime_v1_meta_procedure_proto protoreflect.FileDescriptor + +var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, + 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, + 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, + 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, + 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, + 0x65, 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, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, + 0x69, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 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, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2a, 0x42, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x52, + 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x6f, 0x6e, 0x65, + 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x74, 0x72, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x02, + 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x32, 0x96, 0x02, 0x0a, + 0x10, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x5a, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, + 0x03, 0x64, 0x64, 0x6c, 0x12, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x07, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 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 ( + file_greptime_v1_meta_procedure_proto_rawDescOnce sync.Once + file_greptime_v1_meta_procedure_proto_rawDescData = file_greptime_v1_meta_procedure_proto_rawDesc +) + +func file_greptime_v1_meta_procedure_proto_rawDescGZIP() []byte { + file_greptime_v1_meta_procedure_proto_rawDescOnce.Do(func() { + file_greptime_v1_meta_procedure_proto_rawDescData = protoimpl.X.CompressGZIP(file_greptime_v1_meta_procedure_proto_rawDescData) + }) + return file_greptime_v1_meta_procedure_proto_rawDescData +} + +var file_greptime_v1_meta_procedure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_greptime_v1_meta_procedure_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_greptime_v1_meta_procedure_proto_goTypes = []interface{}{ + (ProcedureStatus)(0), // 0: greptime.v1.meta.ProcedureStatus + (*QueryProcedureRequest)(nil), // 1: greptime.v1.meta.QueryProcedureRequest + (*ProcedureStateResponse)(nil), // 2: greptime.v1.meta.ProcedureStateResponse + (*RequestHeader)(nil), // 3: greptime.v1.meta.RequestHeader + (*ProcedureId)(nil), // 4: greptime.v1.meta.ProcedureId + (*ResponseHeader)(nil), // 5: greptime.v1.meta.ResponseHeader + (*DdlTaskRequest)(nil), // 6: greptime.v1.meta.DdlTaskRequest + (*MigrateRegionRequest)(nil), // 7: greptime.v1.meta.MigrateRegionRequest + (*DdlTaskResponse)(nil), // 8: greptime.v1.meta.DdlTaskResponse + (*MigrateRegionResponse)(nil), // 9: greptime.v1.meta.MigrateRegionResponse +} +var file_greptime_v1_meta_procedure_proto_depIdxs = []int32{ + 3, // 0: greptime.v1.meta.QueryProcedureRequest.header:type_name -> greptime.v1.meta.RequestHeader + 4, // 1: greptime.v1.meta.QueryProcedureRequest.pid:type_name -> greptime.v1.meta.ProcedureId + 5, // 2: greptime.v1.meta.ProcedureStateResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 0, // 3: greptime.v1.meta.ProcedureStateResponse.status:type_name -> greptime.v1.meta.ProcedureStatus + 1, // 4: greptime.v1.meta.ProcedureService.query:input_type -> greptime.v1.meta.QueryProcedureRequest + 6, // 5: greptime.v1.meta.ProcedureService.ddl:input_type -> greptime.v1.meta.DdlTaskRequest + 7, // 6: greptime.v1.meta.ProcedureService.migrate:input_type -> greptime.v1.meta.MigrateRegionRequest + 2, // 7: greptime.v1.meta.ProcedureService.query:output_type -> greptime.v1.meta.ProcedureStateResponse + 8, // 8: greptime.v1.meta.ProcedureService.ddl:output_type -> greptime.v1.meta.DdlTaskResponse + 9, // 9: greptime.v1.meta.ProcedureService.migrate:output_type -> greptime.v1.meta.MigrateRegionResponse + 7, // [7:10] is the sub-list for method output_type + 4, // [4:7] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_greptime_v1_meta_procedure_proto_init() } +func file_greptime_v1_meta_procedure_proto_init() { + if File_greptime_v1_meta_procedure_proto != nil { + return + } + file_greptime_v1_meta_common_proto_init() + file_greptime_v1_meta_ddl_proto_init() + file_greptime_v1_meta_region_proto_init() + if !protoimpl.UnsafeEnabled { + file_greptime_v1_meta_procedure_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryProcedureRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_procedure_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcedureStateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_greptime_v1_meta_procedure_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_greptime_v1_meta_procedure_proto_goTypes, + DependencyIndexes: file_greptime_v1_meta_procedure_proto_depIdxs, + EnumInfos: file_greptime_v1_meta_procedure_proto_enumTypes, + MessageInfos: file_greptime_v1_meta_procedure_proto_msgTypes, + }.Build() + File_greptime_v1_meta_procedure_proto = out.File + file_greptime_v1_meta_procedure_proto_rawDesc = nil + file_greptime_v1_meta_procedure_proto_goTypes = nil + file_greptime_v1_meta_procedure_proto_depIdxs = nil +} diff --git a/go/greptime/v1/meta/procedure_grpc.pb.go b/go/greptime/v1/meta/procedure_grpc.pb.go new file mode 100644 index 00000000..12ede6a2 --- /dev/null +++ b/go/greptime/v1/meta/procedure_grpc.pb.go @@ -0,0 +1,183 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.6 +// source: greptime/v1/meta/procedure.proto + +package meta + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ProcedureServiceClient is the client API for ProcedureService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ProcedureServiceClient interface { + // Query a submitted procedure state + Query(ctx context.Context, in *QueryProcedureRequest, opts ...grpc.CallOption) (*ProcedureStateResponse, error) + // Submits a DDL task + Ddl(ctx context.Context, in *DdlTaskRequest, opts ...grpc.CallOption) (*DdlTaskResponse, error) + // Submits a region migration task + Migrate(ctx context.Context, in *MigrateRegionRequest, opts ...grpc.CallOption) (*MigrateRegionResponse, error) +} + +type procedureServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewProcedureServiceClient(cc grpc.ClientConnInterface) ProcedureServiceClient { + return &procedureServiceClient{cc} +} + +func (c *procedureServiceClient) Query(ctx context.Context, in *QueryProcedureRequest, opts ...grpc.CallOption) (*ProcedureStateResponse, error) { + out := new(ProcedureStateResponse) + err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/query", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *procedureServiceClient) Ddl(ctx context.Context, in *DdlTaskRequest, opts ...grpc.CallOption) (*DdlTaskResponse, error) { + out := new(DdlTaskResponse) + err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/ddl", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *procedureServiceClient) Migrate(ctx context.Context, in *MigrateRegionRequest, opts ...grpc.CallOption) (*MigrateRegionResponse, error) { + out := new(MigrateRegionResponse) + err := c.cc.Invoke(ctx, "/greptime.v1.meta.ProcedureService/migrate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProcedureServiceServer is the server API for ProcedureService service. +// All implementations must embed UnimplementedProcedureServiceServer +// for forward compatibility +type ProcedureServiceServer interface { + // Query a submitted procedure state + Query(context.Context, *QueryProcedureRequest) (*ProcedureStateResponse, error) + // Submits a DDL task + Ddl(context.Context, *DdlTaskRequest) (*DdlTaskResponse, error) + // Submits a region migration task + Migrate(context.Context, *MigrateRegionRequest) (*MigrateRegionResponse, error) + mustEmbedUnimplementedProcedureServiceServer() +} + +// UnimplementedProcedureServiceServer must be embedded to have forward compatible implementations. +type UnimplementedProcedureServiceServer struct { +} + +func (UnimplementedProcedureServiceServer) Query(context.Context, *QueryProcedureRequest) (*ProcedureStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Query not implemented") +} +func (UnimplementedProcedureServiceServer) Ddl(context.Context, *DdlTaskRequest) (*DdlTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Ddl not implemented") +} +func (UnimplementedProcedureServiceServer) Migrate(context.Context, *MigrateRegionRequest) (*MigrateRegionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Migrate not implemented") +} +func (UnimplementedProcedureServiceServer) mustEmbedUnimplementedProcedureServiceServer() {} + +// UnsafeProcedureServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ProcedureServiceServer will +// result in compilation errors. +type UnsafeProcedureServiceServer interface { + mustEmbedUnimplementedProcedureServiceServer() +} + +func RegisterProcedureServiceServer(s grpc.ServiceRegistrar, srv ProcedureServiceServer) { + s.RegisterService(&ProcedureService_ServiceDesc, srv) +} + +func _ProcedureService_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryProcedureRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProcedureServiceServer).Query(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greptime.v1.meta.ProcedureService/query", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProcedureServiceServer).Query(ctx, req.(*QueryProcedureRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProcedureService_Ddl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DdlTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProcedureServiceServer).Ddl(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greptime.v1.meta.ProcedureService/ddl", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProcedureServiceServer).Ddl(ctx, req.(*DdlTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProcedureService_Migrate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MigrateRegionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProcedureServiceServer).Migrate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/greptime.v1.meta.ProcedureService/migrate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProcedureServiceServer).Migrate(ctx, req.(*MigrateRegionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ProcedureService_ServiceDesc is the grpc.ServiceDesc for ProcedureService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ProcedureService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "greptime.v1.meta.ProcedureService", + HandlerType: (*ProcedureServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "query", + Handler: _ProcedureService_Query_Handler, + }, + { + MethodName: "ddl", + Handler: _ProcedureService_Ddl_Handler, + }, + { + MethodName: "migrate", + Handler: _ProcedureService_Migrate_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "greptime/v1/meta/procedure.proto", +} diff --git a/go/greptime/v1/meta/region.pb.go b/go/greptime/v1/meta/region.pb.go new file mode 100644 index 00000000..4bf3d730 --- /dev/null +++ b/go/greptime/v1/meta/region.pb.go @@ -0,0 +1,288 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.21.6 +// source: greptime/v1/meta/region.proto + +package meta + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type MigrateRegionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + FromPeer uint64 `protobuf:"varint,4,opt,name=from_peer,json=fromPeer,proto3" json:"from_peer,omitempty"` + ToPeer uint64 `protobuf:"varint,5,opt,name=to_peer,json=toPeer,proto3" json:"to_peer,omitempty"` + ReplayTimeoutSecs uint32 `protobuf:"varint,6,opt,name=replay_timeout_secs,json=replayTimeoutSecs,proto3" json:"replay_timeout_secs,omitempty"` +} + +func (x *MigrateRegionRequest) Reset() { + *x = MigrateRegionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_region_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MigrateRegionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MigrateRegionRequest) ProtoMessage() {} + +func (x *MigrateRegionRequest) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_region_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MigrateRegionRequest.ProtoReflect.Descriptor instead. +func (*MigrateRegionRequest) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_region_proto_rawDescGZIP(), []int{0} +} + +func (x *MigrateRegionRequest) GetHeader() *RequestHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *MigrateRegionRequest) GetRegionId() uint64 { + if x != nil { + return x.RegionId + } + return 0 +} + +func (x *MigrateRegionRequest) GetFromPeer() uint64 { + if x != nil { + return x.FromPeer + } + return 0 +} + +func (x *MigrateRegionRequest) GetToPeer() uint64 { + if x != nil { + return x.ToPeer + } + return 0 +} + +func (x *MigrateRegionRequest) GetReplayTimeoutSecs() uint32 { + if x != nil { + return x.ReplayTimeoutSecs + } + return 0 +} + +type MigrateRegionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Pid *ProcedureId `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"` +} + +func (x *MigrateRegionResponse) Reset() { + *x = MigrateRegionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_meta_region_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MigrateRegionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MigrateRegionResponse) ProtoMessage() {} + +func (x *MigrateRegionResponse) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_meta_region_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MigrateRegionResponse.ProtoReflect.Descriptor instead. +func (*MigrateRegionResponse) Descriptor() ([]byte, []int) { + return file_greptime_v1_meta_region_proto_rawDescGZIP(), []int{1} +} + +func (x *MigrateRegionResponse) GetHeader() *ResponseHeader { + if x != nil { + return x.Header + } + return nil +} + +func (x *MigrateRegionResponse) GetPid() *ProcedureId { + if x != nil { + return x.Pid + } + return nil +} + +var File_greptime_v1_meta_region_proto protoreflect.FileDescriptor + +var file_greptime_v1_meta_region_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, + 0x74, 0x61, 0x2f, 0x72, 0x65, 0x67, 0x69, 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, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xd2, 0x01, 0x0a, 0x14, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 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, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x08, 0x66, 0x72, 0x6f, 0x6d, 0x50, 0x65, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, + 0x74, 0x6f, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x74, + 0x6f, 0x50, 0x65, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x53, 0x65, 0x63, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x15, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 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, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, + 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 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 ( + file_greptime_v1_meta_region_proto_rawDescOnce sync.Once + file_greptime_v1_meta_region_proto_rawDescData = file_greptime_v1_meta_region_proto_rawDesc +) + +func file_greptime_v1_meta_region_proto_rawDescGZIP() []byte { + file_greptime_v1_meta_region_proto_rawDescOnce.Do(func() { + file_greptime_v1_meta_region_proto_rawDescData = protoimpl.X.CompressGZIP(file_greptime_v1_meta_region_proto_rawDescData) + }) + return file_greptime_v1_meta_region_proto_rawDescData +} + +var file_greptime_v1_meta_region_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_greptime_v1_meta_region_proto_goTypes = []interface{}{ + (*MigrateRegionRequest)(nil), // 0: greptime.v1.meta.MigrateRegionRequest + (*MigrateRegionResponse)(nil), // 1: greptime.v1.meta.MigrateRegionResponse + (*RequestHeader)(nil), // 2: greptime.v1.meta.RequestHeader + (*ResponseHeader)(nil), // 3: greptime.v1.meta.ResponseHeader + (*ProcedureId)(nil), // 4: greptime.v1.meta.ProcedureId +} +var file_greptime_v1_meta_region_proto_depIdxs = []int32{ + 2, // 0: greptime.v1.meta.MigrateRegionRequest.header:type_name -> greptime.v1.meta.RequestHeader + 3, // 1: greptime.v1.meta.MigrateRegionResponse.header:type_name -> greptime.v1.meta.ResponseHeader + 4, // 2: greptime.v1.meta.MigrateRegionResponse.pid:type_name -> greptime.v1.meta.ProcedureId + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_greptime_v1_meta_region_proto_init() } +func file_greptime_v1_meta_region_proto_init() { + if File_greptime_v1_meta_region_proto != nil { + return + } + file_greptime_v1_meta_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_greptime_v1_meta_region_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MigrateRegionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_meta_region_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MigrateRegionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_greptime_v1_meta_region_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_greptime_v1_meta_region_proto_goTypes, + DependencyIndexes: file_greptime_v1_meta_region_proto_depIdxs, + MessageInfos: file_greptime_v1_meta_region_proto_msgTypes, + }.Build() + File_greptime_v1_meta_region_proto = out.File + file_greptime_v1_meta_region_proto_rawDesc = nil + file_greptime_v1_meta_region_proto_goTypes = nil + file_greptime_v1_meta_region_proto_depIdxs = nil +} diff --git a/java/src/main/java/greptime/v1/meta/Common.java b/java/src/main/java/greptime/v1/meta/Common.java index 747ee186..4e880122 100644 --- a/java/src/main/java/greptime/v1/meta/Common.java +++ b/java/src/main/java/greptime/v1/meta/Common.java @@ -5943,6 +5943,508 @@ public greptime.v1.meta.Common.KeyValue getDefaultInstanceForType() { } + public interface ProcedureIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureId) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes key = 1; + * @return The key. + */ + com.google.protobuf.ByteString getKey(); + } + /** + *
+   * Procedure identifer
+   * 
+ * + * Protobuf type {@code greptime.v1.meta.ProcedureId} + */ + public static final class ProcedureId extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureId) + ProcedureIdOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcedureId.newBuilder() to construct. + private ProcedureId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcedureId() { + key_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProcedureId(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProcedureId( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + key_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Common.ProcedureId.class, greptime.v1.meta.Common.ProcedureId.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString key_; + /** + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!key_.isEmpty()) { + output.writeBytes(1, key_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!key_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Common.ProcedureId)) { + return super.equals(obj); + } + greptime.v1.meta.Common.ProcedureId other = (greptime.v1.meta.Common.ProcedureId) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Common.ProcedureId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Common.ProcedureId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Common.ProcedureId parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Common.ProcedureId parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Common.ProcedureId prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Procedure identifer
+     * 
+ * + * Protobuf type {@code greptime.v1.meta.ProcedureId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureId) + greptime.v1.meta.Common.ProcedureIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Common.ProcedureId.class, greptime.v1.meta.Common.ProcedureId.Builder.class); + } + + // Construct using greptime.v1.meta.Common.ProcedureId.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Common.internal_static_greptime_v1_meta_ProcedureId_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getDefaultInstanceForType() { + return greptime.v1.meta.Common.ProcedureId.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId build() { + greptime.v1.meta.Common.ProcedureId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId buildPartial() { + greptime.v1.meta.Common.ProcedureId result = new greptime.v1.meta.Common.ProcedureId(this); + result.key_ = key_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Common.ProcedureId) { + return mergeFrom((greptime.v1.meta.Common.ProcedureId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Common.ProcedureId other) { + if (other == greptime.v1.meta.Common.ProcedureId.getDefaultInstance()) return this; + if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { + setKey(other.getKey()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Common.ProcedureId parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Common.ProcedureId) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes key = 1; + * @return The key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + * bytes key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * bytes key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.ProcedureId) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureId) + private static final greptime.v1.meta.Common.ProcedureId DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Common.ProcedureId(); + } + + public static greptime.v1.meta.Common.ProcedureId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcedureId parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcedureId(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_RequestHeader_descriptor; private static final @@ -5988,6 +6490,11 @@ public greptime.v1.meta.Common.KeyValue getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_KeyValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_ProcedureId_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -6014,10 +6521,10 @@ public greptime.v1.meta.Common.KeyValue getDefaultInstanceForType() { "\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" + "start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" + "stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " + - "\001(\014\022\r\n\005value\030\002 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000" + - "\022\014\n\010FRONTEND\020\001B builder) { + // Use DdlTaskRequest.newBuilder() to construct. + private DdlTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubmitDdlTaskRequest() { + private DdlTaskRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SubmitDdlTaskRequest(); + return new DdlTaskRequest(); } @java.lang.Override @@ -5601,7 +5601,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private SubmitDdlTaskRequest( + private DdlTaskRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5753,15 +5753,15 @@ private SubmitDdlTaskRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskRequest_descriptor; + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskRequest_fieldAccessorTable + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - greptime.v1.meta.Ddl.SubmitDdlTaskRequest.class, greptime.v1.meta.Ddl.SubmitDdlTaskRequest.Builder.class); + greptime.v1.meta.Ddl.DdlTaskRequest.class, greptime.v1.meta.Ddl.DdlTaskRequest.Builder.class); } private int taskCase_ = 0; @@ -6147,10 +6147,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof greptime.v1.meta.Ddl.SubmitDdlTaskRequest)) { + if (!(obj instanceof greptime.v1.meta.Ddl.DdlTaskRequest)) { return super.equals(obj); } - greptime.v1.meta.Ddl.SubmitDdlTaskRequest other = (greptime.v1.meta.Ddl.SubmitDdlTaskRequest) obj; + greptime.v1.meta.Ddl.DdlTaskRequest other = (greptime.v1.meta.Ddl.DdlTaskRequest) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { @@ -6242,69 +6242,69 @@ public int hashCode() { return hash; } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom(byte[] data) + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom(java.io.InputStream input) + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseDelimitedFrom(java.io.InputStream input) + public static greptime.v1.meta.Ddl.DdlTaskRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseDelimitedFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6317,7 +6317,7 @@ public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(greptime.v1.meta.Ddl.SubmitDdlTaskRequest prototype) { + public static Builder newBuilder(greptime.v1.meta.Ddl.DdlTaskRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6333,26 +6333,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.meta.SubmitDdlTaskRequest} + * Protobuf type {@code greptime.v1.meta.DdlTaskRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.meta.SubmitDdlTaskRequest) - greptime.v1.meta.Ddl.SubmitDdlTaskRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.DdlTaskRequest) + greptime.v1.meta.Ddl.DdlTaskRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskRequest_descriptor; + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskRequest_fieldAccessorTable + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - greptime.v1.meta.Ddl.SubmitDdlTaskRequest.class, greptime.v1.meta.Ddl.SubmitDdlTaskRequest.Builder.class); + greptime.v1.meta.Ddl.DdlTaskRequest.class, greptime.v1.meta.Ddl.DdlTaskRequest.Builder.class); } - // Construct using greptime.v1.meta.Ddl.SubmitDdlTaskRequest.newBuilder() + // Construct using greptime.v1.meta.Ddl.DdlTaskRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -6384,17 +6384,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskRequest_descriptor; + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskRequest_descriptor; } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskRequest getDefaultInstanceForType() { - return greptime.v1.meta.Ddl.SubmitDdlTaskRequest.getDefaultInstance(); + public greptime.v1.meta.Ddl.DdlTaskRequest getDefaultInstanceForType() { + return greptime.v1.meta.Ddl.DdlTaskRequest.getDefaultInstance(); } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskRequest build() { - greptime.v1.meta.Ddl.SubmitDdlTaskRequest result = buildPartial(); + public greptime.v1.meta.Ddl.DdlTaskRequest build() { + greptime.v1.meta.Ddl.DdlTaskRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6402,8 +6402,8 @@ public greptime.v1.meta.Ddl.SubmitDdlTaskRequest build() { } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskRequest buildPartial() { - greptime.v1.meta.Ddl.SubmitDdlTaskRequest result = new greptime.v1.meta.Ddl.SubmitDdlTaskRequest(this); + public greptime.v1.meta.Ddl.DdlTaskRequest buildPartial() { + greptime.v1.meta.Ddl.DdlTaskRequest result = new greptime.v1.meta.Ddl.DdlTaskRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { @@ -6497,16 +6497,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof greptime.v1.meta.Ddl.SubmitDdlTaskRequest) { - return mergeFrom((greptime.v1.meta.Ddl.SubmitDdlTaskRequest)other); + if (other instanceof greptime.v1.meta.Ddl.DdlTaskRequest) { + return mergeFrom((greptime.v1.meta.Ddl.DdlTaskRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(greptime.v1.meta.Ddl.SubmitDdlTaskRequest other) { - if (other == greptime.v1.meta.Ddl.SubmitDdlTaskRequest.getDefaultInstance()) return this; + public Builder mergeFrom(greptime.v1.meta.Ddl.DdlTaskRequest other) { + if (other == greptime.v1.meta.Ddl.DdlTaskRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } @@ -6558,11 +6558,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - greptime.v1.meta.Ddl.SubmitDdlTaskRequest parsedMessage = null; + greptime.v1.meta.Ddl.DdlTaskRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (greptime.v1.meta.Ddl.SubmitDdlTaskRequest) e.getUnfinishedMessage(); + parsedMessage = (greptime.v1.meta.Ddl.DdlTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7712,48 +7712,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.meta.SubmitDdlTaskRequest) + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.DdlTaskRequest) } - // @@protoc_insertion_point(class_scope:greptime.v1.meta.SubmitDdlTaskRequest) - private static final greptime.v1.meta.Ddl.SubmitDdlTaskRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest) + private static final greptime.v1.meta.Ddl.DdlTaskRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.SubmitDdlTaskRequest(); + DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.DdlTaskRequest(); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskRequest getDefaultInstance() { + public static greptime.v1.meta.Ddl.DdlTaskRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SubmitDdlTaskRequest parsePartialFrom( + public DdlTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitDdlTaskRequest(input, extensionRegistry); + return new DdlTaskRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskRequest getDefaultInstanceForType() { + public greptime.v1.meta.Ddl.DdlTaskRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SubmitDdlTaskResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.meta.SubmitDdlTaskResponse) + public interface DdlTaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.DdlTaskResponse) com.google.protobuf.MessageOrBuilder { /** @@ -7772,14 +7772,19 @@ public interface SubmitDdlTaskResponseOrBuilder extends greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); /** - *
-     * Key is the identifier for the ddl task.
-     * 
- * - * bytes key = 2; - * @return The key. + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + boolean hasPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + greptime.v1.meta.Common.ProcedureId getPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; */ - com.google.protobuf.ByteString getKey(); + greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder(); /** *
@@ -7856,19 +7861,18 @@ greptime.v1.meta.Common.TableIdOrBuilder getTableIdsOrBuilder(
         int index);
   }
   /**
-   * Protobuf type {@code greptime.v1.meta.SubmitDdlTaskResponse}
+   * Protobuf type {@code greptime.v1.meta.DdlTaskResponse}
    */
-  public static final class SubmitDdlTaskResponse extends
+  public static final class DdlTaskResponse extends
       com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:greptime.v1.meta.SubmitDdlTaskResponse)
-      SubmitDdlTaskResponseOrBuilder {
+      // @@protoc_insertion_point(message_implements:greptime.v1.meta.DdlTaskResponse)
+      DdlTaskResponseOrBuilder {
   private static final long serialVersionUID = 0L;
-    // Use SubmitDdlTaskResponse.newBuilder() to construct.
-    private SubmitDdlTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    // Use DdlTaskResponse.newBuilder() to construct.
+    private DdlTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private SubmitDdlTaskResponse() {
-      key_ = com.google.protobuf.ByteString.EMPTY;
+    private DdlTaskResponse() {
       tableIds_ = java.util.Collections.emptyList();
     }
 
@@ -7876,7 +7880,7 @@ private SubmitDdlTaskResponse() {
     @SuppressWarnings({"unused"})
     protected java.lang.Object newInstance(
         UnusedPrivateParameter unused) {
-      return new SubmitDdlTaskResponse();
+      return new DdlTaskResponse();
     }
 
     @java.lang.Override
@@ -7884,7 +7888,7 @@ protected java.lang.Object newInstance(
     getUnknownFields() {
       return this.unknownFields;
     }
-    private SubmitDdlTaskResponse(
+    private DdlTaskResponse(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
@@ -7917,8 +7921,16 @@ private SubmitDdlTaskResponse(
               break;
             }
             case 18: {
+              greptime.v1.meta.Common.ProcedureId.Builder subBuilder = null;
+              if (pid_ != null) {
+                subBuilder = pid_.toBuilder();
+              }
+              pid_ = input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(pid_);
+                pid_ = subBuilder.buildPartial();
+              }
 
-              key_ = input.readBytes();
               break;
             }
             case 34: {
@@ -7969,15 +7981,15 @@ private SubmitDdlTaskResponse(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskResponse_descriptor;
+      return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskResponse_fieldAccessorTable
+      return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              greptime.v1.meta.Ddl.SubmitDdlTaskResponse.class, greptime.v1.meta.Ddl.SubmitDdlTaskResponse.Builder.class);
+              greptime.v1.meta.Ddl.DdlTaskResponse.class, greptime.v1.meta.Ddl.DdlTaskResponse.Builder.class);
     }
 
     public static final int HEADER_FIELD_NUMBER = 1;
@@ -8006,19 +8018,30 @@ public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() {
       return getHeader();
     }
 
-    public static final int KEY_FIELD_NUMBER = 2;
-    private com.google.protobuf.ByteString key_;
+    public static final int PID_FIELD_NUMBER = 2;
+    private greptime.v1.meta.Common.ProcedureId pid_;
     /**
-     * 
-     * Key is the identifier for the ddl task.
-     * 
- * - * bytes key = 2; - * @return The key. + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. */ @java.lang.Override - public com.google.protobuf.ByteString getKey() { - return key_; + public boolean hasPid() { + return pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getPid() { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + return getPid(); } public static final int TABLE_ID_FIELD_NUMBER = 4; @@ -8139,8 +8162,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (header_ != null) { output.writeMessage(1, getHeader()); } - if (!key_.isEmpty()) { - output.writeBytes(2, key_); + if (pid_ != null) { + output.writeMessage(2, getPid()); } if (tableId_ != null) { output.writeMessage(4, getTableId()); @@ -8161,9 +8184,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } - if (!key_.isEmpty()) { + if (pid_ != null) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, key_); + .computeMessageSize(2, getPid()); } if (tableId_ != null) { size += com.google.protobuf.CodedOutputStream @@ -8183,18 +8206,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof greptime.v1.meta.Ddl.SubmitDdlTaskResponse)) { + if (!(obj instanceof greptime.v1.meta.Ddl.DdlTaskResponse)) { return super.equals(obj); } - greptime.v1.meta.Ddl.SubmitDdlTaskResponse other = (greptime.v1.meta.Ddl.SubmitDdlTaskResponse) obj; + greptime.v1.meta.Ddl.DdlTaskResponse other = (greptime.v1.meta.Ddl.DdlTaskResponse) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } - if (!getKey() - .equals(other.getKey())) return false; + if (hasPid() != other.hasPid()) return false; + if (hasPid()) { + if (!getPid() + .equals(other.getPid())) return false; + } if (hasTableId() != other.hasTableId()) return false; if (hasTableId()) { if (!getTableId() @@ -8217,8 +8243,10 @@ public int hashCode() { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); + if (hasPid()) { + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid().hashCode(); + } if (hasTableId()) { hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; hash = (53 * hash) + getTableId().hashCode(); @@ -8232,69 +8260,69 @@ public int hashCode() { return hash; } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom(byte[] data) + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom(java.io.InputStream input) + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseDelimitedFrom(java.io.InputStream input) + public static greptime.v1.meta.Ddl.DdlTaskResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseDelimitedFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( + public static greptime.v1.meta.Ddl.DdlTaskResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8307,7 +8335,7 @@ public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(greptime.v1.meta.Ddl.SubmitDdlTaskResponse prototype) { + public static Builder newBuilder(greptime.v1.meta.Ddl.DdlTaskResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -8323,26 +8351,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.meta.SubmitDdlTaskResponse} + * Protobuf type {@code greptime.v1.meta.DdlTaskResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.meta.SubmitDdlTaskResponse) - greptime.v1.meta.Ddl.SubmitDdlTaskResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.DdlTaskResponse) + greptime.v1.meta.Ddl.DdlTaskResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskResponse_descriptor; + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskResponse_fieldAccessorTable + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - greptime.v1.meta.Ddl.SubmitDdlTaskResponse.class, greptime.v1.meta.Ddl.SubmitDdlTaskResponse.Builder.class); + greptime.v1.meta.Ddl.DdlTaskResponse.class, greptime.v1.meta.Ddl.DdlTaskResponse.Builder.class); } - // Construct using greptime.v1.meta.Ddl.SubmitDdlTaskResponse.newBuilder() + // Construct using greptime.v1.meta.Ddl.DdlTaskResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -8367,8 +8395,12 @@ public Builder clear() { header_ = null; headerBuilder_ = null; } - key_ = com.google.protobuf.ByteString.EMPTY; - + if (pidBuilder_ == null) { + pid_ = null; + } else { + pid_ = null; + pidBuilder_ = null; + } if (tableIdBuilder_ == null) { tableId_ = null; } else { @@ -8387,17 +8419,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_SubmitDdlTaskResponse_descriptor; + return greptime.v1.meta.Ddl.internal_static_greptime_v1_meta_DdlTaskResponse_descriptor; } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskResponse getDefaultInstanceForType() { - return greptime.v1.meta.Ddl.SubmitDdlTaskResponse.getDefaultInstance(); + public greptime.v1.meta.Ddl.DdlTaskResponse getDefaultInstanceForType() { + return greptime.v1.meta.Ddl.DdlTaskResponse.getDefaultInstance(); } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskResponse build() { - greptime.v1.meta.Ddl.SubmitDdlTaskResponse result = buildPartial(); + public greptime.v1.meta.Ddl.DdlTaskResponse build() { + greptime.v1.meta.Ddl.DdlTaskResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8405,15 +8437,19 @@ public greptime.v1.meta.Ddl.SubmitDdlTaskResponse build() { } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskResponse buildPartial() { - greptime.v1.meta.Ddl.SubmitDdlTaskResponse result = new greptime.v1.meta.Ddl.SubmitDdlTaskResponse(this); + public greptime.v1.meta.Ddl.DdlTaskResponse buildPartial() { + greptime.v1.meta.Ddl.DdlTaskResponse result = new greptime.v1.meta.Ddl.DdlTaskResponse(this); int from_bitField0_ = bitField0_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } - result.key_ = key_; + if (pidBuilder_ == null) { + result.pid_ = pid_; + } else { + result.pid_ = pidBuilder_.build(); + } if (tableIdBuilder_ == null) { result.tableId_ = tableId_; } else { @@ -8466,21 +8502,21 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof greptime.v1.meta.Ddl.SubmitDdlTaskResponse) { - return mergeFrom((greptime.v1.meta.Ddl.SubmitDdlTaskResponse)other); + if (other instanceof greptime.v1.meta.Ddl.DdlTaskResponse) { + return mergeFrom((greptime.v1.meta.Ddl.DdlTaskResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(greptime.v1.meta.Ddl.SubmitDdlTaskResponse other) { - if (other == greptime.v1.meta.Ddl.SubmitDdlTaskResponse.getDefaultInstance()) return this; + public Builder mergeFrom(greptime.v1.meta.Ddl.DdlTaskResponse other) { + if (other == greptime.v1.meta.Ddl.DdlTaskResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } - if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { - setKey(other.getKey()); + if (other.hasPid()) { + mergePid(other.getPid()); } if (other.hasTableId()) { mergeTableId(other.getTableId()); @@ -8526,11 +8562,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - greptime.v1.meta.Ddl.SubmitDdlTaskResponse parsedMessage = null; + greptime.v1.meta.Ddl.DdlTaskResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (greptime.v1.meta.Ddl.SubmitDdlTaskResponse) e.getUnfinishedMessage(); + parsedMessage = (greptime.v1.meta.Ddl.DdlTaskResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8660,50 +8696,123 @@ public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { return headerBuilder_; } - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + private greptime.v1.meta.Common.ProcedureId pid_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidBuilder_; /** - *
-       * Key is the identifier for the ddl task.
-       * 
- * - * bytes key = 2; - * @return The key. + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. */ - @java.lang.Override - public com.google.protobuf.ByteString getKey() { - return key_; + public boolean hasPid() { + return pidBuilder_ != null || pid_ != null; } /** - *
-       * Key is the identifier for the ddl task.
-       * 
- * - * bytes key = 2; - * @param value The key to set. - * @return This builder for chaining. + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); + public greptime.v1.meta.Common.ProcedureId getPid() { + if (pidBuilder_ == null) { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } else { + return pidBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pid_ = value; + onChanged(); + } else { + pidBuilder_.setMessage(value); + } + return this; } /** - *
-       * Key is the identifier for the ddl task.
-       * 
- * - * bytes key = 2; - * @return This builder for chaining. + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid( + greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidBuilder_ == null) { + pid_ = builderForValue.build(); + onChanged(); + } else { + pidBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder mergePid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (pid_ != null) { + pid_ = + greptime.v1.meta.Common.ProcedureId.newBuilder(pid_).mergeFrom(value).buildPartial(); + } else { + pid_ = value; + } + onChanged(); + } else { + pidBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder clearPid() { + if (pidBuilder_ == null) { + pid_ = null; + onChanged(); + } else { + pid_ = null; + pidBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; */ - public Builder clearKey() { + public greptime.v1.meta.Common.ProcedureId.Builder getPidBuilder() { - key_ = getDefaultInstance().getKey(); onChanged(); - return this; + return getPidFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + if (pidBuilder_ != null) { + return pidBuilder_.getMessageOrBuilder(); + } else { + return pid_ == null ? + greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> + getPidFieldBuilder() { + if (pidBuilder_ == null) { + pidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( + getPid(), + getParentForChildren(), + isClean()); + pid_ = null; + } + return pidBuilder_; } private greptime.v1.meta.Common.TableId tableId_; @@ -9194,41 +9303,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.meta.SubmitDdlTaskResponse) + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.DdlTaskResponse) } - // @@protoc_insertion_point(class_scope:greptime.v1.meta.SubmitDdlTaskResponse) - private static final greptime.v1.meta.Ddl.SubmitDdlTaskResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskResponse) + private static final greptime.v1.meta.Ddl.DdlTaskResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.SubmitDdlTaskResponse(); + DEFAULT_INSTANCE = new greptime.v1.meta.Ddl.DdlTaskResponse(); } - public static greptime.v1.meta.Ddl.SubmitDdlTaskResponse getDefaultInstance() { + public static greptime.v1.meta.Ddl.DdlTaskResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SubmitDdlTaskResponse parsePartialFrom( + public DdlTaskResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitDdlTaskResponse(input, extensionRegistry); + return new DdlTaskResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public greptime.v1.meta.Ddl.SubmitDdlTaskResponse getDefaultInstanceForType() { + public greptime.v1.meta.Ddl.DdlTaskResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -9270,15 +9379,15 @@ public greptime.v1.meta.Ddl.SubmitDdlTaskResponse getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_TruncateTableTask_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_meta_SubmitDdlTaskRequest_descriptor; + internal_static_greptime_v1_meta_DdlTaskRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_meta_SubmitDdlTaskRequest_fieldAccessorTable; + internal_static_greptime_v1_meta_DdlTaskRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_meta_SubmitDdlTaskResponse_descriptor; + internal_static_greptime_v1_meta_DdlTaskResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_meta_SubmitDdlTaskResponse_fieldAccessorTable; + internal_static_greptime_v1_meta_DdlTaskResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -9305,30 +9414,27 @@ public greptime.v1.meta.Ddl.SubmitDdlTaskResponse getDefaultInstanceForType() { "sks\030\001 \003(\0132 .greptime.v1.meta.AlterTableT" + "ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab" + "le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr" + - "\"\215\004\n\024SubmitDdlTaskRequest\022/\n\006header\030\001 \001(" + - "\0132\037.greptime.v1.meta.RequestHeader\022>\n\021cr" + - "eate_table_task\030\002 \001(\0132!.greptime.v1.meta" + - ".CreateTableTaskH\000\022:\n\017drop_table_task\030\003 " + - "\001(\0132\037.greptime.v1.meta.DropTableTaskH\000\022<" + - "\n\020alter_table_task\030\004 \001(\0132 .greptime.v1.m" + - "eta.AlterTableTaskH\000\022B\n\023truncate_table_t" + - "ask\030\005 \001(\0132#.greptime.v1.meta.TruncateTab" + - "leTaskH\000\022@\n\022create_table_tasks\030\006 \001(\0132\".g" + - "reptime.v1.meta.CreateTableTasksH\000\022<\n\020dr" + - "op_table_tasks\030\007 \001(\0132 .greptime.v1.meta." + - "DropTableTasksH\000\022>\n\021alter_table_tasks\030\010 " + - "\001(\0132!.greptime.v1.meta.AlterTableTasksH\000" + - "B\006\n\004task\"\261\001\n\025SubmitDdlTaskResponse\0220\n\006he" + - "ader\030\001 \001(\0132 .greptime.v1.meta.ResponseHe" + - "ader\022\013\n\003key\030\002 \001(\014\022+\n\010table_id\030\004 \001(\0132\031.gr" + - "eptime.v1.meta.TableId\022,\n\ttable_ids\030\005 \003(" + - "\0132\031.greptime.v1.meta.TableId*#\n\013DdlTaskT" + - "ype\022\n\n\006Create\020\000\022\010\n\004Drop\020\0012k\n\007DdlTask\022`\n\r" + - "SubmitDdlTask\022&.greptime.v1.meta.SubmitD" + - "dlTaskRequest\032\'.greptime.v1.meta.SubmitD" + - "dlTaskResponseB\n\021create_t" + + "able_task\030\002 \001(\0132!.greptime.v1.meta.Creat" + + "eTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037." + + "greptime.v1.meta.DropTableTaskH\000\022<\n\020alte" + + "r_table_task\030\004 \001(\0132 .greptime.v1.meta.Al" + + "terTableTaskH\000\022B\n\023truncate_table_task\030\005 " + + "\001(\0132#.greptime.v1.meta.TruncateTableTask" + + "H\000\022@\n\022create_table_tasks\030\006 \001(\0132\".greptim" + + "e.v1.meta.CreateTableTasksH\000\022<\n\020drop_tab" + + "le_tasks\030\007 \001(\0132 .greptime.v1.meta.DropTa" + + "bleTasksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!." + + "greptime.v1.meta.AlterTableTasksH\000B\006\n\004ta" + + "sk\"\312\001\n\017DdlTaskResponse\0220\n\006header\030\001 \001(\0132 " + + ".greptime.v1.meta.ResponseHeader\022*\n\003pid\030" + + "\002 \001(\0132\035.greptime.v1.meta.ProcedureId\022+\n\010" + + "table_id\030\004 \001(\0132\031.greptime.v1.meta.TableI" + + "d\022,\n\ttable_ids\030\005 \003(\0132\031.greptime.v1.meta." + + "TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Dr" + + "op\020\001BRunning = 0; + */ + Running(0), + /** + * Done = 1; + */ + Done(1), + /** + * Retrying = 2; + */ + Retrying(2), + /** + * Failed = 3; + */ + Failed(3), + UNRECOGNIZED(-1), + ; + + /** + * Running = 0; + */ + public static final int Running_VALUE = 0; + /** + * Done = 1; + */ + public static final int Done_VALUE = 1; + /** + * Retrying = 2; + */ + public static final int Retrying_VALUE = 2; + /** + * Failed = 3; + */ + public static final int Failed_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProcedureStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProcedureStatus forNumber(int value) { + switch (value) { + case 0: return Running; + case 1: return Done; + case 2: return Retrying; + case 3: return Failed; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProcedureStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProcedureStatus findValueByNumber(int number) { + return ProcedureStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return greptime.v1.meta.Procedure.getDescriptor().getEnumTypes().get(0); + } + + private static final ProcedureStatus[] VALUES = values(); + + public static ProcedureStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProcedureStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:greptime.v1.meta.ProcedureStatus) + } + + public interface QueryProcedureRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.QueryProcedureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.RequestHeader getHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + boolean hasPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + greptime.v1.meta.Common.ProcedureId getPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.QueryProcedureRequest} + */ + public static final class QueryProcedureRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.QueryProcedureRequest) + QueryProcedureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryProcedureRequest.newBuilder() to construct. + private QueryProcedureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryProcedureRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueryProcedureRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueryProcedureRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.RequestHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.RequestHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + greptime.v1.meta.Common.ProcedureId.Builder subBuilder = null; + if (pid_ != null) { + subBuilder = pid_.toBuilder(); + } + pid_ = input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pid_); + pid_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.QueryProcedureRequest.class, greptime.v1.meta.Procedure.QueryProcedureRequest.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.RequestHeader header_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int PID_FIELD_NUMBER = 2; + private greptime.v1.meta.Common.ProcedureId pid_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + @java.lang.Override + public boolean hasPid() { + return pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getPid() { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + return getPid(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (pid_ != null) { + output.writeMessage(2, getPid()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (pid_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPid()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Procedure.QueryProcedureRequest)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.QueryProcedureRequest other = (greptime.v1.meta.Procedure.QueryProcedureRequest) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasPid() != other.hasPid()) return false; + if (hasPid()) { + if (!getPid() + .equals(other.getPid())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasPid()) { + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.QueryProcedureRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Procedure.QueryProcedureRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.QueryProcedureRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.QueryProcedureRequest) + greptime.v1.meta.Procedure.QueryProcedureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.QueryProcedureRequest.class, greptime.v1.meta.Procedure.QueryProcedureRequest.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.QueryProcedureRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (pidBuilder_ == null) { + pid_ = null; + } else { + pid_ = null; + pidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.QueryProcedureRequest.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.QueryProcedureRequest build() { + greptime.v1.meta.Procedure.QueryProcedureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.QueryProcedureRequest buildPartial() { + greptime.v1.meta.Procedure.QueryProcedureRequest result = new greptime.v1.meta.Procedure.QueryProcedureRequest(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (pidBuilder_ == null) { + result.pid_ = pid_; + } else { + result.pid_ = pidBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Procedure.QueryProcedureRequest) { + return mergeFrom((greptime.v1.meta.Procedure.QueryProcedureRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.QueryProcedureRequest other) { + if (other == greptime.v1.meta.Procedure.QueryProcedureRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasPid()) { + mergePid(other.getPid()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Procedure.QueryProcedureRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.QueryProcedureRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.RequestHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.RequestHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.RequestHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private greptime.v1.meta.Common.ProcedureId pid_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidBuilder_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + public boolean hasPid() { + return pidBuilder_ != null || pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + public greptime.v1.meta.Common.ProcedureId getPid() { + if (pidBuilder_ == null) { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } else { + return pidBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pid_ = value; + onChanged(); + } else { + pidBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid( + greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidBuilder_ == null) { + pid_ = builderForValue.build(); + onChanged(); + } else { + pidBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder mergePid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (pid_ != null) { + pid_ = + greptime.v1.meta.Common.ProcedureId.newBuilder(pid_).mergeFrom(value).buildPartial(); + } else { + pid_ = value; + } + onChanged(); + } else { + pidBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder clearPid() { + if (pidBuilder_ == null) { + pid_ = null; + onChanged(); + } else { + pid_ = null; + pidBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureId.Builder getPidBuilder() { + + onChanged(); + return getPidFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + if (pidBuilder_ != null) { + return pidBuilder_.getMessageOrBuilder(); + } else { + return pid_ == null ? + greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> + getPidFieldBuilder() { + if (pidBuilder_ == null) { + pidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( + getPid(), + getParentForChildren(), + isClean()); + pid_ = null; + } + return pidBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.QueryProcedureRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.QueryProcedureRequest) + private static final greptime.v1.meta.Procedure.QueryProcedureRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.QueryProcedureRequest(); + } + + public static greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryProcedureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryProcedureRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.QueryProcedureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProcedureStateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureStateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.ResponseHeader getHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + greptime.v1.meta.Procedure.ProcedureStatus getStatus(); + + /** + * string error = 3; + * @return The error. + */ + java.lang.String getError(); + /** + * string error = 3; + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); + } + /** + * Protobuf type {@code greptime.v1.meta.ProcedureStateResponse} + */ + public static final class ProcedureStateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureStateResponse) + ProcedureStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcedureStateResponse.newBuilder() to construct. + private ProcedureStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcedureStateResponse() { + status_ = 0; + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProcedureStateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProcedureStateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.ProcedureStateResponse.class, greptime.v1.meta.Procedure.ProcedureStateResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.ResponseHeader header_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + @java.lang.Override public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + } + + public static final int ERROR_FIELD_NUMBER = 3; + private volatile java.lang.Object error_; + /** + * string error = 3; + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + * string error = 3; + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { + output.writeEnum(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (status_ != greptime.v1.meta.Procedure.ProcedureStatus.Running.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Procedure.ProcedureStateResponse)) { + return super.equals(obj); + } + greptime.v1.meta.Procedure.ProcedureStateResponse other = (greptime.v1.meta.Procedure.ProcedureStateResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (status_ != other.status_) return false; + if (!getError() + .equals(other.getError())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Procedure.ProcedureStateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Procedure.ProcedureStateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.ProcedureStateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureStateResponse) + greptime.v1.meta.Procedure.ProcedureStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Procedure.ProcedureStateResponse.class, greptime.v1.meta.Procedure.ProcedureStateResponse.Builder.class); + } + + // Construct using greptime.v1.meta.Procedure.ProcedureStateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + status_ = 0; + + error_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Procedure.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForType() { + return greptime.v1.meta.Procedure.ProcedureStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStateResponse build() { + greptime.v1.meta.Procedure.ProcedureStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStateResponse buildPartial() { + greptime.v1.meta.Procedure.ProcedureStateResponse result = new greptime.v1.meta.Procedure.ProcedureStateResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.status_ = status_; + result.error_ = error_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Procedure.ProcedureStateResponse) { + return mergeFrom((greptime.v1.meta.Procedure.ProcedureStateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Procedure.ProcedureStateResponse other) { + if (other == greptime.v1.meta.Procedure.ProcedureStateResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Procedure.ProcedureStateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Procedure.ProcedureStateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private int status_ = 0; + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.Procedure.ProcedureStatus result = greptime.v1.meta.Procedure.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.Procedure.ProcedureStatus.UNRECOGNIZED : result; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(greptime.v1.meta.Procedure.ProcedureStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 3; + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 3; + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 3; + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + * string error = 3; + * @return This builder for chaining. + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + * string error = 3; + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.ProcedureStateResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureStateResponse) + private static final greptime.v1.meta.Procedure.ProcedureStateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Procedure.ProcedureStateResponse(); + } + + public static greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcedureStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcedureStateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n greptime/v1/meta/procedure.proto\022\020grep" + + "time.v1.meta\032\035greptime/v1/meta/common.pr" + + "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" + + "e/v1/meta/region.proto\"t\n\025QueryProcedure" + + "Request\022/\n\006header\030\001 \001(\0132\037.greptime.v1.me" + + "ta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035.greptime" + + ".v1.meta.ProcedureId\"\214\001\n\026ProcedureStateR" + + "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" + + "ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep" + + "time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 " + + "\001(\t*B\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D" + + "one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\0032\226\002\n\020Proc" + + "edureService\022Z\n\005query\022\'.greptime.v1.meta" + + ".QueryProcedureRequest\032(.greptime.v1.met" + + "a.ProcedureStateResponse\022J\n\003ddl\022 .grepti" + + "me.v1.meta.DdlTaskRequest\032!.greptime.v1." + + "meta.DdlTaskResponse\022Z\n\007migrate\022&.grepti" + + "me.v1.meta.MigrateRegionRequest\032\'.grepti" + + "me.v1.meta.MigrateRegionResponseBRunning = 0; + */ + Running(0), + /** + * Done = 1; + */ + Done(1), + /** + * Retrying = 2; + */ + Retrying(2), + /** + * Failed = 3; + */ + Failed(3), + UNRECOGNIZED(-1), + ; + + /** + * Running = 0; + */ + public static final int Running_VALUE = 0; + /** + * Done = 1; + */ + public static final int Done_VALUE = 1; + /** + * Retrying = 2; + */ + public static final int Retrying_VALUE = 2; + /** + * Failed = 3; + */ + public static final int Failed_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProcedureStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProcedureStatus forNumber(int value) { + switch (value) { + case 0: return Running; + case 1: return Done; + case 2: return Retrying; + case 3: return Failed; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProcedureStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProcedureStatus findValueByNumber(int number) { + return ProcedureStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return greptime.v1.meta.ProcedureOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ProcedureStatus[] VALUES = values(); + + public static ProcedureStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProcedureStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:greptime.v1.meta.ProcedureStatus) + } + + public interface QueryProcedureRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.QueryProcedureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.RequestHeader getHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + boolean hasPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + greptime.v1.meta.Common.ProcedureId getPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.QueryProcedureRequest} + */ + public static final class QueryProcedureRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.QueryProcedureRequest) + QueryProcedureRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryProcedureRequest.newBuilder() to construct. + private QueryProcedureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueryProcedureRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueryProcedureRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueryProcedureRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.RequestHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.RequestHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + greptime.v1.meta.Common.ProcedureId.Builder subBuilder = null; + if (pid_ != null) { + subBuilder = pid_.toBuilder(); + } + pid_ = input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pid_); + pid_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest.class, greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.RequestHeader header_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int PID_FIELD_NUMBER = 2; + private greptime.v1.meta.Common.ProcedureId pid_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + @java.lang.Override + public boolean hasPid() { + return pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getPid() { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + return getPid(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (pid_ != null) { + output.writeMessage(2, getPid()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (pid_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPid()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest)) { + return super.equals(obj); + } + greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest other = (greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasPid() != other.hasPid()) return false; + if (hasPid()) { + if (!getPid() + .equals(other.getPid())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasPid()) { + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.QueryProcedureRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.QueryProcedureRequest) + greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest.class, greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest.Builder.class); + } + + // Construct using greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (pidBuilder_ == null) { + pid_ = null; + } else { + pid_ = null; + pidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest getDefaultInstanceForType() { + return greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest build() { + greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest buildPartial() { + greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest result = new greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (pidBuilder_ == null) { + result.pid_ = pid_; + } else { + result.pid_ = pidBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest) { + return mergeFrom((greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest other) { + if (other == greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasPid()) { + mergePid(other.getPid()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.RequestHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.RequestHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.RequestHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private greptime.v1.meta.Common.ProcedureId pid_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidBuilder_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + public boolean hasPid() { + return pidBuilder_ != null || pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + public greptime.v1.meta.Common.ProcedureId getPid() { + if (pidBuilder_ == null) { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } else { + return pidBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pid_ = value; + onChanged(); + } else { + pidBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid( + greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidBuilder_ == null) { + pid_ = builderForValue.build(); + onChanged(); + } else { + pidBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder mergePid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (pid_ != null) { + pid_ = + greptime.v1.meta.Common.ProcedureId.newBuilder(pid_).mergeFrom(value).buildPartial(); + } else { + pid_ = value; + } + onChanged(); + } else { + pidBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder clearPid() { + if (pidBuilder_ == null) { + pid_ = null; + onChanged(); + } else { + pid_ = null; + pidBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureId.Builder getPidBuilder() { + + onChanged(); + return getPidFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + if (pidBuilder_ != null) { + return pidBuilder_.getMessageOrBuilder(); + } else { + return pid_ == null ? + greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> + getPidFieldBuilder() { + if (pidBuilder_ == null) { + pidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( + getPid(), + getParentForChildren(), + isClean()); + pid_ = null; + } + return pidBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.QueryProcedureRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.QueryProcedureRequest) + private static final greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest(); + } + + public static greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryProcedureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryProcedureRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.QueryProcedureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProcedureStateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.ProcedureStateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.ResponseHeader getHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + greptime.v1.meta.ProcedureOuterClass.ProcedureStatus getStatus(); + + /** + * string error = 3; + * @return The error. + */ + java.lang.String getError(); + /** + * string error = 3; + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); + } + /** + * Protobuf type {@code greptime.v1.meta.ProcedureStateResponse} + */ + public static final class ProcedureStateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.ProcedureStateResponse) + ProcedureStateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcedureStateResponse.newBuilder() to construct. + private ProcedureStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcedureStateResponse() { + status_ = 0; + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProcedureStateResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProcedureStateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + error_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse.class, greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.ResponseHeader header_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + @java.lang.Override public greptime.v1.meta.ProcedureOuterClass.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.ProcedureOuterClass.ProcedureStatus result = greptime.v1.meta.ProcedureOuterClass.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.ProcedureOuterClass.ProcedureStatus.UNRECOGNIZED : result; + } + + public static final int ERROR_FIELD_NUMBER = 3; + private volatile java.lang.Object error_; + /** + * string error = 3; + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } + } + /** + * string error = 3; + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (status_ != greptime.v1.meta.ProcedureOuterClass.ProcedureStatus.Running.getNumber()) { + output.writeEnum(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (status_ != greptime.v1.meta.ProcedureOuterClass.ProcedureStatus.Running.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse)) { + return super.equals(obj); + } + greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse other = (greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (status_ != other.status_) return false; + if (!getError() + .equals(other.getError())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.ProcedureStateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.ProcedureStateResponse) + greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse.class, greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse.Builder.class); + } + + // Construct using greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + status_ = 0; + + error_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.ProcedureOuterClass.internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse getDefaultInstanceForType() { + return greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse build() { + greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse buildPartial() { + greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse result = new greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.status_ = status_; + result.error_ = error_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse) { + return mergeFrom((greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse other) { + if (other == greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private int status_ = 0; + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return The status. + */ + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.ProcedureStatus getStatus() { + @SuppressWarnings("deprecation") + greptime.v1.meta.ProcedureOuterClass.ProcedureStatus result = greptime.v1.meta.ProcedureOuterClass.ProcedureStatus.valueOf(status_); + return result == null ? greptime.v1.meta.ProcedureOuterClass.ProcedureStatus.UNRECOGNIZED : result; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(greptime.v1.meta.ProcedureOuterClass.ProcedureStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.meta.ProcedureStatus status = 2; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 3; + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 3; + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 3; + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + error_ = value; + onChanged(); + return this; + } + /** + * string error = 3; + * @return This builder for chaining. + */ + public Builder clearError() { + + error_ = getDefaultInstance().getError(); + onChanged(); + return this; + } + /** + * string error = 3; + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + error_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.ProcedureStateResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.ProcedureStateResponse) + private static final greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse(); + } + + public static greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcedureStateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcedureStateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.ProcedureOuterClass.ProcedureStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_QueryProcedureRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_QueryProcedureRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_ProcedureStateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_ProcedureStateResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n greptime/v1/meta/procedure.proto\022\020grep" + + "time.v1.meta\032\035greptime/v1/meta/common.pr" + + "oto\032\032greptime/v1/meta/ddl.proto\032\035greptim" + + "e/v1/meta/region.proto\"t\n\025QueryProcedure" + + "Request\022/\n\006header\030\001 \001(\0132\037.greptime.v1.me" + + "ta.RequestHeader\022*\n\003pid\030\002 \001(\0132\035.greptime" + + ".v1.meta.ProcedureId\"\214\001\n\026ProcedureStateR" + + "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" + + "ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep" + + "time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 " + + "\001(\t*B\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D" + + "one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\0032\217\002\n\tProc" + + "edure\022Z\n\005query\022\'.greptime.v1.meta.QueryP" + + "rocedureRequest\032(.greptime.v1.meta.Proce" + + "dureStateResponse\022J\n\003ddl\022 .greptime.v1.m" + + "eta.DdlTaskRequest\032!.greptime.v1.meta.Dd" + + "lTaskResponse\022Z\n\007migrate\022&.greptime.v1.m" + + "eta.MigrateRegionRequest\032\'.greptime.v1.m" + + "eta.MigrateRegionResponseB.greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.RequestHeader getHeader(); + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder(); + + /** + * uint64 region_id = 3; + * @return The regionId. + */ + long getRegionId(); + + /** + * uint64 from_peer = 4; + * @return The fromPeer. + */ + long getFromPeer(); + + /** + * uint64 to_peer = 5; + * @return The toPeer. + */ + long getToPeer(); + + /** + * uint32 replay_timeout_secs = 6; + * @return The replayTimeoutSecs. + */ + int getReplayTimeoutSecs(); + } + /** + * Protobuf type {@code greptime.v1.meta.MigrateRegionRequest} + */ + public static final class MigrateRegionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.MigrateRegionRequest) + MigrateRegionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MigrateRegionRequest.newBuilder() to construct. + private MigrateRegionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MigrateRegionRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MigrateRegionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MigrateRegionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.RequestHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.RequestHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + regionId_ = input.readUInt64(); + break; + } + case 32: { + + fromPeer_ = input.readUInt64(); + break; + } + case 40: { + + toPeer_ = input.readUInt64(); + break; + } + case 48: { + + replayTimeoutSecs_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Region.MigrateRegionRequest.class, greptime.v1.meta.Region.MigrateRegionRequest.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.RequestHeader header_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int REGION_ID_FIELD_NUMBER = 3; + private long regionId_; + /** + * uint64 region_id = 3; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + + public static final int FROM_PEER_FIELD_NUMBER = 4; + private long fromPeer_; + /** + * uint64 from_peer = 4; + * @return The fromPeer. + */ + @java.lang.Override + public long getFromPeer() { + return fromPeer_; + } + + public static final int TO_PEER_FIELD_NUMBER = 5; + private long toPeer_; + /** + * uint64 to_peer = 5; + * @return The toPeer. + */ + @java.lang.Override + public long getToPeer() { + return toPeer_; + } + + public static final int REPLAY_TIMEOUT_SECS_FIELD_NUMBER = 6; + private int replayTimeoutSecs_; + /** + * uint32 replay_timeout_secs = 6; + * @return The replayTimeoutSecs. + */ + @java.lang.Override + public int getReplayTimeoutSecs() { + return replayTimeoutSecs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (regionId_ != 0L) { + output.writeUInt64(3, regionId_); + } + if (fromPeer_ != 0L) { + output.writeUInt64(4, fromPeer_); + } + if (toPeer_ != 0L) { + output.writeUInt64(5, toPeer_); + } + if (replayTimeoutSecs_ != 0) { + output.writeUInt32(6, replayTimeoutSecs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (regionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, regionId_); + } + if (fromPeer_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, fromPeer_); + } + if (toPeer_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, toPeer_); + } + if (replayTimeoutSecs_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, replayTimeoutSecs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Region.MigrateRegionRequest)) { + return super.equals(obj); + } + greptime.v1.meta.Region.MigrateRegionRequest other = (greptime.v1.meta.Region.MigrateRegionRequest) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (getRegionId() + != other.getRegionId()) return false; + if (getFromPeer() + != other.getFromPeer()) return false; + if (getToPeer() + != other.getToPeer()) return false; + if (getReplayTimeoutSecs() + != other.getReplayTimeoutSecs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + hash = (37 * hash) + REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRegionId()); + hash = (37 * hash) + FROM_PEER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFromPeer()); + hash = (37 * hash) + TO_PEER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getToPeer()); + hash = (37 * hash) + REPLAY_TIMEOUT_SECS_FIELD_NUMBER; + hash = (53 * hash) + getReplayTimeoutSecs(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Region.MigrateRegionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Region.MigrateRegionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.MigrateRegionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.MigrateRegionRequest) + greptime.v1.meta.Region.MigrateRegionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Region.MigrateRegionRequest.class, greptime.v1.meta.Region.MigrateRegionRequest.Builder.class); + } + + // Construct using greptime.v1.meta.Region.MigrateRegionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + regionId_ = 0L; + + fromPeer_ = 0L; + + toPeer_ = 0L; + + replayTimeoutSecs_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionRequest_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionRequest getDefaultInstanceForType() { + return greptime.v1.meta.Region.MigrateRegionRequest.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionRequest build() { + greptime.v1.meta.Region.MigrateRegionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionRequest buildPartial() { + greptime.v1.meta.Region.MigrateRegionRequest result = new greptime.v1.meta.Region.MigrateRegionRequest(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + result.regionId_ = regionId_; + result.fromPeer_ = fromPeer_; + result.toPeer_ = toPeer_; + result.replayTimeoutSecs_ = replayTimeoutSecs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Region.MigrateRegionRequest) { + return mergeFrom((greptime.v1.meta.Region.MigrateRegionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Region.MigrateRegionRequest other) { + if (other == greptime.v1.meta.Region.MigrateRegionRequest.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.getRegionId() != 0L) { + setRegionId(other.getRegionId()); + } + if (other.getFromPeer() != 0L) { + setFromPeer(other.getFromPeer()); + } + if (other.getToPeer() != 0L) { + setToPeer(other.getToPeer()); + } + if (other.getReplayTimeoutSecs() != 0) { + setReplayTimeoutSecs(other.getReplayTimeoutSecs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Region.MigrateRegionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Region.MigrateRegionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.RequestHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.RequestHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.RequestHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.RequestHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.RequestHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private long regionId_ ; + /** + * uint64 region_id = 3; + * @return The regionId. + */ + @java.lang.Override + public long getRegionId() { + return regionId_; + } + /** + * uint64 region_id = 3; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(long value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint64 region_id = 3; + * @return This builder for chaining. + */ + public Builder clearRegionId() { + + regionId_ = 0L; + onChanged(); + return this; + } + + private long fromPeer_ ; + /** + * uint64 from_peer = 4; + * @return The fromPeer. + */ + @java.lang.Override + public long getFromPeer() { + return fromPeer_; + } + /** + * uint64 from_peer = 4; + * @param value The fromPeer to set. + * @return This builder for chaining. + */ + public Builder setFromPeer(long value) { + + fromPeer_ = value; + onChanged(); + return this; + } + /** + * uint64 from_peer = 4; + * @return This builder for chaining. + */ + public Builder clearFromPeer() { + + fromPeer_ = 0L; + onChanged(); + return this; + } + + private long toPeer_ ; + /** + * uint64 to_peer = 5; + * @return The toPeer. + */ + @java.lang.Override + public long getToPeer() { + return toPeer_; + } + /** + * uint64 to_peer = 5; + * @param value The toPeer to set. + * @return This builder for chaining. + */ + public Builder setToPeer(long value) { + + toPeer_ = value; + onChanged(); + return this; + } + /** + * uint64 to_peer = 5; + * @return This builder for chaining. + */ + public Builder clearToPeer() { + + toPeer_ = 0L; + onChanged(); + return this; + } + + private int replayTimeoutSecs_ ; + /** + * uint32 replay_timeout_secs = 6; + * @return The replayTimeoutSecs. + */ + @java.lang.Override + public int getReplayTimeoutSecs() { + return replayTimeoutSecs_; + } + /** + * uint32 replay_timeout_secs = 6; + * @param value The replayTimeoutSecs to set. + * @return This builder for chaining. + */ + public Builder setReplayTimeoutSecs(int value) { + + replayTimeoutSecs_ = value; + onChanged(); + return this; + } + /** + * uint32 replay_timeout_secs = 6; + * @return This builder for chaining. + */ + public Builder clearReplayTimeoutSecs() { + + replayTimeoutSecs_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.MigrateRegionRequest) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.MigrateRegionRequest) + private static final greptime.v1.meta.Region.MigrateRegionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Region.MigrateRegionRequest(); + } + + public static greptime.v1.meta.Region.MigrateRegionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrateRegionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrateRegionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MigrateRegionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.meta.MigrateRegionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + greptime.v1.meta.Common.ResponseHeader getHeader(); + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder(); + + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + boolean hasPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + greptime.v1.meta.Common.ProcedureId getPid(); + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.meta.MigrateRegionResponse} + */ + public static final class MigrateRegionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.meta.MigrateRegionResponse) + MigrateRegionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MigrateRegionResponse.newBuilder() to construct. + private MigrateRegionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MigrateRegionResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MigrateRegionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MigrateRegionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + greptime.v1.meta.Common.ResponseHeader.Builder subBuilder = null; + if (header_ != null) { + subBuilder = header_.toBuilder(); + } + header_ = input.readMessage(greptime.v1.meta.Common.ResponseHeader.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(header_); + header_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + greptime.v1.meta.Common.ProcedureId.Builder subBuilder = null; + if (pid_ != null) { + subBuilder = pid_.toBuilder(); + } + pid_ = input.readMessage(greptime.v1.meta.Common.ProcedureId.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pid_); + pid_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Region.MigrateRegionResponse.class, greptime.v1.meta.Region.MigrateRegionResponse.Builder.class); + } + + public static final int HEADER_FIELD_NUMBER = 1; + private greptime.v1.meta.Common.ResponseHeader header_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeader getHeader() { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + @java.lang.Override + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + return getHeader(); + } + + public static final int PID_FIELD_NUMBER = 2; + private greptime.v1.meta.Common.ProcedureId pid_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + @java.lang.Override + public boolean hasPid() { + return pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureId getPid() { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + @java.lang.Override + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + return getPid(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (header_ != null) { + output.writeMessage(1, getHeader()); + } + if (pid_ != null) { + output.writeMessage(2, getPid()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (header_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeader()); + } + if (pid_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPid()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof greptime.v1.meta.Region.MigrateRegionResponse)) { + return super.equals(obj); + } + greptime.v1.meta.Region.MigrateRegionResponse other = (greptime.v1.meta.Region.MigrateRegionResponse) obj; + + if (hasHeader() != other.hasHeader()) return false; + if (hasHeader()) { + if (!getHeader() + .equals(other.getHeader())) return false; + } + if (hasPid() != other.hasPid()) return false; + if (hasPid()) { + if (!getPid() + .equals(other.getPid())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeader()) { + hash = (37 * hash) + HEADER_FIELD_NUMBER; + hash = (53 * hash) + getHeader().hashCode(); + } + if (hasPid()) { + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static greptime.v1.meta.Region.MigrateRegionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(greptime.v1.meta.Region.MigrateRegionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.meta.MigrateRegionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.meta.MigrateRegionResponse) + greptime.v1.meta.Region.MigrateRegionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + greptime.v1.meta.Region.MigrateRegionResponse.class, greptime.v1.meta.Region.MigrateRegionResponse.Builder.class); + } + + // Construct using greptime.v1.meta.Region.MigrateRegionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headerBuilder_ == null) { + header_ = null; + } else { + header_ = null; + headerBuilder_ = null; + } + if (pidBuilder_ == null) { + pid_ = null; + } else { + pid_ = null; + pidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return greptime.v1.meta.Region.internal_static_greptime_v1_meta_MigrateRegionResponse_descriptor; + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionResponse getDefaultInstanceForType() { + return greptime.v1.meta.Region.MigrateRegionResponse.getDefaultInstance(); + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionResponse build() { + greptime.v1.meta.Region.MigrateRegionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionResponse buildPartial() { + greptime.v1.meta.Region.MigrateRegionResponse result = new greptime.v1.meta.Region.MigrateRegionResponse(this); + if (headerBuilder_ == null) { + result.header_ = header_; + } else { + result.header_ = headerBuilder_.build(); + } + if (pidBuilder_ == null) { + result.pid_ = pid_; + } else { + result.pid_ = pidBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof greptime.v1.meta.Region.MigrateRegionResponse) { + return mergeFrom((greptime.v1.meta.Region.MigrateRegionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(greptime.v1.meta.Region.MigrateRegionResponse other) { + if (other == greptime.v1.meta.Region.MigrateRegionResponse.getDefaultInstance()) return this; + if (other.hasHeader()) { + mergeHeader(other.getHeader()); + } + if (other.hasPid()) { + mergePid(other.getPid()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + greptime.v1.meta.Region.MigrateRegionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (greptime.v1.meta.Region.MigrateRegionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private greptime.v1.meta.Common.ResponseHeader header_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> headerBuilder_; + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return headerBuilder_ != null || header_ != null; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + * @return The header. + */ + public greptime.v1.meta.Common.ResponseHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + onChanged(); + } else { + headerBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder setHeader( + greptime.v1.meta.Common.ResponseHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); + onChanged(); + } else { + headerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder mergeHeader(greptime.v1.meta.Common.ResponseHeader value) { + if (headerBuilder_ == null) { + if (header_ != null) { + header_ = + greptime.v1.meta.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); + } else { + header_ = value; + } + onChanged(); + } else { + headerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public Builder clearHeader() { + if (headerBuilder_ == null) { + header_ = null; + onChanged(); + } else { + header_ = null; + headerBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeader.Builder getHeaderBuilder() { + + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null ? + greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_; + } + } + /** + * .greptime.v1.meta.ResponseHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> + getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder>( + getHeader(), + getParentForChildren(), + isClean()); + header_ = null; + } + return headerBuilder_; + } + + private greptime.v1.meta.Common.ProcedureId pid_; + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> pidBuilder_; + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return Whether the pid field is set. + */ + public boolean hasPid() { + return pidBuilder_ != null || pid_ != null; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + * @return The pid. + */ + public greptime.v1.meta.Common.ProcedureId getPid() { + if (pidBuilder_ == null) { + return pid_ == null ? greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } else { + return pidBuilder_.getMessage(); + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pid_ = value; + onChanged(); + } else { + pidBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder setPid( + greptime.v1.meta.Common.ProcedureId.Builder builderForValue) { + if (pidBuilder_ == null) { + pid_ = builderForValue.build(); + onChanged(); + } else { + pidBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder mergePid(greptime.v1.meta.Common.ProcedureId value) { + if (pidBuilder_ == null) { + if (pid_ != null) { + pid_ = + greptime.v1.meta.Common.ProcedureId.newBuilder(pid_).mergeFrom(value).buildPartial(); + } else { + pid_ = value; + } + onChanged(); + } else { + pidBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public Builder clearPid() { + if (pidBuilder_ == null) { + pid_ = null; + onChanged(); + } else { + pid_ = null; + pidBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureId.Builder getPidBuilder() { + + onChanged(); + return getPidFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + public greptime.v1.meta.Common.ProcedureIdOrBuilder getPidOrBuilder() { + if (pidBuilder_ != null) { + return pidBuilder_.getMessageOrBuilder(); + } else { + return pid_ == null ? + greptime.v1.meta.Common.ProcedureId.getDefaultInstance() : pid_; + } + } + /** + * .greptime.v1.meta.ProcedureId pid = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder> + getPidFieldBuilder() { + if (pidBuilder_ == null) { + pidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + greptime.v1.meta.Common.ProcedureId, greptime.v1.meta.Common.ProcedureId.Builder, greptime.v1.meta.Common.ProcedureIdOrBuilder>( + getPid(), + getParentForChildren(), + isClean()); + pid_ = null; + } + return pidBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.meta.MigrateRegionResponse) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.meta.MigrateRegionResponse) + private static final greptime.v1.meta.Region.MigrateRegionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new greptime.v1.meta.Region.MigrateRegionResponse(); + } + + public static greptime.v1.meta.Region.MigrateRegionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrateRegionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MigrateRegionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public greptime.v1.meta.Region.MigrateRegionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_MigrateRegionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_MigrateRegionRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_meta_MigrateRegionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_meta_MigrateRegionResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035greptime/v1/meta/region.proto\022\020greptim" + + "e.v1.meta\032\035greptime/v1/meta/common.proto" + + "\"\233\001\n\024MigrateRegionRequest\022/\n\006header\030\001 \001(" + + "\0132\037.greptime.v1.meta.RequestHeader\022\021\n\tre" + + "gion_id\030\003 \001(\004\022\021\n\tfrom_peer\030\004 \001(\004\022\017\n\007to_p" + + "eer\030\005 \001(\004\022\033\n\023replay_timeout_secs\030\006 \001(\r\"u" + + "\n\025MigrateRegionResponse\0220\n\006header\030\001 \001(\0132" + + " .greptime.v1.meta.ResponseHeader\022*\n\003pid" + + "\030\002 \001(\0132\035.greptime.v1.meta.ProcedureIdB