diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index a06a0386..91946647 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -276,19 +276,19 @@ struct DropColumnsDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropColumnsDefaultTypeInternal _DropColumns_default_instance_; -PROTOBUF_CONSTEXPR ChangeColumnTypes::ChangeColumnTypes( +PROTOBUF_CONSTEXPR ModifyColumnTypes::ModifyColumnTypes( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.change_column_types_)*/{} + /*decltype(_impl_.modify_column_types_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} -struct ChangeColumnTypesDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeColumnTypesDefaultTypeInternal() +struct ModifyColumnTypesDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModifyColumnTypesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeColumnTypesDefaultTypeInternal() {} + ~ModifyColumnTypesDefaultTypeInternal() {} union { - ChangeColumnTypes _instance; + ModifyColumnTypes _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModifyColumnTypesDefaultTypeInternal _ModifyColumnTypes_default_instance_; PROTOBUF_CONSTEXPR RenameTable::RenameTable( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.new_table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -316,21 +316,21 @@ struct AddColumnDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnDefaultTypeInternal _AddColumn_default_instance_; -PROTOBUF_CONSTEXPR ChangeColumnType::ChangeColumnType( +PROTOBUF_CONSTEXPR ModifyColumnType::ModifyColumnType( ::_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() +struct ModifyColumnTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModifyColumnTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeColumnTypeDefaultTypeInternal() {} + ~ModifyColumnTypeDefaultTypeInternal() {} union { - ChangeColumnType _instance; + ModifyColumnType _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModifyColumnTypeDefaultTypeInternal _ModifyColumnType_default_instance_; PROTOBUF_CONSTEXPR ChangeTableOptions::ChangeTableOptions( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.change_table_options_)*/{} @@ -641,12 +641,12 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumns, _impl_.drop_columns_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnTypes, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnTypes, _impl_.modify_column_types_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_), ~0u, // no _extensions_ @@ -663,14 +663,14 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumn, _impl_.column_def_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumn, _impl_.location_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.column_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_extension_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnType, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnType, _impl_.target_type_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnType, _impl_.target_type_extension_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOptions, _internal_metadata_), ~0u, // no _extensions_ @@ -757,10 +757,10 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 163, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, { 172, -1, -1, sizeof(::greptime::v1::AddColumns)}, { 179, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 186, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, + { 186, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, { 193, -1, -1, sizeof(::greptime::v1::RenameTable)}, { 200, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 208, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 208, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, { 217, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)}, { 224, -1, -1, sizeof(::greptime::v1::ChangeTableOption)}, { 232, -1, -1, sizeof(::greptime::v1::DropColumn)}, @@ -788,10 +788,10 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_DropDatabaseExpr_default_instance_._instance, &::greptime::v1::_AddColumns_default_instance_._instance, &::greptime::v1::_DropColumns_default_instance_._instance, - &::greptime::v1::_ChangeColumnTypes_default_instance_._instance, + &::greptime::v1::_ModifyColumnTypes_default_instance_._instance, &::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, - &::greptime::v1::_ChangeColumnType_default_instance_._instance, + &::greptime::v1::_ModifyColumnType_default_instance_._instance, &::greptime::v1::_ChangeTableOptions_default_instance_._instance, &::greptime::v1::_ChangeTableOption_default_instance_._instance, &::greptime::v1::_DropColumn_default_instance_._instance, @@ -855,8 +855,8 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" - ".RenameTableH\000\022=\n\023change_column_types\030\007 " - "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022\?\n" + ".RenameTableH\000\022=\n\023modify_column_types\030\007 " + "\001(\0132\036.greptime.v1.ModifyColumnTypesH\000\022\?\n" "\024change_table_options\030\010 \001(\0132\037.greptime.v" "1.ChangeTableOptionsH\000\022C\n\026change_column_" "fulltext\030\t \001(\0132!.greptime.v1.ChangeColum" @@ -877,13 +877,13 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013" "add_columns\030\001 \003(\0132\026.greptime.v1.AddColum" "n\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027" - ".greptime.v1.DropColumn\"O\n\021ChangeColumnT" - "ypes\022:\n\023change_column_types\030\001 \003(\0132\035.grep" - "time.v1.ChangeColumnType\"%\n\013RenameTable\022" + ".greptime.v1.DropColumn\"O\n\021ModifyColumnT" + "ypes\022:\n\023modify_column_types\030\001 \003(\0132\035.grep" + "time.v1.ModifyColumnType\"%\n\013RenameTable\022" "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" - "mnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013colum" + "mnLocation\"\236\001\n\020ModifyColumnType\022\023\n\013colum" "n_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grep" "time.v1.ColumnDataType\022C\n\025target_type_ex" "tension\030\003 \001(\0132$.greptime.v1.ColumnDataTy" @@ -4268,7 +4268,7 @@ class AlterExpr::_Internal { static const ::greptime::v1::AddColumns& add_columns(const AlterExpr* msg); static const ::greptime::v1::DropColumns& drop_columns(const AlterExpr* msg); static const ::greptime::v1::RenameTable& rename_table(const AlterExpr* msg); - static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterExpr* msg); + static const ::greptime::v1::ModifyColumnTypes& modify_column_types(const AlterExpr* msg); static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterExpr* msg); static const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext(const AlterExpr* msg); }; @@ -4285,9 +4285,9 @@ const ::greptime::v1::RenameTable& AlterExpr::_Internal::rename_table(const AlterExpr* msg) { return *msg->_impl_.kind_.rename_table_; } -const ::greptime::v1::ChangeColumnTypes& -AlterExpr::_Internal::change_column_types(const AlterExpr* msg) { - return *msg->_impl_.kind_.change_column_types_; +const ::greptime::v1::ModifyColumnTypes& +AlterExpr::_Internal::modify_column_types(const AlterExpr* msg) { + return *msg->_impl_.kind_.modify_column_types_; } const ::greptime::v1::ChangeTableOptions& AlterExpr::_Internal::change_table_options(const AlterExpr* msg) { @@ -4342,20 +4342,20 @@ void AlterExpr::set_allocated_rename_table(::greptime::v1::RenameTable* rename_t } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.rename_table) } -void AlterExpr::set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) { +void AlterExpr::set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (change_column_types) { + if (modify_column_types) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_column_types); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(modify_column_types); if (message_arena != submessage_arena) { - change_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, change_column_types, submessage_arena); + modify_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, modify_column_types, submessage_arena); } - set_has_change_column_types(); - _impl_.kind_.change_column_types_ = change_column_types; + set_has_modify_column_types(); + _impl_.kind_.modify_column_types_ = modify_column_types; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_column_types) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.modify_column_types) } void AlterExpr::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); @@ -4446,9 +4446,9 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_rename_table()); break; } - case kChangeColumnTypes: { - _this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom( - from._internal_change_column_types()); + case kModifyColumnTypes: { + _this->_internal_mutable_modify_column_types()->::greptime::v1::ModifyColumnTypes::MergeFrom( + from._internal_modify_column_types()); break; } case kChangeTableOptions: { @@ -4539,9 +4539,9 @@ void AlterExpr::clear_kind() { } break; } - case kChangeColumnTypes: { + case kModifyColumnTypes: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_column_types_; + delete _impl_.kind_.modify_column_types_; } break; } @@ -4638,10 +4638,10 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; - // .greptime.v1.ChangeColumnTypes change_column_types = 7; + // .greptime.v1.ModifyColumnTypes modify_column_types = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_change_column_types(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_modify_column_types(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -4742,11 +4742,11 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::rename_table(this).GetCachedSize(), target, stream); } - // .greptime.v1.ChangeColumnTypes change_column_types = 7; - if (_internal_has_change_column_types()) { + // .greptime.v1.ModifyColumnTypes modify_column_types = 7; + if (_internal_has_modify_column_types()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, _Internal::change_column_types(this), - _Internal::change_column_types(this).GetCachedSize(), target, stream); + InternalWriteMessage(7, _Internal::modify_column_types(this), + _Internal::modify_column_types(this).GetCachedSize(), target, stream); } // .greptime.v1.ChangeTableOptions change_table_options = 8; @@ -4822,11 +4822,11 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.rename_table_); break; } - // .greptime.v1.ChangeColumnTypes change_column_types = 7; - case kChangeColumnTypes: { + // .greptime.v1.ModifyColumnTypes modify_column_types = 7; + case kModifyColumnTypes: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.change_column_types_); + *_impl_.kind_.modify_column_types_); break; } // .greptime.v1.ChangeTableOptions change_table_options = 8; @@ -4890,9 +4890,9 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_rename_table()); break; } - case kChangeColumnTypes: { - _this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom( - from._internal_change_column_types()); + case kModifyColumnTypes: { + _this->_internal_mutable_modify_column_types()->::greptime::v1::ModifyColumnTypes::MergeFrom( + from._internal_modify_column_types()); break; } case kChangeTableOptions: { @@ -6685,39 +6685,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { // =================================================================== -class ChangeColumnTypes::_Internal { +class ModifyColumnTypes::_Internal { public: }; -ChangeColumnTypes::ChangeColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ModifyColumnTypes::ModifyColumnTypes(::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.ChangeColumnTypes) + // @@protoc_insertion_point(arena_constructor:greptime.v1.ModifyColumnTypes) } -ChangeColumnTypes::ChangeColumnTypes(const ChangeColumnTypes& from) +ModifyColumnTypes::ModifyColumnTypes(const ModifyColumnTypes& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ChangeColumnTypes* const _this = this; (void)_this; + ModifyColumnTypes* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.change_column_types_){from._impl_.change_column_types_} + decltype(_impl_.modify_column_types_){from._impl_.modify_column_types_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeColumnTypes) + // @@protoc_insertion_point(copy_constructor:greptime.v1.ModifyColumnTypes) } -inline void ChangeColumnTypes::SharedCtor( +inline void ModifyColumnTypes::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_.modify_column_types_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } -ChangeColumnTypes::~ChangeColumnTypes() { - // @@protoc_insertion_point(destructor:greptime.v1.ChangeColumnTypes) +ModifyColumnTypes::~ModifyColumnTypes() { + // @@protoc_insertion_point(destructor:greptime.v1.ModifyColumnTypes) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -6725,38 +6725,38 @@ ChangeColumnTypes::~ChangeColumnTypes() { SharedDtor(); } -inline void ChangeColumnTypes::SharedDtor() { +inline void ModifyColumnTypes::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.change_column_types_.~RepeatedPtrField(); + _impl_.modify_column_types_.~RepeatedPtrField(); } -void ChangeColumnTypes::SetCachedSize(int size) const { +void ModifyColumnTypes::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ChangeColumnTypes::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeColumnTypes) +void ModifyColumnTypes::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ModifyColumnTypes) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.change_column_types_.Clear(); + _impl_.modify_column_types_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ChangeColumnTypes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ModifyColumnTypes::_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.ChangeColumnType change_column_types = 1; + // repeated .greptime.v1.ModifyColumnType modify_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); + ptr = ctx->ParseMessage(_internal_add_modify_column_types(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); @@ -6786,16 +6786,16 @@ const char* ChangeColumnTypes::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* ChangeColumnTypes::_InternalSerialize( +uint8_t* ModifyColumnTypes::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeColumnTypes) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ModifyColumnTypes) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .greptime.v1.ChangeColumnType change_column_types = 1; + // repeated .greptime.v1.ModifyColumnType modify_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); + n = static_cast(this->_internal_modify_column_types_size()); i < n; i++) { + const auto& repfield = this->_internal_modify_column_types(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } @@ -6804,21 +6804,21 @@ uint8_t* ChangeColumnTypes::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeColumnTypes) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ModifyColumnTypes) return target; } -size_t ChangeColumnTypes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeColumnTypes) +size_t ModifyColumnTypes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ModifyColumnTypes) 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.ChangeColumnType change_column_types = 1; - total_size += 1UL * this->_internal_change_column_types_size(); - for (const auto& msg : this->_impl_.change_column_types_) { + // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; + total_size += 1UL * this->_internal_modify_column_types_size(); + for (const auto& msg : this->_impl_.modify_column_types_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } @@ -6826,43 +6826,43 @@ size_t ChangeColumnTypes::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnTypes::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModifyColumnTypes::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ChangeColumnTypes::MergeImpl + ModifyColumnTypes::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnTypes::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModifyColumnTypes::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.ChangeColumnTypes) +void ModifyColumnTypes::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.ModifyColumnTypes) 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->_impl_.modify_column_types_.MergeFrom(from._impl_.modify_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.ChangeColumnTypes) +void ModifyColumnTypes::CopyFrom(const ModifyColumnTypes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ModifyColumnTypes) if (&from == this) return; Clear(); MergeFrom(from); } -bool ChangeColumnTypes::IsInitialized() const { +bool ModifyColumnTypes::IsInitialized() const { return true; } -void ChangeColumnTypes::InternalSwap(ChangeColumnTypes* other) { +void ModifyColumnTypes::InternalSwap(ModifyColumnTypes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.change_column_types_.InternalSwap(&other->_impl_.change_column_types_); + _impl_.modify_column_types_.InternalSwap(&other->_impl_.modify_column_types_); } -::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnTypes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); @@ -7312,30 +7312,30 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { // =================================================================== -class ChangeColumnType::_Internal { +class ModifyColumnType::_Internal { public: - static const ::greptime::v1::ColumnDataTypeExtension& target_type_extension(const ChangeColumnType* msg); + static const ::greptime::v1::ColumnDataTypeExtension& target_type_extension(const ModifyColumnType* msg); }; const ::greptime::v1::ColumnDataTypeExtension& -ChangeColumnType::_Internal::target_type_extension(const ChangeColumnType* msg) { +ModifyColumnType::_Internal::target_type_extension(const ModifyColumnType* msg) { return *msg->_impl_.target_type_extension_; } -void ChangeColumnType::clear_target_type_extension() { +void ModifyColumnType::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, +ModifyColumnType::ModifyColumnType(::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.ChangeColumnType) + // @@protoc_insertion_point(arena_constructor:greptime.v1.ModifyColumnType) } -ChangeColumnType::ChangeColumnType(const ChangeColumnType& from) +ModifyColumnType::ModifyColumnType(const ModifyColumnType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ChangeColumnType* const _this = this; (void)_this; + ModifyColumnType* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.column_name_){} , decltype(_impl_.target_type_extension_){nullptr} @@ -7355,10 +7355,10 @@ ChangeColumnType::ChangeColumnType(const ChangeColumnType& from) _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.ChangeColumnType) + // @@protoc_insertion_point(copy_constructor:greptime.v1.ModifyColumnType) } -inline void ChangeColumnType::SharedCtor( +inline void ModifyColumnType::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -7374,8 +7374,8 @@ inline void ChangeColumnType::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ChangeColumnType::~ChangeColumnType() { - // @@protoc_insertion_point(destructor:greptime.v1.ChangeColumnType) +ModifyColumnType::~ModifyColumnType() { + // @@protoc_insertion_point(destructor:greptime.v1.ModifyColumnType) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7383,18 +7383,18 @@ ChangeColumnType::~ChangeColumnType() { SharedDtor(); } -inline void ChangeColumnType::SharedDtor() { +inline void ModifyColumnType::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 { +void ModifyColumnType::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ChangeColumnType::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeColumnType) +void ModifyColumnType::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ModifyColumnType) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -7408,7 +7408,7 @@ void ChangeColumnType::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ChangeColumnType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ModifyColumnType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -7420,7 +7420,7 @@ const char* ChangeColumnType::_InternalParse(const char* ptr, ::_pbi::ParseConte auto str = _internal_mutable_column_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeColumnType.column_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ModifyColumnType.column_name")); } else goto handle_unusual; continue; @@ -7464,9 +7464,9 @@ const char* ChangeColumnType::_InternalParse(const char* ptr, ::_pbi::ParseConte #undef CHK_ } -uint8_t* ChangeColumnType::_InternalSerialize( +uint8_t* ModifyColumnType::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeColumnType) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ModifyColumnType) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -7475,7 +7475,7 @@ uint8_t* ChangeColumnType::_InternalSerialize( ::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.ChangeColumnType.column_name"); + "greptime.v1.ModifyColumnType.column_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_column_name(), target); } @@ -7498,12 +7498,12 @@ uint8_t* ChangeColumnType::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeColumnType) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ModifyColumnType) return target; } -size_t ChangeColumnType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeColumnType) +size_t ModifyColumnType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ModifyColumnType) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -7533,17 +7533,17 @@ size_t ChangeColumnType::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnType::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModifyColumnType::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ChangeColumnType::MergeImpl + ModifyColumnType::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnType::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModifyColumnType::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.ChangeColumnType) +void ModifyColumnType::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.ModifyColumnType) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -7561,18 +7561,18 @@ void ChangeColumnType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _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.ChangeColumnType) +void ModifyColumnType::CopyFrom(const ModifyColumnType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ModifyColumnType) if (&from == this) return; Clear(); MergeFrom(from); } -bool ChangeColumnType::IsInitialized() const { +bool ModifyColumnType::IsInitialized() const { return true; } -void ChangeColumnType::InternalSwap(ChangeColumnType* other) { +void ModifyColumnType::InternalSwap(ModifyColumnType* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -7582,14 +7582,14 @@ void ChangeColumnType::InternalSwap(ChangeColumnType* other) { &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_)>( + PROTOBUF_FIELD_OFFSET(ModifyColumnType, _impl_.target_type_) + + sizeof(ModifyColumnType::_impl_.target_type_) + - PROTOBUF_FIELD_OFFSET(ModifyColumnType, _impl_.target_type_extension_)>( reinterpret_cast(&_impl_.target_type_extension_), reinterpret_cast(&other->_impl_.target_type_extension_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnType::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); @@ -9665,9 +9665,9 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::DropColumns* Arena::CreateMaybeMessage< ::greptime::v1::DropColumns >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DropColumns >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnTypes* -Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnTypes >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::ModifyColumnTypes* +Arena::CreateMaybeMessage< ::greptime::v1::ModifyColumnTypes >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ModifyColumnTypes >(arena); } template<> PROTOBUF_NOINLINE ::greptime::v1::RenameTable* Arena::CreateMaybeMessage< ::greptime::v1::RenameTable >(Arena* arena) { @@ -9677,9 +9677,9 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::AddColumn* Arena::CreateMaybeMessage< ::greptime::v1::AddColumn >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::AddColumn >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnType* -Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnType >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnType >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::ModifyColumnType* +Arena::CreateMaybeMessage< ::greptime::v1::ModifyColumnType >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ModifyColumnType >(arena); } template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeTableOptions* Arena::CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(Arena* arena) { diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index fb84fafb..292deee5 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -66,12 +66,6 @@ extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; class ChangeColumnFulltext; struct ChangeColumnFulltextDefaultTypeInternal; extern ChangeColumnFulltextDefaultTypeInternal _ChangeColumnFulltext_default_instance_; -class ChangeColumnType; -struct ChangeColumnTypeDefaultTypeInternal; -extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; -class ChangeColumnTypes; -struct ChangeColumnTypesDefaultTypeInternal; -extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; class ChangeTableOption; struct ChangeTableOptionDefaultTypeInternal; extern ChangeTableOptionDefaultTypeInternal _ChangeTableOption_default_instance_; @@ -126,6 +120,12 @@ extern DropViewExprDefaultTypeInternal _DropViewExpr_default_instance_; class FlowId; struct FlowIdDefaultTypeInternal; extern FlowIdDefaultTypeInternal _FlowId_default_instance_; +class ModifyColumnType; +struct ModifyColumnTypeDefaultTypeInternal; +extern ModifyColumnTypeDefaultTypeInternal _ModifyColumnType_default_instance_; +class ModifyColumnTypes; +struct ModifyColumnTypesDefaultTypeInternal; +extern ModifyColumnTypesDefaultTypeInternal _ModifyColumnTypes_default_instance_; class RenameTable; struct RenameTableDefaultTypeInternal; extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; @@ -143,8 +143,6 @@ template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::grepti template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*); template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*); template<> ::greptime::v1::ChangeColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnFulltext>(Arena*); -template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); -template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); template<> ::greptime::v1::ChangeTableOption* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOption>(Arena*); template<> ::greptime::v1::ChangeTableOptions* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOptions>(Arena*); template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*); @@ -163,6 +161,8 @@ template<> ::greptime::v1::DropFlowExpr* Arena::CreateMaybeMessage<::greptime::v template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); template<> ::greptime::v1::DropViewExpr* Arena::CreateMaybeMessage<::greptime::v1::DropViewExpr>(Arena*); template<> ::greptime::v1::FlowId* Arena::CreateMaybeMessage<::greptime::v1::FlowId>(Arena*); +template<> ::greptime::v1::ModifyColumnType* Arena::CreateMaybeMessage<::greptime::v1::ModifyColumnType>(Arena*); +template<> ::greptime::v1::ModifyColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ModifyColumnTypes>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); @@ -2047,7 +2047,7 @@ class AlterExpr final : kAddColumns = 4, kDropColumns = 5, kRenameTable = 6, - kChangeColumnTypes = 7, + kModifyColumnTypes = 7, kChangeTableOptions = 8, kChangeColumnFulltext = 9, KIND_NOT_SET = 0, @@ -2137,7 +2137,7 @@ class AlterExpr final : kAddColumnsFieldNumber = 4, kDropColumnsFieldNumber = 5, kRenameTableFieldNumber = 6, - kChangeColumnTypesFieldNumber = 7, + kModifyColumnTypesFieldNumber = 7, kChangeTableOptionsFieldNumber = 8, kChangeColumnFulltextFieldNumber = 9, }; @@ -2237,23 +2237,23 @@ class AlterExpr final : ::greptime::v1::RenameTable* rename_table); ::greptime::v1::RenameTable* unsafe_arena_release_rename_table(); - // .greptime.v1.ChangeColumnTypes change_column_types = 7; - bool has_change_column_types() const; + // .greptime.v1.ModifyColumnTypes modify_column_types = 7; + bool has_modify_column_types() const; private: - bool _internal_has_change_column_types() const; + bool _internal_has_modify_column_types() const; public: - void clear_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); + void clear_modify_column_types(); + const ::greptime::v1::ModifyColumnTypes& modify_column_types() const; + PROTOBUF_NODISCARD ::greptime::v1::ModifyColumnTypes* release_modify_column_types(); + ::greptime::v1::ModifyColumnTypes* mutable_modify_column_types(); + void set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types); private: - const ::greptime::v1::ChangeColumnTypes& _internal_change_column_types() const; - ::greptime::v1::ChangeColumnTypes* _internal_mutable_change_column_types(); + const ::greptime::v1::ModifyColumnTypes& _internal_modify_column_types() const; + ::greptime::v1::ModifyColumnTypes* _internal_mutable_modify_column_types(); public: - void unsafe_arena_set_allocated_change_column_types( - ::greptime::v1::ChangeColumnTypes* change_column_types); - ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + void unsafe_arena_set_allocated_modify_column_types( + ::greptime::v1::ModifyColumnTypes* modify_column_types); + ::greptime::v1::ModifyColumnTypes* unsafe_arena_release_modify_column_types(); // .greptime.v1.ChangeTableOptions change_table_options = 8; bool has_change_table_options() const; @@ -2299,7 +2299,7 @@ class AlterExpr final : void set_has_add_columns(); void set_has_drop_columns(); void set_has_rename_table(); - void set_has_change_column_types(); + void set_has_modify_column_types(); void set_has_change_table_options(); void set_has_change_column_fulltext(); @@ -2319,7 +2319,7 @@ class AlterExpr final : ::greptime::v1::AddColumns* add_columns_; ::greptime::v1::DropColumns* drop_columns_; ::greptime::v1::RenameTable* rename_table_; - ::greptime::v1::ChangeColumnTypes* change_column_types_; + ::greptime::v1::ModifyColumnTypes* modify_column_types_; ::greptime::v1::ChangeTableOptions* change_table_options_; ::greptime::v1::ChangeColumnFulltext* change_column_fulltext_; } kind_; @@ -3481,24 +3481,24 @@ class DropColumns final : }; // ------------------------------------------------------------------- -class ChangeColumnTypes final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeColumnTypes) */ { +class ModifyColumnTypes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ModifyColumnTypes) */ { public: - inline ChangeColumnTypes() : ChangeColumnTypes(nullptr) {} - ~ChangeColumnTypes() override; - explicit PROTOBUF_CONSTEXPR ChangeColumnTypes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ModifyColumnTypes() : ModifyColumnTypes(nullptr) {} + ~ModifyColumnTypes() override; + explicit PROTOBUF_CONSTEXPR ModifyColumnTypes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ChangeColumnTypes(const ChangeColumnTypes& from); - ChangeColumnTypes(ChangeColumnTypes&& from) noexcept - : ChangeColumnTypes() { + ModifyColumnTypes(const ModifyColumnTypes& from); + ModifyColumnTypes(ModifyColumnTypes&& from) noexcept + : ModifyColumnTypes() { *this = ::std::move(from); } - inline ChangeColumnTypes& operator=(const ChangeColumnTypes& from) { + inline ModifyColumnTypes& operator=(const ModifyColumnTypes& from) { CopyFrom(from); return *this; } - inline ChangeColumnTypes& operator=(ChangeColumnTypes&& from) noexcept { + inline ModifyColumnTypes& operator=(ModifyColumnTypes&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3521,20 +3521,20 @@ class ChangeColumnTypes final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ChangeColumnTypes& default_instance() { + static const ModifyColumnTypes& default_instance() { return *internal_default_instance(); } - static inline const ChangeColumnTypes* internal_default_instance() { - return reinterpret_cast( - &_ChangeColumnTypes_default_instance_); + static inline const ModifyColumnTypes* internal_default_instance() { + return reinterpret_cast( + &_ModifyColumnTypes_default_instance_); } static constexpr int kIndexInFileMessages = 16; - friend void swap(ChangeColumnTypes& a, ChangeColumnTypes& b) { + friend void swap(ModifyColumnTypes& a, ModifyColumnTypes& b) { a.Swap(&b); } - inline void Swap(ChangeColumnTypes* other) { + inline void Swap(ModifyColumnTypes* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3547,7 +3547,7 @@ class ChangeColumnTypes final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChangeColumnTypes* other) { + void UnsafeArenaSwap(ModifyColumnTypes* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3555,14 +3555,14 @@ class ChangeColumnTypes final : // implements Message ---------------------------------------------- - ChangeColumnTypes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ModifyColumnTypes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ChangeColumnTypes& from); + void CopyFrom(const ModifyColumnTypes& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ChangeColumnTypes& from) { - ChangeColumnTypes::MergeImpl(*this, from); + void MergeFrom( const ModifyColumnTypes& from) { + ModifyColumnTypes::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3580,15 +3580,15 @@ class ChangeColumnTypes final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ChangeColumnTypes* other); + void InternalSwap(ModifyColumnTypes* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.ChangeColumnTypes"; + return "greptime.v1.ModifyColumnTypes"; } protected: - explicit ChangeColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ModifyColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3602,27 +3602,27 @@ class ChangeColumnTypes final : // accessors ------------------------------------------------------- enum : int { - kChangeColumnTypesFieldNumber = 1, + kModifyColumnTypesFieldNumber = 1, }; - // repeated .greptime.v1.ChangeColumnType change_column_types = 1; - int change_column_types_size() const; + // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; + int modify_column_types_size() const; private: - int _internal_change_column_types_size() const; + int _internal_modify_column_types_size() const; public: - void clear_change_column_types(); - ::greptime::v1::ChangeColumnType* mutable_change_column_types(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeColumnType >* - mutable_change_column_types(); + void clear_modify_column_types(); + ::greptime::v1::ModifyColumnType* mutable_modify_column_types(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >* + mutable_modify_column_types(); private: - const ::greptime::v1::ChangeColumnType& _internal_change_column_types(int index) const; - ::greptime::v1::ChangeColumnType* _internal_add_change_column_types(); + const ::greptime::v1::ModifyColumnType& _internal_modify_column_types(int index) const; + ::greptime::v1::ModifyColumnType* _internal_add_modify_column_types(); public: - const ::greptime::v1::ChangeColumnType& change_column_types(int index) const; - ::greptime::v1::ChangeColumnType* add_change_column_types(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeColumnType >& - change_column_types() const; + const ::greptime::v1::ModifyColumnType& modify_column_types(int index) const; + ::greptime::v1::ModifyColumnType* add_modify_column_types(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >& + modify_column_types() const; - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnTypes) + // @@protoc_insertion_point(class_scope:greptime.v1.ModifyColumnTypes) private: class _Internal; @@ -3630,7 +3630,7 @@ class ChangeColumnTypes final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeColumnType > change_column_types_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType > modify_column_types_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3968,24 +3968,24 @@ class AddColumn final : }; // ------------------------------------------------------------------- -class ChangeColumnType final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeColumnType) */ { +class ModifyColumnType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ModifyColumnType) */ { public: - inline ChangeColumnType() : ChangeColumnType(nullptr) {} - ~ChangeColumnType() override; - explicit PROTOBUF_CONSTEXPR ChangeColumnType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ModifyColumnType() : ModifyColumnType(nullptr) {} + ~ModifyColumnType() override; + explicit PROTOBUF_CONSTEXPR ModifyColumnType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ChangeColumnType(const ChangeColumnType& from); - ChangeColumnType(ChangeColumnType&& from) noexcept - : ChangeColumnType() { + ModifyColumnType(const ModifyColumnType& from); + ModifyColumnType(ModifyColumnType&& from) noexcept + : ModifyColumnType() { *this = ::std::move(from); } - inline ChangeColumnType& operator=(const ChangeColumnType& from) { + inline ModifyColumnType& operator=(const ModifyColumnType& from) { CopyFrom(from); return *this; } - inline ChangeColumnType& operator=(ChangeColumnType&& from) noexcept { + inline ModifyColumnType& operator=(ModifyColumnType&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4008,20 +4008,20 @@ class ChangeColumnType final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ChangeColumnType& default_instance() { + static const ModifyColumnType& default_instance() { return *internal_default_instance(); } - static inline const ChangeColumnType* internal_default_instance() { - return reinterpret_cast( - &_ChangeColumnType_default_instance_); + static inline const ModifyColumnType* internal_default_instance() { + return reinterpret_cast( + &_ModifyColumnType_default_instance_); } static constexpr int kIndexInFileMessages = 19; - friend void swap(ChangeColumnType& a, ChangeColumnType& b) { + friend void swap(ModifyColumnType& a, ModifyColumnType& b) { a.Swap(&b); } - inline void Swap(ChangeColumnType* other) { + inline void Swap(ModifyColumnType* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4034,7 +4034,7 @@ class ChangeColumnType final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChangeColumnType* other) { + void UnsafeArenaSwap(ModifyColumnType* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4042,14 +4042,14 @@ class ChangeColumnType final : // implements Message ---------------------------------------------- - ChangeColumnType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ModifyColumnType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ChangeColumnType& from); + void CopyFrom(const ModifyColumnType& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ChangeColumnType& from) { - ChangeColumnType::MergeImpl(*this, from); + void MergeFrom( const ModifyColumnType& from) { + ModifyColumnType::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -4067,15 +4067,15 @@ class ChangeColumnType final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ChangeColumnType* other); + void InternalSwap(ModifyColumnType* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.ChangeColumnType"; + return "greptime.v1.ModifyColumnType"; } protected: - explicit ChangeColumnType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ModifyColumnType(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4134,7 +4134,7 @@ class ChangeColumnType final : void _internal_set_target_type(::greptime::v1::ColumnDataType value); public: - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) + // @@protoc_insertion_point(class_scope:greptime.v1.ModifyColumnType) private: class _Internal; @@ -8626,77 +8626,77 @@ inline ::greptime::v1::RenameTable* AlterExpr::mutable_rename_table() { return _msg; } -// .greptime.v1.ChangeColumnTypes change_column_types = 7; -inline bool AlterExpr::_internal_has_change_column_types() const { - return kind_case() == kChangeColumnTypes; +// .greptime.v1.ModifyColumnTypes modify_column_types = 7; +inline bool AlterExpr::_internal_has_modify_column_types() const { + return kind_case() == kModifyColumnTypes; } -inline bool AlterExpr::has_change_column_types() const { - return _internal_has_change_column_types(); +inline bool AlterExpr::has_modify_column_types() const { + return _internal_has_modify_column_types(); } -inline void AlterExpr::set_has_change_column_types() { - _impl_._oneof_case_[0] = kChangeColumnTypes; +inline void AlterExpr::set_has_modify_column_types() { + _impl_._oneof_case_[0] = kModifyColumnTypes; } -inline void AlterExpr::clear_change_column_types() { - if (_internal_has_change_column_types()) { +inline void AlterExpr::clear_modify_column_types() { + if (_internal_has_modify_column_types()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_column_types_; + delete _impl_.kind_.modify_column_types_; } clear_has_kind(); } } -inline ::greptime::v1::ChangeColumnTypes* AlterExpr::release_change_column_types() { - // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_column_types) - if (_internal_has_change_column_types()) { +inline ::greptime::v1::ModifyColumnTypes* AlterExpr::release_modify_column_types() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.modify_column_types) + if (_internal_has_modify_column_types()) { clear_has_kind(); - ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + ::greptime::v1::ModifyColumnTypes* temp = _impl_.kind_.modify_column_types_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.change_column_types_ = nullptr; + _impl_.kind_.modify_column_types_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::ChangeColumnTypes& AlterExpr::_internal_change_column_types() const { - return _internal_has_change_column_types() - ? *_impl_.kind_.change_column_types_ - : reinterpret_cast< ::greptime::v1::ChangeColumnTypes&>(::greptime::v1::_ChangeColumnTypes_default_instance_); +inline const ::greptime::v1::ModifyColumnTypes& AlterExpr::_internal_modify_column_types() const { + return _internal_has_modify_column_types() + ? *_impl_.kind_.modify_column_types_ + : reinterpret_cast< ::greptime::v1::ModifyColumnTypes&>(::greptime::v1::_ModifyColumnTypes_default_instance_); } -inline const ::greptime::v1::ChangeColumnTypes& AlterExpr::change_column_types() const { - // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_column_types) - return _internal_change_column_types(); +inline const ::greptime::v1::ModifyColumnTypes& AlterExpr::modify_column_types() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.modify_column_types) + return _internal_modify_column_types(); } -inline ::greptime::v1::ChangeColumnTypes* AlterExpr::unsafe_arena_release_change_column_types() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.change_column_types) - if (_internal_has_change_column_types()) { +inline ::greptime::v1::ModifyColumnTypes* AlterExpr::unsafe_arena_release_modify_column_types() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.modify_column_types) + if (_internal_has_modify_column_types()) { clear_has_kind(); - ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; - _impl_.kind_.change_column_types_ = nullptr; + ::greptime::v1::ModifyColumnTypes* temp = _impl_.kind_.modify_column_types_; + _impl_.kind_.modify_column_types_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterExpr::unsafe_arena_set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) { +inline void AlterExpr::unsafe_arena_set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types) { clear_kind(); - if (change_column_types) { - set_has_change_column_types(); - _impl_.kind_.change_column_types_ = change_column_types; + if (modify_column_types) { + set_has_modify_column_types(); + _impl_.kind_.modify_column_types_ = modify_column_types; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_column_types) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.modify_column_types) } -inline ::greptime::v1::ChangeColumnTypes* AlterExpr::_internal_mutable_change_column_types() { - if (!_internal_has_change_column_types()) { +inline ::greptime::v1::ModifyColumnTypes* AlterExpr::_internal_mutable_modify_column_types() { + if (!_internal_has_modify_column_types()) { clear_kind(); - set_has_change_column_types(); - _impl_.kind_.change_column_types_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(GetArenaForAllocation()); + set_has_modify_column_types(); + _impl_.kind_.modify_column_types_ = CreateMaybeMessage< ::greptime::v1::ModifyColumnTypes >(GetArenaForAllocation()); } - return _impl_.kind_.change_column_types_; + return _impl_.kind_.modify_column_types_; } -inline ::greptime::v1::ChangeColumnTypes* AlterExpr::mutable_change_column_types() { - ::greptime::v1::ChangeColumnTypes* _msg = _internal_mutable_change_column_types(); - // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.change_column_types) +inline ::greptime::v1::ModifyColumnTypes* AlterExpr::mutable_modify_column_types() { + ::greptime::v1::ModifyColumnTypes* _msg = _internal_mutable_modify_column_types(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.modify_column_types) return _msg; } @@ -9734,46 +9734,46 @@ DropColumns::drop_columns() const { // ------------------------------------------------------------------- -// ChangeColumnTypes +// ModifyColumnTypes -// repeated .greptime.v1.ChangeColumnType change_column_types = 1; -inline int ChangeColumnTypes::_internal_change_column_types_size() const { - return _impl_.change_column_types_.size(); +// repeated .greptime.v1.ModifyColumnType modify_column_types = 1; +inline int ModifyColumnTypes::_internal_modify_column_types_size() const { + return _impl_.modify_column_types_.size(); } -inline int ChangeColumnTypes::change_column_types_size() const { - return _internal_change_column_types_size(); +inline int ModifyColumnTypes::modify_column_types_size() const { + return _internal_modify_column_types_size(); } -inline void ChangeColumnTypes::clear_change_column_types() { - _impl_.change_column_types_.Clear(); +inline void ModifyColumnTypes::clear_modify_column_types() { + _impl_.modify_column_types_.Clear(); } -inline ::greptime::v1::ChangeColumnType* ChangeColumnTypes::mutable_change_column_types(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeColumnTypes.change_column_types) - return _impl_.change_column_types_.Mutable(index); +inline ::greptime::v1::ModifyColumnType* ModifyColumnTypes::mutable_modify_column_types(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.ModifyColumnTypes.modify_column_types) + return _impl_.modify_column_types_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeColumnType >* -ChangeColumnTypes::mutable_change_column_types() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.ChangeColumnTypes.change_column_types) - return &_impl_.change_column_types_; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >* +ModifyColumnTypes::mutable_modify_column_types() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.ModifyColumnTypes.modify_column_types) + return &_impl_.modify_column_types_; } -inline const ::greptime::v1::ChangeColumnType& ChangeColumnTypes::_internal_change_column_types(int index) const { - return _impl_.change_column_types_.Get(index); +inline const ::greptime::v1::ModifyColumnType& ModifyColumnTypes::_internal_modify_column_types(int index) const { + return _impl_.modify_column_types_.Get(index); } -inline const ::greptime::v1::ChangeColumnType& ChangeColumnTypes::change_column_types(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnTypes.change_column_types) - return _internal_change_column_types(index); +inline const ::greptime::v1::ModifyColumnType& ModifyColumnTypes::modify_column_types(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.ModifyColumnTypes.modify_column_types) + return _internal_modify_column_types(index); } -inline ::greptime::v1::ChangeColumnType* ChangeColumnTypes::_internal_add_change_column_types() { - return _impl_.change_column_types_.Add(); +inline ::greptime::v1::ModifyColumnType* ModifyColumnTypes::_internal_add_modify_column_types() { + return _impl_.modify_column_types_.Add(); } -inline ::greptime::v1::ChangeColumnType* ChangeColumnTypes::add_change_column_types() { - ::greptime::v1::ChangeColumnType* _add = _internal_add_change_column_types(); - // @@protoc_insertion_point(field_add:greptime.v1.ChangeColumnTypes.change_column_types) +inline ::greptime::v1::ModifyColumnType* ModifyColumnTypes::add_modify_column_types() { + ::greptime::v1::ModifyColumnType* _add = _internal_add_modify_column_types(); + // @@protoc_insertion_point(field_add:greptime.v1.ModifyColumnTypes.modify_column_types) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeColumnType >& -ChangeColumnTypes::change_column_types() const { - // @@protoc_insertion_point(field_list:greptime.v1.ChangeColumnTypes.change_column_types) - return _impl_.change_column_types_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >& +ModifyColumnTypes::modify_column_types() const { + // @@protoc_insertion_point(field_list:greptime.v1.ModifyColumnTypes.modify_column_types) + return _impl_.modify_column_types_; } // ------------------------------------------------------------------- @@ -10016,44 +10016,44 @@ inline void AddColumn::set_allocated_location(::greptime::v1::AddColumnLocation* // ------------------------------------------------------------------- -// ChangeColumnType +// ModifyColumnType // string column_name = 1; -inline void ChangeColumnType::clear_column_name() { +inline void ModifyColumnType::clear_column_name() { _impl_.column_name_.ClearToEmpty(); } -inline const std::string& ChangeColumnType::column_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnType.column_name) +inline const std::string& ModifyColumnType::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.ModifyColumnType.column_name) return _internal_column_name(); } template inline PROTOBUF_ALWAYS_INLINE -void ChangeColumnType::set_column_name(ArgT0&& arg0, ArgT... args) { +void ModifyColumnType::set_column_name(ArgT0&& arg0, ArgT... args) { _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnType.column_name) + // @@protoc_insertion_point(field_set:greptime.v1.ModifyColumnType.column_name) } -inline std::string* ChangeColumnType::mutable_column_name() { +inline std::string* ModifyColumnType::mutable_column_name() { std::string* _s = _internal_mutable_column_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeColumnType.column_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.ModifyColumnType.column_name) return _s; } -inline const std::string& ChangeColumnType::_internal_column_name() const { +inline const std::string& ModifyColumnType::_internal_column_name() const { return _impl_.column_name_.Get(); } -inline void ChangeColumnType::_internal_set_column_name(const std::string& value) { +inline void ModifyColumnType::_internal_set_column_name(const std::string& value) { _impl_.column_name_.Set(value, GetArenaForAllocation()); } -inline std::string* ChangeColumnType::_internal_mutable_column_name() { +inline std::string* ModifyColumnType::_internal_mutable_column_name() { return _impl_.column_name_.Mutable(GetArenaForAllocation()); } -inline std::string* ChangeColumnType::release_column_name() { - // @@protoc_insertion_point(field_release:greptime.v1.ChangeColumnType.column_name) +inline std::string* ModifyColumnType::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.ModifyColumnType.column_name) return _impl_.column_name_.Release(); } -inline void ChangeColumnType::set_allocated_column_name(std::string* column_name) { +inline void ModifyColumnType::set_allocated_column_name(std::string* column_name) { if (column_name != nullptr) { } else { @@ -10065,46 +10065,46 @@ inline void ChangeColumnType::set_allocated_column_name(std::string* column_name _impl_.column_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeColumnType.column_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ModifyColumnType.column_name) } // .greptime.v1.ColumnDataType target_type = 2; -inline void ChangeColumnType::clear_target_type() { +inline void ModifyColumnType::clear_target_type() { _impl_.target_type_ = 0; } -inline ::greptime::v1::ColumnDataType ChangeColumnType::_internal_target_type() const { +inline ::greptime::v1::ColumnDataType ModifyColumnType::_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.ChangeColumnType.target_type) +inline ::greptime::v1::ColumnDataType ModifyColumnType::target_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.ModifyColumnType.target_type) return _internal_target_type(); } -inline void ChangeColumnType::_internal_set_target_type(::greptime::v1::ColumnDataType value) { +inline void ModifyColumnType::_internal_set_target_type(::greptime::v1::ColumnDataType value) { _impl_.target_type_ = value; } -inline void ChangeColumnType::set_target_type(::greptime::v1::ColumnDataType value) { +inline void ModifyColumnType::set_target_type(::greptime::v1::ColumnDataType value) { _internal_set_target_type(value); - // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnType.target_type) + // @@protoc_insertion_point(field_set:greptime.v1.ModifyColumnType.target_type) } // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; -inline bool ChangeColumnType::_internal_has_target_type_extension() const { +inline bool ModifyColumnType::_internal_has_target_type_extension() const { return this != internal_default_instance() && _impl_.target_type_extension_ != nullptr; } -inline bool ChangeColumnType::has_target_type_extension() const { +inline bool ModifyColumnType::has_target_type_extension() const { return _internal_has_target_type_extension(); } -inline const ::greptime::v1::ColumnDataTypeExtension& ChangeColumnType::_internal_target_type_extension() const { +inline const ::greptime::v1::ColumnDataTypeExtension& ModifyColumnType::_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.ChangeColumnType.target_type_extension) +inline const ::greptime::v1::ColumnDataTypeExtension& ModifyColumnType::target_type_extension() const { + // @@protoc_insertion_point(field_get:greptime.v1.ModifyColumnType.target_type_extension) return _internal_target_type_extension(); } -inline void ChangeColumnType::unsafe_arena_set_allocated_target_type_extension( +inline void ModifyColumnType::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_); @@ -10115,9 +10115,9 @@ inline void ChangeColumnType::unsafe_arena_set_allocated_target_type_extension( } else { } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ChangeColumnType.target_type_extension) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ModifyColumnType.target_type_extension) } -inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::release_target_type_extension() { +inline ::greptime::v1::ColumnDataTypeExtension* ModifyColumnType::release_target_type_extension() { ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.target_type_extension_; _impl_.target_type_extension_ = nullptr; @@ -10132,14 +10132,14 @@ inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::release_target #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.ChangeColumnType.target_type_extension) +inline ::greptime::v1::ColumnDataTypeExtension* ModifyColumnType::unsafe_arena_release_target_type_extension() { + // @@protoc_insertion_point(field_release:greptime.v1.ModifyColumnType.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() { +inline ::greptime::v1::ColumnDataTypeExtension* ModifyColumnType::_internal_mutable_target_type_extension() { if (_impl_.target_type_extension_ == nullptr) { auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation()); @@ -10147,12 +10147,12 @@ inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::_internal_muta } return _impl_.target_type_extension_; } -inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::mutable_target_type_extension() { +inline ::greptime::v1::ColumnDataTypeExtension* ModifyColumnType::mutable_target_type_extension() { ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_target_type_extension(); - // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeColumnType.target_type_extension) + // @@protoc_insertion_point(field_mutable:greptime.v1.ModifyColumnType.target_type_extension) return _msg; } -inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1::ColumnDataTypeExtension* target_type_extension) { +inline void ModifyColumnType::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_); @@ -10170,7 +10170,7 @@ inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1 } _impl_.target_type_extension_ = target_type_extension; - // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeColumnType.target_type_extension) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ModifyColumnType.target_type_extension) } // ------------------------------------------------------------------- diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index b8fa6782..e83e696b 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -832,8 +832,8 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" - "egion.DropColumnsH\000\022=\n\023change_column_typ" - "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" + "egion.DropColumnsH\000\022=\n\023modify_column_typ" + "es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes" "H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept" "ime.v1.ChangeTableOptionsH\000\022C\n\026change_co" "lumn_fulltext\030\007 \001(\0132!.greptime.v1.Change" @@ -5329,7 +5329,7 @@ class AlterRequest::_Internal { public: static const ::greptime::v1::region::AddColumns& add_columns(const AlterRequest* msg); static const ::greptime::v1::region::DropColumns& drop_columns(const AlterRequest* msg); - static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterRequest* msg); + static const ::greptime::v1::ModifyColumnTypes& modify_column_types(const AlterRequest* msg); static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterRequest* msg); static const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext(const AlterRequest* msg); }; @@ -5342,9 +5342,9 @@ const ::greptime::v1::region::DropColumns& AlterRequest::_Internal::drop_columns(const AlterRequest* msg) { return *msg->_impl_.kind_.drop_columns_; } -const ::greptime::v1::ChangeColumnTypes& -AlterRequest::_Internal::change_column_types(const AlterRequest* msg) { - return *msg->_impl_.kind_.change_column_types_; +const ::greptime::v1::ModifyColumnTypes& +AlterRequest::_Internal::modify_column_types(const AlterRequest* msg) { + return *msg->_impl_.kind_.modify_column_types_; } const ::greptime::v1::ChangeTableOptions& AlterRequest::_Internal::change_table_options(const AlterRequest* msg) { @@ -5384,26 +5384,26 @@ 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::ChangeColumnTypes* change_column_types) { +void AlterRequest::set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (change_column_types) { + if (modify_column_types) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_column_types)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(modify_column_types)); if (message_arena != submessage_arena) { - change_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, change_column_types, submessage_arena); + modify_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, modify_column_types, submessage_arena); } - set_has_change_column_types(); - _impl_.kind_.change_column_types_ = change_column_types; + set_has_modify_column_types(); + _impl_.kind_.modify_column_types_ = modify_column_types; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_column_types) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.modify_column_types) } -void AlterRequest::clear_change_column_types() { - if (_internal_has_change_column_types()) { +void AlterRequest::clear_modify_column_types() { + if (_internal_has_modify_column_types()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_column_types_; + delete _impl_.kind_.modify_column_types_; } clear_has_kind(); } @@ -5488,9 +5488,9 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_drop_columns()); break; } - case kChangeColumnTypes: { - _this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom( - from._internal_change_column_types()); + case kModifyColumnTypes: { + _this->_internal_mutable_modify_column_types()->::greptime::v1::ModifyColumnTypes::MergeFrom( + from._internal_modify_column_types()); break; } case kChangeTableOptions: { @@ -5559,9 +5559,9 @@ void AlterRequest::clear_kind() { } break; } - case kChangeColumnTypes: { + case kModifyColumnTypes: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_column_types_; + delete _impl_.kind_.modify_column_types_; } break; } @@ -5636,10 +5636,10 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // .greptime.v1.ChangeColumnTypes change_column_types = 5; + // .greptime.v1.ModifyColumnTypes modify_column_types = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_change_column_types(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_modify_column_types(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -5715,11 +5715,11 @@ uint8_t* AlterRequest::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_schema_version(), target); } - // .greptime.v1.ChangeColumnTypes change_column_types = 5; - if (_internal_has_change_column_types()) { + // .greptime.v1.ModifyColumnTypes modify_column_types = 5; + if (_internal_has_modify_column_types()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::change_column_types(this), - _Internal::change_column_types(this).GetCachedSize(), target, stream); + InternalWriteMessage(5, _Internal::modify_column_types(this), + _Internal::modify_column_types(this).GetCachedSize(), target, stream); } // .greptime.v1.ChangeTableOptions change_table_options = 6; @@ -5777,11 +5777,11 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.drop_columns_); break; } - // .greptime.v1.ChangeColumnTypes change_column_types = 5; - case kChangeColumnTypes: { + // .greptime.v1.ModifyColumnTypes modify_column_types = 5; + case kModifyColumnTypes: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.change_column_types_); + *_impl_.kind_.modify_column_types_); break; } // .greptime.v1.ChangeTableOptions change_table_options = 6; @@ -5837,9 +5837,9 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_drop_columns()); break; } - case kChangeColumnTypes: { - _this->_internal_mutable_change_column_types()->::greptime::v1::ChangeColumnTypes::MergeFrom( - from._internal_change_column_types()); + case kModifyColumnTypes: { + _this->_internal_mutable_modify_column_types()->::greptime::v1::ModifyColumnTypes::MergeFrom( + from._internal_modify_column_types()); break; } case kChangeTableOptions: { diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index deb883e6..9900558a 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -3250,7 +3250,7 @@ class AlterRequest final : enum KindCase { kAddColumns = 2, kDropColumns = 3, - kChangeColumnTypes = 5, + kModifyColumnTypes = 5, kChangeTableOptions = 6, kChangeColumnFulltext = 7, KIND_NOT_SET = 0, @@ -3338,7 +3338,7 @@ class AlterRequest final : kSchemaVersionFieldNumber = 4, kAddColumnsFieldNumber = 2, kDropColumnsFieldNumber = 3, - kChangeColumnTypesFieldNumber = 5, + kModifyColumnTypesFieldNumber = 5, kChangeTableOptionsFieldNumber = 6, kChangeColumnFulltextFieldNumber = 7, }; @@ -3396,23 +3396,23 @@ class AlterRequest final : ::greptime::v1::region::DropColumns* drop_columns); ::greptime::v1::region::DropColumns* unsafe_arena_release_drop_columns(); - // .greptime.v1.ChangeColumnTypes change_column_types = 5; - bool has_change_column_types() const; + // .greptime.v1.ModifyColumnTypes modify_column_types = 5; + bool has_modify_column_types() const; private: - bool _internal_has_change_column_types() const; + bool _internal_has_modify_column_types() const; public: - void clear_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); + void clear_modify_column_types(); + const ::greptime::v1::ModifyColumnTypes& modify_column_types() const; + PROTOBUF_NODISCARD ::greptime::v1::ModifyColumnTypes* release_modify_column_types(); + ::greptime::v1::ModifyColumnTypes* mutable_modify_column_types(); + void set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types); private: - const ::greptime::v1::ChangeColumnTypes& _internal_change_column_types() const; - ::greptime::v1::ChangeColumnTypes* _internal_mutable_change_column_types(); + const ::greptime::v1::ModifyColumnTypes& _internal_modify_column_types() const; + ::greptime::v1::ModifyColumnTypes* _internal_mutable_modify_column_types(); public: - void unsafe_arena_set_allocated_change_column_types( - ::greptime::v1::ChangeColumnTypes* change_column_types); - ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + void unsafe_arena_set_allocated_modify_column_types( + ::greptime::v1::ModifyColumnTypes* modify_column_types); + ::greptime::v1::ModifyColumnTypes* unsafe_arena_release_modify_column_types(); // .greptime.v1.ChangeTableOptions change_table_options = 6; bool has_change_table_options() const; @@ -3457,7 +3457,7 @@ class AlterRequest final : class _Internal; void set_has_add_columns(); void set_has_drop_columns(); - void set_has_change_column_types(); + void set_has_modify_column_types(); void set_has_change_table_options(); void set_has_change_column_fulltext(); @@ -3475,7 +3475,7 @@ class AlterRequest final : ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::greptime::v1::region::AddColumns* add_columns_; ::greptime::v1::region::DropColumns* drop_columns_; - ::greptime::v1::ChangeColumnTypes* change_column_types_; + ::greptime::v1::ModifyColumnTypes* modify_column_types_; ::greptime::v1::ChangeTableOptions* change_table_options_; ::greptime::v1::ChangeColumnFulltext* change_column_fulltext_; } kind_; @@ -7668,69 +7668,69 @@ inline ::greptime::v1::region::DropColumns* AlterRequest::mutable_drop_columns() return _msg; } -// .greptime.v1.ChangeColumnTypes change_column_types = 5; -inline bool AlterRequest::_internal_has_change_column_types() const { - return kind_case() == kChangeColumnTypes; +// .greptime.v1.ModifyColumnTypes modify_column_types = 5; +inline bool AlterRequest::_internal_has_modify_column_types() const { + return kind_case() == kModifyColumnTypes; } -inline bool AlterRequest::has_change_column_types() const { - return _internal_has_change_column_types(); +inline bool AlterRequest::has_modify_column_types() const { + return _internal_has_modify_column_types(); } -inline void AlterRequest::set_has_change_column_types() { - _impl_._oneof_case_[0] = kChangeColumnTypes; +inline void AlterRequest::set_has_modify_column_types() { + _impl_._oneof_case_[0] = kModifyColumnTypes; } -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()) { +inline ::greptime::v1::ModifyColumnTypes* AlterRequest::release_modify_column_types() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.modify_column_types) + if (_internal_has_modify_column_types()) { clear_has_kind(); - ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + ::greptime::v1::ModifyColumnTypes* temp = _impl_.kind_.modify_column_types_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.change_column_types_ = nullptr; + _impl_.kind_.modify_column_types_ = nullptr; return temp; } else { return nullptr; } } -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::ChangeColumnTypes&>(::greptime::v1::_ChangeColumnTypes_default_instance_); +inline const ::greptime::v1::ModifyColumnTypes& AlterRequest::_internal_modify_column_types() const { + return _internal_has_modify_column_types() + ? *_impl_.kind_.modify_column_types_ + : reinterpret_cast< ::greptime::v1::ModifyColumnTypes&>(::greptime::v1::_ModifyColumnTypes_default_instance_); } -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 const ::greptime::v1::ModifyColumnTypes& AlterRequest::modify_column_types() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.modify_column_types) + return _internal_modify_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()) { +inline ::greptime::v1::ModifyColumnTypes* AlterRequest::unsafe_arena_release_modify_column_types() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.modify_column_types) + if (_internal_has_modify_column_types()) { clear_has_kind(); - ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; - _impl_.kind_.change_column_types_ = nullptr; + ::greptime::v1::ModifyColumnTypes* temp = _impl_.kind_.modify_column_types_; + _impl_.kind_.modify_column_types_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterRequest::unsafe_arena_set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) { +inline void AlterRequest::unsafe_arena_set_allocated_modify_column_types(::greptime::v1::ModifyColumnTypes* modify_column_types) { clear_kind(); - if (change_column_types) { - set_has_change_column_types(); - _impl_.kind_.change_column_types_ = change_column_types; + if (modify_column_types) { + set_has_modify_column_types(); + _impl_.kind_.modify_column_types_ = modify_column_types; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_column_types) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.modify_column_types) } -inline ::greptime::v1::ChangeColumnTypes* AlterRequest::_internal_mutable_change_column_types() { - if (!_internal_has_change_column_types()) { +inline ::greptime::v1::ModifyColumnTypes* AlterRequest::_internal_mutable_modify_column_types() { + if (!_internal_has_modify_column_types()) { clear_kind(); - set_has_change_column_types(); - _impl_.kind_.change_column_types_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(GetArenaForAllocation()); + set_has_modify_column_types(); + _impl_.kind_.modify_column_types_ = CreateMaybeMessage< ::greptime::v1::ModifyColumnTypes >(GetArenaForAllocation()); } - return _impl_.kind_.change_column_types_; + return _impl_.kind_.modify_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) +inline ::greptime::v1::ModifyColumnTypes* AlterRequest::mutable_modify_column_types() { + ::greptime::v1::ModifyColumnTypes* _msg = _internal_mutable_modify_column_types(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.modify_column_types) return _msg; } diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 17a18c24..454a289c 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -842,7 +842,7 @@ type AlterExpr struct { // *AlterExpr_AddColumns // *AlterExpr_DropColumns // *AlterExpr_RenameTable - // *AlterExpr_ChangeColumnTypes + // *AlterExpr_ModifyColumnTypes // *AlterExpr_ChangeTableOptions // *AlterExpr_ChangeColumnFulltext Kind isAlterExpr_Kind `protobuf_oneof:"kind"` @@ -929,9 +929,9 @@ func (x *AlterExpr) GetRenameTable() *RenameTable { return nil } -func (x *AlterExpr) GetChangeColumnTypes() *ChangeColumnTypes { - if x, ok := x.GetKind().(*AlterExpr_ChangeColumnTypes); ok { - return x.ChangeColumnTypes +func (x *AlterExpr) GetModifyColumnTypes() *ModifyColumnTypes { + if x, ok := x.GetKind().(*AlterExpr_ModifyColumnTypes); ok { + return x.ModifyColumnTypes } return nil } @@ -966,8 +966,8 @@ type AlterExpr_RenameTable struct { RenameTable *RenameTable `protobuf:"bytes,6,opt,name=rename_table,json=renameTable,proto3,oneof"` } -type AlterExpr_ChangeColumnTypes struct { - ChangeColumnTypes *ChangeColumnTypes `protobuf:"bytes,7,opt,name=change_column_types,json=changeColumnTypes,proto3,oneof"` +type AlterExpr_ModifyColumnTypes struct { + ModifyColumnTypes *ModifyColumnTypes `protobuf:"bytes,7,opt,name=modify_column_types,json=modifyColumnTypes,proto3,oneof"` } type AlterExpr_ChangeTableOptions struct { @@ -984,7 +984,7 @@ func (*AlterExpr_DropColumns) isAlterExpr_Kind() {} func (*AlterExpr_RenameTable) isAlterExpr_Kind() {} -func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {} +func (*AlterExpr_ModifyColumnTypes) isAlterExpr_Kind() {} func (*AlterExpr_ChangeTableOptions) isAlterExpr_Kind() {} @@ -1368,16 +1368,16 @@ func (x *DropColumns) GetDropColumns() []*DropColumn { return nil } -type ChangeColumnTypes struct { +type ModifyColumnTypes struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ChangeColumnTypes []*ChangeColumnType `protobuf:"bytes,1,rep,name=change_column_types,json=changeColumnTypes,proto3" json:"change_column_types,omitempty"` + ModifyColumnTypes []*ModifyColumnType `protobuf:"bytes,1,rep,name=modify_column_types,json=modifyColumnTypes,proto3" json:"modify_column_types,omitempty"` } -func (x *ChangeColumnTypes) Reset() { - *x = ChangeColumnTypes{} +func (x *ModifyColumnTypes) Reset() { + *x = ModifyColumnTypes{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1385,13 +1385,13 @@ func (x *ChangeColumnTypes) Reset() { } } -func (x *ChangeColumnTypes) String() string { +func (x *ModifyColumnTypes) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeColumnTypes) ProtoMessage() {} +func (*ModifyColumnTypes) ProtoMessage() {} -func (x *ChangeColumnTypes) ProtoReflect() protoreflect.Message { +func (x *ModifyColumnTypes) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1403,14 +1403,14 @@ func (x *ChangeColumnTypes) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeColumnTypes.ProtoReflect.Descriptor instead. -func (*ChangeColumnTypes) Descriptor() ([]byte, []int) { +// Deprecated: Use ModifyColumnTypes.ProtoReflect.Descriptor instead. +func (*ModifyColumnTypes) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} } -func (x *ChangeColumnTypes) GetChangeColumnTypes() []*ChangeColumnType { +func (x *ModifyColumnTypes) GetModifyColumnTypes() []*ModifyColumnType { if x != nil { - return x.ChangeColumnTypes + return x.ModifyColumnTypes } return nil } @@ -1517,7 +1517,7 @@ func (x *AddColumn) GetLocation() *AddColumnLocation { return nil } -type ChangeColumnType struct { +type ModifyColumnType struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1527,8 +1527,8 @@ type ChangeColumnType struct { TargetTypeExtension *ColumnDataTypeExtension `protobuf:"bytes,3,opt,name=target_type_extension,json=targetTypeExtension,proto3" json:"target_type_extension,omitempty"` } -func (x *ChangeColumnType) Reset() { - *x = ChangeColumnType{} +func (x *ModifyColumnType) Reset() { + *x = ModifyColumnType{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1536,13 +1536,13 @@ func (x *ChangeColumnType) Reset() { } } -func (x *ChangeColumnType) String() string { +func (x *ModifyColumnType) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeColumnType) ProtoMessage() {} +func (*ModifyColumnType) ProtoMessage() {} -func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { +func (x *ModifyColumnType) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1554,26 +1554,26 @@ func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeColumnType.ProtoReflect.Descriptor instead. -func (*ChangeColumnType) Descriptor() ([]byte, []int) { +// Deprecated: Use ModifyColumnType.ProtoReflect.Descriptor instead. +func (*ModifyColumnType) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} } -func (x *ChangeColumnType) GetColumnName() string { +func (x *ModifyColumnType) GetColumnName() string { if x != nil { return x.ColumnName } return "" } -func (x *ChangeColumnType) GetTargetType() ColumnDataType { +func (x *ModifyColumnType) GetTargetType() ColumnDataType { if x != nil { return x.TargetType } return ColumnDataType_BOOLEAN } -func (x *ChangeColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension { +func (x *ModifyColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension { if x != nil { return x.TargetTypeExtension } @@ -2230,12 +2230,12 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, - 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x13, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, + 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x13, 0x6d, + 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x53, 0x0a, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x6d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x53, 0x0a, 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, @@ -2304,13 +2304,13 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, - 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x11, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x11, 0x4d, + 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x12, 0x4d, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x6d, 0x6f, + 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, @@ -2322,7 +2322,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, @@ -2439,10 +2439,10 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*DropDatabaseExpr)(nil), // 12: greptime.v1.DropDatabaseExpr (*AddColumns)(nil), // 13: greptime.v1.AddColumns (*DropColumns)(nil), // 14: greptime.v1.DropColumns - (*ChangeColumnTypes)(nil), // 15: greptime.v1.ChangeColumnTypes + (*ModifyColumnTypes)(nil), // 15: greptime.v1.ModifyColumnTypes (*RenameTable)(nil), // 16: greptime.v1.RenameTable (*AddColumn)(nil), // 17: greptime.v1.AddColumn - (*ChangeColumnType)(nil), // 18: greptime.v1.ChangeColumnType + (*ModifyColumnType)(nil), // 18: greptime.v1.ModifyColumnType (*ChangeTableOptions)(nil), // 19: greptime.v1.ChangeTableOptions (*ChangeTableOption)(nil), // 20: greptime.v1.ChangeTableOption (*DropColumn)(nil), // 21: greptime.v1.DropColumn @@ -2484,7 +2484,7 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 13, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns 14, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns 16, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable - 15, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes + 15, // 22: greptime.v1.AlterExpr.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes 19, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions 26, // 24: greptime.v1.AlterExpr.change_column_fulltext:type_name -> greptime.v1.ChangeColumnFulltext 22, // 25: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId @@ -2492,11 +2492,11 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 22, // 27: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId 17, // 28: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn 21, // 29: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 18, // 30: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType + 18, // 30: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType 24, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef 25, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 32, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 33, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 32, // 33: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 33, // 34: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension 20, // 35: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption 32, // 36: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType 34, // 37: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType @@ -2675,7 +2675,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeColumnTypes); i { + switch v := v.(*ModifyColumnTypes); i { case 0: return &v.state case 1: @@ -2711,7 +2711,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeColumnType); i { + switch v := v.(*ModifyColumnType); i { case 0: return &v.state case 1: @@ -2834,7 +2834,7 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_AddColumns)(nil), (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), - (*AlterExpr_ChangeColumnTypes)(nil), + (*AlterExpr_ModifyColumnTypes)(nil), (*AlterExpr_ChangeTableOptions)(nil), (*AlterExpr_ChangeColumnFulltext)(nil), } diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 5269888c..a3d053d2 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -11831,19 +11831,19 @@ public interface AlterExprOrBuilder extends io.greptime.v1.Ddl.RenameTableOrBuilder getRenameTableOrBuilder(); /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; - * @return Whether the changeColumnTypes field is set. + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; + * @return Whether the modifyColumnTypes field is set. */ - boolean hasChangeColumnTypes(); + boolean hasModifyColumnTypes(); /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; - * @return The changeColumnTypes. + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; + * @return The modifyColumnTypes. */ - io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes(); + io.greptime.v1.Ddl.ModifyColumnTypes getModifyColumnTypes(); /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ - io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); + io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder(); /** * .greptime.v1.ChangeTableOptions change_table_options = 8; @@ -11986,14 +11986,14 @@ private AlterExpr( break; } case 58: { - io.greptime.v1.Ddl.ChangeColumnTypes.Builder subBuilder = null; + io.greptime.v1.Ddl.ModifyColumnTypes.Builder subBuilder = null; if (kindCase_ == 7) { - subBuilder = ((io.greptime.v1.Ddl.ChangeColumnTypes) kind_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.ModifyColumnTypes) kind_).toBuilder(); } kind_ = - input.readMessage(io.greptime.v1.Ddl.ChangeColumnTypes.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.ModifyColumnTypes.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.ModifyColumnTypes) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 7; @@ -12069,7 +12069,7 @@ public enum KindCase ADD_COLUMNS(4), DROP_COLUMNS(5), RENAME_TABLE(6), - CHANGE_COLUMN_TYPES(7), + MODIFY_COLUMN_TYPES(7), CHANGE_TABLE_OPTIONS(8), CHANGE_COLUMN_FULLTEXT(9), KIND_NOT_SET(0); @@ -12092,7 +12092,7 @@ public static KindCase forNumber(int value) { case 4: return ADD_COLUMNS; case 5: return DROP_COLUMNS; case 6: return RENAME_TABLE; - case 7: return CHANGE_COLUMN_TYPES; + case 7: return MODIFY_COLUMN_TYPES; case 8: return CHANGE_TABLE_OPTIONS; case 9: return CHANGE_COLUMN_FULLTEXT; case 0: return KIND_NOT_SET; @@ -12317,35 +12317,35 @@ public io.greptime.v1.Ddl.RenameTableOrBuilder getRenameTableOrBuilder() { return io.greptime.v1.Ddl.RenameTable.getDefaultInstance(); } - public static final int CHANGE_COLUMN_TYPES_FIELD_NUMBER = 7; + public static final int MODIFY_COLUMN_TYPES_FIELD_NUMBER = 7; /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; - * @return Whether the changeColumnTypes field is set. + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; + * @return Whether the modifyColumnTypes field is set. */ @java.lang.Override - public boolean hasChangeColumnTypes() { + public boolean hasModifyColumnTypes() { return kindCase_ == 7; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; - * @return The changeColumnTypes. + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; + * @return The modifyColumnTypes. */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() { + public io.greptime.v1.Ddl.ModifyColumnTypes getModifyColumnTypes() { if (kindCase_ == 7) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() { + public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder() { if (kindCase_ == 7) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 8; @@ -12443,7 +12443,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(6, (io.greptime.v1.Ddl.RenameTable) kind_); } if (kindCase_ == 7) { - output.writeMessage(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + output.writeMessage(7, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_); } if (kindCase_ == 8) { output.writeMessage(8, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); @@ -12483,7 +12483,7 @@ public int getSerializedSize() { } if (kindCase_ == 7) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + .computeMessageSize(7, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_); } if (kindCase_ == 8) { size += com.google.protobuf.CodedOutputStream @@ -12529,8 +12529,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getRenameTable())) return false; break; case 7: - if (!getChangeColumnTypes() - .equals(other.getChangeColumnTypes())) return false; + if (!getModifyColumnTypes() + .equals(other.getModifyColumnTypes())) return false; break; case 8: if (!getChangeTableOptions() @@ -12574,8 +12574,8 @@ public int hashCode() { hash = (53 * hash) + getRenameTable().hashCode(); break; case 7: - hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getChangeColumnTypes().hashCode(); + hash = (37 * hash) + MODIFY_COLUMN_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getModifyColumnTypes().hashCode(); break; case 8: hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; @@ -12780,10 +12780,10 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { } } if (kindCase_ == 7) { - if (changeColumnTypesBuilder_ == null) { + if (modifyColumnTypesBuilder_ == null) { result.kind_ = kind_; } else { - result.kind_ = changeColumnTypesBuilder_.build(); + result.kind_ = modifyColumnTypesBuilder_.build(); } } if (kindCase_ == 8) { @@ -12874,8 +12874,8 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeRenameTable(other.getRenameTable()); break; } - case CHANGE_COLUMN_TYPES: { - mergeChangeColumnTypes(other.getChangeColumnTypes()); + case MODIFY_COLUMN_TYPES: { + mergeModifyColumnTypes(other.getModifyColumnTypes()); break; } case CHANGE_TABLE_OPTIONS: { @@ -13589,71 +13589,71 @@ public io.greptime.v1.Ddl.RenameTableOrBuilder getRenameTableOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> changeColumnTypesBuilder_; + io.greptime.v1.Ddl.ModifyColumnTypes, io.greptime.v1.Ddl.ModifyColumnTypes.Builder, io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder> modifyColumnTypesBuilder_; /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; - * @return Whether the changeColumnTypes field is set. + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; + * @return Whether the modifyColumnTypes field is set. */ @java.lang.Override - public boolean hasChangeColumnTypes() { + public boolean hasModifyColumnTypes() { return kindCase_ == 7; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; - * @return The changeColumnTypes. + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; + * @return The modifyColumnTypes. */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() { - if (changeColumnTypesBuilder_ == null) { + public io.greptime.v1.Ddl.ModifyColumnTypes getModifyColumnTypes() { + if (modifyColumnTypesBuilder_ == null) { if (kindCase_ == 7) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } else { if (kindCase_ == 7) { - return changeColumnTypesBuilder_.getMessage(); + return modifyColumnTypesBuilder_.getMessage(); } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ - public Builder setChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) { - if (changeColumnTypesBuilder_ == null) { + public Builder setModifyColumnTypes(io.greptime.v1.Ddl.ModifyColumnTypes value) { + if (modifyColumnTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { - changeColumnTypesBuilder_.setMessage(value); + modifyColumnTypesBuilder_.setMessage(value); } kindCase_ = 7; return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ - public Builder setChangeColumnTypes( - io.greptime.v1.Ddl.ChangeColumnTypes.Builder builderForValue) { - if (changeColumnTypesBuilder_ == null) { + public Builder setModifyColumnTypes( + io.greptime.v1.Ddl.ModifyColumnTypes.Builder builderForValue) { + if (modifyColumnTypesBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - changeColumnTypesBuilder_.setMessage(builderForValue.build()); + modifyColumnTypesBuilder_.setMessage(builderForValue.build()); } kindCase_ = 7; return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ - public Builder mergeChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) { - if (changeColumnTypesBuilder_ == null) { + public Builder mergeModifyColumnTypes(io.greptime.v1.Ddl.ModifyColumnTypes value) { + if (modifyColumnTypesBuilder_ == null) { if (kindCase_ == 7 && - kind_ != io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance()) { - kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.newBuilder((io.greptime.v1.Ddl.ChangeColumnTypes) kind_) + kind_ != io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.ModifyColumnTypes.newBuilder((io.greptime.v1.Ddl.ModifyColumnTypes) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; @@ -13661,19 +13661,19 @@ public Builder mergeChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value onChanged(); } else { if (kindCase_ == 7) { - changeColumnTypesBuilder_.mergeFrom(value); + modifyColumnTypesBuilder_.mergeFrom(value); } else { - changeColumnTypesBuilder_.setMessage(value); + modifyColumnTypesBuilder_.setMessage(value); } } kindCase_ = 7; return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ - public Builder clearChangeColumnTypes() { - if (changeColumnTypesBuilder_ == null) { + public Builder clearModifyColumnTypes() { + if (modifyColumnTypesBuilder_ == null) { if (kindCase_ == 7) { kindCase_ = 0; kind_ = null; @@ -13684,50 +13684,50 @@ public Builder clearChangeColumnTypes() { kindCase_ = 0; kind_ = null; } - changeColumnTypesBuilder_.clear(); + modifyColumnTypesBuilder_.clear(); } return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ - public io.greptime.v1.Ddl.ChangeColumnTypes.Builder getChangeColumnTypesBuilder() { - return getChangeColumnTypesFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.ModifyColumnTypes.Builder getModifyColumnTypesBuilder() { + return getModifyColumnTypesFieldBuilder().getBuilder(); } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() { - if ((kindCase_ == 7) && (changeColumnTypesBuilder_ != null)) { - return changeColumnTypesBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder() { + if ((kindCase_ == 7) && (modifyColumnTypesBuilder_ != null)) { + return modifyColumnTypesBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 7) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * .greptime.v1.ModifyColumnTypes modify_column_types = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> - getChangeColumnTypesFieldBuilder() { - if (changeColumnTypesBuilder_ == null) { + io.greptime.v1.Ddl.ModifyColumnTypes, io.greptime.v1.Ddl.ModifyColumnTypes.Builder, io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder> + getModifyColumnTypesFieldBuilder() { + if (modifyColumnTypesBuilder_ == null) { if (!(kindCase_ == 7)) { - kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + kind_ = io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } - changeColumnTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder>( - (io.greptime.v1.Ddl.ChangeColumnTypes) kind_, + modifyColumnTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ModifyColumnTypes, io.greptime.v1.Ddl.ModifyColumnTypes.Builder, io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder>( + (io.greptime.v1.Ddl.ModifyColumnTypes) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 7; onChanged();; - return changeColumnTypesBuilder_; + return modifyColumnTypesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -19780,55 +19780,55 @@ public io.greptime.v1.Ddl.DropColumns getDefaultInstanceForType() { } - public interface ChangeColumnTypesOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnTypes) + public interface ModifyColumnTypesOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ModifyColumnTypes) com.google.protobuf.MessageOrBuilder { /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - java.util.List - getChangeColumnTypesList(); + java.util.List + getModifyColumnTypesList(); /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - io.greptime.v1.Ddl.ChangeColumnType getChangeColumnTypes(int index); + io.greptime.v1.Ddl.ModifyColumnType getModifyColumnTypes(int index); /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - int getChangeColumnTypesCount(); + int getModifyColumnTypesCount(); /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - java.util.List - getChangeColumnTypesOrBuilderList(); + java.util.List + getModifyColumnTypesOrBuilderList(); /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder( + io.greptime.v1.Ddl.ModifyColumnTypeOrBuilder getModifyColumnTypesOrBuilder( int index); } /** - * Protobuf type {@code greptime.v1.ChangeColumnTypes} + * Protobuf type {@code greptime.v1.ModifyColumnTypes} */ - public static final class ChangeColumnTypes extends + public static final class ModifyColumnTypes extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnTypes) - ChangeColumnTypesOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ModifyColumnTypes) + ModifyColumnTypesOrBuilder { private static final long serialVersionUID = 0L; - // Use ChangeColumnTypes.newBuilder() to construct. - private ChangeColumnTypes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ModifyColumnTypes.newBuilder() to construct. + private ModifyColumnTypes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ChangeColumnTypes() { - changeColumnTypes_ = java.util.Collections.emptyList(); + private ModifyColumnTypes() { + modifyColumnTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ChangeColumnTypes(); + return new ModifyColumnTypes(); } @java.lang.Override @@ -19836,7 +19836,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ChangeColumnTypes( + private ModifyColumnTypes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -19857,11 +19857,11 @@ private ChangeColumnTypes( break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { - changeColumnTypes_ = new java.util.ArrayList(); + modifyColumnTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - changeColumnTypes_.add( - input.readMessage(io.greptime.v1.Ddl.ChangeColumnType.parser(), extensionRegistry)); + modifyColumnTypes_.add( + input.readMessage(io.greptime.v1.Ddl.ModifyColumnType.parser(), extensionRegistry)); break; } default: { @@ -19882,7 +19882,7 @@ private ChangeColumnTypes( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - changeColumnTypes_ = java.util.Collections.unmodifiableList(changeColumnTypes_); + modifyColumnTypes_ = java.util.Collections.unmodifiableList(modifyColumnTypes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -19890,55 +19890,55 @@ private ChangeColumnTypes( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnTypes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnTypes.class, io.greptime.v1.Ddl.ChangeColumnTypes.Builder.class); + io.greptime.v1.Ddl.ModifyColumnTypes.class, io.greptime.v1.Ddl.ModifyColumnTypes.Builder.class); } - public static final int CHANGE_COLUMN_TYPES_FIELD_NUMBER = 1; - private java.util.List changeColumnTypes_; + public static final int MODIFY_COLUMN_TYPES_FIELD_NUMBER = 1; + private java.util.List modifyColumnTypes_; /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ @java.lang.Override - public java.util.List getChangeColumnTypesList() { - return changeColumnTypes_; + public java.util.List getModifyColumnTypesList() { + return modifyColumnTypes_; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ @java.lang.Override - public java.util.List - getChangeColumnTypesOrBuilderList() { - return changeColumnTypes_; + public java.util.List + getModifyColumnTypesOrBuilderList() { + return modifyColumnTypes_; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ @java.lang.Override - public int getChangeColumnTypesCount() { - return changeColumnTypes_.size(); + public int getModifyColumnTypesCount() { + return modifyColumnTypes_.size(); } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType getChangeColumnTypes(int index) { - return changeColumnTypes_.get(index); + public io.greptime.v1.Ddl.ModifyColumnType getModifyColumnTypes(int index) { + return modifyColumnTypes_.get(index); } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder( + public io.greptime.v1.Ddl.ModifyColumnTypeOrBuilder getModifyColumnTypesOrBuilder( int index) { - return changeColumnTypes_.get(index); + return modifyColumnTypes_.get(index); } private byte memoizedIsInitialized = -1; @@ -19955,8 +19955,8 @@ public final boolean isInitialized() { @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)); + for (int i = 0; i < modifyColumnTypes_.size(); i++) { + output.writeMessage(1, modifyColumnTypes_.get(i)); } unknownFields.writeTo(output); } @@ -19967,9 +19967,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < changeColumnTypes_.size(); i++) { + for (int i = 0; i < modifyColumnTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, changeColumnTypes_.get(i)); + .computeMessageSize(1, modifyColumnTypes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -19981,13 +19981,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.ChangeColumnTypes)) { + if (!(obj instanceof io.greptime.v1.Ddl.ModifyColumnTypes)) { return super.equals(obj); } - io.greptime.v1.Ddl.ChangeColumnTypes other = (io.greptime.v1.Ddl.ChangeColumnTypes) obj; + io.greptime.v1.Ddl.ModifyColumnTypes other = (io.greptime.v1.Ddl.ModifyColumnTypes) obj; - if (!getChangeColumnTypesList() - .equals(other.getChangeColumnTypesList())) return false; + if (!getModifyColumnTypesList() + .equals(other.getModifyColumnTypesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -19999,78 +19999,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getChangeColumnTypesCount() > 0) { - hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getChangeColumnTypesList().hashCode(); + if (getModifyColumnTypesCount() > 0) { + hash = (37 * hash) + MODIFY_COLUMN_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getModifyColumnTypesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes 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.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes 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.Ddl.ChangeColumnTypes parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ModifyColumnTypes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ModifyColumnTypes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes 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.Ddl.ChangeColumnTypes parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ModifyColumnTypes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseDelimitedFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes 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.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnTypes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20083,7 +20083,7 @@ public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.ChangeColumnTypes prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ModifyColumnTypes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20099,26 +20099,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.ChangeColumnTypes} + * Protobuf type {@code greptime.v1.ModifyColumnTypes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnTypes) - io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ModifyColumnTypes) + io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnTypes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnTypes.class, io.greptime.v1.Ddl.ChangeColumnTypes.Builder.class); + io.greptime.v1.Ddl.ModifyColumnTypes.class, io.greptime.v1.Ddl.ModifyColumnTypes.Builder.class); } - // Construct using io.greptime.v1.Ddl.ChangeColumnTypes.newBuilder() + // Construct using io.greptime.v1.Ddl.ModifyColumnTypes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -20131,17 +20131,17 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getChangeColumnTypesFieldBuilder(); + getModifyColumnTypesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (changeColumnTypesBuilder_ == null) { - changeColumnTypes_ = java.util.Collections.emptyList(); + if (modifyColumnTypesBuilder_ == null) { + modifyColumnTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { - changeColumnTypesBuilder_.clear(); + modifyColumnTypesBuilder_.clear(); } return this; } @@ -20149,17 +20149,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnTypes_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstanceForType() { - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + public io.greptime.v1.Ddl.ModifyColumnTypes getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypes build() { - io.greptime.v1.Ddl.ChangeColumnTypes result = buildPartial(); + public io.greptime.v1.Ddl.ModifyColumnTypes build() { + io.greptime.v1.Ddl.ModifyColumnTypes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -20167,17 +20167,17 @@ public io.greptime.v1.Ddl.ChangeColumnTypes build() { } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypes buildPartial() { - io.greptime.v1.Ddl.ChangeColumnTypes result = new io.greptime.v1.Ddl.ChangeColumnTypes(this); + public io.greptime.v1.Ddl.ModifyColumnTypes buildPartial() { + io.greptime.v1.Ddl.ModifyColumnTypes result = new io.greptime.v1.Ddl.ModifyColumnTypes(this); int from_bitField0_ = bitField0_; - if (changeColumnTypesBuilder_ == null) { + if (modifyColumnTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - changeColumnTypes_ = java.util.Collections.unmodifiableList(changeColumnTypes_); + modifyColumnTypes_ = java.util.Collections.unmodifiableList(modifyColumnTypes_); bitField0_ = (bitField0_ & ~0x00000001); } - result.changeColumnTypes_ = changeColumnTypes_; + result.modifyColumnTypes_ = modifyColumnTypes_; } else { - result.changeColumnTypes_ = changeColumnTypesBuilder_.build(); + result.modifyColumnTypes_ = modifyColumnTypesBuilder_.build(); } onBuilt(); return result; @@ -20217,39 +20217,39 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.ChangeColumnTypes) { - return mergeFrom((io.greptime.v1.Ddl.ChangeColumnTypes)other); + if (other instanceof io.greptime.v1.Ddl.ModifyColumnTypes) { + return mergeFrom((io.greptime.v1.Ddl.ModifyColumnTypes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnTypes other) { - if (other == io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance()) return this; - if (changeColumnTypesBuilder_ == null) { - if (!other.changeColumnTypes_.isEmpty()) { - if (changeColumnTypes_.isEmpty()) { - changeColumnTypes_ = other.changeColumnTypes_; + public Builder mergeFrom(io.greptime.v1.Ddl.ModifyColumnTypes other) { + if (other == io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance()) return this; + if (modifyColumnTypesBuilder_ == null) { + if (!other.modifyColumnTypes_.isEmpty()) { + if (modifyColumnTypes_.isEmpty()) { + modifyColumnTypes_ = other.modifyColumnTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.addAll(other.changeColumnTypes_); + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.addAll(other.modifyColumnTypes_); } onChanged(); } } else { - if (!other.changeColumnTypes_.isEmpty()) { - if (changeColumnTypesBuilder_.isEmpty()) { - changeColumnTypesBuilder_.dispose(); - changeColumnTypesBuilder_ = null; - changeColumnTypes_ = other.changeColumnTypes_; + if (!other.modifyColumnTypes_.isEmpty()) { + if (modifyColumnTypesBuilder_.isEmpty()) { + modifyColumnTypesBuilder_.dispose(); + modifyColumnTypesBuilder_ = null; + modifyColumnTypes_ = other.modifyColumnTypes_; bitField0_ = (bitField0_ & ~0x00000001); - changeColumnTypesBuilder_ = + modifyColumnTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangeColumnTypesFieldBuilder() : null; + getModifyColumnTypesFieldBuilder() : null; } else { - changeColumnTypesBuilder_.addAllMessages(other.changeColumnTypes_); + modifyColumnTypesBuilder_.addAllMessages(other.modifyColumnTypes_); } } } @@ -20268,11 +20268,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.ChangeColumnTypes parsedMessage = null; + io.greptime.v1.Ddl.ModifyColumnTypes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.ChangeColumnTypes) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.ModifyColumnTypes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -20283,244 +20283,244 @@ public Builder mergeFrom( } private int bitField0_; - private java.util.List changeColumnTypes_ = + private java.util.List modifyColumnTypes_ = java.util.Collections.emptyList(); - private void ensureChangeColumnTypesIsMutable() { + private void ensureModifyColumnTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - changeColumnTypes_ = new java.util.ArrayList(changeColumnTypes_); + modifyColumnTypes_ = new java.util.ArrayList(modifyColumnTypes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnType, io.greptime.v1.Ddl.ChangeColumnType.Builder, io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder> changeColumnTypesBuilder_; + io.greptime.v1.Ddl.ModifyColumnType, io.greptime.v1.Ddl.ModifyColumnType.Builder, io.greptime.v1.Ddl.ModifyColumnTypeOrBuilder> modifyColumnTypesBuilder_; /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public java.util.List getChangeColumnTypesList() { - if (changeColumnTypesBuilder_ == null) { - return java.util.Collections.unmodifiableList(changeColumnTypes_); + public java.util.List getModifyColumnTypesList() { + if (modifyColumnTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(modifyColumnTypes_); } else { - return changeColumnTypesBuilder_.getMessageList(); + return modifyColumnTypesBuilder_.getMessageList(); } } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public int getChangeColumnTypesCount() { - if (changeColumnTypesBuilder_ == null) { - return changeColumnTypes_.size(); + public int getModifyColumnTypesCount() { + if (modifyColumnTypesBuilder_ == null) { + return modifyColumnTypes_.size(); } else { - return changeColumnTypesBuilder_.getCount(); + return modifyColumnTypesBuilder_.getCount(); } } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public io.greptime.v1.Ddl.ChangeColumnType getChangeColumnTypes(int index) { - if (changeColumnTypesBuilder_ == null) { - return changeColumnTypes_.get(index); + public io.greptime.v1.Ddl.ModifyColumnType getModifyColumnTypes(int index) { + if (modifyColumnTypesBuilder_ == null) { + return modifyColumnTypes_.get(index); } else { - return changeColumnTypesBuilder_.getMessage(index); + return modifyColumnTypesBuilder_.getMessage(index); } } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder setChangeColumnTypes( - int index, io.greptime.v1.Ddl.ChangeColumnType value) { - if (changeColumnTypesBuilder_ == null) { + public Builder setModifyColumnTypes( + int index, io.greptime.v1.Ddl.ModifyColumnType value) { + if (modifyColumnTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.set(index, value); + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.set(index, value); onChanged(); } else { - changeColumnTypesBuilder_.setMessage(index, value); + modifyColumnTypesBuilder_.setMessage(index, value); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder setChangeColumnTypes( - int index, io.greptime.v1.Ddl.ChangeColumnType.Builder builderForValue) { - if (changeColumnTypesBuilder_ == null) { - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.set(index, builderForValue.build()); + public Builder setModifyColumnTypes( + int index, io.greptime.v1.Ddl.ModifyColumnType.Builder builderForValue) { + if (modifyColumnTypesBuilder_ == null) { + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.set(index, builderForValue.build()); onChanged(); } else { - changeColumnTypesBuilder_.setMessage(index, builderForValue.build()); + modifyColumnTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder addChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnType value) { - if (changeColumnTypesBuilder_ == null) { + public Builder addModifyColumnTypes(io.greptime.v1.Ddl.ModifyColumnType value) { + if (modifyColumnTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.add(value); + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.add(value); onChanged(); } else { - changeColumnTypesBuilder_.addMessage(value); + modifyColumnTypesBuilder_.addMessage(value); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder addChangeColumnTypes( - int index, io.greptime.v1.Ddl.ChangeColumnType value) { - if (changeColumnTypesBuilder_ == null) { + public Builder addModifyColumnTypes( + int index, io.greptime.v1.Ddl.ModifyColumnType value) { + if (modifyColumnTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.add(index, value); + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.add(index, value); onChanged(); } else { - changeColumnTypesBuilder_.addMessage(index, value); + modifyColumnTypesBuilder_.addMessage(index, value); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder addChangeColumnTypes( - io.greptime.v1.Ddl.ChangeColumnType.Builder builderForValue) { - if (changeColumnTypesBuilder_ == null) { - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.add(builderForValue.build()); + public Builder addModifyColumnTypes( + io.greptime.v1.Ddl.ModifyColumnType.Builder builderForValue) { + if (modifyColumnTypesBuilder_ == null) { + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.add(builderForValue.build()); onChanged(); } else { - changeColumnTypesBuilder_.addMessage(builderForValue.build()); + modifyColumnTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder addChangeColumnTypes( - int index, io.greptime.v1.Ddl.ChangeColumnType.Builder builderForValue) { - if (changeColumnTypesBuilder_ == null) { - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.add(index, builderForValue.build()); + public Builder addModifyColumnTypes( + int index, io.greptime.v1.Ddl.ModifyColumnType.Builder builderForValue) { + if (modifyColumnTypesBuilder_ == null) { + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.add(index, builderForValue.build()); onChanged(); } else { - changeColumnTypesBuilder_.addMessage(index, builderForValue.build()); + modifyColumnTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder addAllChangeColumnTypes( - java.lang.Iterable values) { - if (changeColumnTypesBuilder_ == null) { - ensureChangeColumnTypesIsMutable(); + public Builder addAllModifyColumnTypes( + java.lang.Iterable values) { + if (modifyColumnTypesBuilder_ == null) { + ensureModifyColumnTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changeColumnTypes_); + values, modifyColumnTypes_); onChanged(); } else { - changeColumnTypesBuilder_.addAllMessages(values); + modifyColumnTypesBuilder_.addAllMessages(values); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder clearChangeColumnTypes() { - if (changeColumnTypesBuilder_ == null) { - changeColumnTypes_ = java.util.Collections.emptyList(); + public Builder clearModifyColumnTypes() { + if (modifyColumnTypesBuilder_ == null) { + modifyColumnTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - changeColumnTypesBuilder_.clear(); + modifyColumnTypesBuilder_.clear(); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public Builder removeChangeColumnTypes(int index) { - if (changeColumnTypesBuilder_ == null) { - ensureChangeColumnTypesIsMutable(); - changeColumnTypes_.remove(index); + public Builder removeModifyColumnTypes(int index) { + if (modifyColumnTypesBuilder_ == null) { + ensureModifyColumnTypesIsMutable(); + modifyColumnTypes_.remove(index); onChanged(); } else { - changeColumnTypesBuilder_.remove(index); + modifyColumnTypesBuilder_.remove(index); } return this; } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public io.greptime.v1.Ddl.ChangeColumnType.Builder getChangeColumnTypesBuilder( + public io.greptime.v1.Ddl.ModifyColumnType.Builder getModifyColumnTypesBuilder( int index) { - return getChangeColumnTypesFieldBuilder().getBuilder(index); + return getModifyColumnTypesFieldBuilder().getBuilder(index); } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder( + public io.greptime.v1.Ddl.ModifyColumnTypeOrBuilder getModifyColumnTypesOrBuilder( int index) { - if (changeColumnTypesBuilder_ == null) { - return changeColumnTypes_.get(index); } else { - return changeColumnTypesBuilder_.getMessageOrBuilder(index); + if (modifyColumnTypesBuilder_ == null) { + return modifyColumnTypes_.get(index); } else { + return modifyColumnTypesBuilder_.getMessageOrBuilder(index); } } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public java.util.List - getChangeColumnTypesOrBuilderList() { - if (changeColumnTypesBuilder_ != null) { - return changeColumnTypesBuilder_.getMessageOrBuilderList(); + public java.util.List + getModifyColumnTypesOrBuilderList() { + if (modifyColumnTypesBuilder_ != null) { + return modifyColumnTypesBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(changeColumnTypes_); + return java.util.Collections.unmodifiableList(modifyColumnTypes_); } } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public io.greptime.v1.Ddl.ChangeColumnType.Builder addChangeColumnTypesBuilder() { - return getChangeColumnTypesFieldBuilder().addBuilder( - io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()); + public io.greptime.v1.Ddl.ModifyColumnType.Builder addModifyColumnTypesBuilder() { + return getModifyColumnTypesFieldBuilder().addBuilder( + io.greptime.v1.Ddl.ModifyColumnType.getDefaultInstance()); } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public io.greptime.v1.Ddl.ChangeColumnType.Builder addChangeColumnTypesBuilder( + public io.greptime.v1.Ddl.ModifyColumnType.Builder addModifyColumnTypesBuilder( int index) { - return getChangeColumnTypesFieldBuilder().addBuilder( - index, io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()); + return getModifyColumnTypesFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.ModifyColumnType.getDefaultInstance()); } /** - * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + * repeated .greptime.v1.ModifyColumnType modify_column_types = 1; */ - public java.util.List - getChangeColumnTypesBuilderList() { - return getChangeColumnTypesFieldBuilder().getBuilderList(); + public java.util.List + getModifyColumnTypesBuilderList() { + return getModifyColumnTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnType, io.greptime.v1.Ddl.ChangeColumnType.Builder, io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder> - getChangeColumnTypesFieldBuilder() { - if (changeColumnTypesBuilder_ == null) { - changeColumnTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnType, io.greptime.v1.Ddl.ChangeColumnType.Builder, io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder>( - changeColumnTypes_, + io.greptime.v1.Ddl.ModifyColumnType, io.greptime.v1.Ddl.ModifyColumnType.Builder, io.greptime.v1.Ddl.ModifyColumnTypeOrBuilder> + getModifyColumnTypesFieldBuilder() { + if (modifyColumnTypesBuilder_ == null) { + modifyColumnTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.ModifyColumnType, io.greptime.v1.Ddl.ModifyColumnType.Builder, io.greptime.v1.Ddl.ModifyColumnTypeOrBuilder>( + modifyColumnTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - changeColumnTypes_ = null; + modifyColumnTypes_ = null; } - return changeColumnTypesBuilder_; + return modifyColumnTypesBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -20535,41 +20535,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnTypes) + // @@protoc_insertion_point(builder_scope:greptime.v1.ModifyColumnTypes) } - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnTypes) - private static final io.greptime.v1.Ddl.ChangeColumnTypes DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.ModifyColumnTypes) + private static final io.greptime.v1.Ddl.ModifyColumnTypes DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnTypes(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ModifyColumnTypes(); } - public static io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstance() { + public static io.greptime.v1.Ddl.ModifyColumnTypes 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 ChangeColumnTypes parsePartialFrom( + public ModifyColumnTypes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeColumnTypes(input, extensionRegistry); + return new ModifyColumnTypes(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.Ddl.ChangeColumnTypes getDefaultInstanceForType() { + public io.greptime.v1.Ddl.ModifyColumnTypes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -21971,8 +21971,8 @@ public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { } - public interface ChangeColumnTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnType) + public interface ModifyColumnTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ModifyColumnType) com.google.protobuf.MessageOrBuilder { /** @@ -22014,18 +22014,18 @@ public interface ChangeColumnTypeOrBuilder extends io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder(); } /** - * Protobuf type {@code greptime.v1.ChangeColumnType} + * Protobuf type {@code greptime.v1.ModifyColumnType} */ - public static final class ChangeColumnType extends + public static final class ModifyColumnType extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnType) - ChangeColumnTypeOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ModifyColumnType) + ModifyColumnTypeOrBuilder { private static final long serialVersionUID = 0L; - // Use ChangeColumnType.newBuilder() to construct. - private ChangeColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ModifyColumnType.newBuilder() to construct. + private ModifyColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ChangeColumnType() { + private ModifyColumnType() { columnName_ = ""; targetType_ = 0; } @@ -22034,7 +22034,7 @@ private ChangeColumnType() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ChangeColumnType(); + return new ModifyColumnType(); } @java.lang.Override @@ -22042,7 +22042,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ChangeColumnType( + private ModifyColumnType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -22108,15 +22108,15 @@ private ChangeColumnType( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); + io.greptime.v1.Ddl.ModifyColumnType.class, io.greptime.v1.Ddl.ModifyColumnType.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; @@ -22255,10 +22255,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.ChangeColumnType)) { + if (!(obj instanceof io.greptime.v1.Ddl.ModifyColumnType)) { return super.equals(obj); } - io.greptime.v1.Ddl.ChangeColumnType other = (io.greptime.v1.Ddl.ChangeColumnType) obj; + io.greptime.v1.Ddl.ModifyColumnType other = (io.greptime.v1.Ddl.ModifyColumnType) obj; if (!getColumnName() .equals(other.getColumnName())) return false; @@ -22292,69 +22292,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType 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.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType 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.Ddl.ChangeColumnType parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ModifyColumnType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ModifyColumnType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType 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.Ddl.ChangeColumnType parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ModifyColumnType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom( + public static io.greptime.v1.Ddl.ModifyColumnType 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.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.ModifyColumnType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22367,7 +22367,7 @@ public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.ChangeColumnType prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ModifyColumnType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -22383,26 +22383,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.ChangeColumnType} + * Protobuf type {@code greptime.v1.ModifyColumnType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnType) - io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ModifyColumnType) + io.greptime.v1.Ddl.ModifyColumnTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); + io.greptime.v1.Ddl.ModifyColumnType.class, io.greptime.v1.Ddl.ModifyColumnType.Builder.class); } - // Construct using io.greptime.v1.Ddl.ChangeColumnType.newBuilder() + // Construct using io.greptime.v1.Ddl.ModifyColumnType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -22436,17 +22436,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ModifyColumnType_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { - return io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance(); + public io.greptime.v1.Ddl.ModifyColumnType getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ModifyColumnType.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType build() { - io.greptime.v1.Ddl.ChangeColumnType result = buildPartial(); + public io.greptime.v1.Ddl.ModifyColumnType build() { + io.greptime.v1.Ddl.ModifyColumnType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -22454,8 +22454,8 @@ public io.greptime.v1.Ddl.ChangeColumnType build() { } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType buildPartial() { - io.greptime.v1.Ddl.ChangeColumnType result = new io.greptime.v1.Ddl.ChangeColumnType(this); + public io.greptime.v1.Ddl.ModifyColumnType buildPartial() { + io.greptime.v1.Ddl.ModifyColumnType result = new io.greptime.v1.Ddl.ModifyColumnType(this); result.columnName_ = columnName_; result.targetType_ = targetType_; if (targetTypeExtensionBuilder_ == null) { @@ -22501,16 +22501,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.ChangeColumnType) { - return mergeFrom((io.greptime.v1.Ddl.ChangeColumnType)other); + if (other instanceof io.greptime.v1.Ddl.ModifyColumnType) { + return mergeFrom((io.greptime.v1.Ddl.ModifyColumnType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnType other) { - if (other == io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.Ddl.ModifyColumnType other) { + if (other == io.greptime.v1.Ddl.ModifyColumnType.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; onChanged(); @@ -22536,11 +22536,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.ChangeColumnType parsedMessage = null; + io.greptime.v1.Ddl.ModifyColumnType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.ChangeColumnType) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.ModifyColumnType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -22811,41 +22811,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnType) + // @@protoc_insertion_point(builder_scope:greptime.v1.ModifyColumnType) } - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) - private static final io.greptime.v1.Ddl.ChangeColumnType DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.ModifyColumnType) + private static final io.greptime.v1.Ddl.ModifyColumnType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnType(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ModifyColumnType(); } - public static io.greptime.v1.Ddl.ChangeColumnType getDefaultInstance() { + public static io.greptime.v1.Ddl.ModifyColumnType 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 ModifyColumnType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeColumnType(input, extensionRegistry); + return new ModifyColumnType(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.Ddl.ChangeColumnType getDefaultInstanceForType() { + public io.greptime.v1.Ddl.ModifyColumnType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -29206,10 +29206,10 @@ public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_DropColumns_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ChangeColumnTypes_descriptor; + internal_static_greptime_v1_ModifyColumnTypes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable; + internal_static_greptime_v1_ModifyColumnTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RenameTable_descriptor; private static final @@ -29221,10 +29221,10 @@ public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_AddColumn_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ChangeColumnType_descriptor; + internal_static_greptime_v1_ModifyColumnType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable; + internal_static_greptime_v1_ModifyColumnType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_ChangeTableOptions_descriptor; private static final @@ -29326,8 +29326,8 @@ public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" + "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" + "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" + - ".RenameTableH\000\022=\n\023change_column_types\030\007 " + - "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022?\n" + + ".RenameTableH\000\022=\n\023modify_column_types\030\007 " + + "\001(\0132\036.greptime.v1.ModifyColumnTypesH\000\022?\n" + "\024change_table_options\030\010 \001(\0132\037.greptime.v" + "1.ChangeTableOptionsH\000\022C\n\026change_column_" + "fulltext\030\t \001(\0132!.greptime.v1.ChangeColum" + @@ -29348,13 +29348,13 @@ public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { "\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013" + "add_columns\030\001 \003(\0132\026.greptime.v1.AddColum" + "n\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027" + - ".greptime.v1.DropColumn\"O\n\021ChangeColumnT" + - "ypes\022:\n\023change_column_types\030\001 \003(\0132\035.grep" + - "time.v1.ChangeColumnType\"%\n\013RenameTable\022" + + ".greptime.v1.DropColumn\"O\n\021ModifyColumnT" + + "ypes\022:\n\023modify_column_types\030\001 \003(\0132\035.grep" + + "time.v1.ModifyColumnType\"%\n\013RenameTable\022" + "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" + "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" + "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" + - "mnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013colum" + + "mnLocation\"\236\001\n\020ModifyColumnType\022\023\n\013colum" + "n_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grep" + "time.v1.ColumnDataType\022C\n\025target_type_ex" + "tension\030\003 \001(\0132$.greptime.v1.ColumnDataTy" + @@ -29441,7 +29441,7 @@ public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { internal_static_greptime_v1_AlterExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AlterExpr_descriptor, - new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ChangeColumnTypes", "ChangeTableOptions", "ChangeColumnFulltext", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ModifyColumnTypes", "ChangeTableOptions", "ChangeColumnFulltext", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -29484,12 +29484,12 @@ public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumns_descriptor, new java.lang.String[] { "DropColumns", }); - internal_static_greptime_v1_ChangeColumnTypes_descriptor = + internal_static_greptime_v1_ModifyColumnTypes_descriptor = getDescriptor().getMessageTypes().get(13); - internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable = new + internal_static_greptime_v1_ModifyColumnTypes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_ChangeColumnTypes_descriptor, - new java.lang.String[] { "ChangeColumnTypes", }); + internal_static_greptime_v1_ModifyColumnTypes_descriptor, + new java.lang.String[] { "ModifyColumnTypes", }); internal_static_greptime_v1_RenameTable_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new @@ -29502,11 +29502,11 @@ public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumn_descriptor, new java.lang.String[] { "ColumnDef", "Location", }); - internal_static_greptime_v1_ChangeColumnType_descriptor = + internal_static_greptime_v1_ModifyColumnType_descriptor = getDescriptor().getMessageTypes().get(16); - internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable = new + internal_static_greptime_v1_ModifyColumnType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_ChangeColumnType_descriptor, + internal_static_greptime_v1_ModifyColumnType_descriptor, new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); internal_static_greptime_v1_ChangeTableOptions_descriptor = getDescriptor().getMessageTypes().get(17); 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 78cd7802..f57bd084 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16419,19 +16419,19 @@ public interface AlterRequestOrBuilder extends io.greptime.v1.region.Server.DropColumnsOrBuilder getDropColumnsOrBuilder(); /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; - * @return Whether the changeColumnTypes field is set. + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; + * @return Whether the modifyColumnTypes field is set. */ - boolean hasChangeColumnTypes(); + boolean hasModifyColumnTypes(); /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; - * @return The changeColumnTypes. + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; + * @return The modifyColumnTypes. */ - io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes(); + io.greptime.v1.Ddl.ModifyColumnTypes getModifyColumnTypes(); /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ - io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); + io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder(); /** * .greptime.v1.ChangeTableOptions change_table_options = 6; @@ -16559,14 +16559,14 @@ private AlterRequest( break; } case 42: { - io.greptime.v1.Ddl.ChangeColumnTypes.Builder subBuilder = null; + io.greptime.v1.Ddl.ModifyColumnTypes.Builder subBuilder = null; if (kindCase_ == 5) { - subBuilder = ((io.greptime.v1.Ddl.ChangeColumnTypes) kind_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.ModifyColumnTypes) kind_).toBuilder(); } kind_ = - input.readMessage(io.greptime.v1.Ddl.ChangeColumnTypes.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.ModifyColumnTypes.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.ModifyColumnTypes) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 5; @@ -16641,7 +16641,7 @@ public enum KindCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ADD_COLUMNS(2), DROP_COLUMNS(3), - CHANGE_COLUMN_TYPES(5), + MODIFY_COLUMN_TYPES(5), CHANGE_TABLE_OPTIONS(6), CHANGE_COLUMN_FULLTEXT(7), KIND_NOT_SET(0); @@ -16663,7 +16663,7 @@ public static KindCase forNumber(int value) { switch (value) { case 2: return ADD_COLUMNS; case 3: return DROP_COLUMNS; - case 5: return CHANGE_COLUMN_TYPES; + case 5: return MODIFY_COLUMN_TYPES; case 6: return CHANGE_TABLE_OPTIONS; case 7: return CHANGE_COLUMN_FULLTEXT; case 0: return KIND_NOT_SET; @@ -16754,35 +16754,35 @@ public io.greptime.v1.region.Server.DropColumnsOrBuilder getDropColumnsOrBuilder return io.greptime.v1.region.Server.DropColumns.getDefaultInstance(); } - public static final int CHANGE_COLUMN_TYPES_FIELD_NUMBER = 5; + public static final int MODIFY_COLUMN_TYPES_FIELD_NUMBER = 5; /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; - * @return Whether the changeColumnTypes field is set. + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; + * @return Whether the modifyColumnTypes field is set. */ @java.lang.Override - public boolean hasChangeColumnTypes() { + public boolean hasModifyColumnTypes() { return kindCase_ == 5; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; - * @return The changeColumnTypes. + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; + * @return The modifyColumnTypes. */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() { + public io.greptime.v1.Ddl.ModifyColumnTypes getModifyColumnTypes() { if (kindCase_ == 5) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() { + public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder() { if (kindCase_ == 5) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 6; @@ -16889,7 +16889,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt64(4, schemaVersion_); } if (kindCase_ == 5) { - output.writeMessage(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + output.writeMessage(5, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_); } if (kindCase_ == 6) { output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); @@ -16924,7 +16924,7 @@ public int getSerializedSize() { } if (kindCase_ == 5) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + .computeMessageSize(5, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_); } if (kindCase_ == 6) { size += com.google.protobuf.CodedOutputStream @@ -16964,8 +16964,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getDropColumns())) return false; break; case 5: - if (!getChangeColumnTypes() - .equals(other.getChangeColumnTypes())) return false; + if (!getModifyColumnTypes() + .equals(other.getModifyColumnTypes())) return false; break; case 6: if (!getChangeTableOptions() @@ -17005,8 +17005,8 @@ public int hashCode() { hash = (53 * hash) + getDropColumns().hashCode(); break; case 5: - hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getChangeColumnTypes().hashCode(); + hash = (37 * hash) + MODIFY_COLUMN_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getModifyColumnTypes().hashCode(); break; case 6: hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; @@ -17200,10 +17200,10 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() { } } if (kindCase_ == 5) { - if (changeColumnTypesBuilder_ == null) { + if (modifyColumnTypesBuilder_ == null) { result.kind_ = kind_; } else { - result.kind_ = changeColumnTypesBuilder_.build(); + result.kind_ = modifyColumnTypesBuilder_.build(); } } if (kindCase_ == 6) { @@ -17285,8 +17285,8 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) { mergeDropColumns(other.getDropColumns()); break; } - case CHANGE_COLUMN_TYPES: { - mergeChangeColumnTypes(other.getChangeColumnTypes()); + case MODIFY_COLUMN_TYPES: { + mergeModifyColumnTypes(other.getModifyColumnTypes()); break; } case CHANGE_TABLE_OPTIONS: { @@ -17661,71 +17661,71 @@ public io.greptime.v1.region.Server.DropColumnsOrBuilder getDropColumnsOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> changeColumnTypesBuilder_; + io.greptime.v1.Ddl.ModifyColumnTypes, io.greptime.v1.Ddl.ModifyColumnTypes.Builder, io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder> modifyColumnTypesBuilder_; /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; - * @return Whether the changeColumnTypes field is set. + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; + * @return Whether the modifyColumnTypes field is set. */ @java.lang.Override - public boolean hasChangeColumnTypes() { + public boolean hasModifyColumnTypes() { return kindCase_ == 5; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; - * @return The changeColumnTypes. + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; + * @return The modifyColumnTypes. */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() { - if (changeColumnTypesBuilder_ == null) { + public io.greptime.v1.Ddl.ModifyColumnTypes getModifyColumnTypes() { + if (modifyColumnTypesBuilder_ == null) { if (kindCase_ == 5) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } else { if (kindCase_ == 5) { - return changeColumnTypesBuilder_.getMessage(); + return modifyColumnTypesBuilder_.getMessage(); } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ - public Builder setChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) { - if (changeColumnTypesBuilder_ == null) { + public Builder setModifyColumnTypes(io.greptime.v1.Ddl.ModifyColumnTypes value) { + if (modifyColumnTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { - changeColumnTypesBuilder_.setMessage(value); + modifyColumnTypesBuilder_.setMessage(value); } kindCase_ = 5; return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ - public Builder setChangeColumnTypes( - io.greptime.v1.Ddl.ChangeColumnTypes.Builder builderForValue) { - if (changeColumnTypesBuilder_ == null) { + public Builder setModifyColumnTypes( + io.greptime.v1.Ddl.ModifyColumnTypes.Builder builderForValue) { + if (modifyColumnTypesBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - changeColumnTypesBuilder_.setMessage(builderForValue.build()); + modifyColumnTypesBuilder_.setMessage(builderForValue.build()); } kindCase_ = 5; return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ - public Builder mergeChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) { - if (changeColumnTypesBuilder_ == null) { + public Builder mergeModifyColumnTypes(io.greptime.v1.Ddl.ModifyColumnTypes value) { + if (modifyColumnTypesBuilder_ == null) { if (kindCase_ == 5 && - kind_ != io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance()) { - kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.newBuilder((io.greptime.v1.Ddl.ChangeColumnTypes) kind_) + kind_ != io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.ModifyColumnTypes.newBuilder((io.greptime.v1.Ddl.ModifyColumnTypes) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; @@ -17733,19 +17733,19 @@ public Builder mergeChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value onChanged(); } else { if (kindCase_ == 5) { - changeColumnTypesBuilder_.mergeFrom(value); + modifyColumnTypesBuilder_.mergeFrom(value); } else { - changeColumnTypesBuilder_.setMessage(value); + modifyColumnTypesBuilder_.setMessage(value); } } kindCase_ = 5; return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ - public Builder clearChangeColumnTypes() { - if (changeColumnTypesBuilder_ == null) { + public Builder clearModifyColumnTypes() { + if (modifyColumnTypesBuilder_ == null) { if (kindCase_ == 5) { kindCase_ = 0; kind_ = null; @@ -17756,50 +17756,50 @@ public Builder clearChangeColumnTypes() { kindCase_ = 0; kind_ = null; } - changeColumnTypesBuilder_.clear(); + modifyColumnTypesBuilder_.clear(); } return this; } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ - public io.greptime.v1.Ddl.ChangeColumnTypes.Builder getChangeColumnTypesBuilder() { - return getChangeColumnTypesFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.ModifyColumnTypes.Builder getModifyColumnTypesBuilder() { + return getModifyColumnTypesFieldBuilder().getBuilder(); } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() { - if ((kindCase_ == 5) && (changeColumnTypesBuilder_ != null)) { - return changeColumnTypesBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder() { + if ((kindCase_ == 5) && (modifyColumnTypesBuilder_ != null)) { + return modifyColumnTypesBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 5) { - return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + return (io.greptime.v1.Ddl.ModifyColumnTypes) kind_; } - return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } } /** - * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * .greptime.v1.ModifyColumnTypes modify_column_types = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> - getChangeColumnTypesFieldBuilder() { - if (changeColumnTypesBuilder_ == null) { + io.greptime.v1.Ddl.ModifyColumnTypes, io.greptime.v1.Ddl.ModifyColumnTypes.Builder, io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder> + getModifyColumnTypesFieldBuilder() { + if (modifyColumnTypesBuilder_ == null) { if (!(kindCase_ == 5)) { - kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + kind_ = io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } - changeColumnTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder>( - (io.greptime.v1.Ddl.ChangeColumnTypes) kind_, + modifyColumnTypesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ModifyColumnTypes, io.greptime.v1.Ddl.ModifyColumnTypes.Builder, io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder>( + (io.greptime.v1.Ddl.ModifyColumnTypes) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 5; onChanged();; - return changeColumnTypesBuilder_; + return modifyColumnTypesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -25028,8 +25028,8 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType() "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" + "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" + "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" + - "egion.DropColumnsH\000\022=\n\023change_column_typ" + - "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" + + "egion.DropColumnsH\000\022=\n\023modify_column_typ" + + "es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes" + "H\000\022?\n\024change_table_options\030\006 \001(\0132\037.grept" + "ime.v1.ChangeTableOptionsH\000\022C\n\026change_co" + "lumn_fulltext\030\007 \001(\0132!.greptime.v1.Change" + @@ -25183,7 +25183,7 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType() internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_region_AlterRequest_descriptor, - new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ChangeColumnTypes", "ChangeTableOptions", "ChangeColumnFulltext", "SchemaVersion", "Kind", }); + new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ModifyColumnTypes", "ChangeTableOptions", "ChangeColumnFulltext", "SchemaVersion", "Kind", }); internal_static_greptime_v1_region_AddColumns_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_region_AddColumns_fieldAccessorTable = new diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 6db96daf..395443a4 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -108,7 +108,7 @@ message AlterExpr { AddColumns add_columns = 4; DropColumns drop_columns = 5; RenameTable rename_table = 6; - ChangeColumnTypes change_column_types = 7; + ModifyColumnTypes modify_column_types = 7; ChangeTableOptions change_table_options = 8; ChangeColumnFulltext change_column_fulltext = 9; } @@ -146,7 +146,7 @@ message AddColumns { repeated AddColumn add_columns = 1; } message DropColumns { repeated DropColumn drop_columns = 1; } -message ChangeColumnTypes { repeated ChangeColumnType change_column_types = 1; } +message ModifyColumnTypes { repeated ModifyColumnType modify_column_types = 1; } message RenameTable { string new_table_name = 1; } @@ -155,7 +155,7 @@ message AddColumn { AddColumnLocation location = 3; } -message ChangeColumnType { +message ModifyColumnType { string column_name = 1; ColumnDataType target_type = 2; ColumnDataTypeExtension target_type_extension = 3; diff --git a/proto/greptime/v1/region/server.proto b/proto/greptime/v1/region/server.proto index f50e63ea..4b2c2962 100644 --- a/proto/greptime/v1/region/server.proto +++ b/proto/greptime/v1/region/server.proto @@ -127,7 +127,7 @@ message AlterRequest { oneof kind { AddColumns add_columns = 2; DropColumns drop_columns = 3; - ChangeColumnTypes change_column_types = 5; + ModifyColumnTypes modify_column_types = 5; ChangeTableOptions change_table_options = 6; ChangeColumnFulltext change_column_fulltext = 7; }