diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 3c47ac4f..2bb04de0 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -235,6 +235,19 @@ struct DropColumnsDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropColumnsDefaultTypeInternal _DropColumns_default_instance_; +PROTOBUF_CONSTEXPR ChangeColumnTypes::ChangeColumnTypes( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.change_column_types_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ChangeColumnTypesDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeColumnTypesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeColumnTypesDefaultTypeInternal() {} + union { + ChangeColumnTypes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; PROTOBUF_CONSTEXPR RenameTable::RenameTable( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.new_table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -262,6 +275,21 @@ struct AddColumnDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnDefaultTypeInternal _AddColumn_default_instance_; +PROTOBUF_CONSTEXPR ChangeColumnType::ChangeColumnType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.target_type_extension_)*/nullptr + , /*decltype(_impl_.target_type_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ChangeColumnTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeColumnTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeColumnTypeDefaultTypeInternal() {} + union { + ChangeColumnType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; PROTOBUF_CONSTEXPR DropColumn::DropColumn( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -323,7 +351,7 @@ struct AddColumnLocationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[20]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[22]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; @@ -415,6 +443,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterExpr, _impl_.kind_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropTableExpr, _internal_metadata_), @@ -481,6 +510,13 @@ 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_), + ~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_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -496,6 +532,15 @@ 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_), + ~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_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumn, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -539,19 +584,21 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 48, 56, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, { 58, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 75, -1, -1, sizeof(::greptime::v1::AlterExpr)}, - { 88, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 99, 107, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 109, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 119, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 129, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 138, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 145, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 152, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 159, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 167, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 174, -1, -1, sizeof(::greptime::v1::TableId)}, - { 181, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 194, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 89, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 100, 108, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 110, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 120, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 130, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 139, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 146, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 153, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, + { 160, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 167, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 175, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 184, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 191, -1, -1, sizeof(::greptime::v1::TableId)}, + { 198, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 211, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -569,8 +616,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::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, + &::greptime::v1::_ChangeColumnType_default_instance_._instance, &::greptime::v1::_DropColumn_default_instance_._instance, &::greptime::v1::_TableId_default_instance_._instance, &::greptime::v1::_ColumnDef_default_instance_._instance, @@ -610,57 +659,64 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "ptime.v1.CreateTableExpr.TableOptionsEnt" "ry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Table" "Id\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlte" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\245\002\n\tAlte" "rExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_colu" "mns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014" "drop_columns\030\005 \001(\0132\030.greptime.v1.DropCol" "umnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime." - "v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableEx" - "pr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030" - "\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 " - "\001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exi" - "sts\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014cata" - "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024c" - "reate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003" - "(\0132,.greptime.v1.CreateDatabaseExpr.Opti" - "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - "\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n" - "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" - "\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024" - ".greptime.v1.TableId\"U\n\020DropDatabaseExpr" - "\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 " - "\001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumn" - "s\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.Add" - "Column\"<\n\013DropColumns\022-\n\014drop_columns\030\001 " - "\003(\0132\027.greptime.v1.DropColumn\"%\n\013RenameTa" - "ble\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn" - "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" - "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" - "ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001" - "(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022" - "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept" - "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001" - "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant" - "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType" - "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030" - "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens" - "ion\"\230\001\n\021AddColumnLocation\022B\n\rlocation_ty" - "pe\030\001 \001(\0162+.greptime.v1.AddColumnLocation" - ".LocationType\022\031\n\021after_column_name\030\002 \001(\t" - "\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL" - "\n\016io.greptime.v1B\003DdlZ5github.com/Grepti" - "meTeam/greptime-proto/go/greptime/v1b\006pr" - "oto3" + "v1.RenameTableH\000\022=\n\023change_column_types\030" + "\007 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000B" + "\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014catalog_nam" + "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_na" + "me\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1" + ".TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Cre" + "ateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n" + "\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_exis" + "ts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1." + "CreateDatabaseExpr.OptionsEntry\032.\n\014Optio" + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + "z\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001 \001" + "(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 " + "\001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Tabl" + "eId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name\030" + "\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_ex" + "ists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030" + "\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013DropCol" + "umns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1" + ".DropColumn\"O\n\021ChangeColumnTypes\022:\n\023chan" + "ge_column_types\030\001 \003(\0132\035.greptime.v1.Chan" + "geColumnType\"%\n\013RenameTable\022\026\n\016new_table" + "_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001" + " \001(\0132\026.greptime.v1.ColumnDef\0220\n\010location" + "\030\003 \001(\0132\036.greptime.v1.AddColumnLocation\"\236" + "\001\n\020ChangeColumnType\022\023\n\013column_name\030\001 \001(\t" + "\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.Colu" + "mnDataType\022C\n\025target_type_extension\030\003 \001(" + "\0132$.greptime.v1.ColumnDataTypeExtension\"" + "\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n" + "\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022." + "\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" + "taType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_c" + "onstraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031" + ".greptime.v1.SemanticType\022\017\n\007comment\030\006 \001" + "(\t\022@\n\022datatype_extension\030\007 \001(\0132$.greptim" + "e.v1.ColumnDataTypeExtension\"\230\001\n\021AddColu" + "mnLocation\022B\n\rlocation_type\030\001 \001(\0162+.grep" + "time.v1.AddColumnLocation.LocationType\022\031" + "\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTyp" + "e\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v" + "1B\003DdlZ5github.com/GreptimeTeam/greptime" + "-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 2924, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 3229, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, "greptime/v1/ddl.proto", - &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 20, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 22, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, file_level_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto, file_level_service_descriptors_greptime_2fv1_2fddl_2eproto, @@ -2860,6 +2916,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); }; const ::greptime::v1::AddColumns& @@ -2874,6 +2931,10 @@ 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_; +} void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -2919,6 +2980,21 @@ 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) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (change_column_types) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_column_types); + if (message_arena != submessage_arena) { + change_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_column_types, submessage_arena); + } + set_has_change_column_types(); + _impl_.kind_.change_column_types_ = change_column_types; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_column_types) +} AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -2978,6 +3054,11 @@ 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()); + break; + } case KIND_NOT_SET: { break; } @@ -3056,6 +3137,12 @@ void AlterExpr::clear_kind() { } break; } + case kChangeColumnTypes: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_types_; + } + break; + } case KIND_NOT_SET: { break; } @@ -3137,6 +3224,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .greptime.v1.ChangeColumnTypes change_column_types = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_change_column_types(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -3217,6 +3312,13 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::rename_table(this).GetCachedSize(), target, stream); } + // .greptime.v1.ChangeColumnTypes change_column_types = 7; + if (_internal_has_change_column_types()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::change_column_types(this), + _Internal::change_column_types(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -3276,6 +3378,13 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.rename_table_); break; } + // .greptime.v1.ChangeColumnTypes change_column_types = 7; + case kChangeColumnTypes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.change_column_types_); + break; + } case KIND_NOT_SET: { break; } @@ -3323,6 +3432,11 @@ 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()); + break; + } case KIND_NOT_SET: { break; } @@ -5103,6 +5217,191 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { // =================================================================== +class ChangeColumnTypes::_Internal { + public: +}; + +ChangeColumnTypes::ChangeColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.ChangeColumnTypes) +} +ChangeColumnTypes::ChangeColumnTypes(const ChangeColumnTypes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChangeColumnTypes* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.change_column_types_){from._impl_.change_column_types_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeColumnTypes) +} + +inline void ChangeColumnTypes::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.change_column_types_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ChangeColumnTypes::~ChangeColumnTypes() { + // @@protoc_insertion_point(destructor:greptime.v1.ChangeColumnTypes) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChangeColumnTypes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.change_column_types_.~RepeatedPtrField(); +} + +void ChangeColumnTypes::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChangeColumnTypes::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeColumnTypes) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.change_column_types_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeColumnTypes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .greptime.v1.ChangeColumnType change_column_types = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_change_column_types(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ChangeColumnTypes::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeColumnTypes) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.ChangeColumnType change_column_types = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_change_column_types_size()); i < n; i++) { + const auto& repfield = this->_internal_change_column_types(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeColumnTypes) + return target; +} + +size_t ChangeColumnTypes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeColumnTypes) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.ChangeColumnType change_column_types = 1; + total_size += 1UL * this->_internal_change_column_types_size(); + for (const auto& msg : this->_impl_.change_column_types_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnTypes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChangeColumnTypes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnTypes::GetClassData() const { return &_class_data_; } + + +void ChangeColumnTypes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ChangeColumnTypes) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.change_column_types_.MergeFrom(from._impl_.change_column_types_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeColumnTypes::CopyFrom(const ChangeColumnTypes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeColumnTypes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeColumnTypes::IsInitialized() const { + return true; +} + +void ChangeColumnTypes::InternalSwap(ChangeColumnTypes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.change_column_types_.InternalSwap(&other->_impl_.change_column_types_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); +} + +// =================================================================== + class RenameTable::_Internal { public: }; @@ -5301,7 +5600,7 @@ void RenameTable::InternalSwap(RenameTable* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::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[14]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[15]); } // =================================================================== @@ -5540,7 +5839,292 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::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[15]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); +} + +// =================================================================== + +class ChangeColumnType::_Internal { + public: + static const ::greptime::v1::ColumnDataTypeExtension& target_type_extension(const ChangeColumnType* msg); +}; + +const ::greptime::v1::ColumnDataTypeExtension& +ChangeColumnType::_Internal::target_type_extension(const ChangeColumnType* msg) { + return *msg->_impl_.target_type_extension_; +} +void ChangeColumnType::clear_target_type_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { + delete _impl_.target_type_extension_; + } + _impl_.target_type_extension_ = nullptr; +} +ChangeColumnType::ChangeColumnType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.ChangeColumnType) +} +ChangeColumnType::ChangeColumnType(const ChangeColumnType& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChangeColumnType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.target_type_extension_){nullptr} + , decltype(_impl_.target_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_target_type_extension()) { + _this->_impl_.target_type_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.target_type_extension_); + } + _this->_impl_.target_type_ = from._impl_.target_type_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeColumnType) +} + +inline void ChangeColumnType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.target_type_extension_){nullptr} + , decltype(_impl_.target_type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ChangeColumnType::~ChangeColumnType() { + // @@protoc_insertion_point(destructor:greptime.v1.ChangeColumnType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChangeColumnType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.target_type_extension_; +} + +void ChangeColumnType::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChangeColumnType::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeColumnType) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { + delete _impl_.target_type_extension_; + } + _impl_.target_type_extension_ = nullptr; + _impl_.target_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeColumnType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string column_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeColumnType.column_name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataType target_type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_target_type(static_cast<::greptime::v1::ColumnDataType>(val)); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_target_type_extension(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ChangeColumnType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeColumnType) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ChangeColumnType.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // .greptime.v1.ColumnDataType target_type = 2; + if (this->_internal_target_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_target_type(), target); + } + + // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + if (this->_internal_has_target_type_extension()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::target_type_extension(this), + _Internal::target_type_extension(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeColumnType) + return target; +} + +size_t ChangeColumnType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeColumnType) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } + + // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + if (this->_internal_has_target_type_extension()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.target_type_extension_); + } + + // .greptime.v1.ColumnDataType target_type = 2; + if (this->_internal_target_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_target_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChangeColumnType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnType::GetClassData() const { return &_class_data_; } + + +void ChangeColumnType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ChangeColumnType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + if (from._internal_has_target_type_extension()) { + _this->_internal_mutable_target_type_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( + from._internal_target_type_extension()); + } + if (from._internal_target_type() != 0) { + _this->_internal_set_target_type(from._internal_target_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeColumnType::CopyFrom(const ChangeColumnType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeColumnType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeColumnType::IsInitialized() const { + return true; +} + +void ChangeColumnType::InternalSwap(ChangeColumnType* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ChangeColumnType, _impl_.target_type_) + + sizeof(ChangeColumnType::_impl_.target_type_) + - PROTOBUF_FIELD_OFFSET(ChangeColumnType, _impl_.target_type_extension_)>( + reinterpret_cast(&_impl_.target_type_extension_), + reinterpret_cast(&other->_impl_.target_type_extension_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); } // =================================================================== @@ -5743,7 +6327,7 @@ void DropColumn::InternalSwap(DropColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::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]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); } // =================================================================== @@ -5921,7 +6505,7 @@ void TableId::InternalSwap(TableId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TableId::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[17]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); } // =================================================================== @@ -6356,7 +6940,7 @@ void ColumnDef::InternalSwap(ColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::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[18]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); } // =================================================================== @@ -6589,7 +7173,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::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]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[21]); } // @@protoc_insertion_point(namespace_scope) @@ -6652,6 +7236,10 @@ 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::RenameTable* Arena::CreateMaybeMessage< ::greptime::v1::RenameTable >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::RenameTable >(arena); @@ -6660,6 +7248,10 @@ 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::DropColumn* Arena::CreateMaybeMessage< ::greptime::v1::DropColumn >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DropColumn >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index f4667459..4e9a036b 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -63,6 +63,12 @@ extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_; class AlterExpr; struct AlterExprDefaultTypeInternal; extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; +class ChangeColumnType; +struct ChangeColumnTypeDefaultTypeInternal; +extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; +class ChangeColumnTypes; +struct ChangeColumnTypesDefaultTypeInternal; +extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; class ColumnDef; struct ColumnDefDefaultTypeInternal; extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; @@ -118,6 +124,8 @@ template<> ::greptime::v1::AddColumn* Arena::CreateMaybeMessage<::greptime::v1:: template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::greptime::v1::AddColumnLocation>(Arena*); template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*); template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*); +template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); +template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*); @@ -1384,6 +1392,7 @@ class AlterExpr final : kAddColumns = 4, kDropColumns = 5, kRenameTable = 6, + kChangeColumnTypes = 7, KIND_NOT_SET = 0, }; @@ -1471,6 +1480,7 @@ class AlterExpr final : kAddColumnsFieldNumber = 4, kDropColumnsFieldNumber = 5, kRenameTableFieldNumber = 6, + kChangeColumnTypesFieldNumber = 7, }; // string catalog_name = 1; void clear_catalog_name(); @@ -1568,6 +1578,24 @@ 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; + private: + bool _internal_has_change_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); + private: + const ::greptime::v1::ChangeColumnTypes& _internal_change_column_types() const; + ::greptime::v1::ChangeColumnTypes* _internal_mutable_change_column_types(); + public: + void unsafe_arena_set_allocated_change_column_types( + ::greptime::v1::ChangeColumnTypes* change_column_types); + ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr) @@ -1576,6 +1604,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(); inline bool has_kind() const; inline void clear_has_kind(); @@ -1593,6 +1622,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_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -2752,6 +2782,163 @@ class DropColumns final : }; // ------------------------------------------------------------------- +class ChangeColumnTypes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeColumnTypes) */ { + public: + inline ChangeColumnTypes() : ChangeColumnTypes(nullptr) {} + ~ChangeColumnTypes() override; + explicit PROTOBUF_CONSTEXPR ChangeColumnTypes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChangeColumnTypes(const ChangeColumnTypes& from); + ChangeColumnTypes(ChangeColumnTypes&& from) noexcept + : ChangeColumnTypes() { + *this = ::std::move(from); + } + + inline ChangeColumnTypes& operator=(const ChangeColumnTypes& from) { + CopyFrom(from); + return *this; + } + inline ChangeColumnTypes& operator=(ChangeColumnTypes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ChangeColumnTypes& default_instance() { + return *internal_default_instance(); + } + static inline const ChangeColumnTypes* internal_default_instance() { + return reinterpret_cast( + &_ChangeColumnTypes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(ChangeColumnTypes& a, ChangeColumnTypes& b) { + a.Swap(&b); + } + inline void Swap(ChangeColumnTypes* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChangeColumnTypes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChangeColumnTypes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChangeColumnTypes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChangeColumnTypes& from) { + ChangeColumnTypes::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ChangeColumnTypes* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ChangeColumnTypes"; + } + protected: + explicit ChangeColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kChangeColumnTypesFieldNumber = 1, + }; + // repeated .greptime.v1.ChangeColumnType change_column_types = 1; + int change_column_types_size() const; + private: + int _internal_change_column_types_size() const; + public: + void clear_change_column_types(); + ::greptime::v1::ChangeColumnType* mutable_change_column_types(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeColumnType >* + mutable_change_column_types(); + private: + const ::greptime::v1::ChangeColumnType& _internal_change_column_types(int index) const; + ::greptime::v1::ChangeColumnType* _internal_add_change_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; + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnTypes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeColumnType > change_column_types_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class RenameTable final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RenameTable) */ { public: @@ -2800,7 +2987,7 @@ class RenameTable final : &_RenameTable_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(RenameTable& a, RenameTable& b) { a.Swap(&b); @@ -2953,7 +3140,7 @@ class AddColumn final : &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); @@ -3082,6 +3269,190 @@ class AddColumn final : }; // ------------------------------------------------------------------- +class ChangeColumnType final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeColumnType) */ { + public: + inline ChangeColumnType() : ChangeColumnType(nullptr) {} + ~ChangeColumnType() override; + explicit PROTOBUF_CONSTEXPR ChangeColumnType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChangeColumnType(const ChangeColumnType& from); + ChangeColumnType(ChangeColumnType&& from) noexcept + : ChangeColumnType() { + *this = ::std::move(from); + } + + inline ChangeColumnType& operator=(const ChangeColumnType& from) { + CopyFrom(from); + return *this; + } + inline ChangeColumnType& operator=(ChangeColumnType&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ChangeColumnType& default_instance() { + return *internal_default_instance(); + } + static inline const ChangeColumnType* internal_default_instance() { + return reinterpret_cast( + &_ChangeColumnType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(ChangeColumnType& a, ChangeColumnType& b) { + a.Swap(&b); + } + inline void Swap(ChangeColumnType* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ChangeColumnType* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChangeColumnType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChangeColumnType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChangeColumnType& from) { + ChangeColumnType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ChangeColumnType* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ChangeColumnType"; + } + protected: + explicit ChangeColumnType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kColumnNameFieldNumber = 1, + kTargetTypeExtensionFieldNumber = 3, + kTargetTypeFieldNumber = 2, + }; + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); + private: + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); + public: + + // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + bool has_target_type_extension() const; + private: + bool _internal_has_target_type_extension() const; + public: + void clear_target_type_extension(); + const ::greptime::v1::ColumnDataTypeExtension& target_type_extension() const; + PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_target_type_extension(); + ::greptime::v1::ColumnDataTypeExtension* mutable_target_type_extension(); + void set_allocated_target_type_extension(::greptime::v1::ColumnDataTypeExtension* target_type_extension); + private: + const ::greptime::v1::ColumnDataTypeExtension& _internal_target_type_extension() const; + ::greptime::v1::ColumnDataTypeExtension* _internal_mutable_target_type_extension(); + public: + void unsafe_arena_set_allocated_target_type_extension( + ::greptime::v1::ColumnDataTypeExtension* target_type_extension); + ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_target_type_extension(); + + // .greptime.v1.ColumnDataType target_type = 2; + void clear_target_type(); + ::greptime::v1::ColumnDataType target_type() const; + void set_target_type(::greptime::v1::ColumnDataType value); + private: + ::greptime::v1::ColumnDataType _internal_target_type() const; + void _internal_set_target_type(::greptime::v1::ColumnDataType value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + ::greptime::v1::ColumnDataTypeExtension* target_type_extension_; + int target_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class DropColumn final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumn) */ { public: @@ -3130,7 +3501,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 18; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -3283,7 +3654,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 19; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -3431,7 +3802,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 20; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -3669,7 +4040,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 21; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -5838,6 +6209,80 @@ 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; +} +inline bool AlterExpr::has_change_column_types() const { + return _internal_has_change_column_types(); +} +inline void AlterExpr::set_has_change_column_types() { + _impl_._oneof_case_[0] = kChangeColumnTypes; +} +inline void AlterExpr::clear_change_column_types() { + if (_internal_has_change_column_types()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_types_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::ChangeColumnTypes* AlterExpr::release_change_column_types() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_column_types) + if (_internal_has_change_column_types()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.change_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::ChangeColumnTypes& AlterExpr::change_column_types() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_column_types) + return _internal_change_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()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + _impl_.kind_.change_column_types_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterExpr::unsafe_arena_set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) { + clear_kind(); + if (change_column_types) { + set_has_change_column_types(); + _impl_.kind_.change_column_types_ = change_column_types; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_column_types) +} +inline ::greptime::v1::ChangeColumnTypes* AlterExpr::_internal_mutable_change_column_types() { + if (!_internal_has_change_column_types()) { + clear_kind(); + set_has_change_column_types(); + _impl_.kind_.change_column_types_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(GetArenaForAllocation()); + } + return _impl_.kind_.change_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) + return _msg; +} + inline bool AlterExpr::has_kind() const { return kind_case() != KIND_NOT_SET; } @@ -6724,6 +7169,50 @@ DropColumns::drop_columns() const { // ------------------------------------------------------------------- +// ChangeColumnTypes + +// repeated .greptime.v1.ChangeColumnType change_column_types = 1; +inline int ChangeColumnTypes::_internal_change_column_types_size() const { + return _impl_.change_column_types_.size(); +} +inline int ChangeColumnTypes::change_column_types_size() const { + return _internal_change_column_types_size(); +} +inline void ChangeColumnTypes::clear_change_column_types() { + _impl_.change_column_types_.Clear(); +} +inline ::greptime::v1::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 ::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 const ::greptime::v1::ChangeColumnType& ChangeColumnTypes::_internal_change_column_types(int index) const { + return _impl_.change_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 ::greptime::v1::ChangeColumnType* ChangeColumnTypes::_internal_add_change_column_types() { + return _impl_.change_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) + 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_; +} + +// ------------------------------------------------------------------- + // RenameTable // string new_table_name = 1; @@ -6962,6 +7451,165 @@ inline void AddColumn::set_allocated_location(::greptime::v1::AddColumnLocation* // ------------------------------------------------------------------- +// ChangeColumnType + +// string column_name = 1; +inline void ChangeColumnType::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& ChangeColumnType::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnType.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChangeColumnType::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnType.column_name) +} +inline std::string* ChangeColumnType::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeColumnType.column_name) + return _s; +} +inline const std::string& ChangeColumnType::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void ChangeColumnType::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChangeColumnType::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChangeColumnType::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.ChangeColumnType.column_name) + return _impl_.column_name_.Release(); +} +inline void ChangeColumnType::set_allocated_column_name(std::string* column_name) { + if (column_name != nullptr) { + + } else { + + } + _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.column_name_.IsDefault()) { + _impl_.column_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeColumnType.column_name) +} + +// .greptime.v1.ColumnDataType target_type = 2; +inline void ChangeColumnType::clear_target_type() { + _impl_.target_type_ = 0; +} +inline ::greptime::v1::ColumnDataType ChangeColumnType::_internal_target_type() const { + return static_cast< ::greptime::v1::ColumnDataType >(_impl_.target_type_); +} +inline ::greptime::v1::ColumnDataType ChangeColumnType::target_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnType.target_type) + return _internal_target_type(); +} +inline void ChangeColumnType::_internal_set_target_type(::greptime::v1::ColumnDataType value) { + + _impl_.target_type_ = value; +} +inline void ChangeColumnType::set_target_type(::greptime::v1::ColumnDataType value) { + _internal_set_target_type(value); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnType.target_type) +} + +// .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; +inline bool ChangeColumnType::_internal_has_target_type_extension() const { + return this != internal_default_instance() && _impl_.target_type_extension_ != nullptr; +} +inline bool ChangeColumnType::has_target_type_extension() const { + return _internal_has_target_type_extension(); +} +inline const ::greptime::v1::ColumnDataTypeExtension& ChangeColumnType::_internal_target_type_extension() const { + const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.target_type_extension_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ColumnDataTypeExtension_default_instance_); +} +inline const ::greptime::v1::ColumnDataTypeExtension& ChangeColumnType::target_type_extension() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnType.target_type_extension) + return _internal_target_type_extension(); +} +inline void ChangeColumnType::unsafe_arena_set_allocated_target_type_extension( + ::greptime::v1::ColumnDataTypeExtension* target_type_extension) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_type_extension_); + } + _impl_.target_type_extension_ = target_type_extension; + if (target_type_extension) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ChangeColumnType.target_type_extension) +} +inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::release_target_type_extension() { + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.target_type_extension_; + _impl_.target_type_extension_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::unsafe_arena_release_target_type_extension() { + // @@protoc_insertion_point(field_release:greptime.v1.ChangeColumnType.target_type_extension) + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.target_type_extension_; + _impl_.target_type_extension_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::_internal_mutable_target_type_extension() { + + if (_impl_.target_type_extension_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation()); + _impl_.target_type_extension_ = p; + } + return _impl_.target_type_extension_; +} +inline ::greptime::v1::ColumnDataTypeExtension* ChangeColumnType::mutable_target_type_extension() { + ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_target_type_extension(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeColumnType.target_type_extension) + return _msg; +} +inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1::ColumnDataTypeExtension* target_type_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.target_type_extension_); + } + if (target_type_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(target_type_extension)); + if (message_arena != submessage_arena) { + target_type_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, target_type_extension, submessage_arena); + } + + } else { + + } + _impl_.target_type_extension_ = target_type_extension; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeColumnType.target_type_extension) +} + +// ------------------------------------------------------------------- + // DropColumn // string name = 1; @@ -7452,6 +8100,10 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index 1e811e6d..cf1f4047 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -595,6 +595,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.region_id_), ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.schema_version_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_), ~0u, // no _has_bits_ @@ -677,14 +678,14 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 161, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, { 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)}, { 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, - { 186, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, - { 193, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, - { 200, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, - { 208, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, - { 215, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, - { 222, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 229, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 236, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 187, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, + { 194, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, + { 201, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 209, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 216, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 223, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 230, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 237, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -778,29 +779,30 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" "ue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_i" "d\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003" - "(\0132 .greptime.v1.region.AlterRequest\"\261\001\n" + "(\0132 .greptime.v1.region.AlterRequest\"\360\001\n" "\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_" "columns\030\002 \001(\0132\036.greptime.v1.region.AddCo" "lumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime" - ".v1.region.DropColumnsH\000\022\026\n\016schema_versi" - "on\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_co" - "lumns\030\001 \003(\0132\035.greptime.v1.region.AddColu" - "mn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132" - "\036.greptime.v1.region.DropColumn\"v\n\tAddCo" - "lumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.r" - "egion.RegionColumnDef\0220\n\010location\030\003 \001(\0132" - "\036.greptime.v1.AddColumnLocation\"\032\n\nDropC" - "olumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tr" - "egion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021\n\tregi" - "on_id\030\001 \001(\004\"$\n\017TruncateRequest\022\021\n\tregion" - "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" - "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" - "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" - "me.v1.region.RegionRequest\032\".greptime.v1" - ".region.RegionResponseB]\n\025io.greptime.v1" - ".regionB\006ServerZ_impl_.kind_.drop_columns_; } +const ::greptime::v1::ChangeColumnTypes& +AlterRequest::_Internal::change_column_types(const AlterRequest* msg) { + return *msg->_impl_.kind_.change_column_types_; +} void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -5312,6 +5319,30 @@ 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) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (change_column_types) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_column_types)); + if (message_arena != submessage_arena) { + change_column_types = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_column_types, submessage_arena); + } + set_has_change_column_types(); + _impl_.kind_.change_column_types_ = change_column_types; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_column_types) +} +void AlterRequest::clear_change_column_types() { + if (_internal_has_change_column_types()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_types_; + } + clear_has_kind(); + } +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5344,6 +5375,11 @@ 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()); + break; + } case KIND_NOT_SET: { break; } @@ -5400,6 +5436,12 @@ void AlterRequest::clear_kind() { } break; } + case kChangeColumnTypes: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_types_; + } + break; + } case KIND_NOT_SET: { break; } @@ -5459,6 +5501,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.ChangeColumnTypes change_column_types = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_change_column_types(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5514,6 +5564,13 @@ 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()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::change_column_types(this), + _Internal::change_column_types(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -5555,6 +5612,13 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.drop_columns_); break; } + // .greptime.v1.ChangeColumnTypes change_column_types = 5; + case kChangeColumnTypes: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.change_column_types_); + break; + } case KIND_NOT_SET: { break; } @@ -5594,6 +5658,11 @@ 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()); + break; + } case KIND_NOT_SET: { break; } diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index 908b02f6..b439aea3 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -3237,6 +3237,7 @@ class AlterRequest final : enum KindCase { kAddColumns = 2, kDropColumns = 3, + kChangeColumnTypes = 5, KIND_NOT_SET = 0, }; @@ -3322,6 +3323,7 @@ class AlterRequest final : kSchemaVersionFieldNumber = 4, kAddColumnsFieldNumber = 2, kDropColumnsFieldNumber = 3, + kChangeColumnTypesFieldNumber = 5, }; // uint64 region_id = 1; void clear_region_id(); @@ -3377,6 +3379,24 @@ 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; + private: + bool _internal_has_change_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); + private: + const ::greptime::v1::ChangeColumnTypes& _internal_change_column_types() const; + ::greptime::v1::ChangeColumnTypes* _internal_mutable_change_column_types(); + public: + void unsafe_arena_set_allocated_change_column_types( + ::greptime::v1::ChangeColumnTypes* change_column_types); + ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) @@ -3384,6 +3404,7 @@ class AlterRequest final : class _Internal; void set_has_add_columns(); void set_has_drop_columns(); + void set_has_change_column_types(); inline bool has_kind() const; inline void clear_has_kind(); @@ -3399,6 +3420,7 @@ class AlterRequest final : ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::greptime::v1::region::AddColumns* add_columns_; ::greptime::v1::region::DropColumns* drop_columns_; + ::greptime::v1::ChangeColumnTypes* change_column_types_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -7229,6 +7251,72 @@ 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; +} +inline bool AlterRequest::has_change_column_types() const { + return _internal_has_change_column_types(); +} +inline void AlterRequest::set_has_change_column_types() { + _impl_._oneof_case_[0] = kChangeColumnTypes; +} +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::release_change_column_types() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_column_types) + if (_internal_has_change_column_types()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.change_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::ChangeColumnTypes& AlterRequest::change_column_types() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_column_types) + return _internal_change_column_types(); +} +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::unsafe_arena_release_change_column_types() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_column_types) + if (_internal_has_change_column_types()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnTypes* temp = _impl_.kind_.change_column_types_; + _impl_.kind_.change_column_types_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterRequest::unsafe_arena_set_allocated_change_column_types(::greptime::v1::ChangeColumnTypes* change_column_types) { + clear_kind(); + if (change_column_types) { + set_has_change_column_types(); + _impl_.kind_.change_column_types_ = change_column_types; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_column_types) +} +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::_internal_mutable_change_column_types() { + if (!_internal_has_change_column_types()) { + clear_kind(); + set_has_change_column_types(); + _impl_.kind_.change_column_types_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(GetArenaForAllocation()); + } + return _impl_.kind_.change_column_types_; +} +inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_types() { + ::greptime::v1::ChangeColumnTypes* _msg = _internal_mutable_change_column_types(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_column_types) + return _msg; +} + // uint64 schema_version = 4; inline void AlterRequest::clear_schema_version() { _impl_.schema_version_ = uint64_t{0u}; diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index bb1a8c65..7290ec17 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -77,7 +77,7 @@ func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber { // Deprecated: Use AddColumnLocation_LocationType.Descriptor instead. func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -551,6 +551,7 @@ type AlterExpr struct { // *AlterExpr_AddColumns // *AlterExpr_DropColumns // *AlterExpr_RenameTable + // *AlterExpr_ChangeColumnTypes Kind isAlterExpr_Kind `protobuf_oneof:"kind"` } @@ -635,6 +636,13 @@ func (x *AlterExpr) GetRenameTable() *RenameTable { return nil } +func (x *AlterExpr) GetChangeColumnTypes() *ChangeColumnTypes { + if x, ok := x.GetKind().(*AlterExpr_ChangeColumnTypes); ok { + return x.ChangeColumnTypes + } + return nil +} + type isAlterExpr_Kind interface { isAlterExpr_Kind() } @@ -651,12 +659,18 @@ 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"` +} + func (*AlterExpr_AddColumns) isAlterExpr_Kind() {} func (*AlterExpr_DropColumns) isAlterExpr_Kind() {} func (*AlterExpr_RenameTable) isAlterExpr_Kind() {} +func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {} + type DropTableExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1035,6 +1049,53 @@ func (x *DropColumns) GetDropColumns() []*DropColumn { return nil } +type ChangeColumnTypes 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"` +} + +func (x *ChangeColumnTypes) Reset() { + *x = ChangeColumnTypes{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeColumnTypes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeColumnTypes) ProtoMessage() {} + +func (x *ChangeColumnTypes) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeColumnTypes.ProtoReflect.Descriptor instead. +func (*ChangeColumnTypes) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} +} + +func (x *ChangeColumnTypes) GetChangeColumnTypes() []*ChangeColumnType { + if x != nil { + return x.ChangeColumnTypes + } + return nil +} + type RenameTable struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1046,7 +1107,7 @@ type RenameTable struct { func (x *RenameTable) Reset() { *x = RenameTable{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1059,7 +1120,7 @@ func (x *RenameTable) String() string { func (*RenameTable) ProtoMessage() {} func (x *RenameTable) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1072,7 +1133,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message { // Deprecated: Use RenameTable.ProtoReflect.Descriptor instead. func (*RenameTable) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} } func (x *RenameTable) GetNewTableName() string { @@ -1094,7 +1155,7 @@ type AddColumn struct { func (x *AddColumn) Reset() { *x = AddColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1107,7 +1168,7 @@ func (x *AddColumn) String() string { func (*AddColumn) ProtoMessage() {} func (x *AddColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1120,7 +1181,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumn.ProtoReflect.Descriptor instead. func (*AddColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} } func (x *AddColumn) GetColumnDef() *ColumnDef { @@ -1137,6 +1198,69 @@ func (x *AddColumn) GetLocation() *AddColumnLocation { return nil } +type ChangeColumnType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + TargetType ColumnDataType `protobuf:"varint,2,opt,name=target_type,json=targetType,proto3,enum=greptime.v1.ColumnDataType" json:"target_type,omitempty"` + TargetTypeExtension *ColumnDataTypeExtension `protobuf:"bytes,3,opt,name=target_type_extension,json=targetTypeExtension,proto3" json:"target_type_extension,omitempty"` +} + +func (x *ChangeColumnType) Reset() { + *x = ChangeColumnType{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeColumnType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeColumnType) ProtoMessage() {} + +func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeColumnType.ProtoReflect.Descriptor instead. +func (*ChangeColumnType) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} +} + +func (x *ChangeColumnType) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + +func (x *ChangeColumnType) GetTargetType() ColumnDataType { + if x != nil { + return x.TargetType + } + return ColumnDataType_BOOLEAN +} + +func (x *ChangeColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension { + if x != nil { + return x.TargetTypeExtension + } + return nil +} + type DropColumn struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1148,7 +1272,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1161,7 +1285,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1174,7 +1298,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use DropColumn.ProtoReflect.Descriptor instead. func (*DropColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} } func (x *DropColumn) GetName() string { @@ -1195,7 +1319,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1208,7 +1332,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1221,7 +1345,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message { // Deprecated: Use TableId.ProtoReflect.Descriptor instead. func (*TableId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} } func (x *TableId) GetId() uint32 { @@ -1249,7 +1373,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1262,7 +1386,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1275,7 +1399,7 @@ func (x *ColumnDef) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead. func (*ColumnDef) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} } func (x *ColumnDef) GetName() string { @@ -1339,7 +1463,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1352,7 +1476,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1365,7 +1489,7 @@ func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead. func (*AddColumnLocation) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -1491,7 +1615,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x02, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x82, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, @@ -1510,118 +1634,143 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, - 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, - 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, - 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, - 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, - 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, - 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, - 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, - 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, - 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, - 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, - 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, - 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x73, 0x12, 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, 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, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, - 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, - 0x61, 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, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, - 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, - 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, - 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, - 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, - 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, - 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, - 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 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, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, - 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, - 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 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, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, + 0x0d, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, + 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, + 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, + 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, + 0x69, 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, + 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, + 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, + 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, + 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 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, 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, 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, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, + 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, + 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 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, 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, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, + 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, + 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, + 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, + 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, + 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, + 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, 0x2e, 0x4c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, + 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, + 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, + 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, + 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -1637,7 +1786,7 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte { } var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest @@ -1651,19 +1800,21 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*DropDatabaseExpr)(nil), // 9: greptime.v1.DropDatabaseExpr (*AddColumns)(nil), // 10: greptime.v1.AddColumns (*DropColumns)(nil), // 11: greptime.v1.DropColumns - (*RenameTable)(nil), // 12: greptime.v1.RenameTable - (*AddColumn)(nil), // 13: greptime.v1.AddColumn - (*DropColumn)(nil), // 14: greptime.v1.DropColumn - (*TableId)(nil), // 15: greptime.v1.TableId - (*ColumnDef)(nil), // 16: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 17: greptime.v1.AddColumnLocation - nil, // 18: greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry - nil, // 19: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 20: greptime.v1.CreateDatabaseExpr.OptionsEntry - (*TableName)(nil), // 21: greptime.v1.TableName - (ColumnDataType)(0), // 22: greptime.v1.ColumnDataType - (SemanticType)(0), // 23: greptime.v1.SemanticType - (*ColumnDataTypeExtension)(nil), // 24: greptime.v1.ColumnDataTypeExtension + (*ChangeColumnTypes)(nil), // 12: greptime.v1.ChangeColumnTypes + (*RenameTable)(nil), // 13: greptime.v1.RenameTable + (*AddColumn)(nil), // 14: greptime.v1.AddColumn + (*ChangeColumnType)(nil), // 15: greptime.v1.ChangeColumnType + (*DropColumn)(nil), // 16: greptime.v1.DropColumn + (*TableId)(nil), // 17: greptime.v1.TableId + (*ColumnDef)(nil), // 18: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 19: greptime.v1.AddColumnLocation + nil, // 20: greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry + nil, // 21: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 22: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 23: greptime.v1.TableName + (ColumnDataType)(0), // 24: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 25: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 26: greptime.v1.SemanticType } var file_greptime_v1_ddl_proto_depIdxs = []int32{ 7, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr @@ -1673,31 +1824,35 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 8, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr 2, // 5: greptime.v1.DdlRequest.create_flow_task:type_name -> greptime.v1.CreateFlowTaskExpr 3, // 6: greptime.v1.DdlRequest.drop_flow_task:type_name -> greptime.v1.DropFlowTaskExpr - 21, // 7: greptime.v1.CreateFlowTaskExpr.source_table_names:type_name -> greptime.v1.TableName - 21, // 8: greptime.v1.CreateFlowTaskExpr.sink_table_name:type_name -> greptime.v1.TableName - 18, // 9: greptime.v1.CreateFlowTaskExpr.task_options:type_name -> greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry - 16, // 10: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 19, // 11: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 15, // 12: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 23, // 7: greptime.v1.CreateFlowTaskExpr.source_table_names:type_name -> greptime.v1.TableName + 23, // 8: greptime.v1.CreateFlowTaskExpr.sink_table_name:type_name -> greptime.v1.TableName + 20, // 9: greptime.v1.CreateFlowTaskExpr.task_options:type_name -> greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry + 18, // 10: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 21, // 11: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 17, // 12: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId 10, // 13: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns 11, // 14: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns - 12, // 15: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable - 15, // 16: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 20, // 17: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 15, // 18: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 13, // 19: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 14, // 20: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 16, // 21: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 17, // 22: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 22, // 23: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 23, // 24: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 24, // 25: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 0, // 26: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 27, // [27:27] is the sub-list for method output_type - 27, // [27:27] is the sub-list for method input_type - 27, // [27:27] is the sub-list for extension type_name - 27, // [27:27] is the sub-list for extension extendee - 0, // [0:27] is the sub-list for field type_name + 13, // 15: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable + 12, // 16: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes + 17, // 17: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 22, // 18: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 17, // 19: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 14, // 20: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 16, // 21: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 15, // 22: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType + 18, // 23: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 19, // 24: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 24, // 25: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 25, // 26: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 24, // 27: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 26, // 28: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 25, // 29: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 0, // 30: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 31, // [31:31] is the sub-list for method output_type + 31, // [31:31] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -1840,7 +1995,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RenameTable); i { + switch v := v.(*ChangeColumnTypes); i { case 0: return &v.state case 1: @@ -1852,7 +2007,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddColumn); i { + switch v := v.(*RenameTable); i { case 0: return &v.state case 1: @@ -1864,7 +2019,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.(*DropColumn); i { + switch v := v.(*AddColumn); i { case 0: return &v.state case 1: @@ -1876,7 +2031,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableId); i { + switch v := v.(*ChangeColumnType); i { case 0: return &v.state case 1: @@ -1888,7 +2043,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDef); i { + switch v := v.(*DropColumn); i { case 0: return &v.state case 1: @@ -1900,6 +2055,30 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TableId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnDef); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumnLocation); i { case 0: return &v.state @@ -1925,6 +2104,7 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_AddColumns)(nil), (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), + (*AlterExpr_ChangeColumnTypes)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -1932,7 +2112,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 1, - NumMessages: 20, + NumMessages: 22, NumExtensions: 0, NumServices: 0, }, diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 2a49e958..c5a9ad1c 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -7670,6 +7670,21 @@ public interface AlterExprOrBuilder extends */ io.greptime.v1.Ddl.RenameTableOrBuilder getRenameTableOrBuilder(); + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * @return Whether the changeColumnTypes field is set. + */ + boolean hasChangeColumnTypes(); + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * @return The changeColumnTypes. + */ + io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes(); + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); + public io.greptime.v1.Ddl.AlterExpr.KindCase getKindCase(); } /** @@ -7780,6 +7795,20 @@ private AlterExpr( kindCase_ = 6; break; } + case 58: { + io.greptime.v1.Ddl.ChangeColumnTypes.Builder subBuilder = null; + if (kindCase_ == 7) { + subBuilder = ((io.greptime.v1.Ddl.ChangeColumnTypes) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Ddl.ChangeColumnTypes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 7; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -7822,6 +7851,7 @@ public enum KindCase ADD_COLUMNS(4), DROP_COLUMNS(5), RENAME_TABLE(6), + CHANGE_COLUMN_TYPES(7), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -7842,6 +7872,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 0: return KIND_NOT_SET; default: return null; } @@ -8064,6 +8095,37 @@ public io.greptime.v1.Ddl.RenameTableOrBuilder getRenameTableOrBuilder() { return io.greptime.v1.Ddl.RenameTable.getDefaultInstance(); } + public static final int CHANGE_COLUMN_TYPES_FIELD_NUMBER = 7; + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * @return Whether the changeColumnTypes field is set. + */ + @java.lang.Override + public boolean hasChangeColumnTypes() { + return kindCase_ == 7; + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * @return The changeColumnTypes. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() { + if (kindCase_ == 7) { + return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() { + if (kindCase_ == 7) { + return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -8096,6 +8158,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (kindCase_ == 6) { output.writeMessage(6, (io.greptime.v1.Ddl.RenameTable) kind_); } + if (kindCase_ == 7) { + output.writeMessage(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + } unknownFields.writeTo(output); } @@ -8126,6 +8191,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.greptime.v1.Ddl.RenameTable) kind_); } + if (kindCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -8161,6 +8230,10 @@ public boolean equals(final java.lang.Object obj) { if (!getRenameTable() .equals(other.getRenameTable())) return false; break; + case 7: + if (!getChangeColumnTypes() + .equals(other.getChangeColumnTypes())) return false; + break; case 0: default: } @@ -8194,6 +8267,10 @@ public int hashCode() { hash = (37 * hash) + RENAME_TABLE_FIELD_NUMBER; hash = (53 * hash) + getRenameTable().hashCode(); break; + case 7: + hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getChangeColumnTypes().hashCode(); + break; case 0: default: } @@ -8388,6 +8465,13 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { result.kind_ = renameTableBuilder_.build(); } } + if (kindCase_ == 7) { + if (changeColumnTypesBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = changeColumnTypesBuilder_.build(); + } + } result.kindCase_ = kindCase_; onBuilt(); return result; @@ -8462,6 +8546,10 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeRenameTable(other.getRenameTable()); break; } + case CHANGE_COLUMN_TYPES: { + mergeChangeColumnTypes(other.getChangeColumnTypes()); + break; + } case KIND_NOT_SET: { break; } @@ -9163,6 +9251,148 @@ public io.greptime.v1.Ddl.RenameTableOrBuilder getRenameTableOrBuilder() { onChanged();; return renameTableBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> changeColumnTypesBuilder_; + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * @return Whether the changeColumnTypes field is set. + */ + @java.lang.Override + public boolean hasChangeColumnTypes() { + return kindCase_ == 7; + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + * @return The changeColumnTypes. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() { + if (changeColumnTypesBuilder_ == null) { + if (kindCase_ == 7) { + return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + } else { + if (kindCase_ == 7) { + return changeColumnTypesBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + } + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + public Builder setChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) { + if (changeColumnTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + changeColumnTypesBuilder_.setMessage(value); + } + kindCase_ = 7; + return this; + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + public Builder setChangeColumnTypes( + io.greptime.v1.Ddl.ChangeColumnTypes.Builder builderForValue) { + if (changeColumnTypesBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + changeColumnTypesBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 7; + return this; + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + public Builder mergeChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) { + if (changeColumnTypesBuilder_ == null) { + if (kindCase_ == 7 && + kind_ != io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.newBuilder((io.greptime.v1.Ddl.ChangeColumnTypes) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 7) { + changeColumnTypesBuilder_.mergeFrom(value); + } else { + changeColumnTypesBuilder_.setMessage(value); + } + } + kindCase_ = 7; + return this; + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + public Builder clearChangeColumnTypes() { + if (changeColumnTypesBuilder_ == null) { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + } + changeColumnTypesBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + public io.greptime.v1.Ddl.ChangeColumnTypes.Builder getChangeColumnTypesBuilder() { + return getChangeColumnTypesFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 7; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() { + if ((kindCase_ == 7) && (changeColumnTypesBuilder_ != null)) { + return changeColumnTypesBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 7) { + return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); + } + } + /** + * .greptime.v1.ChangeColumnTypes change_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) { + if (!(kindCase_ == 7)) { + kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.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_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 7; + onChanged();; + return changeColumnTypesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14930,43 +15160,55 @@ public io.greptime.v1.Ddl.DropColumns getDefaultInstanceForType() { } - public interface RenameTableOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.RenameTable) + public interface ChangeColumnTypesOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnTypes) com.google.protobuf.MessageOrBuilder { /** - * string new_table_name = 1; - * @return The newTableName. + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; */ - java.lang.String getNewTableName(); + java.util.List + getChangeColumnTypesList(); /** - * string new_table_name = 1; - * @return The bytes for newTableName. + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; */ - com.google.protobuf.ByteString - getNewTableNameBytes(); + io.greptime.v1.Ddl.ChangeColumnType getChangeColumnTypes(int index); + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + int getChangeColumnTypesCount(); + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + java.util.List + getChangeColumnTypesOrBuilderList(); + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder( + int index); } /** - * Protobuf type {@code greptime.v1.RenameTable} + * Protobuf type {@code greptime.v1.ChangeColumnTypes} */ - public static final class RenameTable extends + public static final class ChangeColumnTypes extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.RenameTable) - RenameTableOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnTypes) + ChangeColumnTypesOrBuilder { private static final long serialVersionUID = 0L; - // Use RenameTable.newBuilder() to construct. - private RenameTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChangeColumnTypes.newBuilder() to construct. + private ChangeColumnTypes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RenameTable() { - newTableName_ = ""; + private ChangeColumnTypes() { + changeColumnTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RenameTable(); + return new ChangeColumnTypes(); } @java.lang.Override @@ -14974,7 +15216,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private RenameTable( + private ChangeColumnTypes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -14982,6 +15224,7 @@ private RenameTable( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -14993,9 +15236,12 @@ private RenameTable( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - newTableName_ = s; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + changeColumnTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + changeColumnTypes_.add( + input.readMessage(io.greptime.v1.Ddl.ChangeColumnType.parser(), extensionRegistry)); break; } default: { @@ -15015,59 +15261,64 @@ private RenameTable( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changeColumnTypes_ = java.util.Collections.unmodifiableList(changeColumnTypes_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + io.greptime.v1.Ddl.ChangeColumnTypes.class, io.greptime.v1.Ddl.ChangeColumnTypes.Builder.class); } - public static final int NEW_TABLE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object newTableName_; + public static final int CHANGE_COLUMN_TYPES_FIELD_NUMBER = 1; + private java.util.List changeColumnTypes_; /** - * string new_table_name = 1; - * @return The newTableName. + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; */ @java.lang.Override - public java.lang.String getNewTableName() { - java.lang.Object ref = newTableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTableName_ = s; - return s; - } + public java.util.List getChangeColumnTypesList() { + return changeColumnTypes_; } /** - * string new_table_name = 1; - * @return The bytes for newTableName. + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; */ @java.lang.Override - public com.google.protobuf.ByteString - getNewTableNameBytes() { - java.lang.Object ref = newTableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newTableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List + getChangeColumnTypesOrBuilderList() { + return changeColumnTypes_; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + @java.lang.Override + public int getChangeColumnTypesCount() { + return changeColumnTypes_.size(); + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnType getChangeColumnTypes(int index) { + return changeColumnTypes_.get(index); + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder( + int index) { + return changeColumnTypes_.get(index); } private byte memoizedIsInitialized = -1; @@ -15084,8 +15335,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, newTableName_); + for (int i = 0; i < changeColumnTypes_.size(); i++) { + output.writeMessage(1, changeColumnTypes_.get(i)); } unknownFields.writeTo(output); } @@ -15096,8 +15347,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, newTableName_); + for (int i = 0; i < changeColumnTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, changeColumnTypes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -15109,13 +15361,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.RenameTable)) { + if (!(obj instanceof io.greptime.v1.Ddl.ChangeColumnTypes)) { return super.equals(obj); } - io.greptime.v1.Ddl.RenameTable other = (io.greptime.v1.Ddl.RenameTable) obj; + io.greptime.v1.Ddl.ChangeColumnTypes other = (io.greptime.v1.Ddl.ChangeColumnTypes) obj; - if (!getNewTableName() - .equals(other.getNewTableName())) return false; + if (!getChangeColumnTypesList() + .equals(other.getChangeColumnTypesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -15127,76 +15379,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NEW_TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getNewTableName().hashCode(); + if (getChangeColumnTypesCount() > 0) { + hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getChangeColumnTypesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnTypes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RenameTable parseDelimitedFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnTypes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -15209,7 +15463,7 @@ public static io.greptime.v1.Ddl.RenameTable parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.RenameTable prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ChangeColumnTypes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -15225,26 +15479,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.RenameTable} + * Protobuf type {@code greptime.v1.ChangeColumnTypes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.RenameTable) - io.greptime.v1.Ddl.RenameTableOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnTypes) + io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + io.greptime.v1.Ddl.ChangeColumnTypes.class, io.greptime.v1.Ddl.ChangeColumnTypes.Builder.class); } - // Construct using io.greptime.v1.Ddl.RenameTable.newBuilder() + // Construct using io.greptime.v1.Ddl.ChangeColumnTypes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -15257,30 +15511,35 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getChangeColumnTypesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - newTableName_ = ""; - + if (changeColumnTypesBuilder_ == null) { + changeColumnTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changeColumnTypesBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnTypes_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { - return io.greptime.v1.Ddl.RenameTable.getDefaultInstance(); + public io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable build() { - io.greptime.v1.Ddl.RenameTable result = buildPartial(); + public io.greptime.v1.Ddl.ChangeColumnTypes build() { + io.greptime.v1.Ddl.ChangeColumnTypes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15288,9 +15547,18 @@ public io.greptime.v1.Ddl.RenameTable build() { } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable buildPartial() { - io.greptime.v1.Ddl.RenameTable result = new io.greptime.v1.Ddl.RenameTable(this); - result.newTableName_ = newTableName_; + public io.greptime.v1.Ddl.ChangeColumnTypes buildPartial() { + io.greptime.v1.Ddl.ChangeColumnTypes result = new io.greptime.v1.Ddl.ChangeColumnTypes(this); + int from_bitField0_ = bitField0_; + if (changeColumnTypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changeColumnTypes_ = java.util.Collections.unmodifiableList(changeColumnTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changeColumnTypes_ = changeColumnTypes_; + } else { + result.changeColumnTypes_ = changeColumnTypesBuilder_.build(); + } onBuilt(); return result; } @@ -15329,19 +15597,1440 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.RenameTable) { - return mergeFrom((io.greptime.v1.Ddl.RenameTable)other); + if (other instanceof io.greptime.v1.Ddl.ChangeColumnTypes) { + return mergeFrom((io.greptime.v1.Ddl.ChangeColumnTypes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.RenameTable other) { - if (other == io.greptime.v1.Ddl.RenameTable.getDefaultInstance()) return this; - if (!other.getNewTableName().isEmpty()) { - newTableName_ = other.newTableName_; + 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_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.addAll(other.changeColumnTypes_); + } + onChanged(); + } + } else { + if (!other.changeColumnTypes_.isEmpty()) { + if (changeColumnTypesBuilder_.isEmpty()) { + changeColumnTypesBuilder_.dispose(); + changeColumnTypesBuilder_ = null; + changeColumnTypes_ = other.changeColumnTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + changeColumnTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChangeColumnTypesFieldBuilder() : null; + } else { + changeColumnTypesBuilder_.addAllMessages(other.changeColumnTypes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.ChangeColumnTypes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.ChangeColumnTypes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List changeColumnTypes_ = + java.util.Collections.emptyList(); + private void ensureChangeColumnTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changeColumnTypes_ = new java.util.ArrayList(changeColumnTypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.ChangeColumnType, io.greptime.v1.Ddl.ChangeColumnType.Builder, io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder> changeColumnTypesBuilder_; + + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public java.util.List getChangeColumnTypesList() { + if (changeColumnTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeColumnTypes_); + } else { + return changeColumnTypesBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public int getChangeColumnTypesCount() { + if (changeColumnTypesBuilder_ == null) { + return changeColumnTypes_.size(); + } else { + return changeColumnTypesBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public io.greptime.v1.Ddl.ChangeColumnType getChangeColumnTypes(int index) { + if (changeColumnTypesBuilder_ == null) { + return changeColumnTypes_.get(index); + } else { + return changeColumnTypesBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder setChangeColumnTypes( + int index, io.greptime.v1.Ddl.ChangeColumnType value) { + if (changeColumnTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.set(index, value); + onChanged(); + } else { + changeColumnTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder setChangeColumnTypes( + int index, io.greptime.v1.Ddl.ChangeColumnType.Builder builderForValue) { + if (changeColumnTypesBuilder_ == null) { + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + changeColumnTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder addChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnType value) { + if (changeColumnTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.add(value); + onChanged(); + } else { + changeColumnTypesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder addChangeColumnTypes( + int index, io.greptime.v1.Ddl.ChangeColumnType value) { + if (changeColumnTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.add(index, value); + onChanged(); + } else { + changeColumnTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder addChangeColumnTypes( + io.greptime.v1.Ddl.ChangeColumnType.Builder builderForValue) { + if (changeColumnTypesBuilder_ == null) { + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.add(builderForValue.build()); + onChanged(); + } else { + changeColumnTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder addChangeColumnTypes( + int index, io.greptime.v1.Ddl.ChangeColumnType.Builder builderForValue) { + if (changeColumnTypesBuilder_ == null) { + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + changeColumnTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder addAllChangeColumnTypes( + java.lang.Iterable values) { + if (changeColumnTypesBuilder_ == null) { + ensureChangeColumnTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, changeColumnTypes_); + onChanged(); + } else { + changeColumnTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder clearChangeColumnTypes() { + if (changeColumnTypesBuilder_ == null) { + changeColumnTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); + } else { + changeColumnTypesBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public Builder removeChangeColumnTypes(int index) { + if (changeColumnTypesBuilder_ == null) { + ensureChangeColumnTypesIsMutable(); + changeColumnTypes_.remove(index); + onChanged(); + } else { + changeColumnTypesBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public io.greptime.v1.Ddl.ChangeColumnType.Builder getChangeColumnTypesBuilder( + int index) { + return getChangeColumnTypesFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder getChangeColumnTypesOrBuilder( + int index) { + if (changeColumnTypesBuilder_ == null) { + return changeColumnTypes_.get(index); } else { + return changeColumnTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public java.util.List + getChangeColumnTypesOrBuilderList() { + if (changeColumnTypesBuilder_ != null) { + return changeColumnTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changeColumnTypes_); + } + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public io.greptime.v1.Ddl.ChangeColumnType.Builder addChangeColumnTypesBuilder() { + return getChangeColumnTypesFieldBuilder().addBuilder( + io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public io.greptime.v1.Ddl.ChangeColumnType.Builder addChangeColumnTypesBuilder( + int index) { + return getChangeColumnTypesFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ChangeColumnType change_column_types = 1; + */ + public java.util.List + getChangeColumnTypesBuilderList() { + return getChangeColumnTypesFieldBuilder().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_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + changeColumnTypes_ = null; + } + return changeColumnTypesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnTypes) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnTypes) + private static final io.greptime.v1.Ddl.ChangeColumnTypes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnTypes(); + } + + public static io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeColumnTypes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeColumnTypes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RenameTableOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.RenameTable) + com.google.protobuf.MessageOrBuilder { + + /** + * string new_table_name = 1; + * @return The newTableName. + */ + java.lang.String getNewTableName(); + /** + * string new_table_name = 1; + * @return The bytes for newTableName. + */ + com.google.protobuf.ByteString + getNewTableNameBytes(); + } + /** + * Protobuf type {@code greptime.v1.RenameTable} + */ + public static final class RenameTable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.RenameTable) + RenameTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use RenameTable.newBuilder() to construct. + private RenameTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RenameTable() { + newTableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RenameTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RenameTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + newTableName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + } + + public static final int NEW_TABLE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object newTableName_; + /** + * string new_table_name = 1; + * @return The newTableName. + */ + @java.lang.Override + public java.lang.String getNewTableName() { + java.lang.Object ref = newTableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newTableName_ = s; + return s; + } + } + /** + * string new_table_name = 1; + * @return The bytes for newTableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNewTableNameBytes() { + java.lang.Object ref = newTableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newTableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, newTableName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, newTableName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.RenameTable)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.RenameTable other = (io.greptime.v1.Ddl.RenameTable) obj; + + if (!getNewTableName() + .equals(other.getNewTableName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEW_TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNewTableName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.RenameTable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.RenameTable 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.RenameTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.RenameTable 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.RenameTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.RenameTable 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.RenameTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.RenameTable 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.RenameTable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.RenameTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.RenameTable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.RenameTable) + io.greptime.v1.Ddl.RenameTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.RenameTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + newTableName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { + return io.greptime.v1.Ddl.RenameTable.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable build() { + io.greptime.v1.Ddl.RenameTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable buildPartial() { + io.greptime.v1.Ddl.RenameTable result = new io.greptime.v1.Ddl.RenameTable(this); + result.newTableName_ = newTableName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.RenameTable) { + return mergeFrom((io.greptime.v1.Ddl.RenameTable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.RenameTable other) { + if (other == io.greptime.v1.Ddl.RenameTable.getDefaultInstance()) return this; + if (!other.getNewTableName().isEmpty()) { + newTableName_ = other.newTableName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.RenameTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.RenameTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object newTableName_ = ""; + /** + * string new_table_name = 1; + * @return The newTableName. + */ + public java.lang.String getNewTableName() { + java.lang.Object ref = newTableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newTableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string new_table_name = 1; + * @return The bytes for newTableName. + */ + public com.google.protobuf.ByteString + getNewTableNameBytes() { + java.lang.Object ref = newTableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newTableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string new_table_name = 1; + * @param value The newTableName to set. + * @return This builder for chaining. + */ + public Builder setNewTableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + newTableName_ = value; + onChanged(); + return this; + } + /** + * string new_table_name = 1; + * @return This builder for chaining. + */ + public Builder clearNewTableName() { + + newTableName_ = getDefaultInstance().getNewTableName(); + onChanged(); + return this; + } + /** + * string new_table_name = 1; + * @param value The bytes for newTableName to set. + * @return This builder for chaining. + */ + public Builder setNewTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + newTableName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.RenameTable) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.RenameTable) + private static final io.greptime.v1.Ddl.RenameTable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.RenameTable(); + } + + public static io.greptime.v1.Ddl.RenameTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RenameTable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.AddColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return Whether the columnDef field is set. + */ + boolean hasColumnDef(); + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return The columnDef. + */ + io.greptime.v1.Ddl.ColumnDef getColumnDef(); + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder(); + + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return Whether the location field is set. + */ + boolean hasLocation(); + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return The location. + */ + io.greptime.v1.Ddl.AddColumnLocation getLocation(); + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.AddColumn} + */ + public static final class AddColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.AddColumn) + AddColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddColumn.newBuilder() to construct. + private AddColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddColumn() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AddColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.greptime.v1.Ddl.ColumnDef.Builder subBuilder = null; + if (columnDef_ != null) { + subBuilder = columnDef_.toBuilder(); + } + columnDef_ = input.readMessage(io.greptime.v1.Ddl.ColumnDef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(columnDef_); + columnDef_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + io.greptime.v1.Ddl.AddColumnLocation.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(io.greptime.v1.Ddl.AddColumnLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + } + + public static final int COLUMN_DEF_FIELD_NUMBER = 1; + private io.greptime.v1.Ddl.ColumnDef columnDef_; + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return Whether the columnDef field is set. + */ + @java.lang.Override + public boolean hasColumnDef() { + return columnDef_ != null; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return The columnDef. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ColumnDef getColumnDef() { + return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { + return getColumnDef(); + } + + public static final int LOCATION_FIELD_NUMBER = 3; + private io.greptime.v1.Ddl.AddColumnLocation location_; + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return Whether the location field is set. + */ + @java.lang.Override + public boolean hasLocation() { + return location_ != null; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return The location. + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddColumnLocation getLocation() { + return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { + return getLocation(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (columnDef_ != null) { + output.writeMessage(1, getColumnDef()); + } + if (location_ != null) { + output.writeMessage(3, getLocation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (columnDef_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColumnDef()); + } + if (location_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLocation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.AddColumn)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.AddColumn other = (io.greptime.v1.Ddl.AddColumn) obj; + + if (hasColumnDef() != other.hasColumnDef()) return false; + if (hasColumnDef()) { + if (!getColumnDef() + .equals(other.getColumnDef())) return false; + } + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation() + .equals(other.getLocation())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasColumnDef()) { + hash = (37 * hash) + COLUMN_DEF_FIELD_NUMBER; + hash = (53 * hash) + getColumnDef().hashCode(); + } + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.AddColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.AddColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.AddColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.AddColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.AddColumn) + io.greptime.v1.Ddl.AddColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.AddColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnDefBuilder_ == null) { + columnDef_ = null; + } else { + columnDef_ = null; + columnDefBuilder_ = null; + } + if (locationBuilder_ == null) { + location_ = null; + } else { + location_ = null; + locationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { + return io.greptime.v1.Ddl.AddColumn.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.AddColumn build() { + io.greptime.v1.Ddl.AddColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.AddColumn buildPartial() { + io.greptime.v1.Ddl.AddColumn result = new io.greptime.v1.Ddl.AddColumn(this); + if (columnDefBuilder_ == null) { + result.columnDef_ = columnDef_; + } else { + result.columnDef_ = columnDefBuilder_.build(); + } + if (locationBuilder_ == null) { + result.location_ = location_; + } else { + result.location_ = locationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.AddColumn) { + return mergeFrom((io.greptime.v1.Ddl.AddColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.AddColumn other) { + if (other == io.greptime.v1.Ddl.AddColumn.getDefaultInstance()) return this; + if (other.hasColumnDef()) { + mergeColumnDef(other.getColumnDef()); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -15358,11 +17047,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.RenameTable parsedMessage = null; + io.greptime.v1.Ddl.AddColumn parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.RenameTable) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.AddColumn) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -15372,80 +17061,242 @@ public Builder mergeFrom( return this; } - private java.lang.Object newTableName_ = ""; + private io.greptime.v1.Ddl.ColumnDef columnDef_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> columnDefBuilder_; /** - * string new_table_name = 1; - * @return The newTableName. + * .greptime.v1.ColumnDef column_def = 1; + * @return Whether the columnDef field is set. */ - public java.lang.String getNewTableName() { - java.lang.Object ref = newTableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTableName_ = s; - return s; + public boolean hasColumnDef() { + return columnDefBuilder_ != null || columnDef_ != null; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return The columnDef. + */ + public io.greptime.v1.Ddl.ColumnDef getColumnDef() { + if (columnDefBuilder_ == null) { + return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; } else { - return (java.lang.String) ref; + return columnDefBuilder_.getMessage(); } } /** - * string new_table_name = 1; - * @return The bytes for newTableName. + * .greptime.v1.ColumnDef column_def = 1; */ - public com.google.protobuf.ByteString - getNewTableNameBytes() { - java.lang.Object ref = newTableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newTableName_ = b; - return b; + public Builder setColumnDef(io.greptime.v1.Ddl.ColumnDef value) { + if (columnDefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + columnDef_ = value; + onChanged(); + } else { + columnDefBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public Builder setColumnDef( + io.greptime.v1.Ddl.ColumnDef.Builder builderForValue) { + if (columnDefBuilder_ == null) { + columnDef_ = builderForValue.build(); + onChanged(); + } else { + columnDefBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public Builder mergeColumnDef(io.greptime.v1.Ddl.ColumnDef value) { + if (columnDefBuilder_ == null) { + if (columnDef_ != null) { + columnDef_ = + io.greptime.v1.Ddl.ColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial(); + } else { + columnDef_ = value; + } + onChanged(); + } else { + columnDefBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public Builder clearColumnDef() { + if (columnDefBuilder_ == null) { + columnDef_ = null; + onChanged(); + } else { + columnDef_ = null; + columnDefBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public io.greptime.v1.Ddl.ColumnDef.Builder getColumnDefBuilder() { + + onChanged(); + return getColumnDefFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { + if (columnDefBuilder_ != null) { + return columnDefBuilder_.getMessageOrBuilder(); + } else { + return columnDef_ == null ? + io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + } + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> + getColumnDefFieldBuilder() { + if (columnDefBuilder_ == null) { + columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder>( + getColumnDef(), + getParentForChildren(), + isClean()); + columnDef_ = null; + } + return columnDefBuilder_; + } + + private io.greptime.v1.Ddl.AddColumnLocation location_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> locationBuilder_; + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return Whether the location field is set. + */ + public boolean hasLocation() { + return locationBuilder_ != null || location_ != null; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return The location. + */ + public io.greptime.v1.Ddl.AddColumnLocation getLocation() { + if (locationBuilder_ == null) { + return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public Builder setLocation(io.greptime.v1.Ddl.AddColumnLocation value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public Builder setLocation( + io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) { + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + locationBuilder_.mergeFrom(value); } + + return this; } /** - * string new_table_name = 1; - * @param value The newTableName to set. - * @return This builder for chaining. + * .greptime.v1.AddColumnLocation location = 3; */ - public Builder setNewTableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - newTableName_ = value; - onChanged(); + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + return this; } /** - * string new_table_name = 1; - * @return This builder for chaining. + * .greptime.v1.AddColumnLocation location = 3; */ - public Builder clearNewTableName() { + public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() { - newTableName_ = getDefaultInstance().getNewTableName(); onChanged(); - return this; + return getLocationFieldBuilder().getBuilder(); } /** - * string new_table_name = 1; - * @param value The bytes for newTableName to set. - * @return This builder for chaining. + * .greptime.v1.AddColumnLocation location = 3; */ - public Builder setNewTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - newTableName_ = value; - onChanged(); - return this; + public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + } + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -15460,100 +17311,110 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.RenameTable) + // @@protoc_insertion_point(builder_scope:greptime.v1.AddColumn) } - // @@protoc_insertion_point(class_scope:greptime.v1.RenameTable) - private static final io.greptime.v1.Ddl.RenameTable DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.AddColumn) + private static final io.greptime.v1.Ddl.AddColumn DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.RenameTable(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddColumn(); } - public static io.greptime.v1.Ddl.RenameTable getDefaultInstance() { + public static io.greptime.v1.Ddl.AddColumn getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public RenameTable parsePartialFrom( + public AddColumn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RenameTable(input, extensionRegistry); + return new AddColumn(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { + public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AddColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.AddColumn) + public interface ChangeColumnTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnType) com.google.protobuf.MessageOrBuilder { /** - * .greptime.v1.ColumnDef column_def = 1; - * @return Whether the columnDef field is set. + * string column_name = 1; + * @return The columnName. */ - boolean hasColumnDef(); + java.lang.String getColumnName(); /** - * .greptime.v1.ColumnDef column_def = 1; - * @return The columnDef. + * string column_name = 1; + * @return The bytes for columnName. */ - io.greptime.v1.Ddl.ColumnDef getColumnDef(); + com.google.protobuf.ByteString + getColumnNameBytes(); + /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. */ - io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder(); + int getTargetTypeValue(); + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. + */ + io.greptime.v1.Common.ColumnDataType getTargetType(); /** - * .greptime.v1.AddColumnLocation location = 3; - * @return Whether the location field is set. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ - boolean hasLocation(); + boolean hasTargetTypeExtension(); /** - * .greptime.v1.AddColumnLocation location = 3; - * @return The location. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ - io.greptime.v1.Ddl.AddColumnLocation getLocation(); + io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension(); /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder(); + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder(); } /** - * Protobuf type {@code greptime.v1.AddColumn} + * Protobuf type {@code greptime.v1.ChangeColumnType} */ - public static final class AddColumn extends + public static final class ChangeColumnType extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.AddColumn) - AddColumnOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnType) + ChangeColumnTypeOrBuilder { private static final long serialVersionUID = 0L; - // Use AddColumn.newBuilder() to construct. - private AddColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChangeColumnType.newBuilder() to construct. + private ChangeColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddColumn() { + private ChangeColumnType() { + columnName_ = ""; + targetType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new AddColumn(); + return new ChangeColumnType(); } @java.lang.Override @@ -15561,7 +17422,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private AddColumn( + private ChangeColumnType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15580,27 +17441,26 @@ private AddColumn( done = true; break; case 10: { - io.greptime.v1.Ddl.ColumnDef.Builder subBuilder = null; - if (columnDef_ != null) { - subBuilder = columnDef_.toBuilder(); - } - columnDef_ = input.readMessage(io.greptime.v1.Ddl.ColumnDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(columnDef_); - columnDef_ = subBuilder.buildPartial(); - } + java.lang.String s = input.readStringRequireUtf8(); + + columnName_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + targetType_ = rawValue; break; } case 26: { - io.greptime.v1.Ddl.AddColumnLocation.Builder subBuilder = null; - if (location_ != null) { - subBuilder = location_.toBuilder(); + io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; + if (targetTypeExtension_ != null) { + subBuilder = targetTypeExtension_.toBuilder(); } - location_ = input.readMessage(io.greptime.v1.Ddl.AddColumnLocation.parser(), extensionRegistry); + targetTypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(location_); - location_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(targetTypeExtension_); + targetTypeExtension_ = subBuilder.buildPartial(); } break; @@ -15628,67 +17488,98 @@ private AddColumn( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); } - public static final int COLUMN_DEF_FIELD_NUMBER = 1; - private io.greptime.v1.Ddl.ColumnDef columnDef_; + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnName_; /** - * .greptime.v1.ColumnDef column_def = 1; - * @return Whether the columnDef field is set. + * string column_name = 1; + * @return The columnName. */ @java.lang.Override - public boolean hasColumnDef() { - return columnDef_ != null; + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } } /** - * .greptime.v1.ColumnDef column_def = 1; - * @return The columnDef. + * string column_name = 1; + * @return The bytes for columnName. */ @java.lang.Override - public io.greptime.v1.Ddl.ColumnDef getColumnDef() { - return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int TARGET_TYPE_FIELD_NUMBER = 2; + private int targetType_; /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. */ - @java.lang.Override - public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { - return getColumnDef(); + @java.lang.Override public int getTargetTypeValue() { + return targetType_; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. + */ + @java.lang.Override public io.greptime.v1.Common.ColumnDataType getTargetType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; } - public static final int LOCATION_FIELD_NUMBER = 3; - private io.greptime.v1.Ddl.AddColumnLocation location_; + public static final int TARGET_TYPE_EXTENSION_FIELD_NUMBER = 3; + private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; /** - * .greptime.v1.AddColumnLocation location = 3; - * @return Whether the location field is set. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ @java.lang.Override - public boolean hasLocation() { - return location_ != null; + public boolean hasTargetTypeExtension() { + return targetTypeExtension_ != null; } /** - * .greptime.v1.AddColumnLocation location = 3; - * @return The location. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ @java.lang.Override - public io.greptime.v1.Ddl.AddColumnLocation getLocation() { - return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { + return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ @java.lang.Override - public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { - return getLocation(); + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { + return getTargetTypeExtension(); } private byte memoizedIsInitialized = -1; @@ -15705,11 +17596,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (columnDef_ != null) { - output.writeMessage(1, getColumnDef()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } - if (location_ != null) { - output.writeMessage(3, getLocation()); + if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + output.writeEnum(2, targetType_); + } + if (targetTypeExtension_ != null) { + output.writeMessage(3, getTargetTypeExtension()); } unknownFields.writeTo(output); } @@ -15720,13 +17614,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (columnDef_ != null) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); + } + if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColumnDef()); + .computeEnumSize(2, targetType_); } - if (location_ != null) { + if (targetTypeExtension_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLocation()); + .computeMessageSize(3, getTargetTypeExtension()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -15738,20 +17635,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.AddColumn)) { + if (!(obj instanceof io.greptime.v1.Ddl.ChangeColumnType)) { return super.equals(obj); } - io.greptime.v1.Ddl.AddColumn other = (io.greptime.v1.Ddl.AddColumn) obj; + io.greptime.v1.Ddl.ChangeColumnType other = (io.greptime.v1.Ddl.ChangeColumnType) obj; - if (hasColumnDef() != other.hasColumnDef()) return false; - if (hasColumnDef()) { - if (!getColumnDef() - .equals(other.getColumnDef())) return false; - } - if (hasLocation() != other.hasLocation()) return false; - if (hasLocation()) { - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (targetType_ != other.targetType_) return false; + if (hasTargetTypeExtension() != other.hasTargetTypeExtension()) return false; + if (hasTargetTypeExtension()) { + if (!getTargetTypeExtension() + .equals(other.getTargetTypeExtension())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -15764,82 +17659,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasColumnDef()) { - hash = (37 * hash) + COLUMN_DEF_FIELD_NUMBER; - hash = (53 * hash) + getColumnDef().hashCode(); - } - if (hasLocation()) { - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + targetType_; + if (hasTargetTypeExtension()) { + hash = (37 * hash) + TARGET_TYPE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getTargetTypeExtension().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType 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.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType 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.AddColumn parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddColumn parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType 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.AddColumn parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddColumn parseDelimitedFrom( + public static io.greptime.v1.Ddl.ChangeColumnType 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.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -15852,7 +17747,7 @@ public static io.greptime.v1.Ddl.AddColumn parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.AddColumn prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ChangeColumnType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -15868,26 +17763,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.AddColumn} + * Protobuf type {@code greptime.v1.ChangeColumnType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.AddColumn) - io.greptime.v1.Ddl.AddColumnOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnType) + io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); } - // Construct using io.greptime.v1.Ddl.AddColumn.newBuilder() + // Construct using io.greptime.v1.Ddl.ChangeColumnType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -15905,17 +17800,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (columnDefBuilder_ == null) { - columnDef_ = null; - } else { - columnDef_ = null; - columnDefBuilder_ = null; - } - if (locationBuilder_ == null) { - location_ = null; + columnName_ = ""; + + targetType_ = 0; + + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = null; } else { - location_ = null; - locationBuilder_ = null; + targetTypeExtension_ = null; + targetTypeExtensionBuilder_ = null; } return this; } @@ -15923,17 +17816,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { - return io.greptime.v1.Ddl.AddColumn.getDefaultInstance(); + public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.AddColumn build() { - io.greptime.v1.Ddl.AddColumn result = buildPartial(); + public io.greptime.v1.Ddl.ChangeColumnType build() { + io.greptime.v1.Ddl.ChangeColumnType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15941,17 +17834,14 @@ public io.greptime.v1.Ddl.AddColumn build() { } @java.lang.Override - public io.greptime.v1.Ddl.AddColumn buildPartial() { - io.greptime.v1.Ddl.AddColumn result = new io.greptime.v1.Ddl.AddColumn(this); - if (columnDefBuilder_ == null) { - result.columnDef_ = columnDef_; - } else { - result.columnDef_ = columnDefBuilder_.build(); - } - if (locationBuilder_ == null) { - result.location_ = location_; + public io.greptime.v1.Ddl.ChangeColumnType buildPartial() { + io.greptime.v1.Ddl.ChangeColumnType result = new io.greptime.v1.Ddl.ChangeColumnType(this); + result.columnName_ = columnName_; + result.targetType_ = targetType_; + if (targetTypeExtensionBuilder_ == null) { + result.targetTypeExtension_ = targetTypeExtension_; } else { - result.location_ = locationBuilder_.build(); + result.targetTypeExtension_ = targetTypeExtensionBuilder_.build(); } onBuilt(); return result; @@ -15991,21 +17881,25 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.AddColumn) { - return mergeFrom((io.greptime.v1.Ddl.AddColumn)other); + if (other instanceof io.greptime.v1.Ddl.ChangeColumnType) { + return mergeFrom((io.greptime.v1.Ddl.ChangeColumnType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.AddColumn other) { - if (other == io.greptime.v1.Ddl.AddColumn.getDefaultInstance()) return this; - if (other.hasColumnDef()) { - mergeColumnDef(other.getColumnDef()); + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnType other) { + if (other == io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); } - if (other.hasLocation()) { - mergeLocation(other.getLocation()); + if (other.targetType_ != 0) { + setTargetTypeValue(other.getTargetTypeValue()); + } + if (other.hasTargetTypeExtension()) { + mergeTargetTypeExtension(other.getTargetTypeExtension()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -16022,11 +17916,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.AddColumn parsedMessage = null; + io.greptime.v1.Ddl.ChangeColumnType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.AddColumn) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.ChangeColumnType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -16036,242 +17930,253 @@ public Builder mergeFrom( return this; } - private io.greptime.v1.Ddl.ColumnDef columnDef_; - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> columnDefBuilder_; + private java.lang.Object columnName_ = ""; /** - * .greptime.v1.ColumnDef column_def = 1; - * @return Whether the columnDef field is set. + * string column_name = 1; + * @return The columnName. */ - public boolean hasColumnDef() { - return columnDefBuilder_ != null || columnDef_ != null; + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * .greptime.v1.ColumnDef column_def = 1; - * @return The columnDef. + * string column_name = 1; + * @return The bytes for columnName. */ - public io.greptime.v1.Ddl.ColumnDef getColumnDef() { - if (columnDefBuilder_ == null) { - return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; } else { - return columnDefBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } /** - * .greptime.v1.ColumnDef column_def = 1; + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. */ - public Builder setColumnDef(io.greptime.v1.Ddl.ColumnDef value) { - if (columnDefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - columnDef_ = value; - onChanged(); - } else { - columnDefBuilder_.setMessage(value); - } - + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); return this; } /** - * .greptime.v1.ColumnDef column_def = 1; + * string column_name = 1; + * @return This builder for chaining. */ - public Builder setColumnDef( - io.greptime.v1.Ddl.ColumnDef.Builder builderForValue) { - if (columnDefBuilder_ == null) { - columnDef_ = builderForValue.build(); - onChanged(); - } else { - columnDefBuilder_.setMessage(builderForValue.build()); - } - + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); return this; } /** - * .greptime.v1.ColumnDef column_def = 1; + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. */ - public Builder mergeColumnDef(io.greptime.v1.Ddl.ColumnDef value) { - if (columnDefBuilder_ == null) { - if (columnDef_ != null) { - columnDef_ = - io.greptime.v1.Ddl.ColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial(); - } else { - columnDef_ = value; - } - onChanged(); - } else { - columnDefBuilder_.mergeFrom(value); - } - + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + onChanged(); return this; } + + private int targetType_ = 0; /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. */ - public Builder clearColumnDef() { - if (columnDefBuilder_ == null) { - columnDef_ = null; - onChanged(); - } else { - columnDef_ = null; - columnDefBuilder_ = null; - } - - return this; + @java.lang.Override public int getTargetTypeValue() { + return targetType_; } /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @param value The enum numeric value on the wire for targetType to set. + * @return This builder for chaining. */ - public io.greptime.v1.Ddl.ColumnDef.Builder getColumnDefBuilder() { + public Builder setTargetTypeValue(int value) { + targetType_ = value; onChanged(); - return getColumnDefFieldBuilder().getBuilder(); + return this; } /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. */ - public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { - if (columnDefBuilder_ != null) { - return columnDefBuilder_.getMessageOrBuilder(); - } else { - return columnDef_ == null ? - io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; - } + @java.lang.Override + public io.greptime.v1.Common.ColumnDataType getTargetType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; } /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @param value The targetType to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> - getColumnDefFieldBuilder() { - if (columnDefBuilder_ == null) { - columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder>( - getColumnDef(), - getParentForChildren(), - isClean()); - columnDef_ = null; + public Builder setTargetType(io.greptime.v1.Common.ColumnDataType value) { + if (value == null) { + throw new NullPointerException(); } - return columnDefBuilder_; + + targetType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return This builder for chaining. + */ + public Builder clearTargetType() { + + targetType_ = 0; + onChanged(); + return this; } - private io.greptime.v1.Ddl.AddColumnLocation location_; + private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> locationBuilder_; + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> targetTypeExtensionBuilder_; /** - * .greptime.v1.AddColumnLocation location = 3; - * @return Whether the location field is set. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ - public boolean hasLocation() { - return locationBuilder_ != null || location_ != null; + public boolean hasTargetTypeExtension() { + return targetTypeExtensionBuilder_ != null || targetTypeExtension_ != null; } /** - * .greptime.v1.AddColumnLocation location = 3; - * @return The location. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ - public io.greptime.v1.Ddl.AddColumnLocation getLocation() { - if (locationBuilder_ == null) { - return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { + if (targetTypeExtensionBuilder_ == null) { + return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; } else { - return locationBuilder_.getMessage(); + return targetTypeExtensionBuilder_.getMessage(); } } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder setLocation(io.greptime.v1.Ddl.AddColumnLocation value) { - if (locationBuilder_ == null) { + public Builder setTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (targetTypeExtensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - location_ = value; + targetTypeExtension_ = value; onChanged(); } else { - locationBuilder_.setMessage(value); + targetTypeExtensionBuilder_.setMessage(value); } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder setLocation( - io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) { - if (locationBuilder_ == null) { - location_ = builderForValue.build(); + public Builder setTargetTypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = builderForValue.build(); onChanged(); } else { - locationBuilder_.setMessage(builderForValue.build()); + targetTypeExtensionBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) { - if (locationBuilder_ == null) { - if (location_ != null) { - location_ = - io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + public Builder mergeTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (targetTypeExtensionBuilder_ == null) { + if (targetTypeExtension_ != null) { + targetTypeExtension_ = + io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(targetTypeExtension_).mergeFrom(value).buildPartial(); } else { - location_ = value; + targetTypeExtension_ = value; } onChanged(); } else { - locationBuilder_.mergeFrom(value); + targetTypeExtensionBuilder_.mergeFrom(value); } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - location_ = null; + public Builder clearTargetTypeExtension() { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = null; onChanged(); } else { - location_ = null; - locationBuilder_ = null; + targetTypeExtension_ = null; + targetTypeExtensionBuilder_ = null; } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() { + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getTargetTypeExtensionBuilder() { onChanged(); - return getLocationFieldBuilder().getBuilder(); + return getTargetTypeExtensionFieldBuilder().getBuilder(); } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { + if (targetTypeExtensionBuilder_ != null) { + return targetTypeExtensionBuilder_.getMessageOrBuilder(); } else { - return location_ == null ? - io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + return targetTypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; } } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>( - getLocation(), + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> + getTargetTypeExtensionFieldBuilder() { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( + getTargetTypeExtension(), getParentForChildren(), isClean()); - location_ = null; + targetTypeExtension_ = null; } - return locationBuilder_; + return targetTypeExtensionBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -16286,41 +18191,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.AddColumn) + // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnType) } - // @@protoc_insertion_point(class_scope:greptime.v1.AddColumn) - private static final io.greptime.v1.Ddl.AddColumn DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) + private static final io.greptime.v1.Ddl.ChangeColumnType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddColumn(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnType(); } - public static io.greptime.v1.Ddl.AddColumn getDefaultInstance() { + public static io.greptime.v1.Ddl.ChangeColumnType 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 AddColumn parsePartialFrom( + public ChangeColumnType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddColumn(input, extensionRegistry); + return new ChangeColumnType(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.AddColumn getDefaultInstanceForType() { + public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -19583,6 +21488,11 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { private static final 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; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RenameTable_descriptor; private static final @@ -19593,6 +21503,11 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { private static final 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; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_DropColumn_descriptor; private static final @@ -19654,48 +21569,55 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { "ptime.v1.CreateTableExpr.TableOptionsEnt" + "ry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Table" + "Id\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlte" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\245\002\n\tAlte" + "rExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" + "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_colu" + "mns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014" + "drop_columns\030\005 \001(\0132\030.greptime.v1.DropCol" + "umnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime." + - "v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableEx" + - "pr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030" + - "\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 " + - "\001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exi" + - "sts\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014cata" + - "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024c" + - "reate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003" + - "(\0132,.greptime.v1.CreateDatabaseExpr.Opti" + - "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n" + - "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + - "\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024" + - ".greptime.v1.TableId\"U\n\020DropDatabaseExpr" + - "\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 " + - "\001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumn" + - "s\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.Add" + - "Column\"<\n\013DropColumns\022-\n\014drop_columns\030\001 " + - "\003(\0132\027.greptime.v1.DropColumn\"%\n\013RenameTa" + - "ble\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn" + - "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" + - "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" + - "ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001" + - "(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022" + - "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept" + - "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001" + - "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant" + - "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType" + - "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030" + - "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens" + - "ion\"\230\001\n\021AddColumnLocation\022B\n\rlocation_ty" + - "pe\030\001 \001(\0162+.greptime.v1.AddColumnLocation" + - ".LocationType\022\031\n\021after_column_name\030\002 \001(\t" + - "\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL" + - "\n\016io.greptime.v1B\003DdlZ5github.com/Grepti" + - "meTeam/greptime-proto/go/greptime/v1b\006pr" + - "oto3" + "v1.RenameTableH\000\022=\n\023change_column_types\030" + + "\007 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000B" + + "\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014catalog_nam" + + "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_na" + + "me\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1" + + ".TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Cre" + + "ateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n" + + "\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_exis" + + "ts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1." + + "CreateDatabaseExpr.OptionsEntry\032.\n\014Optio" + + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "z\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001 \001" + + "(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 " + + "\001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Tabl" + + "eId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name\030" + + "\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_ex" + + "ists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030" + + "\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013DropCol" + + "umns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1" + + ".DropColumn\"O\n\021ChangeColumnTypes\022:\n\023chan" + + "ge_column_types\030\001 \003(\0132\035.greptime.v1.Chan" + + "geColumnType\"%\n\013RenameTable\022\026\n\016new_table" + + "_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001" + + " \001(\0132\026.greptime.v1.ColumnDef\0220\n\010location" + + "\030\003 \001(\0132\036.greptime.v1.AddColumnLocation\"\236" + + "\001\n\020ChangeColumnType\022\023\n\013column_name\030\001 \001(\t" + + "\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.Colu" + + "mnDataType\022C\n\025target_type_extension\030\003 \001(" + + "\0132$.greptime.v1.ColumnDataTypeExtension\"" + + "\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n" + + "\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022." + + "\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" + + "taType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_c" + + "onstraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031" + + ".greptime.v1.SemanticType\022\017\n\007comment\030\006 \001" + + "(\t\022@\n\022datatype_extension\030\007 \001(\0132$.greptim" + + "e.v1.ColumnDataTypeExtension\"\230\001\n\021AddColu" + + "mnLocation\022B\n\rlocation_type\030\001 \001(\0162+.grep" + + "time.v1.AddColumnLocation.LocationType\022\031" + + "\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTyp" + + "e\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v" + + "1B\003DdlZ5github.com/GreptimeTeam/greptime" + + "-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -19743,7 +21665,7 @@ public io.greptime.v1.Ddl.AddColumnLocation 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", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ChangeColumnTypes", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -19786,38 +21708,50 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumns_descriptor, new java.lang.String[] { "DropColumns", }); - internal_static_greptime_v1_RenameTable_descriptor = + internal_static_greptime_v1_ChangeColumnTypes_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ChangeColumnTypes_descriptor, + new java.lang.String[] { "ChangeColumnTypes", }); + internal_static_greptime_v1_RenameTable_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RenameTable_descriptor, new java.lang.String[] { "NewTableName", }); internal_static_greptime_v1_AddColumn_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_greptime_v1_AddColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumn_descriptor, new java.lang.String[] { "ColumnDef", "Location", }); + internal_static_greptime_v1_ChangeColumnType_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ChangeColumnType_descriptor, + new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_greptime_v1_DropColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumn_descriptor, new java.lang.String[] { "Name", }); internal_static_greptime_v1_TableId_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_TableId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TableId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDef_descriptor, new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", }); internal_static_greptime_v1_AddColumnLocation_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumnLocation_descriptor, 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 14dbcf42..e3260c3f 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16341,6 +16341,21 @@ 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. + */ + boolean hasChangeColumnTypes(); + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 5; + * @return The changeColumnTypes. + */ + io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes(); + /** + * .greptime.v1.ChangeColumnTypes change_column_types = 5; + */ + io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); + /** *
      * The version of the schema before applying the alteration.
@@ -16436,6 +16451,20 @@ private AlterRequest(
               schemaVersion_ = input.readUInt64();
               break;
             }
+            case 42: {
+              io.greptime.v1.Ddl.ChangeColumnTypes.Builder subBuilder = null;
+              if (kindCase_ == 5) {
+                subBuilder = ((io.greptime.v1.Ddl.ChangeColumnTypes) kind_).toBuilder();
+              }
+              kind_ =
+                  input.readMessage(io.greptime.v1.Ddl.ChangeColumnTypes.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
+                kind_ = subBuilder.buildPartial();
+              }
+              kindCase_ = 5;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -16477,6 +16506,7 @@ public enum KindCase
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ADD_COLUMNS(2),
       DROP_COLUMNS(3),
+      CHANGE_COLUMN_TYPES(5),
       KIND_NOT_SET(0);
       private final int value;
       private KindCase(int value) {
@@ -16496,6 +16526,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 0: return KIND_NOT_SET;
           default: return null;
         }
@@ -16584,6 +16615,37 @@ 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;
+    /**
+     * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+     * @return Whether the changeColumnTypes field is set.
+     */
+    @java.lang.Override
+    public boolean hasChangeColumnTypes() {
+      return kindCase_ == 5;
+    }
+    /**
+     * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+     * @return The changeColumnTypes.
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() {
+      if (kindCase_ == 5) {
+         return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
+      }
+      return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
+    }
+    /**
+     * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() {
+      if (kindCase_ == 5) {
+         return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
+      }
+      return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
+    }
+
     public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
     private long schemaVersion_;
     /**
@@ -16625,6 +16687,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (schemaVersion_ != 0L) {
         output.writeUInt64(4, schemaVersion_);
       }
+      if (kindCase_ == 5) {
+        output.writeMessage(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -16650,6 +16715,10 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeUInt64Size(4, schemaVersion_);
       }
+      if (kindCase_ == 5) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -16679,6 +16748,10 @@ public boolean equals(final java.lang.Object obj) {
           if (!getDropColumns()
               .equals(other.getDropColumns())) return false;
           break;
+        case 5:
+          if (!getChangeColumnTypes()
+              .equals(other.getChangeColumnTypes())) return false;
+          break;
         case 0:
         default:
       }
@@ -16708,6 +16781,10 @@ public int hashCode() {
           hash = (37 * hash) + DROP_COLUMNS_FIELD_NUMBER;
           hash = (53 * hash) + getDropColumns().hashCode();
           break;
+        case 5:
+          hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER;
+          hash = (53 * hash) + getChangeColumnTypes().hashCode();
+          break;
         case 0:
         default:
       }
@@ -16891,6 +16968,13 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() {
             result.kind_ = dropColumnsBuilder_.build();
           }
         }
+        if (kindCase_ == 5) {
+          if (changeColumnTypesBuilder_ == null) {
+            result.kind_ = kind_;
+          } else {
+            result.kind_ = changeColumnTypesBuilder_.build();
+          }
+        }
         result.schemaVersion_ = schemaVersion_;
         result.kindCase_ = kindCase_;
         onBuilt();
@@ -16956,6 +17040,10 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) {
             mergeDropColumns(other.getDropColumns());
             break;
           }
+          case CHANGE_COLUMN_TYPES: {
+            mergeChangeColumnTypes(other.getChangeColumnTypes());
+            break;
+          }
           case KIND_NOT_SET: {
             break;
           }
@@ -17319,6 +17407,148 @@ public io.greptime.v1.region.Server.DropColumnsOrBuilder getDropColumnsOrBuilder
         return dropColumnsBuilder_;
       }
 
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.ChangeColumnTypes, io.greptime.v1.Ddl.ChangeColumnTypes.Builder, io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder> changeColumnTypesBuilder_;
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       * @return Whether the changeColumnTypes field is set.
+       */
+      @java.lang.Override
+      public boolean hasChangeColumnTypes() {
+        return kindCase_ == 5;
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       * @return The changeColumnTypes.
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.ChangeColumnTypes getChangeColumnTypes() {
+        if (changeColumnTypesBuilder_ == null) {
+          if (kindCase_ == 5) {
+            return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
+          }
+          return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
+        } else {
+          if (kindCase_ == 5) {
+            return changeColumnTypesBuilder_.getMessage();
+          }
+          return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       */
+      public Builder setChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) {
+        if (changeColumnTypesBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          kind_ = value;
+          onChanged();
+        } else {
+          changeColumnTypesBuilder_.setMessage(value);
+        }
+        kindCase_ = 5;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       */
+      public Builder setChangeColumnTypes(
+          io.greptime.v1.Ddl.ChangeColumnTypes.Builder builderForValue) {
+        if (changeColumnTypesBuilder_ == null) {
+          kind_ = builderForValue.build();
+          onChanged();
+        } else {
+          changeColumnTypesBuilder_.setMessage(builderForValue.build());
+        }
+        kindCase_ = 5;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       */
+      public Builder mergeChangeColumnTypes(io.greptime.v1.Ddl.ChangeColumnTypes value) {
+        if (changeColumnTypesBuilder_ == null) {
+          if (kindCase_ == 5 &&
+              kind_ != io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.newBuilder((io.greptime.v1.Ddl.ChangeColumnTypes) kind_)
+                .mergeFrom(value).buildPartial();
+          } else {
+            kind_ = value;
+          }
+          onChanged();
+        } else {
+          if (kindCase_ == 5) {
+            changeColumnTypesBuilder_.mergeFrom(value);
+          } else {
+            changeColumnTypesBuilder_.setMessage(value);
+          }
+        }
+        kindCase_ = 5;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       */
+      public Builder clearChangeColumnTypes() {
+        if (changeColumnTypesBuilder_ == null) {
+          if (kindCase_ == 5) {
+            kindCase_ = 0;
+            kind_ = null;
+            onChanged();
+          }
+        } else {
+          if (kindCase_ == 5) {
+            kindCase_ = 0;
+            kind_ = null;
+          }
+          changeColumnTypesBuilder_.clear();
+        }
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       */
+      public io.greptime.v1.Ddl.ChangeColumnTypes.Builder getChangeColumnTypesBuilder() {
+        return getChangeColumnTypesFieldBuilder().getBuilder();
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_column_types = 5;
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder() {
+        if ((kindCase_ == 5) && (changeColumnTypesBuilder_ != null)) {
+          return changeColumnTypesBuilder_.getMessageOrBuilder();
+        } else {
+          if (kindCase_ == 5) {
+            return (io.greptime.v1.Ddl.ChangeColumnTypes) kind_;
+          }
+          return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.ChangeColumnTypes change_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) {
+          if (!(kindCase_ == 5)) {
+            kind_ = io.greptime.v1.Ddl.ChangeColumnTypes.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_,
+                  getParentForChildren(),
+                  isClean());
+          kind_ = null;
+        }
+        kindCase_ = 5;
+        onChanged();;
+        return changeColumnTypesBuilder_;
+      }
+
       private long schemaVersion_ ;
       /**
        * 
@@ -22788,29 +23018,30 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
       "ntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" +
       "ue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_i" +
       "d\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003" +
-      "(\0132 .greptime.v1.region.AlterRequest\"\261\001\n" +
+      "(\0132 .greptime.v1.region.AlterRequest\"\360\001\n" +
       "\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_" +
       "columns\030\002 \001(\0132\036.greptime.v1.region.AddCo" +
       "lumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime" +
-      ".v1.region.DropColumnsH\000\022\026\n\016schema_versi" +
-      "on\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_co" +
-      "lumns\030\001 \003(\0132\035.greptime.v1.region.AddColu" +
-      "mn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132" +
-      "\036.greptime.v1.region.DropColumn\"v\n\tAddCo" +
-      "lumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.r" +
-      "egion.RegionColumnDef\0220\n\010location\030\003 \001(\0132" +
-      "\036.greptime.v1.AddColumnLocation\"\032\n\nDropC" +
-      "olumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tr" +
-      "egion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021\n\tregi" +
-      "on_id\030\001 \001(\004\"$\n\017TruncateRequest\022\021\n\tregion" +
-      "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" +
-      "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" +
-      "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" +
-      "me.v1.region.RegionRequest\032\".greptime.v1" +
-      ".region.RegionResponseB]\n\025io.greptime.v1" +
-      ".regionB\006ServerZ