diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index 3ef46b44..cf1f4047 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -323,19 +323,6 @@ struct DropColumnsDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropColumnsDefaultTypeInternal _DropColumns_default_instance_; -PROTOBUF_CONSTEXPR ChangeColumnTypes::ChangeColumnTypes( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.change_column_types_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ChangeColumnTypesDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeColumnTypesDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeColumnTypesDefaultTypeInternal() {} - union { - ChangeColumnTypes _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; PROTOBUF_CONSTEXPR AddColumn::AddColumn( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.column_def_)*/nullptr @@ -350,21 +337,6 @@ struct AddColumnDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnDefaultTypeInternal _AddColumn_default_instance_; -PROTOBUF_CONSTEXPR ChangeColumnType::ChangeColumnType( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.target_type_extension_)*/nullptr - , /*decltype(_impl_.target_type_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ChangeColumnTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeColumnTypeDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeColumnTypeDefaultTypeInternal() {} - union { - ChangeColumnType _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; PROTOBUF_CONSTEXPR DropColumn::DropColumn( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -434,7 +406,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace region } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; @@ -641,13 +613,6 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropColumns, _impl_.drop_columns_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeColumnTypes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeColumnTypes, _impl_.change_column_types_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AddColumn, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -656,15 +621,6 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AddColumn, _impl_.column_def_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AddColumn, _impl_.location_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeColumnType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeColumnType, _impl_.column_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeColumnType, _impl_.target_type_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeColumnType, _impl_.target_type_extension_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropColumn, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -724,14 +680,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, { 187, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, { 194, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, - { 201, -1, -1, sizeof(::greptime::v1::region::ChangeColumnTypes)}, - { 208, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, - { 216, -1, -1, sizeof(::greptime::v1::region::ChangeColumnType)}, - { 225, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, - { 232, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, - { 239, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 246, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 253, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 201, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 209, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 216, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 223, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 230, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 237, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -757,9 +711,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::region::_AlterRequest_default_instance_._instance, &::greptime::v1::region::_AddColumns_default_instance_._instance, &::greptime::v1::region::_DropColumns_default_instance_._instance, - &::greptime::v1::region::_ChangeColumnTypes_default_instance_._instance, &::greptime::v1::region::_AddColumn_default_instance_._instance, - &::greptime::v1::region::_ChangeColumnType_default_instance_._instance, &::greptime::v1::region::_DropColumn_default_instance_._instance, &::greptime::v1::region::_FlushRequest_default_instance_._instance, &::greptime::v1::region::_CompactRequest_default_instance_._instance, @@ -827,37 +779,30 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" "ue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_i" "d\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003" - "(\0132 .greptime.v1.region.AlterRequest\"\367\001\n" + "(\0132 .greptime.v1.region.AlterRequest\"\360\001\n" "\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_" "columns\030\002 \001(\0132\036.greptime.v1.region.AddCo" "lumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime" - ".v1.region.DropColumnsH\000\022D\n\023change_colum" - "n_types\030\005 \001(\0132%.greptime.v1.region.Chang" - "eColumnTypesH\000\022\026\n\016schema_version\030\004 \001(\004B\006" - "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" - "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" - "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" - ".v1.region.DropColumn\"V\n\021ChangeColumnTyp" - "es\022A\n\023change_column_types\030\001 \003(\0132$.grepti" - "me.v1.region.ChangeColumnType\"v\n\tAddColu" - "mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg" - "ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036." - "greptime.v1.AddColumnLocation\"\236\001\n\020Change" - "ColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targe" - "t_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTyp" - "e\022C\n\025target_type_extension\030\003 \001(\0132$.grept" - "ime.v1.ColumnDataTypeExtension\"\032\n\nDropCo" - "lumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tre" - "gion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021\n\tregio" - "n_id\030\001 \001(\004\"$\n\017TruncateRequest\022\021\n\tregion_" - "id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_de" - "f\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolum" - "n_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.greptim" - "e.v1.region.RegionRequest\032\".greptime.v1." - "region.RegionResponseB]\n\025io.greptime.v1." - "regionB\006ServerZ_impl_.kind_.drop_columns_; } -const ::greptime::v1::region::ChangeColumnTypes& +const ::greptime::v1::ChangeColumnTypes& AlterRequest::_Internal::change_column_types(const AlterRequest* msg) { return *msg->_impl_.kind_.change_column_types_; } @@ -5374,12 +5319,13 @@ void AlterRequest::set_allocated_drop_columns(::greptime::v1::region::DropColumn } // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.drop_columns) } -void AlterRequest::set_allocated_change_column_types(::greptime::v1::region::ChangeColumnTypes* change_column_types) { +void AlterRequest::set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (change_column_types) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_column_types); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_column_types)); if (message_arena != submessage_arena) { change_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, change_column_types, submessage_arena); @@ -5389,6 +5335,14 @@ void AlterRequest::set_allocated_change_column_types(::greptime::v1::region::Cha } // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_column_types) } +void AlterRequest::clear_change_column_types() { + if (_internal_has_change_column_types()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_types_; + } + clear_has_kind(); + } +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5422,7 +5376,7 @@ AlterRequest::AlterRequest(const AlterRequest& from) break; } case kChangeColumnTypes: { - _this->_internal_mutable_change_column_types()->::greptime::v1::region::ChangeColumnTypes::MergeFrom( + _this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom( from._internal_change_column_types()); break; } @@ -5547,7 +5501,7 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // .greptime.v1.region.ChangeColumnTypes change_column_types = 5; + // .greptime.v1.ChangeColumnTypes change_column_types = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_change_column_types(), ptr); @@ -5610,7 +5564,7 @@ uint8_t* AlterRequest::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_schema_version(), target); } - // .greptime.v1.region.ChangeColumnTypes change_column_types = 5; + // .greptime.v1.ChangeColumnTypes change_column_types = 5; if (_internal_has_change_column_types()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, _Internal::change_column_types(this), @@ -5658,7 +5612,7 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.drop_columns_); break; } - // .greptime.v1.region.ChangeColumnTypes change_column_types = 5; + // .greptime.v1.ChangeColumnTypes change_column_types = 5; case kChangeColumnTypes: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( @@ -5705,7 +5659,7 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P break; } case kChangeColumnTypes: { - _this->_internal_mutable_change_column_types()->::greptime::v1::region::ChangeColumnTypes::MergeFrom( + _this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom( from._internal_change_column_types()); break; } @@ -6118,191 +6072,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { // =================================================================== -class ChangeColumnTypes::_Internal { - public: -}; - -ChangeColumnTypes::ChangeColumnTypes(::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.region.ChangeColumnTypes) -} -ChangeColumnTypes::ChangeColumnTypes(const ChangeColumnTypes& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ChangeColumnTypes* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.change_column_types_){from._impl_.change_column_types_} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.region.ChangeColumnTypes) -} - -inline void ChangeColumnTypes::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.change_column_types_){arena} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -ChangeColumnTypes::~ChangeColumnTypes() { - // @@protoc_insertion_point(destructor:greptime.v1.region.ChangeColumnTypes) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ChangeColumnTypes::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.change_column_types_.~RepeatedPtrField(); -} - -void ChangeColumnTypes::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ChangeColumnTypes::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.region.ChangeColumnTypes) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.change_column_types_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ChangeColumnTypes::_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) { - // repeated .greptime.v1.region.ChangeColumnType change_column_types = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_change_column_types(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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* ChangeColumnTypes::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.ChangeColumnTypes) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .greptime.v1.region.ChangeColumnType change_column_types = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_change_column_types_size()); i < n; i++) { - const auto& repfield = this->_internal_change_column_types(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.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.region.ChangeColumnTypes) - return target; -} - -size_t ChangeColumnTypes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.ChangeColumnTypes) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .greptime.v1.region.ChangeColumnType change_column_types = 1; - total_size += 1UL * this->_internal_change_column_types_size(); - for (const auto& msg : this->_impl_.change_column_types_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnTypes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ChangeColumnTypes::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnTypes::GetClassData() const { return &_class_data_; } - - -void ChangeColumnTypes::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.region.ChangeColumnTypes) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_impl_.change_column_types_.MergeFrom(from._impl_.change_column_types_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void ChangeColumnTypes::CopyFrom(const ChangeColumnTypes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.ChangeColumnTypes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChangeColumnTypes::IsInitialized() const { - return true; -} - -void ChangeColumnTypes::InternalSwap(ChangeColumnTypes* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.change_column_types_.InternalSwap(&other->_impl_.change_column_types_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[22]); -} - -// =================================================================== - class AddColumn::_Internal { public: static const ::greptime::v1::region::RegionColumnDef& column_def(const AddColumn* msg); @@ -6543,292 +6312,7 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[23]); -} - -// =================================================================== - -class ChangeColumnType::_Internal { - public: - static const ::greptime::v1::ColumnDataTypeExtension& target_type_extension(const ChangeColumnType* msg); -}; - -const ::greptime::v1::ColumnDataTypeExtension& -ChangeColumnType::_Internal::target_type_extension(const ChangeColumnType* msg) { - return *msg->_impl_.target_type_extension_; -} -void ChangeColumnType::clear_target_type_extension() { - if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { - delete _impl_.target_type_extension_; - } - _impl_.target_type_extension_ = nullptr; -} -ChangeColumnType::ChangeColumnType(::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.region.ChangeColumnType) -} -ChangeColumnType::ChangeColumnType(const ChangeColumnType& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ChangeColumnType* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.column_name_){} - , decltype(_impl_.target_type_extension_){nullptr} - , decltype(_impl_.target_type_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.column_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_column_name().empty()) { - _this->_impl_.column_name_.Set(from._internal_column_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_target_type_extension()) { - _this->_impl_.target_type_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.target_type_extension_); - } - _this->_impl_.target_type_ = from._impl_.target_type_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.region.ChangeColumnType) -} - -inline void ChangeColumnType::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.column_name_){} - , decltype(_impl_.target_type_extension_){nullptr} - , decltype(_impl_.target_type_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.column_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ChangeColumnType::~ChangeColumnType() { - // @@protoc_insertion_point(destructor:greptime.v1.region.ChangeColumnType) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ChangeColumnType::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.column_name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.target_type_extension_; -} - -void ChangeColumnType::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ChangeColumnType::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.region.ChangeColumnType) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.column_name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { - delete _impl_.target_type_extension_; - } - _impl_.target_type_extension_ = nullptr; - _impl_.target_type_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ChangeColumnType::_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) { - // string column_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_column_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.ChangeColumnType.column_name")); - } else - goto handle_unusual; - continue; - // .greptime.v1.ColumnDataType target_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_target_type(static_cast<::greptime::v1::ColumnDataType>(val)); - } else - goto handle_unusual; - continue; - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_target_type_extension(), 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* ChangeColumnType::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.ChangeColumnType) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string column_name = 1; - if (!this->_internal_column_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.ChangeColumnType.column_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_column_name(), target); - } - - // .greptime.v1.ColumnDataType target_type = 2; - if (this->_internal_target_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_target_type(), target); - } - - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - if (this->_internal_has_target_type_extension()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::target_type_extension(this), - _Internal::target_type_extension(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.region.ChangeColumnType) - return target; -} - -size_t ChangeColumnType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.ChangeColumnType) - 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 column_name = 1; - if (!this->_internal_column_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_column_name()); - } - - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - if (this->_internal_has_target_type_extension()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.target_type_extension_); - } - - // .greptime.v1.ColumnDataType target_type = 2; - if (this->_internal_target_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_target_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnType::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ChangeColumnType::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnType::GetClassData() const { return &_class_data_; } - - -void ChangeColumnType::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.region.ChangeColumnType) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_column_name().empty()) { - _this->_internal_set_column_name(from._internal_column_name()); - } - if (from._internal_has_target_type_extension()) { - _this->_internal_mutable_target_type_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( - from._internal_target_type_extension()); - } - if (from._internal_target_type() != 0) { - _this->_internal_set_target_type(from._internal_target_type()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void ChangeColumnType::CopyFrom(const ChangeColumnType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.ChangeColumnType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChangeColumnType::IsInitialized() const { - return true; -} - -void ChangeColumnType::InternalSwap(ChangeColumnType* 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_.column_name_, lhs_arena, - &other->_impl_.column_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ChangeColumnType, _impl_.target_type_) - + sizeof(ChangeColumnType::_impl_.target_type_) - - PROTOBUF_FIELD_OFFSET(ChangeColumnType, _impl_.target_type_extension_)>( - reinterpret_cast(&_impl_.target_type_extension_), - reinterpret_cast(&other->_impl_.target_type_extension_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[24]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[22]); } // =================================================================== @@ -7031,7 +6515,7 @@ void DropColumn::InternalSwap(DropColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[23]); } // =================================================================== @@ -7209,7 +6693,7 @@ void FlushRequest::InternalSwap(FlushRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[24]); } // =================================================================== @@ -7387,7 +6871,7 @@ void CompactRequest::InternalSwap(CompactRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CompactRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); } // =================================================================== @@ -7565,7 +7049,7 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); } // =================================================================== @@ -7795,7 +7279,7 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[29]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); } // @@protoc_insertion_point(namespace_scope) @@ -7891,18 +7375,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::region::DropColumns* Arena::CreateMaybeMessage< ::greptime::v1::region::DropColumns >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::DropColumns >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::region::ChangeColumnTypes* -Arena::CreateMaybeMessage< ::greptime::v1::region::ChangeColumnTypes >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::region::ChangeColumnTypes >(arena); -} template<> PROTOBUF_NOINLINE ::greptime::v1::region::AddColumn* Arena::CreateMaybeMessage< ::greptime::v1::region::AddColumn >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::AddColumn >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::region::ChangeColumnType* -Arena::CreateMaybeMessage< ::greptime::v1::region::ChangeColumnType >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::region::ChangeColumnType >(arena); -} template<> PROTOBUF_NOINLINE ::greptime::v1::region::DropColumn* Arena::CreateMaybeMessage< ::greptime::v1::region::DropColumn >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::DropColumn >(arena); diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index 89126d50..b439aea3 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -65,12 +65,6 @@ extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_; class AlterRequests; struct AlterRequestsDefaultTypeInternal; extern AlterRequestsDefaultTypeInternal _AlterRequests_default_instance_; -class ChangeColumnType; -struct ChangeColumnTypeDefaultTypeInternal; -extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; -class ChangeColumnTypes; -struct ChangeColumnTypesDefaultTypeInternal; -extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; class CloseRequest; struct CloseRequestDefaultTypeInternal; extern CloseRequestDefaultTypeInternal _CloseRequest_default_instance_; @@ -151,8 +145,6 @@ template<> ::greptime::v1::region::AddColumn* Arena::CreateMaybeMessage<::grepti template<> ::greptime::v1::region::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumns>(Arena*); template<> ::greptime::v1::region::AlterRequest* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequest>(Arena*); template<> ::greptime::v1::region::AlterRequests* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequests>(Arena*); -template<> ::greptime::v1::region::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::region::ChangeColumnType>(Arena*); -template<> ::greptime::v1::region::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::region::ChangeColumnTypes>(Arena*); template<> ::greptime::v1::region::CloseRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CloseRequest>(Arena*); template<> ::greptime::v1::region::CompactRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CompactRequest>(Arena*); template<> ::greptime::v1::region::CreateRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CreateRequest>(Arena*); @@ -3387,23 +3379,23 @@ class AlterRequest final : ::greptime::v1::region::DropColumns* drop_columns); ::greptime::v1::region::DropColumns* unsafe_arena_release_drop_columns(); - // .greptime.v1.region.ChangeColumnTypes change_column_types = 5; + // .greptime.v1.ChangeColumnTypes change_column_types = 5; bool has_change_column_types() const; private: bool _internal_has_change_column_types() const; public: void clear_change_column_types(); - const ::greptime::v1::region::ChangeColumnTypes& change_column_types() const; - PROTOBUF_NODISCARD ::greptime::v1::region::ChangeColumnTypes* release_change_column_types(); - ::greptime::v1::region::ChangeColumnTypes* mutable_change_column_types(); - void set_allocated_change_column_types(::greptime::v1::region::ChangeColumnTypes* change_column_types); + const ::greptime::v1::ChangeColumnTypes& change_column_types() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeColumnTypes* release_change_column_types(); + ::greptime::v1::ChangeColumnTypes* mutable_change_column_types(); + void set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types); private: - const ::greptime::v1::region::ChangeColumnTypes& _internal_change_column_types() const; - ::greptime::v1::region::ChangeColumnTypes* _internal_mutable_change_column_types(); + const ::greptime::v1::ChangeColumnTypes& _internal_change_column_types() const; + ::greptime::v1::ChangeColumnTypes* _internal_mutable_change_column_types(); public: void unsafe_arena_set_allocated_change_column_types( - ::greptime::v1::region::ChangeColumnTypes* change_column_types); - ::greptime::v1::region::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + ::greptime::v1::ChangeColumnTypes* change_column_types); + ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); void clear_kind(); KindCase kind_case() const; @@ -3428,7 +3420,7 @@ class AlterRequest final : ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::greptime::v1::region::AddColumns* add_columns_; ::greptime::v1::region::DropColumns* drop_columns_; - ::greptime::v1::region::ChangeColumnTypes* change_column_types_; + ::greptime::v1::ChangeColumnTypes* change_column_types_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -3753,163 +3745,6 @@ class DropColumns final : }; // ------------------------------------------------------------------- -class ChangeColumnTypes final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.ChangeColumnTypes) */ { - public: - inline ChangeColumnTypes() : ChangeColumnTypes(nullptr) {} - ~ChangeColumnTypes() override; - explicit PROTOBUF_CONSTEXPR ChangeColumnTypes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ChangeColumnTypes(const ChangeColumnTypes& from); - ChangeColumnTypes(ChangeColumnTypes&& from) noexcept - : ChangeColumnTypes() { - *this = ::std::move(from); - } - - inline ChangeColumnTypes& operator=(const ChangeColumnTypes& from) { - CopyFrom(from); - return *this; - } - inline ChangeColumnTypes& operator=(ChangeColumnTypes&& 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 ChangeColumnTypes& default_instance() { - return *internal_default_instance(); - } - static inline const ChangeColumnTypes* internal_default_instance() { - return reinterpret_cast( - &_ChangeColumnTypes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(ChangeColumnTypes& a, ChangeColumnTypes& b) { - a.Swap(&b); - } - inline void Swap(ChangeColumnTypes* 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(ChangeColumnTypes* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChangeColumnTypes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ChangeColumnTypes& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ChangeColumnTypes& from) { - ChangeColumnTypes::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(ChangeColumnTypes* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.region.ChangeColumnTypes"; - } - protected: - explicit ChangeColumnTypes(::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 { - kChangeColumnTypesFieldNumber = 1, - }; - // repeated .greptime.v1.region.ChangeColumnType change_column_types = 1; - int change_column_types_size() const; - private: - int _internal_change_column_types_size() const; - public: - void clear_change_column_types(); - ::greptime::v1::region::ChangeColumnType* mutable_change_column_types(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ChangeColumnType >* - mutable_change_column_types(); - private: - const ::greptime::v1::region::ChangeColumnType& _internal_change_column_types(int index) const; - ::greptime::v1::region::ChangeColumnType* _internal_add_change_column_types(); - public: - const ::greptime::v1::region::ChangeColumnType& change_column_types(int index) const; - ::greptime::v1::region::ChangeColumnType* add_change_column_types(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ChangeColumnType >& - change_column_types() const; - - // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeColumnTypes) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ChangeColumnType > change_column_types_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; -}; -// ------------------------------------------------------------------- - class AddColumn final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.AddColumn) */ { public: @@ -3958,7 +3793,7 @@ class AddColumn final : &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 22; friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); @@ -4087,190 +3922,6 @@ class AddColumn final : }; // ------------------------------------------------------------------- -class ChangeColumnType final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.ChangeColumnType) */ { - public: - inline ChangeColumnType() : ChangeColumnType(nullptr) {} - ~ChangeColumnType() override; - explicit PROTOBUF_CONSTEXPR ChangeColumnType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ChangeColumnType(const ChangeColumnType& from); - ChangeColumnType(ChangeColumnType&& from) noexcept - : ChangeColumnType() { - *this = ::std::move(from); - } - - inline ChangeColumnType& operator=(const ChangeColumnType& from) { - CopyFrom(from); - return *this; - } - inline ChangeColumnType& operator=(ChangeColumnType&& 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 ChangeColumnType& default_instance() { - return *internal_default_instance(); - } - static inline const ChangeColumnType* internal_default_instance() { - return reinterpret_cast( - &_ChangeColumnType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(ChangeColumnType& a, ChangeColumnType& b) { - a.Swap(&b); - } - inline void Swap(ChangeColumnType* 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(ChangeColumnType* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChangeColumnType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ChangeColumnType& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ChangeColumnType& from) { - ChangeColumnType::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(ChangeColumnType* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.region.ChangeColumnType"; - } - protected: - explicit ChangeColumnType(::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 { - kColumnNameFieldNumber = 1, - kTargetTypeExtensionFieldNumber = 3, - kTargetTypeFieldNumber = 2, - }; - // string column_name = 1; - void clear_column_name(); - const std::string& column_name() const; - template - void set_column_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_column_name(); - PROTOBUF_NODISCARD std::string* release_column_name(); - void set_allocated_column_name(std::string* column_name); - private: - const std::string& _internal_column_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); - std::string* _internal_mutable_column_name(); - public: - - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - bool has_target_type_extension() const; - private: - bool _internal_has_target_type_extension() const; - public: - void clear_target_type_extension(); - const ::greptime::v1::ColumnDataTypeExtension& target_type_extension() const; - PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_target_type_extension(); - ::greptime::v1::ColumnDataTypeExtension* mutable_target_type_extension(); - void set_allocated_target_type_extension(::greptime::v1::ColumnDataTypeExtension* target_type_extension); - private: - const ::greptime::v1::ColumnDataTypeExtension& _internal_target_type_extension() const; - ::greptime::v1::ColumnDataTypeExtension* _internal_mutable_target_type_extension(); - public: - void unsafe_arena_set_allocated_target_type_extension( - ::greptime::v1::ColumnDataTypeExtension* target_type_extension); - ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_target_type_extension(); - - // .greptime.v1.ColumnDataType target_type = 2; - void clear_target_type(); - ::greptime::v1::ColumnDataType target_type() const; - void set_target_type(::greptime::v1::ColumnDataType value); - private: - ::greptime::v1::ColumnDataType _internal_target_type() const; - void _internal_set_target_type(::greptime::v1::ColumnDataType value); - public: - - // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeColumnType) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; - ::greptime::v1::ColumnDataTypeExtension* target_type_extension_; - int target_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; -}; -// ------------------------------------------------------------------- - class DropColumn final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.DropColumn) */ { public: @@ -4319,7 +3970,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 23; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -4472,7 +4123,7 @@ class FlushRequest final : &_FlushRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 24; friend void swap(FlushRequest& a, FlushRequest& b) { a.Swap(&b); @@ -4620,7 +4271,7 @@ class CompactRequest final : &_CompactRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 25; friend void swap(CompactRequest& a, CompactRequest& b) { a.Swap(&b); @@ -4768,7 +4419,7 @@ class TruncateRequest final : &_TruncateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 26; friend void swap(TruncateRequest& a, TruncateRequest& b) { a.Swap(&b); @@ -4916,7 +4567,7 @@ class RegionColumnDef final : &_RegionColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 27; friend void swap(RegionColumnDef& a, RegionColumnDef& b) { a.Swap(&b); @@ -7600,7 +7251,7 @@ inline ::greptime::v1::region::DropColumns* AlterRequest::mutable_drop_columns() return _msg; } -// .greptime.v1.region.ChangeColumnTypes change_column_types = 5; +// .greptime.v1.ChangeColumnTypes change_column_types = 5; inline bool AlterRequest::_internal_has_change_column_types() const { return kind_case() == kChangeColumnTypes; } @@ -7610,19 +7261,11 @@ inline bool AlterRequest::has_change_column_types() const { inline void AlterRequest::set_has_change_column_types() { _impl_._oneof_case_[0] = kChangeColumnTypes; } -inline void AlterRequest::clear_change_column_types() { - if (_internal_has_change_column_types()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_column_types_; - } - clear_has_kind(); - } -} -inline ::greptime::v1::region::ChangeColumnTypes* AlterRequest::release_change_column_types() { +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::release_change_column_types() { // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_column_types) if (_internal_has_change_column_types()) { clear_has_kind(); - ::greptime::v1::region::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } @@ -7632,27 +7275,27 @@ inline ::greptime::v1::region::ChangeColumnTypes* AlterRequest::release_change_c return nullptr; } } -inline const ::greptime::v1::region::ChangeColumnTypes& AlterRequest::_internal_change_column_types() const { +inline const ::greptime::v1::ChangeColumnTypes& AlterRequest::_internal_change_column_types() const { return _internal_has_change_column_types() ? *_impl_.kind_.change_column_types_ - : reinterpret_cast< ::greptime::v1::region::ChangeColumnTypes&>(::greptime::v1::region::_ChangeColumnTypes_default_instance_); + : reinterpret_cast< ::greptime::v1::ChangeColumnTypes&>(::greptime::v1::_ChangeColumnTypes_default_instance_); } -inline const ::greptime::v1::region::ChangeColumnTypes& AlterRequest::change_column_types() const { +inline const ::greptime::v1::ChangeColumnTypes& AlterRequest::change_column_types() const { // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_column_types) return _internal_change_column_types(); } -inline ::greptime::v1::region::ChangeColumnTypes* AlterRequest::unsafe_arena_release_change_column_types() { +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::unsafe_arena_release_change_column_types() { // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_column_types) if (_internal_has_change_column_types()) { clear_has_kind(); - ::greptime::v1::region::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; _impl_.kind_.change_column_types_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterRequest::unsafe_arena_set_allocated_change_column_types(::greptime::v1::region::ChangeColumnTypes* change_column_types) { +inline void AlterRequest::unsafe_arena_set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) { clear_kind(); if (change_column_types) { set_has_change_column_types(); @@ -7660,16 +7303,16 @@ inline void AlterRequest::unsafe_arena_set_allocated_change_column_types(::grept } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_column_types) } -inline ::greptime::v1::region::ChangeColumnTypes* AlterRequest::_internal_mutable_change_column_types() { +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::_internal_mutable_change_column_types() { if (!_internal_has_change_column_types()) { clear_kind(); set_has_change_column_types(); - _impl_.kind_.change_column_types_ = CreateMaybeMessage< ::greptime::v1::region::ChangeColumnTypes >(GetArenaForAllocation()); + _impl_.kind_.change_column_types_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(GetArenaForAllocation()); } return _impl_.kind_.change_column_types_; } -inline ::greptime::v1::region::ChangeColumnTypes* AlterRequest::mutable_change_column_types() { - ::greptime::v1::region::ChangeColumnTypes* _msg = _internal_mutable_change_column_types(); +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_types() { + ::greptime::v1::ChangeColumnTypes* _msg = _internal_mutable_change_column_types(); // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_column_types) return _msg; } @@ -7793,50 +7436,6 @@ DropColumns::drop_columns() const { // ------------------------------------------------------------------- -// ChangeColumnTypes - -// repeated .greptime.v1.region.ChangeColumnType change_column_types = 1; -inline int ChangeColumnTypes::_internal_change_column_types_size() const { - return _impl_.change_column_types_.size(); -} -inline int ChangeColumnTypes::change_column_types_size() const { - return _internal_change_column_types_size(); -} -inline void ChangeColumnTypes::clear_change_column_types() { - _impl_.change_column_types_.Clear(); -} -inline ::greptime::v1::region::ChangeColumnType* ChangeColumnTypes::mutable_change_column_types(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.region.ChangeColumnTypes.change_column_types) - return _impl_.change_column_types_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ChangeColumnType >* -ChangeColumnTypes::mutable_change_column_types() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.region.ChangeColumnTypes.change_column_types) - return &_impl_.change_column_types_; -} -inline const ::greptime::v1::region::ChangeColumnType& ChangeColumnTypes::_internal_change_column_types(int index) const { - return _impl_.change_column_types_.Get(index); -} -inline const ::greptime::v1::region::ChangeColumnType& ChangeColumnTypes::change_column_types(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.region.ChangeColumnTypes.change_column_types) - return _internal_change_column_types(index); -} -inline ::greptime::v1::region::ChangeColumnType* ChangeColumnTypes::_internal_add_change_column_types() { - return _impl_.change_column_types_.Add(); -} -inline ::greptime::v1::region::ChangeColumnType* ChangeColumnTypes::add_change_column_types() { - ::greptime::v1::region::ChangeColumnType* _add = _internal_add_change_column_types(); - // @@protoc_insertion_point(field_add:greptime.v1.region.ChangeColumnTypes.change_column_types) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::ChangeColumnType >& -ChangeColumnTypes::change_column_types() const { - // @@protoc_insertion_point(field_list:greptime.v1.region.ChangeColumnTypes.change_column_types) - return _impl_.change_column_types_; -} - -// ------------------------------------------------------------------- - // AddColumn // .greptime.v1.region.RegionColumnDef column_def = 1; @@ -8016,165 +7615,6 @@ inline void AddColumn::set_allocated_location(::greptime::v1::AddColumnLocation* // ------------------------------------------------------------------- -// ChangeColumnType - -// string column_name = 1; -inline void ChangeColumnType::clear_column_name() { - _impl_.column_name_.ClearToEmpty(); -} -inline const std::string& ChangeColumnType::column_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.region.ChangeColumnType.column_name) - return _internal_column_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ChangeColumnType::set_column_name(ArgT0&& arg0, ArgT... args) { - - _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.region.ChangeColumnType.column_name) -} -inline std::string* ChangeColumnType::mutable_column_name() { - std::string* _s = _internal_mutable_column_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.region.ChangeColumnType.column_name) - return _s; -} -inline const std::string& ChangeColumnType::_internal_column_name() const { - return _impl_.column_name_.Get(); -} -inline void ChangeColumnType::_internal_set_column_name(const std::string& value) { - - _impl_.column_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ChangeColumnType::_internal_mutable_column_name() { - - return _impl_.column_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ChangeColumnType::release_column_name() { - // @@protoc_insertion_point(field_release:greptime.v1.region.ChangeColumnType.column_name) - return _impl_.column_name_.Release(); -} -inline void ChangeColumnType::set_allocated_column_name(std::string* column_name) { - if (column_name != nullptr) { - - } else { - - } - _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.column_name_.IsDefault()) { - _impl_.column_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ChangeColumnType.column_name) -} - -// .greptime.v1.ColumnDataType target_type = 2; -inline void ChangeColumnType::clear_target_type() { - _impl_.target_type_ = 0; -} -inline ::greptime::v1::ColumnDataType ChangeColumnType::_internal_target_type() const { - return static_cast< ::greptime::v1::ColumnDataType >(_impl_.target_type_); -} -inline ::greptime::v1::ColumnDataType ChangeColumnType::target_type() const { - // @@protoc_insertion_point(field_get:greptime.v1.region.ChangeColumnType.target_type) - return _internal_target_type(); -} -inline void ChangeColumnType::_internal_set_target_type(::greptime::v1::ColumnDataType value) { - - _impl_.target_type_ = value; -} -inline void ChangeColumnType::set_target_type(::greptime::v1::ColumnDataType value) { - _internal_set_target_type(value); - // @@protoc_insertion_point(field_set:greptime.v1.region.ChangeColumnType.target_type) -} - -// .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; -inline bool ChangeColumnType::_internal_has_target_type_extension() const { - return this != internal_default_instance() && _impl_.target_type_extension_ != nullptr; -} -inline bool ChangeColumnType::has_target_type_extension() const { - return _internal_has_target_type_extension(); -} -inline const ::greptime::v1::ColumnDataTypeExtension& ChangeColumnType::_internal_target_type_extension() const { - const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.target_type_extension_; - return p != nullptr ? *p : reinterpret_cast( - ::greptime::v1::_ColumnDataTypeExtension_default_instance_); -} -inline const ::greptime::v1::ColumnDataTypeExtension& ChangeColumnType::target_type_extension() const { - // @@protoc_insertion_point(field_get:greptime.v1.region.ChangeColumnType.target_type_extension) - return _internal_target_type_extension(); -} -inline void ChangeColumnType::unsafe_arena_set_allocated_target_type_extension( - ::greptime::v1::ColumnDataTypeExtension* target_type_extension) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_type_extension_); - } - _impl_.target_type_extension_ = target_type_extension; - if (target_type_extension) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.ChangeColumnType.target_type_extension) -} -inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::release_target_type_extension() { - - ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.target_type_extension_; - _impl_.target_type_extension_ = 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::ColumnDataTypeExtension* ChangeColumnType::unsafe_arena_release_target_type_extension() { - // @@protoc_insertion_point(field_release:greptime.v1.region.ChangeColumnType.target_type_extension) - - ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.target_type_extension_; - _impl_.target_type_extension_ = nullptr; - return temp; -} -inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::_internal_mutable_target_type_extension() { - - if (_impl_.target_type_extension_ == nullptr) { - auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation()); - _impl_.target_type_extension_ = p; - } - return _impl_.target_type_extension_; -} -inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::mutable_target_type_extension() { - ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_target_type_extension(); - // @@protoc_insertion_point(field_mutable:greptime.v1.region.ChangeColumnType.target_type_extension) - return _msg; -} -inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1::ColumnDataTypeExtension* target_type_extension) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_type_extension_); - } - if (target_type_extension) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(target_type_extension)); - if (message_arena != submessage_arena) { - target_type_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, target_type_extension, submessage_arena); - } - - } else { - - } - _impl_.target_type_extension_ = target_type_extension; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ChangeColumnType.target_type_extension) -} - -// ------------------------------------------------------------------- - // DropColumn // string name = 1; @@ -8465,10 +7905,6 @@ inline void RegionColumnDef::set_column_id(uint32_t value) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index 5cf6eaa5..e3260c3f 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16342,19 +16342,19 @@ public interface AlterRequestOrBuilder extends io.greptime.v1.region.Server.DropColumnsOrBuilder getDropColumnsOrBuilder(); /** - * .greptime.v1.region.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ChangeColumnTypes change_column_types = 5; * @return Whether the changeColumnTypes field is set. */ boolean hasChangeColumnTypes(); /** - * .greptime.v1.region.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ChangeColumnTypes change_column_types = 5; * @return The changeColumnTypes. */ - io.greptime.v1.region.Server.ChangeColumnTypes getChangeColumnTypes(); + io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes(); /** - * .greptime.v1.region.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ChangeColumnTypes change_column_types = 5; */ - io.greptime.v1.region.Server.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); + io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); /** *
@@ -16452,14 +16452,14 @@ private AlterRequest(
               break;
             }
             case 42: {
-              io.greptime.v1.region.Server.ChangeColumnTypes.Builder subBuilder = null;
+              io.greptime.v1.Ddl.ChangeColumnTypes.Builder subBuilder = null;
               if (kindCase_ == 5) {
-                subBuilder = ((io.greptime.v1.region.Server.ChangeColumnTypes) kind_).toBuilder();
+                subBuilder = ((io.greptime.v1.Ddl.ChangeColumnTypes) kind_).toBuilder();
               }
               kind_ =
-                  input.readMessage(io.greptime.v1.region.Server.ChangeColumnTypes.parser(), extensionRegistry);
+                  input.readMessage(io.greptime.v1.Ddl.ChangeColumnTypes.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((io.greptime.v1.region.Server.ChangeColumnTypes) kind_);
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
                 kind_ = subBuilder.buildPartial();
               }
               kindCase_ = 5;
@@ -16617,7 +16617,7 @@ public io.greptime.v1.region.Server.DropColumnsOrBuilder getDropColumnsOrBuilder
 
     public static final int CHANGE_COLUMN_TYPES_FIELD_NUMBER = 5;
     /**
-     * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+     * .greptime.v1.ChangeColumnTypes change_column_types = 5;
      * @return Whether the changeColumnTypes field is set.
      */
     @java.lang.Override
@@ -16625,25 +16625,25 @@ public boolean hasChangeColumnTypes() {
       return kindCase_ == 5;
     }
     /**
-     * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+     * .greptime.v1.ChangeColumnTypes change_column_types = 5;
      * @return The changeColumnTypes.
      */
     @java.lang.Override
-    public io.greptime.v1.region.Server.ChangeColumnTypes getChangeColumnTypes() {
+    public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() {
       if (kindCase_ == 5) {
-         return (io.greptime.v1.region.Server.ChangeColumnTypes) kind_;
+         return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
       }
-      return io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance();
+      return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
     }
     /**
-     * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+     * .greptime.v1.ChangeColumnTypes change_column_types = 5;
      */
     @java.lang.Override
-    public io.greptime.v1.region.Server.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() {
+    public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() {
       if (kindCase_ == 5) {
-         return (io.greptime.v1.region.Server.ChangeColumnTypes) kind_;
+         return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
       }
-      return io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance();
+      return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
     }
 
     public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
@@ -16688,7 +16688,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         output.writeUInt64(4, schemaVersion_);
       }
       if (kindCase_ == 5) {
-        output.writeMessage(5, (io.greptime.v1.region.Server.ChangeColumnTypes) kind_);
+        output.writeMessage(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
       }
       unknownFields.writeTo(output);
     }
@@ -16717,7 +16717,7 @@ public int getSerializedSize() {
       }
       if (kindCase_ == 5) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, (io.greptime.v1.region.Server.ChangeColumnTypes) kind_);
+          .computeMessageSize(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -17408,9 +17408,9 @@ public io.greptime.v1.region.Server.DropColumnsOrBuilder getDropColumnsOrBuilder
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.region.Server.ChangeColumnTypes, io.greptime.v1.region.Server.ChangeColumnTypes.Builder, io.greptime.v1.region.Server.ChangeColumnTypesOrBuilder> changeColumnTypesBuilder_;
+          io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> changeColumnTypesBuilder_;
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        * @return Whether the changeColumnTypes field is set.
        */
       @java.lang.Override
@@ -17418,27 +17418,27 @@ public boolean hasChangeColumnTypes() {
         return kindCase_ == 5;
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        * @return The changeColumnTypes.
        */
       @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnTypes getChangeColumnTypes() {
+      public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() {
         if (changeColumnTypesBuilder_ == null) {
           if (kindCase_ == 5) {
-            return (io.greptime.v1.region.Server.ChangeColumnTypes) kind_;
+            return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
           }
-          return io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance();
+          return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
         } else {
           if (kindCase_ == 5) {
             return changeColumnTypesBuilder_.getMessage();
           }
-          return io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance();
+          return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        */
-      public Builder setChangeColumnTypes(io.greptime.v1.region.Server.ChangeColumnTypes value) {
+      public Builder setChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) {
         if (changeColumnTypesBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -17452,10 +17452,10 @@ public Builder setChangeColumnTypes(io.greptime.v1.region.Server.ChangeColumnTyp
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        */
       public Builder setChangeColumnTypes(
-          io.greptime.v1.region.Server.ChangeColumnTypes.Builder builderForValue) {
+          io.greptime.v1.Ddl.ChangeColumnTypes.Builder builderForValue) {
         if (changeColumnTypesBuilder_ == null) {
           kind_ = builderForValue.build();
           onChanged();
@@ -17466,13 +17466,13 @@ public Builder setChangeColumnTypes(
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        */
-      public Builder mergeChangeColumnTypes(io.greptime.v1.region.Server.ChangeColumnTypes value) {
+      public Builder mergeChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) {
         if (changeColumnTypesBuilder_ == null) {
           if (kindCase_ == 5 &&
-              kind_ != io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance()) {
-            kind_ = io.greptime.v1.region.Server.ChangeColumnTypes.newBuilder((io.greptime.v1.region.Server.ChangeColumnTypes) kind_)
+              kind_ != io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.newBuilder((io.greptime.v1.Ddl.ChangeColumnTypes) kind_)
                 .mergeFrom(value).buildPartial();
           } else {
             kind_ = value;
@@ -17489,7 +17489,7 @@ public Builder mergeChangeColumnTypes(io.greptime.v1.region.Server.ChangeColumnT
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        */
       public Builder clearChangeColumnTypes() {
         if (changeColumnTypesBuilder_ == null) {
@@ -17508,38 +17508,38 @@ public Builder clearChangeColumnTypes() {
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        */
-      public io.greptime.v1.region.Server.ChangeColumnTypes.Builder getChangeColumnTypesBuilder() {
+      public io.greptime.v1.Ddl.ChangeColumnTypes.Builder getChangeColumnTypesBuilder() {
         return getChangeColumnTypesFieldBuilder().getBuilder();
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        */
       @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() {
+      public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() {
         if ((kindCase_ == 5) && (changeColumnTypesBuilder_ != null)) {
           return changeColumnTypesBuilder_.getMessageOrBuilder();
         } else {
           if (kindCase_ == 5) {
-            return (io.greptime.v1.region.Server.ChangeColumnTypes) kind_;
+            return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
           }
-          return io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance();
+          return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.region.ChangeColumnTypes change_column_types = 5;
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.region.Server.ChangeColumnTypes, io.greptime.v1.region.Server.ChangeColumnTypes.Builder, io.greptime.v1.region.Server.ChangeColumnTypesOrBuilder> 
+          io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> 
           getChangeColumnTypesFieldBuilder() {
         if (changeColumnTypesBuilder_ == null) {
           if (!(kindCase_ == 5)) {
-            kind_ = io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance();
+            kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
           }
           changeColumnTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              io.greptime.v1.region.Server.ChangeColumnTypes, io.greptime.v1.region.Server.ChangeColumnTypes.Builder, io.greptime.v1.region.Server.ChangeColumnTypesOrBuilder>(
-                  (io.greptime.v1.region.Server.ChangeColumnTypes) kind_,
+              io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder>(
+                  (io.greptime.v1.Ddl.ChangeColumnTypes) kind_,
                   getParentForChildren(),
                   isClean());
           kind_ = null;
@@ -19234,1691 +19234,60 @@ public io.greptime.v1.region.Server.DropColumns getDefaultInstanceForType() {
 
   }
 
-  public interface ChangeColumnTypesOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:greptime.v1.region.ChangeColumnTypes)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    java.util.List 
-        getChangeColumnTypesList();
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    io.greptime.v1.region.Server.ChangeColumnType getChangeColumnTypes(int index);
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    int getChangeColumnTypesCount();
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    java.util.List 
-        getChangeColumnTypesOrBuilderList();
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    io.greptime.v1.region.Server.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder(
-        int index);
-  }
-  /**
-   * Protobuf type {@code greptime.v1.region.ChangeColumnTypes}
-   */
-  public static final class ChangeColumnTypes extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:greptime.v1.region.ChangeColumnTypes)
-      ChangeColumnTypesOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use ChangeColumnTypes.newBuilder() to construct.
-    private ChangeColumnTypes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private ChangeColumnTypes() {
-      changeColumnTypes_ = java.util.Collections.emptyList();
-    }
-
-    @java.lang.Override
-    @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
-      return new ChangeColumnTypes();
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private ChangeColumnTypes(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      this();
-      if (extensionRegistry == null) {
-        throw new java.lang.NullPointerException();
-      }
-      int mutable_bitField0_ = 0;
-      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: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                changeColumnTypes_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              changeColumnTypes_.add(
-                  input.readMessage(io.greptime.v1.region.Server.ChangeColumnType.parser(), extensionRegistry));
-              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 {
-        if (((mutable_bitField0_ & 0x00000001) != 0)) {
-          changeColumnTypes_ = java.util.Collections.unmodifiableList(changeColumnTypes_);
-        }
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnTypes_descriptor;
-    }
-
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnTypes_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              io.greptime.v1.region.Server.ChangeColumnTypes.class, io.greptime.v1.region.Server.ChangeColumnTypes.Builder.class);
-    }
-
-    public static final int CHANGE_COLUMN_TYPES_FIELD_NUMBER = 1;
-    private java.util.List changeColumnTypes_;
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    @java.lang.Override
-    public java.util.List getChangeColumnTypesList() {
-      return changeColumnTypes_;
-    }
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    @java.lang.Override
-    public java.util.List 
-        getChangeColumnTypesOrBuilderList() {
-      return changeColumnTypes_;
-    }
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    @java.lang.Override
-    public int getChangeColumnTypesCount() {
-      return changeColumnTypes_.size();
-    }
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    @java.lang.Override
-    public io.greptime.v1.region.Server.ChangeColumnType getChangeColumnTypes(int index) {
-      return changeColumnTypes_.get(index);
-    }
-    /**
-     * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-     */
-    @java.lang.Override
-    public io.greptime.v1.region.Server.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder(
-        int index) {
-      return changeColumnTypes_.get(index);
-    }
-
-    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 {
-      for (int i = 0; i < changeColumnTypes_.size(); i++) {
-        output.writeMessage(1, changeColumnTypes_.get(i));
-      }
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      for (int i = 0; i < changeColumnTypes_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, changeColumnTypes_.get(i));
-      }
-      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 io.greptime.v1.region.Server.ChangeColumnTypes)) {
-        return super.equals(obj);
-      }
-      io.greptime.v1.region.Server.ChangeColumnTypes other = (io.greptime.v1.region.Server.ChangeColumnTypes) obj;
-
-      if (!getChangeColumnTypesList()
-          .equals(other.getChangeColumnTypesList())) 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 (getChangeColumnTypesCount() > 0) {
-        hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER;
-        hash = (53 * hash) + getChangeColumnTypesList().hashCode();
-      }
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes 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 io.greptime.v1.region.Server.ChangeColumnTypes parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes 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 io.greptime.v1.region.Server.ChangeColumnTypes parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.ChangeColumnTypes 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(io.greptime.v1.region.Server.ChangeColumnTypes 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.region.ChangeColumnTypes}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:greptime.v1.region.ChangeColumnTypes)
-        io.greptime.v1.region.Server.ChangeColumnTypesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnTypes_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnTypes_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                io.greptime.v1.region.Server.ChangeColumnTypes.class, io.greptime.v1.region.Server.ChangeColumnTypes.Builder.class);
-      }
-
-      // Construct using io.greptime.v1.region.Server.ChangeColumnTypes.newBuilder()
-      private Builder() {
-        maybeForceBuilderInitialization();
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-          getChangeColumnTypesFieldBuilder();
-        }
-      }
-      @java.lang.Override
-      public Builder clear() {
-        super.clear();
-        if (changeColumnTypesBuilder_ == null) {
-          changeColumnTypes_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000001);
-        } else {
-          changeColumnTypesBuilder_.clear();
-        }
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnTypes_descriptor;
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnTypes getDefaultInstanceForType() {
-        return io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnTypes build() {
-        io.greptime.v1.region.Server.ChangeColumnTypes result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnTypes buildPartial() {
-        io.greptime.v1.region.Server.ChangeColumnTypes result = new io.greptime.v1.region.Server.ChangeColumnTypes(this);
-        int from_bitField0_ = bitField0_;
-        if (changeColumnTypesBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)) {
-            changeColumnTypes_ = java.util.Collections.unmodifiableList(changeColumnTypes_);
-            bitField0_ = (bitField0_ & ~0x00000001);
-          }
-          result.changeColumnTypes_ = changeColumnTypes_;
-        } else {
-          result.changeColumnTypes_ = changeColumnTypesBuilder_.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 io.greptime.v1.region.Server.ChangeColumnTypes) {
-          return mergeFrom((io.greptime.v1.region.Server.ChangeColumnTypes)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(io.greptime.v1.region.Server.ChangeColumnTypes other) {
-        if (other == io.greptime.v1.region.Server.ChangeColumnTypes.getDefaultInstance()) return this;
-        if (changeColumnTypesBuilder_ == null) {
-          if (!other.changeColumnTypes_.isEmpty()) {
-            if (changeColumnTypes_.isEmpty()) {
-              changeColumnTypes_ = other.changeColumnTypes_;
-              bitField0_ = (bitField0_ & ~0x00000001);
-            } else {
-              ensureChangeColumnTypesIsMutable();
-              changeColumnTypes_.addAll(other.changeColumnTypes_);
-            }
-            onChanged();
-          }
-        } else {
-          if (!other.changeColumnTypes_.isEmpty()) {
-            if (changeColumnTypesBuilder_.isEmpty()) {
-              changeColumnTypesBuilder_.dispose();
-              changeColumnTypesBuilder_ = null;
-              changeColumnTypes_ = other.changeColumnTypes_;
-              bitField0_ = (bitField0_ & ~0x00000001);
-              changeColumnTypesBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getChangeColumnTypesFieldBuilder() : null;
-            } else {
-              changeColumnTypesBuilder_.addAllMessages(other.changeColumnTypes_);
-            }
-          }
-        }
-        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 {
-        io.greptime.v1.region.Server.ChangeColumnTypes parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (io.greptime.v1.region.Server.ChangeColumnTypes) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-      private int bitField0_;
-
-      private java.util.List changeColumnTypes_ =
-        java.util.Collections.emptyList();
-      private void ensureChangeColumnTypesIsMutable() {
-        if (!((bitField0_ & 0x00000001) != 0)) {
-          changeColumnTypes_ = new java.util.ArrayList(changeColumnTypes_);
-          bitField0_ |= 0x00000001;
-         }
-      }
-
-      private com.google.protobuf.RepeatedFieldBuilderV3<
-          io.greptime.v1.region.Server.ChangeColumnType, io.greptime.v1.region.Server.ChangeColumnType.Builder, io.greptime.v1.region.Server.ChangeColumnTypeOrBuilder> changeColumnTypesBuilder_;
-
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public java.util.List getChangeColumnTypesList() {
-        if (changeColumnTypesBuilder_ == null) {
-          return java.util.Collections.unmodifiableList(changeColumnTypes_);
-        } else {
-          return changeColumnTypesBuilder_.getMessageList();
-        }
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public int getChangeColumnTypesCount() {
-        if (changeColumnTypesBuilder_ == null) {
-          return changeColumnTypes_.size();
-        } else {
-          return changeColumnTypesBuilder_.getCount();
-        }
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public io.greptime.v1.region.Server.ChangeColumnType getChangeColumnTypes(int index) {
-        if (changeColumnTypesBuilder_ == null) {
-          return changeColumnTypes_.get(index);
-        } else {
-          return changeColumnTypesBuilder_.getMessage(index);
-        }
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder setChangeColumnTypes(
-          int index, io.greptime.v1.region.Server.ChangeColumnType value) {
-        if (changeColumnTypesBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          ensureChangeColumnTypesIsMutable();
-          changeColumnTypes_.set(index, value);
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.setMessage(index, value);
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder setChangeColumnTypes(
-          int index, io.greptime.v1.region.Server.ChangeColumnType.Builder builderForValue) {
-        if (changeColumnTypesBuilder_ == null) {
-          ensureChangeColumnTypesIsMutable();
-          changeColumnTypes_.set(index, builderForValue.build());
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.setMessage(index, builderForValue.build());
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder addChangeColumnTypes(io.greptime.v1.region.Server.ChangeColumnType value) {
-        if (changeColumnTypesBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          ensureChangeColumnTypesIsMutable();
-          changeColumnTypes_.add(value);
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.addMessage(value);
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder addChangeColumnTypes(
-          int index, io.greptime.v1.region.Server.ChangeColumnType value) {
-        if (changeColumnTypesBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          ensureChangeColumnTypesIsMutable();
-          changeColumnTypes_.add(index, value);
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.addMessage(index, value);
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder addChangeColumnTypes(
-          io.greptime.v1.region.Server.ChangeColumnType.Builder builderForValue) {
-        if (changeColumnTypesBuilder_ == null) {
-          ensureChangeColumnTypesIsMutable();
-          changeColumnTypes_.add(builderForValue.build());
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.addMessage(builderForValue.build());
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder addChangeColumnTypes(
-          int index, io.greptime.v1.region.Server.ChangeColumnType.Builder builderForValue) {
-        if (changeColumnTypesBuilder_ == null) {
-          ensureChangeColumnTypesIsMutable();
-          changeColumnTypes_.add(index, builderForValue.build());
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.addMessage(index, builderForValue.build());
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder addAllChangeColumnTypes(
-          java.lang.Iterable values) {
-        if (changeColumnTypesBuilder_ == null) {
-          ensureChangeColumnTypesIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(
-              values, changeColumnTypes_);
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.addAllMessages(values);
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder clearChangeColumnTypes() {
-        if (changeColumnTypesBuilder_ == null) {
-          changeColumnTypes_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000001);
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.clear();
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public Builder removeChangeColumnTypes(int index) {
-        if (changeColumnTypesBuilder_ == null) {
-          ensureChangeColumnTypesIsMutable();
-          changeColumnTypes_.remove(index);
-          onChanged();
-        } else {
-          changeColumnTypesBuilder_.remove(index);
-        }
-        return this;
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public io.greptime.v1.region.Server.ChangeColumnType.Builder getChangeColumnTypesBuilder(
-          int index) {
-        return getChangeColumnTypesFieldBuilder().getBuilder(index);
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public io.greptime.v1.region.Server.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder(
-          int index) {
-        if (changeColumnTypesBuilder_ == null) {
-          return changeColumnTypes_.get(index);  } else {
-          return changeColumnTypesBuilder_.getMessageOrBuilder(index);
-        }
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public java.util.List 
-           getChangeColumnTypesOrBuilderList() {
-        if (changeColumnTypesBuilder_ != null) {
-          return changeColumnTypesBuilder_.getMessageOrBuilderList();
-        } else {
-          return java.util.Collections.unmodifiableList(changeColumnTypes_);
-        }
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public io.greptime.v1.region.Server.ChangeColumnType.Builder addChangeColumnTypesBuilder() {
-        return getChangeColumnTypesFieldBuilder().addBuilder(
-            io.greptime.v1.region.Server.ChangeColumnType.getDefaultInstance());
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public io.greptime.v1.region.Server.ChangeColumnType.Builder addChangeColumnTypesBuilder(
-          int index) {
-        return getChangeColumnTypesFieldBuilder().addBuilder(
-            index, io.greptime.v1.region.Server.ChangeColumnType.getDefaultInstance());
-      }
-      /**
-       * repeated .greptime.v1.region.ChangeColumnType change_column_types = 1;
-       */
-      public java.util.List 
-           getChangeColumnTypesBuilderList() {
-        return getChangeColumnTypesFieldBuilder().getBuilderList();
-      }
-      private com.google.protobuf.RepeatedFieldBuilderV3<
-          io.greptime.v1.region.Server.ChangeColumnType, io.greptime.v1.region.Server.ChangeColumnType.Builder, io.greptime.v1.region.Server.ChangeColumnTypeOrBuilder> 
-          getChangeColumnTypesFieldBuilder() {
-        if (changeColumnTypesBuilder_ == null) {
-          changeColumnTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              io.greptime.v1.region.Server.ChangeColumnType, io.greptime.v1.region.Server.ChangeColumnType.Builder, io.greptime.v1.region.Server.ChangeColumnTypeOrBuilder>(
-                  changeColumnTypes_,
-                  ((bitField0_ & 0x00000001) != 0),
-                  getParentForChildren(),
-                  isClean());
-          changeColumnTypes_ = null;
-        }
-        return changeColumnTypesBuilder_;
-      }
-      @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.region.ChangeColumnTypes)
-    }
-
-    // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeColumnTypes)
-    private static final io.greptime.v1.region.Server.ChangeColumnTypes DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new io.greptime.v1.region.Server.ChangeColumnTypes();
-    }
-
-    public static io.greptime.v1.region.Server.ChangeColumnTypes getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ChangeColumnTypes parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ChangeColumnTypes(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 io.greptime.v1.region.Server.ChangeColumnTypes getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  public interface AddColumnOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:greptime.v1.region.AddColumn)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * .greptime.v1.region.RegionColumnDef column_def = 1;
-     * @return Whether the columnDef field is set.
-     */
-    boolean hasColumnDef();
-    /**
-     * .greptime.v1.region.RegionColumnDef column_def = 1;
-     * @return The columnDef.
-     */
-    io.greptime.v1.region.Server.RegionColumnDef getColumnDef();
-    /**
-     * .greptime.v1.region.RegionColumnDef column_def = 1;
-     */
-    io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefOrBuilder();
-
-    /**
-     * .greptime.v1.AddColumnLocation location = 3;
-     * @return Whether the location field is set.
-     */
-    boolean hasLocation();
-    /**
-     * .greptime.v1.AddColumnLocation location = 3;
-     * @return The location.
-     */
-    io.greptime.v1.Ddl.AddColumnLocation getLocation();
-    /**
-     * .greptime.v1.AddColumnLocation location = 3;
-     */
-    io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder();
-  }
-  /**
-   * Protobuf type {@code greptime.v1.region.AddColumn}
-   */
-  public static final class AddColumn extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:greptime.v1.region.AddColumn)
-      AddColumnOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use AddColumn.newBuilder() to construct.
-    private AddColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private AddColumn() {
-    }
-
-    @java.lang.Override
-    @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
-      return new AddColumn();
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private AddColumn(
-        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: {
-              io.greptime.v1.region.Server.RegionColumnDef.Builder subBuilder = null;
-              if (columnDef_ != null) {
-                subBuilder = columnDef_.toBuilder();
-              }
-              columnDef_ = input.readMessage(io.greptime.v1.region.Server.RegionColumnDef.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(columnDef_);
-                columnDef_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            case 26: {
-              io.greptime.v1.Ddl.AddColumnLocation.Builder subBuilder = null;
-              if (location_ != null) {
-                subBuilder = location_.toBuilder();
-              }
-              location_ = input.readMessage(io.greptime.v1.Ddl.AddColumnLocation.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(location_);
-                location_ = 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 io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_descriptor;
-    }
-
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              io.greptime.v1.region.Server.AddColumn.class, io.greptime.v1.region.Server.AddColumn.Builder.class);
-    }
-
-    public static final int COLUMN_DEF_FIELD_NUMBER = 1;
-    private io.greptime.v1.region.Server.RegionColumnDef columnDef_;
-    /**
-     * .greptime.v1.region.RegionColumnDef column_def = 1;
-     * @return Whether the columnDef field is set.
-     */
-    @java.lang.Override
-    public boolean hasColumnDef() {
-      return columnDef_ != null;
-    }
-    /**
-     * .greptime.v1.region.RegionColumnDef column_def = 1;
-     * @return The columnDef.
-     */
-    @java.lang.Override
-    public io.greptime.v1.region.Server.RegionColumnDef getColumnDef() {
-      return columnDef_ == null ? io.greptime.v1.region.Server.RegionColumnDef.getDefaultInstance() : columnDef_;
-    }
-    /**
-     * .greptime.v1.region.RegionColumnDef column_def = 1;
-     */
-    @java.lang.Override
-    public io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefOrBuilder() {
-      return getColumnDef();
-    }
-
-    public static final int LOCATION_FIELD_NUMBER = 3;
-    private io.greptime.v1.Ddl.AddColumnLocation location_;
-    /**
-     * .greptime.v1.AddColumnLocation location = 3;
-     * @return Whether the location field is set.
-     */
-    @java.lang.Override
-    public boolean hasLocation() {
-      return location_ != null;
-    }
-    /**
-     * .greptime.v1.AddColumnLocation location = 3;
-     * @return The location.
-     */
-    @java.lang.Override
-    public io.greptime.v1.Ddl.AddColumnLocation getLocation() {
-      return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_;
-    }
-    /**
-     * .greptime.v1.AddColumnLocation location = 3;
-     */
-    @java.lang.Override
-    public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() {
-      return getLocation();
-    }
-
-    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 (columnDef_ != null) {
-        output.writeMessage(1, getColumnDef());
-      }
-      if (location_ != null) {
-        output.writeMessage(3, getLocation());
-      }
-      unknownFields.writeTo(output);
-    }
-
-    @java.lang.Override
-    public int getSerializedSize() {
-      int size = memoizedSize;
-      if (size != -1) return size;
-
-      size = 0;
-      if (columnDef_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getColumnDef());
-      }
-      if (location_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getLocation());
-      }
-      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 io.greptime.v1.region.Server.AddColumn)) {
-        return super.equals(obj);
-      }
-      io.greptime.v1.region.Server.AddColumn other = (io.greptime.v1.region.Server.AddColumn) obj;
-
-      if (hasColumnDef() != other.hasColumnDef()) return false;
-      if (hasColumnDef()) {
-        if (!getColumnDef()
-            .equals(other.getColumnDef())) return false;
-      }
-      if (hasLocation() != other.hasLocation()) return false;
-      if (hasLocation()) {
-        if (!getLocation()
-            .equals(other.getLocation())) 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 (hasColumnDef()) {
-        hash = (37 * hash) + COLUMN_DEF_FIELD_NUMBER;
-        hash = (53 * hash) + getColumnDef().hashCode();
-      }
-      if (hasLocation()) {
-        hash = (37 * hash) + LOCATION_FIELD_NUMBER;
-        hash = (53 * hash) + getLocation().hashCode();
-      }
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static io.greptime.v1.region.Server.AddColumn parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.AddColumn parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.AddColumn parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.AddColumn parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.AddColumn parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.AddColumn parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.AddColumn parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.AddColumn 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 io.greptime.v1.region.Server.AddColumn parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.AddColumn 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 io.greptime.v1.region.Server.AddColumn parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.AddColumn 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(io.greptime.v1.region.Server.AddColumn 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.region.AddColumn}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:greptime.v1.region.AddColumn)
-        io.greptime.v1.region.Server.AddColumnOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                io.greptime.v1.region.Server.AddColumn.class, io.greptime.v1.region.Server.AddColumn.Builder.class);
-      }
-
-      // Construct using io.greptime.v1.region.Server.AddColumn.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 (columnDefBuilder_ == null) {
-          columnDef_ = null;
-        } else {
-          columnDef_ = null;
-          columnDefBuilder_ = null;
-        }
-        if (locationBuilder_ == null) {
-          location_ = null;
-        } else {
-          location_ = null;
-          locationBuilder_ = null;
-        }
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_descriptor;
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.AddColumn getDefaultInstanceForType() {
-        return io.greptime.v1.region.Server.AddColumn.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.AddColumn build() {
-        io.greptime.v1.region.Server.AddColumn result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.AddColumn buildPartial() {
-        io.greptime.v1.region.Server.AddColumn result = new io.greptime.v1.region.Server.AddColumn(this);
-        if (columnDefBuilder_ == null) {
-          result.columnDef_ = columnDef_;
-        } else {
-          result.columnDef_ = columnDefBuilder_.build();
-        }
-        if (locationBuilder_ == null) {
-          result.location_ = location_;
-        } else {
-          result.location_ = locationBuilder_.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 io.greptime.v1.region.Server.AddColumn) {
-          return mergeFrom((io.greptime.v1.region.Server.AddColumn)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(io.greptime.v1.region.Server.AddColumn other) {
-        if (other == io.greptime.v1.region.Server.AddColumn.getDefaultInstance()) return this;
-        if (other.hasColumnDef()) {
-          mergeColumnDef(other.getColumnDef());
-        }
-        if (other.hasLocation()) {
-          mergeLocation(other.getLocation());
-        }
-        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 {
-        io.greptime.v1.region.Server.AddColumn parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (io.greptime.v1.region.Server.AddColumn) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-
-      private io.greptime.v1.region.Server.RegionColumnDef columnDef_;
-      private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.region.Server.RegionColumnDef, io.greptime.v1.region.Server.RegionColumnDef.Builder, io.greptime.v1.region.Server.RegionColumnDefOrBuilder> columnDefBuilder_;
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       * @return Whether the columnDef field is set.
-       */
-      public boolean hasColumnDef() {
-        return columnDefBuilder_ != null || columnDef_ != null;
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       * @return The columnDef.
-       */
-      public io.greptime.v1.region.Server.RegionColumnDef getColumnDef() {
-        if (columnDefBuilder_ == null) {
-          return columnDef_ == null ? io.greptime.v1.region.Server.RegionColumnDef.getDefaultInstance() : columnDef_;
-        } else {
-          return columnDefBuilder_.getMessage();
-        }
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       */
-      public Builder setColumnDef(io.greptime.v1.region.Server.RegionColumnDef value) {
-        if (columnDefBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          columnDef_ = value;
-          onChanged();
-        } else {
-          columnDefBuilder_.setMessage(value);
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       */
-      public Builder setColumnDef(
-          io.greptime.v1.region.Server.RegionColumnDef.Builder builderForValue) {
-        if (columnDefBuilder_ == null) {
-          columnDef_ = builderForValue.build();
-          onChanged();
-        } else {
-          columnDefBuilder_.setMessage(builderForValue.build());
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       */
-      public Builder mergeColumnDef(io.greptime.v1.region.Server.RegionColumnDef value) {
-        if (columnDefBuilder_ == null) {
-          if (columnDef_ != null) {
-            columnDef_ =
-              io.greptime.v1.region.Server.RegionColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial();
-          } else {
-            columnDef_ = value;
-          }
-          onChanged();
-        } else {
-          columnDefBuilder_.mergeFrom(value);
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       */
-      public Builder clearColumnDef() {
-        if (columnDefBuilder_ == null) {
-          columnDef_ = null;
-          onChanged();
-        } else {
-          columnDef_ = null;
-          columnDefBuilder_ = null;
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       */
-      public io.greptime.v1.region.Server.RegionColumnDef.Builder getColumnDefBuilder() {
-        
-        onChanged();
-        return getColumnDefFieldBuilder().getBuilder();
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       */
-      public io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefOrBuilder() {
-        if (columnDefBuilder_ != null) {
-          return columnDefBuilder_.getMessageOrBuilder();
-        } else {
-          return columnDef_ == null ?
-              io.greptime.v1.region.Server.RegionColumnDef.getDefaultInstance() : columnDef_;
-        }
-      }
-      /**
-       * .greptime.v1.region.RegionColumnDef column_def = 1;
-       */
-      private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.region.Server.RegionColumnDef, io.greptime.v1.region.Server.RegionColumnDef.Builder, io.greptime.v1.region.Server.RegionColumnDefOrBuilder> 
-          getColumnDefFieldBuilder() {
-        if (columnDefBuilder_ == null) {
-          columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              io.greptime.v1.region.Server.RegionColumnDef, io.greptime.v1.region.Server.RegionColumnDef.Builder, io.greptime.v1.region.Server.RegionColumnDefOrBuilder>(
-                  getColumnDef(),
-                  getParentForChildren(),
-                  isClean());
-          columnDef_ = null;
-        }
-        return columnDefBuilder_;
-      }
-
-      private io.greptime.v1.Ddl.AddColumnLocation location_;
-      private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> locationBuilder_;
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       * @return Whether the location field is set.
-       */
-      public boolean hasLocation() {
-        return locationBuilder_ != null || location_ != null;
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       * @return The location.
-       */
-      public io.greptime.v1.Ddl.AddColumnLocation getLocation() {
-        if (locationBuilder_ == null) {
-          return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_;
-        } else {
-          return locationBuilder_.getMessage();
-        }
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       */
-      public Builder setLocation(io.greptime.v1.Ddl.AddColumnLocation value) {
-        if (locationBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          location_ = value;
-          onChanged();
-        } else {
-          locationBuilder_.setMessage(value);
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       */
-      public Builder setLocation(
-          io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) {
-        if (locationBuilder_ == null) {
-          location_ = builderForValue.build();
-          onChanged();
-        } else {
-          locationBuilder_.setMessage(builderForValue.build());
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       */
-      public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) {
-        if (locationBuilder_ == null) {
-          if (location_ != null) {
-            location_ =
-              io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial();
-          } else {
-            location_ = value;
-          }
-          onChanged();
-        } else {
-          locationBuilder_.mergeFrom(value);
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       */
-      public Builder clearLocation() {
-        if (locationBuilder_ == null) {
-          location_ = null;
-          onChanged();
-        } else {
-          location_ = null;
-          locationBuilder_ = null;
-        }
-
-        return this;
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       */
-      public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() {
-        
-        onChanged();
-        return getLocationFieldBuilder().getBuilder();
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       */
-      public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() {
-        if (locationBuilder_ != null) {
-          return locationBuilder_.getMessageOrBuilder();
-        } else {
-          return location_ == null ?
-              io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_;
-        }
-      }
-      /**
-       * .greptime.v1.AddColumnLocation location = 3;
-       */
-      private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> 
-          getLocationFieldBuilder() {
-        if (locationBuilder_ == null) {
-          locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>(
-                  getLocation(),
-                  getParentForChildren(),
-                  isClean());
-          location_ = null;
-        }
-        return locationBuilder_;
-      }
-      @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.region.AddColumn)
-    }
-
-    // @@protoc_insertion_point(class_scope:greptime.v1.region.AddColumn)
-    private static final io.greptime.v1.region.Server.AddColumn DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new io.greptime.v1.region.Server.AddColumn();
-    }
-
-    public static io.greptime.v1.region.Server.AddColumn getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public AddColumn parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new AddColumn(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 io.greptime.v1.region.Server.AddColumn getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
-  public interface ChangeColumnTypeOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:greptime.v1.region.ChangeColumnType)
+  public interface AddColumnOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:greptime.v1.region.AddColumn)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     * string column_name = 1;
-     * @return The columnName.
-     */
-    java.lang.String getColumnName();
-    /**
-     * string column_name = 1;
-     * @return The bytes for columnName.
+     * .greptime.v1.region.RegionColumnDef column_def = 1;
+     * @return Whether the columnDef field is set.
      */
-    com.google.protobuf.ByteString
-        getColumnNameBytes();
-
+    boolean hasColumnDef();
     /**
-     * .greptime.v1.ColumnDataType target_type = 2;
-     * @return The enum numeric value on the wire for targetType.
+     * .greptime.v1.region.RegionColumnDef column_def = 1;
+     * @return The columnDef.
      */
-    int getTargetTypeValue();
+    io.greptime.v1.region.Server.RegionColumnDef getColumnDef();
     /**
-     * .greptime.v1.ColumnDataType target_type = 2;
-     * @return The targetType.
+     * .greptime.v1.region.RegionColumnDef column_def = 1;
      */
-    io.greptime.v1.Common.ColumnDataType getTargetType();
+    io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefOrBuilder();
 
     /**
-     * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
-     * @return Whether the targetTypeExtension field is set.
+     * .greptime.v1.AddColumnLocation location = 3;
+     * @return Whether the location field is set.
      */
-    boolean hasTargetTypeExtension();
+    boolean hasLocation();
     /**
-     * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
-     * @return The targetTypeExtension.
+     * .greptime.v1.AddColumnLocation location = 3;
+     * @return The location.
      */
-    io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension();
+    io.greptime.v1.Ddl.AddColumnLocation getLocation();
     /**
-     * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+     * .greptime.v1.AddColumnLocation location = 3;
      */
-    io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder();
+    io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder();
   }
   /**
-   * Protobuf type {@code greptime.v1.region.ChangeColumnType}
+   * Protobuf type {@code greptime.v1.region.AddColumn}
    */
-  public static final class ChangeColumnType extends
+  public static final class AddColumn extends
       com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:greptime.v1.region.ChangeColumnType)
-      ChangeColumnTypeOrBuilder {
+      // @@protoc_insertion_point(message_implements:greptime.v1.region.AddColumn)
+      AddColumnOrBuilder {
   private static final long serialVersionUID = 0L;
-    // Use ChangeColumnType.newBuilder() to construct.
-    private ChangeColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    // Use AddColumn.newBuilder() to construct.
+    private AddColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private ChangeColumnType() {
-      columnName_ = "";
-      targetType_ = 0;
+    private AddColumn() {
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
     protected java.lang.Object newInstance(
         UnusedPrivateParameter unused) {
-      return new ChangeColumnType();
+      return new AddColumn();
     }
 
     @java.lang.Override
@@ -20926,7 +19295,7 @@ protected java.lang.Object newInstance(
     getUnknownFields() {
       return this.unknownFields;
     }
-    private ChangeColumnType(
+    private AddColumn(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
@@ -20945,26 +19314,27 @@ private ChangeColumnType(
               done = true;
               break;
             case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              columnName_ = s;
-              break;
-            }
-            case 16: {
-              int rawValue = input.readEnum();
+              io.greptime.v1.region.Server.RegionColumnDef.Builder subBuilder = null;
+              if (columnDef_ != null) {
+                subBuilder = columnDef_.toBuilder();
+              }
+              columnDef_ = input.readMessage(io.greptime.v1.region.Server.RegionColumnDef.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(columnDef_);
+                columnDef_ = subBuilder.buildPartial();
+              }
 
-              targetType_ = rawValue;
               break;
             }
             case 26: {
-              io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null;
-              if (targetTypeExtension_ != null) {
-                subBuilder = targetTypeExtension_.toBuilder();
+              io.greptime.v1.Ddl.AddColumnLocation.Builder subBuilder = null;
+              if (location_ != null) {
+                subBuilder = location_.toBuilder();
               }
-              targetTypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry);
+              location_ = input.readMessage(io.greptime.v1.Ddl.AddColumnLocation.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom(targetTypeExtension_);
-                targetTypeExtension_ = subBuilder.buildPartial();
+                subBuilder.mergeFrom(location_);
+                location_ = subBuilder.buildPartial();
               }
 
               break;
@@ -20992,98 +19362,67 @@ private ChangeColumnType(
     }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnType_descriptor;
+      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnType_fieldAccessorTable
+      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              io.greptime.v1.region.Server.ChangeColumnType.class, io.greptime.v1.region.Server.ChangeColumnType.Builder.class);
+              io.greptime.v1.region.Server.AddColumn.class, io.greptime.v1.region.Server.AddColumn.Builder.class);
     }
 
-    public static final int COLUMN_NAME_FIELD_NUMBER = 1;
-    private volatile java.lang.Object columnName_;
+    public static final int COLUMN_DEF_FIELD_NUMBER = 1;
+    private io.greptime.v1.region.Server.RegionColumnDef columnDef_;
     /**
-     * string column_name = 1;
-     * @return The columnName.
+     * .greptime.v1.region.RegionColumnDef column_def = 1;
+     * @return Whether the columnDef field is set.
      */
     @java.lang.Override
-    public java.lang.String getColumnName() {
-      java.lang.Object ref = columnName_;
-      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();
-        columnName_ = s;
-        return s;
-      }
+    public boolean hasColumnDef() {
+      return columnDef_ != null;
     }
     /**
-     * string column_name = 1;
-     * @return The bytes for columnName.
+     * .greptime.v1.region.RegionColumnDef column_def = 1;
+     * @return The columnDef.
      */
     @java.lang.Override
-    public com.google.protobuf.ByteString
-        getColumnNameBytes() {
-      java.lang.Object ref = columnName_;
-      if (ref instanceof java.lang.String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
-        columnName_ = b;
-        return b;
-      } else {
-        return (com.google.protobuf.ByteString) ref;
-      }
-    }
-
-    public static final int TARGET_TYPE_FIELD_NUMBER = 2;
-    private int targetType_;
-    /**
-     * .greptime.v1.ColumnDataType target_type = 2;
-     * @return The enum numeric value on the wire for targetType.
-     */
-    @java.lang.Override public int getTargetTypeValue() {
-      return targetType_;
+    public io.greptime.v1.region.Server.RegionColumnDef getColumnDef() {
+      return columnDef_ == null ? io.greptime.v1.region.Server.RegionColumnDef.getDefaultInstance() : columnDef_;
     }
     /**
-     * .greptime.v1.ColumnDataType target_type = 2;
-     * @return The targetType.
+     * .greptime.v1.region.RegionColumnDef column_def = 1;
      */
-    @java.lang.Override public io.greptime.v1.Common.ColumnDataType getTargetType() {
-      @SuppressWarnings("deprecation")
-      io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_);
-      return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result;
+    @java.lang.Override
+    public io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefOrBuilder() {
+      return getColumnDef();
     }
 
-    public static final int TARGET_TYPE_EXTENSION_FIELD_NUMBER = 3;
-    private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_;
+    public static final int LOCATION_FIELD_NUMBER = 3;
+    private io.greptime.v1.Ddl.AddColumnLocation location_;
     /**
-     * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
-     * @return Whether the targetTypeExtension field is set.
+     * .greptime.v1.AddColumnLocation location = 3;
+     * @return Whether the location field is set.
      */
     @java.lang.Override
-    public boolean hasTargetTypeExtension() {
-      return targetTypeExtension_ != null;
+    public boolean hasLocation() {
+      return location_ != null;
     }
     /**
-     * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
-     * @return The targetTypeExtension.
+     * .greptime.v1.AddColumnLocation location = 3;
+     * @return The location.
      */
     @java.lang.Override
-    public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() {
-      return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_;
+    public io.greptime.v1.Ddl.AddColumnLocation getLocation() {
+      return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_;
     }
     /**
-     * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+     * .greptime.v1.AddColumnLocation location = 3;
      */
     @java.lang.Override
-    public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() {
-      return getTargetTypeExtension();
+    public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() {
+      return getLocation();
     }
 
     private byte memoizedIsInitialized = -1;
@@ -21100,14 +19439,11 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
-        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
-      }
-      if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) {
-        output.writeEnum(2, targetType_);
+      if (columnDef_ != null) {
+        output.writeMessage(1, getColumnDef());
       }
-      if (targetTypeExtension_ != null) {
-        output.writeMessage(3, getTargetTypeExtension());
+      if (location_ != null) {
+        output.writeMessage(3, getLocation());
       }
       unknownFields.writeTo(output);
     }
@@ -21118,16 +19454,13 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
-      }
-      if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) {
+      if (columnDef_ != null) {
         size += com.google.protobuf.CodedOutputStream
-          .computeEnumSize(2, targetType_);
+          .computeMessageSize(1, getColumnDef());
       }
-      if (targetTypeExtension_ != null) {
+      if (location_ != null) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getTargetTypeExtension());
+          .computeMessageSize(3, getLocation());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -21139,18 +19472,20 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof io.greptime.v1.region.Server.ChangeColumnType)) {
+      if (!(obj instanceof io.greptime.v1.region.Server.AddColumn)) {
         return super.equals(obj);
       }
-      io.greptime.v1.region.Server.ChangeColumnType other = (io.greptime.v1.region.Server.ChangeColumnType) obj;
+      io.greptime.v1.region.Server.AddColumn other = (io.greptime.v1.region.Server.AddColumn) obj;
 
-      if (!getColumnName()
-          .equals(other.getColumnName())) return false;
-      if (targetType_ != other.targetType_) return false;
-      if (hasTargetTypeExtension() != other.hasTargetTypeExtension()) return false;
-      if (hasTargetTypeExtension()) {
-        if (!getTargetTypeExtension()
-            .equals(other.getTargetTypeExtension())) return false;
+      if (hasColumnDef() != other.hasColumnDef()) return false;
+      if (hasColumnDef()) {
+        if (!getColumnDef()
+            .equals(other.getColumnDef())) return false;
+      }
+      if (hasLocation() != other.hasLocation()) return false;
+      if (hasLocation()) {
+        if (!getLocation()
+            .equals(other.getLocation())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -21163,82 +19498,82 @@ public int hashCode() {
       }
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
-      hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
-      hash = (53 * hash) + getColumnName().hashCode();
-      hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER;
-      hash = (53 * hash) + targetType_;
-      if (hasTargetTypeExtension()) {
-        hash = (37 * hash) + TARGET_TYPE_EXTENSION_FIELD_NUMBER;
-        hash = (53 * hash) + getTargetTypeExtension().hashCode();
+      if (hasColumnDef()) {
+        hash = (37 * hash) + COLUMN_DEF_FIELD_NUMBER;
+        hash = (53 * hash) + getColumnDef().hashCode();
+      }
+      if (hasLocation()) {
+        hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+        hash = (53 * hash) + getLocation().hashCode();
       }
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
     }
 
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(byte[] data)
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(java.io.InputStream input)
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn 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 io.greptime.v1.region.Server.ChangeColumnType parseDelimitedFrom(java.io.InputStream input)
+    public static io.greptime.v1.region.Server.AddColumn parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseDelimitedFrom(
+    public static io.greptime.v1.region.Server.AddColumn 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 io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
+    public static io.greptime.v1.region.Server.AddColumn parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -21251,7 +19586,7 @@ public static io.greptime.v1.region.Server.ChangeColumnType parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(io.greptime.v1.region.Server.ChangeColumnType prototype) {
+    public static Builder newBuilder(io.greptime.v1.region.Server.AddColumn prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -21267,26 +19602,26 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     * Protobuf type {@code greptime.v1.region.ChangeColumnType}
+     * Protobuf type {@code greptime.v1.region.AddColumn}
      */
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:greptime.v1.region.ChangeColumnType)
-        io.greptime.v1.region.Server.ChangeColumnTypeOrBuilder {
+        // @@protoc_insertion_point(builder_implements:greptime.v1.region.AddColumn)
+        io.greptime.v1.region.Server.AddColumnOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnType_descriptor;
+        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnType_fieldAccessorTable
+        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                io.greptime.v1.region.Server.ChangeColumnType.class, io.greptime.v1.region.Server.ChangeColumnType.Builder.class);
+                io.greptime.v1.region.Server.AddColumn.class, io.greptime.v1.region.Server.AddColumn.Builder.class);
       }
 
-      // Construct using io.greptime.v1.region.Server.ChangeColumnType.newBuilder()
+      // Construct using io.greptime.v1.region.Server.AddColumn.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
@@ -21300,19 +19635,21 @@ private void maybeForceBuilderInitialization() {
         if (com.google.protobuf.GeneratedMessageV3
                 .alwaysUseFieldBuilders) {
         }
-      }
-      @java.lang.Override
-      public Builder clear() {
-        super.clear();
-        columnName_ = "";
-
-        targetType_ = 0;
-
-        if (targetTypeExtensionBuilder_ == null) {
-          targetTypeExtension_ = null;
+      }
+      @java.lang.Override
+      public Builder clear() {
+        super.clear();
+        if (columnDefBuilder_ == null) {
+          columnDef_ = null;
+        } else {
+          columnDef_ = null;
+          columnDefBuilder_ = null;
+        }
+        if (locationBuilder_ == null) {
+          location_ = null;
         } else {
-          targetTypeExtension_ = null;
-          targetTypeExtensionBuilder_ = null;
+          location_ = null;
+          locationBuilder_ = null;
         }
         return this;
       }
@@ -21320,17 +19657,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeColumnType_descriptor;
+        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_AddColumn_descriptor;
       }
 
       @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnType getDefaultInstanceForType() {
-        return io.greptime.v1.region.Server.ChangeColumnType.getDefaultInstance();
+      public io.greptime.v1.region.Server.AddColumn getDefaultInstanceForType() {
+        return io.greptime.v1.region.Server.AddColumn.getDefaultInstance();
       }
 
       @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnType build() {
-        io.greptime.v1.region.Server.ChangeColumnType result = buildPartial();
+      public io.greptime.v1.region.Server.AddColumn build() {
+        io.greptime.v1.region.Server.AddColumn result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -21338,14 +19675,17 @@ public io.greptime.v1.region.Server.ChangeColumnType build() {
       }
 
       @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeColumnType buildPartial() {
-        io.greptime.v1.region.Server.ChangeColumnType result = new io.greptime.v1.region.Server.ChangeColumnType(this);
-        result.columnName_ = columnName_;
-        result.targetType_ = targetType_;
-        if (targetTypeExtensionBuilder_ == null) {
-          result.targetTypeExtension_ = targetTypeExtension_;
+      public io.greptime.v1.region.Server.AddColumn buildPartial() {
+        io.greptime.v1.region.Server.AddColumn result = new io.greptime.v1.region.Server.AddColumn(this);
+        if (columnDefBuilder_ == null) {
+          result.columnDef_ = columnDef_;
+        } else {
+          result.columnDef_ = columnDefBuilder_.build();
+        }
+        if (locationBuilder_ == null) {
+          result.location_ = location_;
         } else {
-          result.targetTypeExtension_ = targetTypeExtensionBuilder_.build();
+          result.location_ = locationBuilder_.build();
         }
         onBuilt();
         return result;
@@ -21385,25 +19725,21 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof io.greptime.v1.region.Server.ChangeColumnType) {
-          return mergeFrom((io.greptime.v1.region.Server.ChangeColumnType)other);
+        if (other instanceof io.greptime.v1.region.Server.AddColumn) {
+          return mergeFrom((io.greptime.v1.region.Server.AddColumn)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(io.greptime.v1.region.Server.ChangeColumnType other) {
-        if (other == io.greptime.v1.region.Server.ChangeColumnType.getDefaultInstance()) return this;
-        if (!other.getColumnName().isEmpty()) {
-          columnName_ = other.columnName_;
-          onChanged();
-        }
-        if (other.targetType_ != 0) {
-          setTargetTypeValue(other.getTargetTypeValue());
+      public Builder mergeFrom(io.greptime.v1.region.Server.AddColumn other) {
+        if (other == io.greptime.v1.region.Server.AddColumn.getDefaultInstance()) return this;
+        if (other.hasColumnDef()) {
+          mergeColumnDef(other.getColumnDef());
         }
-        if (other.hasTargetTypeExtension()) {
-          mergeTargetTypeExtension(other.getTargetTypeExtension());
+        if (other.hasLocation()) {
+          mergeLocation(other.getLocation());
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -21420,11 +19756,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        io.greptime.v1.region.Server.ChangeColumnType parsedMessage = null;
+        io.greptime.v1.region.Server.AddColumn parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (io.greptime.v1.region.Server.ChangeColumnType) e.getUnfinishedMessage();
+          parsedMessage = (io.greptime.v1.region.Server.AddColumn) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -21434,253 +19770,242 @@ public Builder mergeFrom(
         return this;
       }
 
-      private java.lang.Object columnName_ = "";
+      private io.greptime.v1.region.Server.RegionColumnDef columnDef_;
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.region.Server.RegionColumnDef, io.greptime.v1.region.Server.RegionColumnDef.Builder, io.greptime.v1.region.Server.RegionColumnDefOrBuilder> columnDefBuilder_;
       /**
-       * string column_name = 1;
-       * @return The columnName.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
+       * @return Whether the columnDef field is set.
        */
-      public java.lang.String getColumnName() {
-        java.lang.Object ref = columnName_;
-        if (!(ref instanceof java.lang.String)) {
-          com.google.protobuf.ByteString bs =
-              (com.google.protobuf.ByteString) ref;
-          java.lang.String s = bs.toStringUtf8();
-          columnName_ = s;
-          return s;
-        } else {
-          return (java.lang.String) ref;
-        }
+      public boolean hasColumnDef() {
+        return columnDefBuilder_ != null || columnDef_ != null;
       }
       /**
-       * string column_name = 1;
-       * @return The bytes for columnName.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
+       * @return The columnDef.
        */
-      public com.google.protobuf.ByteString
-          getColumnNameBytes() {
-        java.lang.Object ref = columnName_;
-        if (ref instanceof String) {
-          com.google.protobuf.ByteString b = 
-              com.google.protobuf.ByteString.copyFromUtf8(
-                  (java.lang.String) ref);
-          columnName_ = b;
-          return b;
+      public io.greptime.v1.region.Server.RegionColumnDef getColumnDef() {
+        if (columnDefBuilder_ == null) {
+          return columnDef_ == null ? io.greptime.v1.region.Server.RegionColumnDef.getDefaultInstance() : columnDef_;
         } else {
-          return (com.google.protobuf.ByteString) ref;
+          return columnDefBuilder_.getMessage();
         }
       }
       /**
-       * string column_name = 1;
-       * @param value The columnName to set.
-       * @return This builder for chaining.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
        */
-      public Builder setColumnName(
-          java.lang.String value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  
-        columnName_ = value;
-        onChanged();
+      public Builder setColumnDef(io.greptime.v1.region.Server.RegionColumnDef value) {
+        if (columnDefBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          columnDef_ = value;
+          onChanged();
+        } else {
+          columnDefBuilder_.setMessage(value);
+        }
+
         return this;
       }
       /**
-       * string column_name = 1;
-       * @return This builder for chaining.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
        */
-      public Builder clearColumnName() {
-        
-        columnName_ = getDefaultInstance().getColumnName();
-        onChanged();
+      public Builder setColumnDef(
+          io.greptime.v1.region.Server.RegionColumnDef.Builder builderForValue) {
+        if (columnDefBuilder_ == null) {
+          columnDef_ = builderForValue.build();
+          onChanged();
+        } else {
+          columnDefBuilder_.setMessage(builderForValue.build());
+        }
+
         return this;
       }
       /**
-       * string column_name = 1;
-       * @param value The bytes for columnName to set.
-       * @return This builder for chaining.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
        */
-      public Builder setColumnNameBytes(
-          com.google.protobuf.ByteString value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  checkByteStringIsUtf8(value);
-        
-        columnName_ = value;
-        onChanged();
+      public Builder mergeColumnDef(io.greptime.v1.region.Server.RegionColumnDef value) {
+        if (columnDefBuilder_ == null) {
+          if (columnDef_ != null) {
+            columnDef_ =
+              io.greptime.v1.region.Server.RegionColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial();
+          } else {
+            columnDef_ = value;
+          }
+          onChanged();
+        } else {
+          columnDefBuilder_.mergeFrom(value);
+        }
+
         return this;
       }
-
-      private int targetType_ = 0;
       /**
-       * .greptime.v1.ColumnDataType target_type = 2;
-       * @return The enum numeric value on the wire for targetType.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
        */
-      @java.lang.Override public int getTargetTypeValue() {
-        return targetType_;
+      public Builder clearColumnDef() {
+        if (columnDefBuilder_ == null) {
+          columnDef_ = null;
+          onChanged();
+        } else {
+          columnDef_ = null;
+          columnDefBuilder_ = null;
+        }
+
+        return this;
       }
       /**
-       * .greptime.v1.ColumnDataType target_type = 2;
-       * @param value The enum numeric value on the wire for targetType to set.
-       * @return This builder for chaining.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
        */
-      public Builder setTargetTypeValue(int value) {
+      public io.greptime.v1.region.Server.RegionColumnDef.Builder getColumnDefBuilder() {
         
-        targetType_ = value;
         onChanged();
-        return this;
-      }
-      /**
-       * .greptime.v1.ColumnDataType target_type = 2;
-       * @return The targetType.
-       */
-      @java.lang.Override
-      public io.greptime.v1.Common.ColumnDataType getTargetType() {
-        @SuppressWarnings("deprecation")
-        io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_);
-        return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result;
+        return getColumnDefFieldBuilder().getBuilder();
       }
       /**
-       * .greptime.v1.ColumnDataType target_type = 2;
-       * @param value The targetType to set.
-       * @return This builder for chaining.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
        */
-      public Builder setTargetType(io.greptime.v1.Common.ColumnDataType value) {
-        if (value == null) {
-          throw new NullPointerException();
+      public io.greptime.v1.region.Server.RegionColumnDefOrBuilder getColumnDefOrBuilder() {
+        if (columnDefBuilder_ != null) {
+          return columnDefBuilder_.getMessageOrBuilder();
+        } else {
+          return columnDef_ == null ?
+              io.greptime.v1.region.Server.RegionColumnDef.getDefaultInstance() : columnDef_;
         }
-        
-        targetType_ = value.getNumber();
-        onChanged();
-        return this;
       }
       /**
-       * .greptime.v1.ColumnDataType target_type = 2;
-       * @return This builder for chaining.
+       * .greptime.v1.region.RegionColumnDef column_def = 1;
        */
-      public Builder clearTargetType() {
-        
-        targetType_ = 0;
-        onChanged();
-        return this;
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.region.Server.RegionColumnDef, io.greptime.v1.region.Server.RegionColumnDef.Builder, io.greptime.v1.region.Server.RegionColumnDefOrBuilder> 
+          getColumnDefFieldBuilder() {
+        if (columnDefBuilder_ == null) {
+          columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.region.Server.RegionColumnDef, io.greptime.v1.region.Server.RegionColumnDef.Builder, io.greptime.v1.region.Server.RegionColumnDefOrBuilder>(
+                  getColumnDef(),
+                  getParentForChildren(),
+                  isClean());
+          columnDef_ = null;
+        }
+        return columnDefBuilder_;
       }
 
-      private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_;
+      private io.greptime.v1.Ddl.AddColumnLocation location_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> targetTypeExtensionBuilder_;
+          io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> locationBuilder_;
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
-       * @return Whether the targetTypeExtension field is set.
+       * .greptime.v1.AddColumnLocation location = 3;
+       * @return Whether the location field is set.
        */
-      public boolean hasTargetTypeExtension() {
-        return targetTypeExtensionBuilder_ != null || targetTypeExtension_ != null;
+      public boolean hasLocation() {
+        return locationBuilder_ != null || location_ != null;
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
-       * @return The targetTypeExtension.
+       * .greptime.v1.AddColumnLocation location = 3;
+       * @return The location.
        */
-      public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() {
-        if (targetTypeExtensionBuilder_ == null) {
-          return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_;
+      public io.greptime.v1.Ddl.AddColumnLocation getLocation() {
+        if (locationBuilder_ == null) {
+          return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_;
         } else {
-          return targetTypeExtensionBuilder_.getMessage();
+          return locationBuilder_.getMessage();
         }
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+       * .greptime.v1.AddColumnLocation location = 3;
        */
-      public Builder setTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
-        if (targetTypeExtensionBuilder_ == null) {
+      public Builder setLocation(io.greptime.v1.Ddl.AddColumnLocation value) {
+        if (locationBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
           }
-          targetTypeExtension_ = value;
+          location_ = value;
           onChanged();
         } else {
-          targetTypeExtensionBuilder_.setMessage(value);
+          locationBuilder_.setMessage(value);
         }
 
         return this;
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+       * .greptime.v1.AddColumnLocation location = 3;
        */
-      public Builder setTargetTypeExtension(
-          io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) {
-        if (targetTypeExtensionBuilder_ == null) {
-          targetTypeExtension_ = builderForValue.build();
+      public Builder setLocation(
+          io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) {
+        if (locationBuilder_ == null) {
+          location_ = builderForValue.build();
           onChanged();
         } else {
-          targetTypeExtensionBuilder_.setMessage(builderForValue.build());
+          locationBuilder_.setMessage(builderForValue.build());
         }
 
         return this;
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+       * .greptime.v1.AddColumnLocation location = 3;
        */
-      public Builder mergeTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
-        if (targetTypeExtensionBuilder_ == null) {
-          if (targetTypeExtension_ != null) {
-            targetTypeExtension_ =
-              io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(targetTypeExtension_).mergeFrom(value).buildPartial();
+      public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) {
+        if (locationBuilder_ == null) {
+          if (location_ != null) {
+            location_ =
+              io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial();
           } else {
-            targetTypeExtension_ = value;
+            location_ = value;
           }
           onChanged();
         } else {
-          targetTypeExtensionBuilder_.mergeFrom(value);
+          locationBuilder_.mergeFrom(value);
         }
 
         return this;
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+       * .greptime.v1.AddColumnLocation location = 3;
        */
-      public Builder clearTargetTypeExtension() {
-        if (targetTypeExtensionBuilder_ == null) {
-          targetTypeExtension_ = null;
+      public Builder clearLocation() {
+        if (locationBuilder_ == null) {
+          location_ = null;
           onChanged();
         } else {
-          targetTypeExtension_ = null;
-          targetTypeExtensionBuilder_ = null;
+          location_ = null;
+          locationBuilder_ = null;
         }
 
         return this;
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+       * .greptime.v1.AddColumnLocation location = 3;
        */
-      public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getTargetTypeExtensionBuilder() {
+      public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() {
         
         onChanged();
-        return getTargetTypeExtensionFieldBuilder().getBuilder();
+        return getLocationFieldBuilder().getBuilder();
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+       * .greptime.v1.AddColumnLocation location = 3;
        */
-      public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() {
-        if (targetTypeExtensionBuilder_ != null) {
-          return targetTypeExtensionBuilder_.getMessageOrBuilder();
+      public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() {
+        if (locationBuilder_ != null) {
+          return locationBuilder_.getMessageOrBuilder();
         } else {
-          return targetTypeExtension_ == null ?
-              io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_;
+          return location_ == null ?
+              io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_;
         }
       }
       /**
-       * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3;
+       * .greptime.v1.AddColumnLocation location = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> 
-          getTargetTypeExtensionFieldBuilder() {
-        if (targetTypeExtensionBuilder_ == null) {
-          targetTypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>(
-                  getTargetTypeExtension(),
+          io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> 
+          getLocationFieldBuilder() {
+        if (locationBuilder_ == null) {
+          locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>(
+                  getLocation(),
                   getParentForChildren(),
                   isClean());
-          targetTypeExtension_ = null;
+          location_ = null;
         }
-        return targetTypeExtensionBuilder_;
+        return locationBuilder_;
       }
       @java.lang.Override
       public final Builder setUnknownFields(
@@ -21695,41 +20020,41 @@ public final Builder mergeUnknownFields(
       }
 
 
-      // @@protoc_insertion_point(builder_scope:greptime.v1.region.ChangeColumnType)
+      // @@protoc_insertion_point(builder_scope:greptime.v1.region.AddColumn)
     }
 
-    // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeColumnType)
-    private static final io.greptime.v1.region.Server.ChangeColumnType DEFAULT_INSTANCE;
+    // @@protoc_insertion_point(class_scope:greptime.v1.region.AddColumn)
+    private static final io.greptime.v1.region.Server.AddColumn DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new io.greptime.v1.region.Server.ChangeColumnType();
+      DEFAULT_INSTANCE = new io.greptime.v1.region.Server.AddColumn();
     }
 
-    public static io.greptime.v1.region.Server.ChangeColumnType getDefaultInstance() {
+    public static io.greptime.v1.region.Server.AddColumn 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 ChangeColumnType parsePartialFrom(
+      public AddColumn parsePartialFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ChangeColumnType(input, extensionRegistry);
+        return new AddColumn(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 io.greptime.v1.region.Server.ChangeColumnType getDefaultInstanceForType() {
+    public io.greptime.v1.region.Server.AddColumn getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
@@ -24595,21 +22920,11 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
   private static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_greptime_v1_region_DropColumns_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_greptime_v1_region_ChangeColumnTypes_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_greptime_v1_region_ChangeColumnTypes_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
     internal_static_greptime_v1_region_AddColumn_descriptor;
   private static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_greptime_v1_region_AddColumn_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_greptime_v1_region_ChangeColumnType_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_greptime_v1_region_ChangeColumnType_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
     internal_static_greptime_v1_region_DropColumn_descriptor;
   private static final 
@@ -24703,37 +23018,30 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
       "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" +
       "ue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_i" +
       "d\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003" +
-      "(\0132 .greptime.v1.region.AlterRequest\"\367\001\n" +
+      "(\0132 .greptime.v1.region.AlterRequest\"\360\001\n" +
       "\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_" +
       "columns\030\002 \001(\0132\036.greptime.v1.region.AddCo" +
       "lumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime" +
-      ".v1.region.DropColumnsH\000\022D\n\023change_colum" +
-      "n_types\030\005 \001(\0132%.greptime.v1.region.Chang" +
-      "eColumnTypesH\000\022\026\n\016schema_version\030\004 \001(\004B\006" +
-      "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" +
-      "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" +
-      "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" +
-      ".v1.region.DropColumn\"V\n\021ChangeColumnTyp" +
-      "es\022A\n\023change_column_types\030\001 \003(\0132$.grepti" +
-      "me.v1.region.ChangeColumnType\"v\n\tAddColu" +
-      "mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg" +
-      "ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036." +
-      "greptime.v1.AddColumnLocation\"\236\001\n\020Change" +
-      "ColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targe" +
-      "t_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTyp" +
-      "e\022C\n\025target_type_extension\030\003 \001(\0132$.grept" +
-      "ime.v1.ColumnDataTypeExtension\"\032\n\nDropCo" +
-      "lumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tre" +
-      "gion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021\n\tregio" +
-      "n_id\030\001 \001(\004\"$\n\017TruncateRequest\022\021\n\tregion_" +
-      "id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_de" +
-      "f\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolum" +
-      "n_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.greptim" +
-      "e.v1.region.RegionRequest\032\".greptime.v1." +
-      "region.RegionResponseB]\n\025io.greptime.v1." +
-      "regionB\006ServerZ