diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index e7672ccd..29c563e5 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -331,6 +331,33 @@ struct ChangeColumnTypeDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; +PROTOBUF_CONSTEXPR ChangeTableOptions::ChangeTableOptions( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.change_table_options_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ChangeTableOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeTableOptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeTableOptionsDefaultTypeInternal() {} + union { + ChangeTableOptions _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeTableOptionsDefaultTypeInternal _ChangeTableOptions_default_instance_; +PROTOBUF_CONSTEXPR ChangeTableOption::ChangeTableOption( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ChangeTableOptionDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeTableOptionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeTableOptionDefaultTypeInternal() {} + union { + ChangeTableOption _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeTableOptionDefaultTypeInternal _ChangeTableOption_default_instance_; PROTOBUF_CONSTEXPR DropColumn::DropColumn( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -406,7 +433,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[25]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[27]; 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; @@ -530,6 +557,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_), @@ -627,6 +655,21 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI 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::ChangeTableOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOptions, _impl_.change_table_options_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _impl_.value_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumn, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -680,22 +723,24 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 79, 87, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, { 89, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 106, -1, -1, sizeof(::greptime::v1::AlterExpr)}, - { 120, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 131, 139, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 141, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 151, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 161, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 170, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 177, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 184, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, - { 191, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 198, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 206, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, - { 215, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 222, -1, -1, sizeof(::greptime::v1::TableId)}, - { 229, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 236, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 250, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 121, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 132, 140, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 142, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 152, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 162, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 171, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 178, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, + { 192, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 199, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 207, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 216, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)}, + { 223, -1, -1, sizeof(::greptime::v1::ChangeTableOption)}, + { 231, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 238, -1, -1, sizeof(::greptime::v1::TableId)}, + { 245, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 252, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 266, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -719,6 +764,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, &::greptime::v1::_ChangeColumnType_default_instance_._instance, + &::greptime::v1::_ChangeTableOptions_default_instance_._instance, + &::greptime::v1::_ChangeTableOption_default_instance_._instance, &::greptime::v1::_DropColumn_default_instance_._instance, &::greptime::v1::_TableId_default_instance_._instance, &::greptime::v1::_FlowId_default_instance_._instance, @@ -773,66 +820,71 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "ime.v1.CreateTableExpr.TableOptionsEntry" "\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId" "\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\"\245\002\n\tAlterE" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\002\n\tAlterE" "xpr\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\013add_column" "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" ".RenameTableH\000\022=\n\023change_column_types\030\007 " - "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000B\006\n" - "\004kind\"\216\001\n\rDropTableExpr\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.T" - "ableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Creat" - "eDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" - "chema_name\030\002 \001(\t\022\034\n\024create_if_not_exists" - "\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1.Cr" - "eateDatabaseExpr.OptionsEntry\032.\n\014Options" - "Entry\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.TableI" - "d\"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_exis" - "ts\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 " - "\003(\0132\026.greptime.v1.AddColumn\"<\n\013DropColum" - "ns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1.D" - "ropColumn\"O\n\021ChangeColumnTypes\022:\n\023change" - "_column_types\030\001 \003(\0132\035.greptime.v1.Change" - "ColumnType\"%\n\013RenameTable\022\026\n\016new_table_n" - "ame\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.Column" - "DataType\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\002" - "id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColum" - "nDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033." - "greptime.v1.ColumnDataType\022\023\n\013is_nullabl" - "e\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rs" - "emantic_type\030\005 \001(\0162\031.greptime.v1.Semanti" - "cType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_exten" - "sion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeE" - "xtension\022+\n\007options\030\010 \001(\0132\032.greptime.v1." - "ColumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rl" - "ocation_type\030\001 \001(\0162+.greptime.v1.AddColu" - "mnLocation.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/GreptimeTeam/greptime-proto/go/grept" - "ime/v1b\006proto3" + "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022\?\n" + "\024change_table_options\030\010 \001(\0132\037.greptime.v" + "1.ChangeTableOptionsH\000B\006\n\004kind\"\216\001\n\rDropT" + "ableExpr\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_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024" + "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + "\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007optio" + "ns\030\004 \003(\0132,.greptime.v1.CreateDatabaseExp" + "r.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableE" + "xpr\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\020DropDataba" + "seExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n" + "ame\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAdd" + "Columns\022+\n\013add_columns\030\001 \003(\0132\026.greptime." + "v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_colu" + "mns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Ch" + "angeColumnTypes\022:\n\023change_column_types\030\001" + " \003(\0132\035.greptime.v1.ChangeColumnType\"%\n\013R" + "enameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAd" + "dColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v" + "1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" + ".v1.AddColumnLocation\"\236\001\n\020ChangeColumnTy" + "pe\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002" + " \001(\0162\033.greptime.v1.ColumnDataType\022C\n\025tar" + "get_type_extension\030\003 \001(\0132$.greptime.v1.C" + "olumnDataTypeExtension\"R\n\022ChangeTableOpt" + "ions\022<\n\024change_table_options\030\001 \003(\0132\036.gre" + "ptime.v1.ChangeTableOption\"/\n\021ChangeTabl" + "eOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nD" + "ropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id" + "\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnD" + "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" + "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" + "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" + "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" + "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" + "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" + "ension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Co" + "lumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rloc" + "ation_type\030\001 \001(\0162+.greptime.v1.AddColumn" + "Location.LocationType\022\031\n\021after_column_na" + "me\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005A" + "FTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github.co" + "m/GreptimeTeam/greptime-proto/go/greptim" + "e/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, 3854, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4052, 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, 25, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 27, 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, @@ -4168,6 +4220,7 @@ class AlterExpr::_Internal { static const ::greptime::v1::DropColumns& drop_columns(const AlterExpr* msg); static const ::greptime::v1::RenameTable& rename_table(const AlterExpr* msg); static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterExpr* msg); + static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterExpr* msg); }; const ::greptime::v1::AddColumns& @@ -4186,6 +4239,10 @@ const ::greptime::v1::ChangeColumnTypes& AlterExpr::_Internal::change_column_types(const AlterExpr* msg) { return *msg->_impl_.kind_.change_column_types_; } +const ::greptime::v1::ChangeTableOptions& +AlterExpr::_Internal::change_table_options(const AlterExpr* msg) { + return *msg->_impl_.kind_.change_table_options_; +} void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -4246,6 +4303,21 @@ void AlterExpr::set_allocated_change_column_types(::greptime::v1::ChangeColumnTy } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_column_types) } +void AlterExpr::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (change_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_table_options); + if (message_arena != submessage_arena) { + change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_table_options, submessage_arena); + } + set_has_change_table_options(); + _impl_.kind_.change_table_options_ = change_table_options; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_table_options) +} AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -4310,6 +4382,11 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_change_column_types()); break; } + case kChangeTableOptions: { + _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( + from._internal_change_table_options()); + break; + } case KIND_NOT_SET: { break; } @@ -4394,6 +4471,12 @@ void AlterExpr::clear_kind() { } break; } + case kChangeTableOptions: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_table_options_; + } + break; + } case KIND_NOT_SET: { break; } @@ -4483,6 +4566,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .greptime.v1.ChangeTableOptions change_table_options = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_change_table_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -4570,6 +4661,13 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } + // .greptime.v1.ChangeTableOptions change_table_options = 8; + if (_internal_has_change_table_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::change_table_options(this), + _Internal::change_table_options(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); @@ -4636,6 +4734,13 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } + // .greptime.v1.ChangeTableOptions change_table_options = 8; + case kChangeTableOptions: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.change_table_options_); + break; + } case KIND_NOT_SET: { break; } @@ -4688,6 +4793,11 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_change_column_types()); break; } + case kChangeTableOptions: { + _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( + from._internal_change_table_options()); + break; + } case KIND_NOT_SET: { break; } @@ -7380,6 +7490,444 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::GetMetadata() const { // =================================================================== +class ChangeTableOptions::_Internal { + public: +}; + +ChangeTableOptions::ChangeTableOptions(::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.ChangeTableOptions) +} +ChangeTableOptions::ChangeTableOptions(const ChangeTableOptions& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChangeTableOptions* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.change_table_options_){from._impl_.change_table_options_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeTableOptions) +} + +inline void ChangeTableOptions::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.change_table_options_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ChangeTableOptions::~ChangeTableOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.ChangeTableOptions) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChangeTableOptions::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.change_table_options_.~RepeatedPtrField(); +} + +void ChangeTableOptions::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChangeTableOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeTableOptions) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.change_table_options_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeTableOptions::_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.ChangeTableOption change_table_options = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_change_table_options(), 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* ChangeTableOptions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeTableOptions) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.ChangeTableOption change_table_options = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_change_table_options_size()); i < n; i++) { + const auto& repfield = this->_internal_change_table_options(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.ChangeTableOptions) + return target; +} + +size_t ChangeTableOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeTableOptions) + 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.ChangeTableOption change_table_options = 1; + total_size += 1UL * this->_internal_change_table_options_size(); + for (const auto& msg : this->_impl_.change_table_options_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeTableOptions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChangeTableOptions::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeTableOptions::GetClassData() const { return &_class_data_; } + + +void ChangeTableOptions::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.ChangeTableOptions) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.change_table_options_.MergeFrom(from._impl_.change_table_options_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeTableOptions::CopyFrom(const ChangeTableOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeTableOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeTableOptions::IsInitialized() const { + return true; +} + +void ChangeTableOptions::InternalSwap(ChangeTableOptions* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.change_table_options_.InternalSwap(&other->_impl_.change_table_options_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOptions::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[20]); +} + +// =================================================================== + +class ChangeTableOption::_Internal { + public: +}; + +ChangeTableOption::ChangeTableOption(::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.ChangeTableOption) +} +ChangeTableOption::ChangeTableOption(const ChangeTableOption& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChangeTableOption* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.key_){} + , decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + _this->_impl_.key_.Set(from._internal_key(), + _this->GetArenaForAllocation()); + } + _impl_.value_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.value_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_value().empty()) { + _this->_impl_.value_.Set(from._internal_value(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeTableOption) +} + +inline void ChangeTableOption::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.key_){} + , decltype(_impl_.value_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.value_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.value_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ChangeTableOption::~ChangeTableOption() { + // @@protoc_insertion_point(destructor:greptime.v1.ChangeTableOption) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChangeTableOption::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.key_.Destroy(); + _impl_.value_.Destroy(); +} + +void ChangeTableOption::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChangeTableOption::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeTableOption) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.key_.ClearToEmpty(); + _impl_.value_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeTableOption::_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 key = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeTableOption.key")); + } else + goto handle_unusual; + continue; + // string value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeTableOption.value")); + } 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* ChangeTableOption::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeTableOption) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (!this->_internal_key().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_key().data(), static_cast(this->_internal_key().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ChangeTableOption.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); + } + + // string value = 2; + if (!this->_internal_value().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_value().data(), static_cast(this->_internal_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ChangeTableOption.value"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_value(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeTableOption) + return target; +} + +size_t ChangeTableOption::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeTableOption) + 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 key = 1; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + // string value = 2; + if (!this->_internal_value().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_value()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeTableOption::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChangeTableOption::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeTableOption::GetClassData() const { return &_class_data_; } + + +void ChangeTableOption::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.ChangeTableOption) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_key().empty()) { + _this->_internal_set_key(from._internal_key()); + } + if (!from._internal_value().empty()) { + _this->_internal_set_value(from._internal_value()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeTableOption::CopyFrom(const ChangeTableOption& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeTableOption) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeTableOption::IsInitialized() const { + return true; +} + +void ChangeTableOption::InternalSwap(ChangeTableOption* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.key_, lhs_arena, + &other->_impl_.key_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.value_, lhs_arena, + &other->_impl_.value_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOption::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[21]); +} + +// =================================================================== + class DropColumn::_Internal { public: }; @@ -7578,7 +8126,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[20]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[22]); } // =================================================================== @@ -7756,7 +8304,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[21]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[23]); } // =================================================================== @@ -7934,7 +8482,7 @@ void FlowId::InternalSwap(FlowId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlowId::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[22]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[24]); } // =================================================================== @@ -8416,7 +8964,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[23]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[25]); } // =================================================================== @@ -8649,7 +9197,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[24]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[26]); } // @@protoc_insertion_point(namespace_scope) @@ -8736,6 +9284,14 @@ 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::ChangeTableOptions* +Arena::CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ChangeTableOptions >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeTableOption* +Arena::CreateMaybeMessage< ::greptime::v1::ChangeTableOption >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ChangeTableOption >(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 875e85d4..67b893b2 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -69,6 +69,12 @@ extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; class ChangeColumnTypes; struct ChangeColumnTypesDefaultTypeInternal; extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; +class ChangeTableOption; +struct ChangeTableOptionDefaultTypeInternal; +extern ChangeTableOptionDefaultTypeInternal _ChangeTableOption_default_instance_; +class ChangeTableOptions; +struct ChangeTableOptionsDefaultTypeInternal; +extern ChangeTableOptionsDefaultTypeInternal _ChangeTableOptions_default_instance_; class ColumnDef; struct ColumnDefDefaultTypeInternal; extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; @@ -135,6 +141,8 @@ template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1: 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::ChangeTableOption* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOption>(Arena*); +template<> ::greptime::v1::ChangeTableOptions* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOptions>(Arena*); template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*); @@ -2011,6 +2019,7 @@ class AlterExpr final : kDropColumns = 5, kRenameTable = 6, kChangeColumnTypes = 7, + kChangeTableOptions = 8, KIND_NOT_SET = 0, }; @@ -2099,6 +2108,7 @@ class AlterExpr final : kDropColumnsFieldNumber = 5, kRenameTableFieldNumber = 6, kChangeColumnTypesFieldNumber = 7, + kChangeTableOptionsFieldNumber = 8, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2214,6 +2224,24 @@ class AlterExpr final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + // .greptime.v1.ChangeTableOptions change_table_options = 8; + bool has_change_table_options() const; + private: + bool _internal_has_change_table_options() const; + public: + void clear_change_table_options(); + const ::greptime::v1::ChangeTableOptions& change_table_options() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options(); + ::greptime::v1::ChangeTableOptions* mutable_change_table_options(); + void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options); + private: + const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const; + ::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options(); + public: + void unsafe_arena_set_allocated_change_table_options( + ::greptime::v1::ChangeTableOptions* change_table_options); + ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr) @@ -2223,6 +2251,7 @@ class AlterExpr final : void set_has_drop_columns(); void set_has_rename_table(); void set_has_change_column_types(); + void set_has_change_table_options(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2241,6 +2270,7 @@ class AlterExpr final : ::greptime::v1::DropColumns* drop_columns_; ::greptime::v1::RenameTable* rename_table_; ::greptime::v1::ChangeColumnTypes* change_column_types_; + ::greptime::v1::ChangeTableOptions* change_table_options_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -4071,6 +4101,332 @@ class ChangeColumnType final : }; // ------------------------------------------------------------------- +class ChangeTableOptions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeTableOptions) */ { + public: + inline ChangeTableOptions() : ChangeTableOptions(nullptr) {} + ~ChangeTableOptions() override; + explicit PROTOBUF_CONSTEXPR ChangeTableOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChangeTableOptions(const ChangeTableOptions& from); + ChangeTableOptions(ChangeTableOptions&& from) noexcept + : ChangeTableOptions() { + *this = ::std::move(from); + } + + inline ChangeTableOptions& operator=(const ChangeTableOptions& from) { + CopyFrom(from); + return *this; + } + inline ChangeTableOptions& operator=(ChangeTableOptions&& 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 ChangeTableOptions& default_instance() { + return *internal_default_instance(); + } + static inline const ChangeTableOptions* internal_default_instance() { + return reinterpret_cast( + &_ChangeTableOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(ChangeTableOptions& a, ChangeTableOptions& b) { + a.Swap(&b); + } + inline void Swap(ChangeTableOptions* 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(ChangeTableOptions* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChangeTableOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChangeTableOptions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChangeTableOptions& from) { + ChangeTableOptions::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(ChangeTableOptions* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ChangeTableOptions"; + } + protected: + explicit ChangeTableOptions(::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 { + kChangeTableOptionsFieldNumber = 1, + }; + // repeated .greptime.v1.ChangeTableOption change_table_options = 1; + int change_table_options_size() const; + private: + int _internal_change_table_options_size() const; + public: + void clear_change_table_options(); + ::greptime::v1::ChangeTableOption* mutable_change_table_options(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >* + mutable_change_table_options(); + private: + const ::greptime::v1::ChangeTableOption& _internal_change_table_options(int index) const; + ::greptime::v1::ChangeTableOption* _internal_add_change_table_options(); + public: + const ::greptime::v1::ChangeTableOption& change_table_options(int index) const; + ::greptime::v1::ChangeTableOption* add_change_table_options(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >& + change_table_options() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOptions) + 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::ChangeTableOption > change_table_options_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + +class ChangeTableOption final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeTableOption) */ { + public: + inline ChangeTableOption() : ChangeTableOption(nullptr) {} + ~ChangeTableOption() override; + explicit PROTOBUF_CONSTEXPR ChangeTableOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChangeTableOption(const ChangeTableOption& from); + ChangeTableOption(ChangeTableOption&& from) noexcept + : ChangeTableOption() { + *this = ::std::move(from); + } + + inline ChangeTableOption& operator=(const ChangeTableOption& from) { + CopyFrom(from); + return *this; + } + inline ChangeTableOption& operator=(ChangeTableOption&& 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 ChangeTableOption& default_instance() { + return *internal_default_instance(); + } + static inline const ChangeTableOption* internal_default_instance() { + return reinterpret_cast( + &_ChangeTableOption_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(ChangeTableOption& a, ChangeTableOption& b) { + a.Swap(&b); + } + inline void Swap(ChangeTableOption* 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(ChangeTableOption* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChangeTableOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChangeTableOption& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChangeTableOption& from) { + ChangeTableOption::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(ChangeTableOption* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ChangeTableOption"; + } + protected: + explicit ChangeTableOption(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyFieldNumber = 1, + kValueFieldNumber = 2, + }; + // string key = 1; + void clear_key(); + const std::string& key() const; + template + void set_key(ArgT0&& arg0, ArgT... args); + std::string* mutable_key(); + PROTOBUF_NODISCARD std::string* release_key(); + void set_allocated_key(std::string* key); + private: + const std::string& _internal_key() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value); + std::string* _internal_mutable_key(); + public: + + // string value = 2; + void clear_value(); + const std::string& value() const; + template + void set_value(ArgT0&& arg0, ArgT... args); + std::string* mutable_value(); + PROTOBUF_NODISCARD std::string* release_value(); + void set_allocated_value(std::string* value); + private: + const std::string& _internal_value() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); + std::string* _internal_mutable_value(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOption) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + 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: @@ -4119,7 +4475,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 22; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -4272,7 +4628,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 23; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -4420,7 +4776,7 @@ class FlowId final : &_FlowId_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 24; friend void swap(FlowId& a, FlowId& b) { a.Swap(&b); @@ -4568,7 +4924,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 25; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -4826,7 +5182,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 26; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -8107,6 +8463,80 @@ inline ::greptime::v1::ChangeColumnTypes* AlterExpr::mutable_change_column_types return _msg; } +// .greptime.v1.ChangeTableOptions change_table_options = 8; +inline bool AlterExpr::_internal_has_change_table_options() const { + return kind_case() == kChangeTableOptions; +} +inline bool AlterExpr::has_change_table_options() const { + return _internal_has_change_table_options(); +} +inline void AlterExpr::set_has_change_table_options() { + _impl_._oneof_case_[0] = kChangeTableOptions; +} +inline void AlterExpr::clear_change_table_options() { + if (_internal_has_change_table_options()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_table_options_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::ChangeTableOptions* AlterExpr::release_change_table_options() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_table_options) + if (_internal_has_change_table_options()) { + clear_has_kind(); + ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.change_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::ChangeTableOptions& AlterExpr::_internal_change_table_options() const { + return _internal_has_change_table_options() + ? *_impl_.kind_.change_table_options_ + : reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_); +} +inline const ::greptime::v1::ChangeTableOptions& AlterExpr::change_table_options() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_table_options) + return _internal_change_table_options(); +} +inline ::greptime::v1::ChangeTableOptions* AlterExpr::unsafe_arena_release_change_table_options() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.change_table_options) + if (_internal_has_change_table_options()) { + clear_has_kind(); + ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; + _impl_.kind_.change_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterExpr::unsafe_arena_set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { + clear_kind(); + if (change_table_options) { + set_has_change_table_options(); + _impl_.kind_.change_table_options_ = change_table_options; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_table_options) +} +inline ::greptime::v1::ChangeTableOptions* AlterExpr::_internal_mutable_change_table_options() { + if (!_internal_has_change_table_options()) { + clear_kind(); + set_has_change_table_options(); + _impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation()); + } + return _impl_.kind_.change_table_options_; +} +inline ::greptime::v1::ChangeTableOptions* AlterExpr::mutable_change_table_options() { + ::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.change_table_options) + return _msg; +} + inline bool AlterExpr::has_kind() const { return kind_case() != KIND_NOT_SET; } @@ -9434,6 +9864,154 @@ inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1 // ------------------------------------------------------------------- +// ChangeTableOptions + +// repeated .greptime.v1.ChangeTableOption change_table_options = 1; +inline int ChangeTableOptions::_internal_change_table_options_size() const { + return _impl_.change_table_options_.size(); +} +inline int ChangeTableOptions::change_table_options_size() const { + return _internal_change_table_options_size(); +} +inline void ChangeTableOptions::clear_change_table_options() { + _impl_.change_table_options_.Clear(); +} +inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::mutable_change_table_options(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOptions.change_table_options) + return _impl_.change_table_options_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >* +ChangeTableOptions::mutable_change_table_options() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.ChangeTableOptions.change_table_options) + return &_impl_.change_table_options_; +} +inline const ::greptime::v1::ChangeTableOption& ChangeTableOptions::_internal_change_table_options(int index) const { + return _impl_.change_table_options_.Get(index); +} +inline const ::greptime::v1::ChangeTableOption& ChangeTableOptions::change_table_options(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOptions.change_table_options) + return _internal_change_table_options(index); +} +inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::_internal_add_change_table_options() { + return _impl_.change_table_options_.Add(); +} +inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::add_change_table_options() { + ::greptime::v1::ChangeTableOption* _add = _internal_add_change_table_options(); + // @@protoc_insertion_point(field_add:greptime.v1.ChangeTableOptions.change_table_options) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >& +ChangeTableOptions::change_table_options() const { + // @@protoc_insertion_point(field_list:greptime.v1.ChangeTableOptions.change_table_options) + return _impl_.change_table_options_; +} + +// ------------------------------------------------------------------- + +// ChangeTableOption + +// string key = 1; +inline void ChangeTableOption::clear_key() { + _impl_.key_.ClearToEmpty(); +} +inline const std::string& ChangeTableOption::key() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOption.key) + return _internal_key(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChangeTableOption::set_key(ArgT0&& arg0, ArgT... args) { + + _impl_.key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeTableOption.key) +} +inline std::string* ChangeTableOption::mutable_key() { + std::string* _s = _internal_mutable_key(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOption.key) + return _s; +} +inline const std::string& ChangeTableOption::_internal_key() const { + return _impl_.key_.Get(); +} +inline void ChangeTableOption::_internal_set_key(const std::string& value) { + + _impl_.key_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChangeTableOption::_internal_mutable_key() { + + return _impl_.key_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChangeTableOption::release_key() { + // @@protoc_insertion_point(field_release:greptime.v1.ChangeTableOption.key) + return _impl_.key_.Release(); +} +inline void ChangeTableOption::set_allocated_key(std::string* key) { + if (key != nullptr) { + + } else { + + } + _impl_.key_.SetAllocated(key, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.key_.IsDefault()) { + _impl_.key_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeTableOption.key) +} + +// string value = 2; +inline void ChangeTableOption::clear_value() { + _impl_.value_.ClearToEmpty(); +} +inline const std::string& ChangeTableOption::value() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOption.value) + return _internal_value(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChangeTableOption::set_value(ArgT0&& arg0, ArgT... args) { + + _impl_.value_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeTableOption.value) +} +inline std::string* ChangeTableOption::mutable_value() { + std::string* _s = _internal_mutable_value(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOption.value) + return _s; +} +inline const std::string& ChangeTableOption::_internal_value() const { + return _impl_.value_.Get(); +} +inline void ChangeTableOption::_internal_set_value(const std::string& value) { + + _impl_.value_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChangeTableOption::_internal_mutable_value() { + + return _impl_.value_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChangeTableOption::release_value() { + // @@protoc_insertion_point(field_release:greptime.v1.ChangeTableOption.value) + return _impl_.value_.Release(); +} +inline void ChangeTableOption::set_allocated_value(std::string* value) { + if (value != nullptr) { + + } else { + + } + _impl_.value_.SetAllocated(value, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.value_.IsDefault()) { + _impl_.value_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeTableOption.value) +} + +// ------------------------------------------------------------------- + // DropColumn // string name = 1; @@ -10043,6 +10621,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 14a8ba56..00c2aa41 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -622,6 +622,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR ::_pbi::kInvalidFieldOffsetTag, ::_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_ @@ -720,16 +721,16 @@ 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)}, - { 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::Regular)}, - { 229, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, - { 236, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 246, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 253, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 188, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, + { 195, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, + { 202, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 210, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 217, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 224, -1, -1, sizeof(::greptime::v1::region::Regular)}, + { 230, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, + { 237, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 247, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 254, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -826,34 +827,36 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " "\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" "(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ." - "greptime.v1.region.AlterRequest\"\360\001\n\014Alte" + "greptime.v1.region.AlterRequest\"\261\002\n\014Alte" "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" "egion.DropColumnsH\000\022=\n\023change_column_typ" "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" - "H\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAd" - "dColumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime" - ".v1.region.AddColumn\"C\n\013DropColumns\0224\n\014d" - "rop_columns\030\001 \003(\0132\036.greptime.v1.region.D" - "ropColumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001" - "(\0132#.greptime.v1.region.RegionColumnDef\022" - "0\n\010location\030\003 \001(\0132\036.greptime.v1.AddColum" - "nLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n" - "\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regu" - "lar\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 " - "\001(\003\"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(" - "\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region." - "RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept" - "ime.v1.region.StrictWindowH\000B\t\n\007options\"" - "$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n" - "\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g" - "reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2" - "Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region" - ".RegionRequest\032\".greptime.v1.region.Regi" - "onResponseB]\n\025io.greptime.v1.regionB\006Ser" - "verZ_impl_.kind_.change_column_types_; } +const ::greptime::v1::ChangeTableOptions& +AlterRequest::_Internal::change_table_options(const AlterRequest* msg) { + return *msg->_impl_.kind_.change_table_options_; +} void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -5392,6 +5400,30 @@ void AlterRequest::clear_change_column_types() { clear_has_kind(); } } +void AlterRequest::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (change_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_table_options)); + if (message_arena != submessage_arena) { + change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_table_options, submessage_arena); + } + set_has_change_table_options(); + _impl_.kind_.change_table_options_ = change_table_options; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_table_options) +} +void AlterRequest::clear_change_table_options() { + if (_internal_has_change_table_options()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_table_options_; + } + clear_has_kind(); + } +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5429,6 +5461,11 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_change_column_types()); break; } + case kChangeTableOptions: { + _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( + from._internal_change_table_options()); + break; + } case KIND_NOT_SET: { break; } @@ -5491,6 +5528,12 @@ void AlterRequest::clear_kind() { } break; } + case kChangeTableOptions: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_table_options_; + } + break; + } case KIND_NOT_SET: { break; } @@ -5558,6 +5601,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.ChangeTableOptions change_table_options = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_change_table_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5620,6 +5671,13 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } + // .greptime.v1.ChangeTableOptions change_table_options = 6; + if (_internal_has_change_table_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::change_table_options(this), + _Internal::change_table_options(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); @@ -5668,6 +5726,13 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } + // .greptime.v1.ChangeTableOptions change_table_options = 6; + case kChangeTableOptions: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.change_table_options_); + break; + } case KIND_NOT_SET: { break; } @@ -5712,6 +5777,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_change_column_types()); break; } + case kChangeTableOptions: { + _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( + from._internal_change_table_options()); + 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 3a9366a6..e92fc67e 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -3251,6 +3251,7 @@ class AlterRequest final : kAddColumns = 2, kDropColumns = 3, kChangeColumnTypes = 5, + kChangeTableOptions = 6, KIND_NOT_SET = 0, }; @@ -3337,6 +3338,7 @@ class AlterRequest final : kAddColumnsFieldNumber = 2, kDropColumnsFieldNumber = 3, kChangeColumnTypesFieldNumber = 5, + kChangeTableOptionsFieldNumber = 6, }; // uint64 region_id = 1; void clear_region_id(); @@ -3410,6 +3412,24 @@ class AlterRequest final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + // .greptime.v1.ChangeTableOptions change_table_options = 6; + bool has_change_table_options() const; + private: + bool _internal_has_change_table_options() const; + public: + void clear_change_table_options(); + const ::greptime::v1::ChangeTableOptions& change_table_options() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options(); + ::greptime::v1::ChangeTableOptions* mutable_change_table_options(); + void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options); + private: + const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const; + ::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options(); + public: + void unsafe_arena_set_allocated_change_table_options( + ::greptime::v1::ChangeTableOptions* change_table_options); + ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) @@ -3418,6 +3438,7 @@ class AlterRequest final : void set_has_add_columns(); void set_has_drop_columns(); void set_has_change_column_types(); + void set_has_change_table_options(); inline bool has_kind() const; inline void clear_has_kind(); @@ -3434,6 +3455,7 @@ class AlterRequest final : ::greptime::v1::region::AddColumns* add_columns_; ::greptime::v1::region::DropColumns* drop_columns_; ::greptime::v1::ChangeColumnTypes* change_column_types_; + ::greptime::v1::ChangeTableOptions* change_table_options_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -7690,6 +7712,72 @@ inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_ty return _msg; } +// .greptime.v1.ChangeTableOptions change_table_options = 6; +inline bool AlterRequest::_internal_has_change_table_options() const { + return kind_case() == kChangeTableOptions; +} +inline bool AlterRequest::has_change_table_options() const { + return _internal_has_change_table_options(); +} +inline void AlterRequest::set_has_change_table_options() { + _impl_._oneof_case_[0] = kChangeTableOptions; +} +inline ::greptime::v1::ChangeTableOptions* AlterRequest::release_change_table_options() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_table_options) + if (_internal_has_change_table_options()) { + clear_has_kind(); + ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.change_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::ChangeTableOptions& AlterRequest::_internal_change_table_options() const { + return _internal_has_change_table_options() + ? *_impl_.kind_.change_table_options_ + : reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_); +} +inline const ::greptime::v1::ChangeTableOptions& AlterRequest::change_table_options() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_table_options) + return _internal_change_table_options(); +} +inline ::greptime::v1::ChangeTableOptions* AlterRequest::unsafe_arena_release_change_table_options() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_table_options) + if (_internal_has_change_table_options()) { + clear_has_kind(); + ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; + _impl_.kind_.change_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterRequest::unsafe_arena_set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { + clear_kind(); + if (change_table_options) { + set_has_change_table_options(); + _impl_.kind_.change_table_options_ = change_table_options; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_table_options) +} +inline ::greptime::v1::ChangeTableOptions* AlterRequest::_internal_mutable_change_table_options() { + if (!_internal_has_change_table_options()) { + clear_kind(); + set_has_change_table_options(); + _impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation()); + } + return _impl_.kind_.change_table_options_; +} +inline ::greptime::v1::ChangeTableOptions* AlterRequest::mutable_change_table_options() { + ::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_table_options) + 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 6e9b5f3a..49696c72 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{21, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -797,6 +797,7 @@ type AlterExpr struct { // *AlterExpr_DropColumns // *AlterExpr_RenameTable // *AlterExpr_ChangeColumnTypes + // *AlterExpr_ChangeTableOptions Kind isAlterExpr_Kind `protobuf_oneof:"kind"` } @@ -888,6 +889,13 @@ func (x *AlterExpr) GetChangeColumnTypes() *ChangeColumnTypes { return nil } +func (x *AlterExpr) GetChangeTableOptions() *ChangeTableOptions { + if x, ok := x.GetKind().(*AlterExpr_ChangeTableOptions); ok { + return x.ChangeTableOptions + } + return nil +} + type isAlterExpr_Kind interface { isAlterExpr_Kind() } @@ -908,6 +916,10 @@ type AlterExpr_ChangeColumnTypes struct { ChangeColumnTypes *ChangeColumnTypes `protobuf:"bytes,7,opt,name=change_column_types,json=changeColumnTypes,proto3,oneof"` } +type AlterExpr_ChangeTableOptions struct { + ChangeTableOptions *ChangeTableOptions `protobuf:"bytes,8,opt,name=change_table_options,json=changeTableOptions,proto3,oneof"` +} + func (*AlterExpr_AddColumns) isAlterExpr_Kind() {} func (*AlterExpr_DropColumns) isAlterExpr_Kind() {} @@ -916,6 +928,8 @@ func (*AlterExpr_RenameTable) isAlterExpr_Kind() {} func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {} +func (*AlterExpr_ChangeTableOptions) isAlterExpr_Kind() {} + type DropTableExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1506,6 +1520,108 @@ func (x *ChangeColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension { return nil } +type ChangeTableOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChangeTableOptions []*ChangeTableOption `protobuf:"bytes,1,rep,name=change_table_options,json=changeTableOptions,proto3" json:"change_table_options,omitempty"` +} + +func (x *ChangeTableOptions) Reset() { + *x = ChangeTableOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeTableOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeTableOptions) ProtoMessage() {} + +func (x *ChangeTableOptions) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[17] + 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 ChangeTableOptions.ProtoReflect.Descriptor instead. +func (*ChangeTableOptions) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} +} + +func (x *ChangeTableOptions) GetChangeTableOptions() []*ChangeTableOption { + if x != nil { + return x.ChangeTableOptions + } + return nil +} + +type ChangeTableOption struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ChangeTableOption) Reset() { + *x = ChangeTableOption{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeTableOption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeTableOption) ProtoMessage() {} + +func (x *ChangeTableOption) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[18] + 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 ChangeTableOption.ProtoReflect.Descriptor instead. +func (*ChangeTableOption) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} +} + +func (x *ChangeTableOption) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *ChangeTableOption) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + type DropColumn struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1517,7 +1633,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1530,7 +1646,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1543,7 +1659,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{17} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} } func (x *DropColumn) GetName() string { @@ -1564,7 +1680,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[18] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1577,7 +1693,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[18] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1590,7 +1706,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{18} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20} } func (x *TableId) GetId() uint32 { @@ -1611,7 +1727,7 @@ type FlowId struct { func (x *FlowId) Reset() { *x = FlowId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1624,7 +1740,7 @@ func (x *FlowId) String() string { func (*FlowId) ProtoMessage() {} func (x *FlowId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1637,7 +1753,7 @@ func (x *FlowId) ProtoReflect() protoreflect.Message { // Deprecated: Use FlowId.ProtoReflect.Descriptor instead. func (*FlowId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21} } func (x *FlowId) GetId() uint32 { @@ -1667,7 +1783,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1680,7 +1796,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1693,7 +1809,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{20} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22} } func (x *ColumnDef) GetName() string { @@ -1764,7 +1880,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1777,7 +1893,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1790,7 +1906,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{21} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -1965,7 +2081,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, 0x82, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x22, 0xd7, 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, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, @@ -1988,143 +2104,159 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, - 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 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, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, + 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x53, 0x0a, + 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 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, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, + 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0x3b, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 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, 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, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, + 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 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, 0x12, 0x34, + 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 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 ( @@ -2140,7 +2272,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, 25) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest @@ -2160,20 +2292,22 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*RenameTable)(nil), // 15: greptime.v1.RenameTable (*AddColumn)(nil), // 16: greptime.v1.AddColumn (*ChangeColumnType)(nil), // 17: greptime.v1.ChangeColumnType - (*DropColumn)(nil), // 18: greptime.v1.DropColumn - (*TableId)(nil), // 19: greptime.v1.TableId - (*FlowId)(nil), // 20: greptime.v1.FlowId - (*ColumnDef)(nil), // 21: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 22: greptime.v1.AddColumnLocation - nil, // 23: greptime.v1.CreateFlowExpr.FlowOptionsEntry - nil, // 24: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 25: greptime.v1.CreateDatabaseExpr.OptionsEntry - (*TableName)(nil), // 26: greptime.v1.TableName - (*ExpireAfter)(nil), // 27: greptime.v1.ExpireAfter - (ColumnDataType)(0), // 28: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 29: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 30: greptime.v1.SemanticType - (*ColumnOptions)(nil), // 31: greptime.v1.ColumnOptions + (*ChangeTableOptions)(nil), // 18: greptime.v1.ChangeTableOptions + (*ChangeTableOption)(nil), // 19: greptime.v1.ChangeTableOption + (*DropColumn)(nil), // 20: greptime.v1.DropColumn + (*TableId)(nil), // 21: greptime.v1.TableId + (*FlowId)(nil), // 22: greptime.v1.FlowId + (*ColumnDef)(nil), // 23: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 24: greptime.v1.AddColumnLocation + nil, // 25: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 26: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 27: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 28: greptime.v1.TableName + (*ExpireAfter)(nil), // 29: greptime.v1.ExpireAfter + (ColumnDataType)(0), // 30: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 31: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 32: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 33: greptime.v1.ColumnOptions } var file_greptime_v1_ddl_proto_depIdxs = []int32{ 9, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr @@ -2185,40 +2319,42 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 3, // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr 4, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr 5, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr - 26, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName - 26, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName - 27, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter - 23, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry - 20, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId - 26, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName - 19, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId - 21, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 24, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 19, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 28, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName + 28, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName + 29, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter + 25, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 22, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId + 28, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName + 21, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId + 23, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 26, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 21, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId 12, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns 13, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns 15, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable 14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes - 19, // 23: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 25, // 24: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 19, // 25: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 16, // 26: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 18, // 27: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 17, // 28: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType - 21, // 29: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 22, // 30: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 28, // 31: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 29, // 32: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 28, // 33: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 30, // 34: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 29, // 35: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 31, // 36: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions - 0, // 37: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 38, // [38:38] is the sub-list for method output_type - 38, // [38:38] is the sub-list for method input_type - 38, // [38:38] is the sub-list for extension type_name - 38, // [38:38] is the sub-list for extension extendee - 0, // [0:38] is the sub-list for field type_name + 18, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions + 21, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 27, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 21, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 16, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 17, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType + 23, // 30: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 24, // 31: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 30, // 32: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 31, // 33: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 19, // 34: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption + 30, // 35: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 32, // 36: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 31, // 37: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 33, // 38: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 0, // 39: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 40, // [40:40] is the sub-list for method output_type + 40, // [40:40] is the sub-list for method input_type + 40, // [40:40] is the sub-list for extension type_name + 40, // [40:40] is the sub-list for extension extendee + 0, // [0:40] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -2433,7 +2569,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DropColumn); i { + switch v := v.(*ChangeTableOptions); i { case 0: return &v.state case 1: @@ -2445,7 +2581,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableId); i { + switch v := v.(*ChangeTableOption); i { case 0: return &v.state case 1: @@ -2457,7 +2593,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlowId); i { + switch v := v.(*DropColumn); i { case 0: return &v.state case 1: @@ -2469,7 +2605,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDef); i { + switch v := v.(*TableId); i { case 0: return &v.state case 1: @@ -2481,6 +2617,30 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FlowId); 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[22].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[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumnLocation); i { case 0: return &v.state @@ -2509,6 +2669,7 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), (*AlterExpr_ChangeColumnTypes)(nil), + (*AlterExpr_ChangeTableOptions)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -2516,7 +2677,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 1, - NumMessages: 25, + NumMessages: 27, 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 f42b65de..7b685ea2 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -11737,6 +11737,21 @@ public interface AlterExprOrBuilder extends */ io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + * @return Whether the changeTableOptions field is set. + */ + boolean hasChangeTableOptions(); + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + * @return The changeTableOptions. + */ + io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions(); + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder(); + public io.greptime.v1.Ddl.AlterExpr.KindCase getKindCase(); } /** @@ -11861,6 +11876,20 @@ private AlterExpr( kindCase_ = 7; break; } + case 66: { + io.greptime.v1.Ddl.ChangeTableOptions.Builder subBuilder = null; + if (kindCase_ == 8) { + subBuilder = ((io.greptime.v1.Ddl.ChangeTableOptions) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Ddl.ChangeTableOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 8; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -11904,6 +11933,7 @@ public enum KindCase DROP_COLUMNS(5), RENAME_TABLE(6), CHANGE_COLUMN_TYPES(7), + CHANGE_TABLE_OPTIONS(8), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -11925,6 +11955,7 @@ public static KindCase forNumber(int value) { case 5: return DROP_COLUMNS; case 6: return RENAME_TABLE; case 7: return CHANGE_COLUMN_TYPES; + case 8: return CHANGE_TABLE_OPTIONS; case 0: return KIND_NOT_SET; default: return null; } @@ -12178,6 +12209,37 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); } + public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 8; + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + * @return Whether the changeTableOptions field is set. + */ + @java.lang.Override + public boolean hasChangeTableOptions() { + return kindCase_ == 8; + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + * @return The changeTableOptions. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + } + return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + } + return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12213,6 +12275,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (kindCase_ == 7) { output.writeMessage(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); } + if (kindCase_ == 8) { + output.writeMessage(8, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); + } unknownFields.writeTo(output); } @@ -12247,6 +12312,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); } + if (kindCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -12286,6 +12355,10 @@ public boolean equals(final java.lang.Object obj) { if (!getChangeColumnTypes() .equals(other.getChangeColumnTypes())) return false; break; + case 8: + if (!getChangeTableOptions() + .equals(other.getChangeTableOptions())) return false; + break; case 0: default: } @@ -12323,6 +12396,10 @@ public int hashCode() { hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER; hash = (53 * hash) + getChangeColumnTypes().hashCode(); break; + case 8: + hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getChangeTableOptions().hashCode(); + break; case 0: default: } @@ -12524,6 +12601,13 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { result.kind_ = changeColumnTypesBuilder_.build(); } } + if (kindCase_ == 8) { + if (changeTableOptionsBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = changeTableOptionsBuilder_.build(); + } + } result.kindCase_ = kindCase_; onBuilt(); return result; @@ -12602,6 +12686,10 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeChangeColumnTypes(other.getChangeColumnTypes()); break; } + case CHANGE_TABLE_OPTIONS: { + mergeChangeTableOptions(other.getChangeTableOptions()); + break; + } case KIND_NOT_SET: { break; } @@ -13445,6 +13533,148 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild onChanged();; return changeColumnTypesBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> changeTableOptionsBuilder_; + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + * @return Whether the changeTableOptions field is set. + */ + @java.lang.Override + public boolean hasChangeTableOptions() { + return kindCase_ == 8; + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + * @return The changeTableOptions. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() { + if (changeTableOptionsBuilder_ == null) { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + } + return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + } else { + if (kindCase_ == 8) { + return changeTableOptionsBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + } + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + public Builder setChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) { + if (changeTableOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + changeTableOptionsBuilder_.setMessage(value); + } + kindCase_ = 8; + return this; + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + public Builder setChangeTableOptions( + io.greptime.v1.Ddl.ChangeTableOptions.Builder builderForValue) { + if (changeTableOptionsBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + changeTableOptionsBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 8; + return this; + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) { + if (changeTableOptionsBuilder_ == null) { + if (kindCase_ == 8 && + kind_ != io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.ChangeTableOptions.newBuilder((io.greptime.v1.Ddl.ChangeTableOptions) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 8) { + changeTableOptionsBuilder_.mergeFrom(value); + } else { + changeTableOptionsBuilder_.setMessage(value); + } + } + kindCase_ = 8; + return this; + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + public Builder clearChangeTableOptions() { + if (changeTableOptionsBuilder_ == null) { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + } + changeTableOptionsBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + public io.greptime.v1.Ddl.ChangeTableOptions.Builder getChangeTableOptionsBuilder() { + return getChangeTableOptionsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() { + if ((kindCase_ == 8) && (changeTableOptionsBuilder_ != null)) { + return changeTableOptionsBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + } + return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + } + } + /** + * .greptime.v1.ChangeTableOptions change_table_options = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> + getChangeTableOptionsFieldBuilder() { + if (changeTableOptionsBuilder_ == null) { + if (!(kindCase_ == 8)) { + kind_ = io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + } + changeTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>( + (io.greptime.v1.Ddl.ChangeTableOptions) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 8; + onChanged();; + return changeTableOptionsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -22283,43 +22513,55 @@ public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { } - public interface DropColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.DropColumn) + public interface ChangeTableOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeTableOptions) com.google.protobuf.MessageOrBuilder { /** - * string name = 1; - * @return The name. + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; */ - java.lang.String getName(); + java.util.List + getChangeTableOptionsList(); /** - * string name = 1; - * @return The bytes for name. + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; */ - com.google.protobuf.ByteString - getNameBytes(); + io.greptime.v1.Ddl.ChangeTableOption getChangeTableOptions(int index); + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + int getChangeTableOptionsCount(); + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + java.util.List + getChangeTableOptionsOrBuilderList(); + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + io.greptime.v1.Ddl.ChangeTableOptionOrBuilder getChangeTableOptionsOrBuilder( + int index); } /** - * Protobuf type {@code greptime.v1.DropColumn} + * Protobuf type {@code greptime.v1.ChangeTableOptions} */ - public static final class DropColumn extends + public static final class ChangeTableOptions extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.DropColumn) - DropColumnOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeTableOptions) + ChangeTableOptionsOrBuilder { private static final long serialVersionUID = 0L; - // Use DropColumn.newBuilder() to construct. - private DropColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChangeTableOptions.newBuilder() to construct. + private ChangeTableOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DropColumn() { - name_ = ""; + private ChangeTableOptions() { + changeTableOptions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new DropColumn(); + return new ChangeTableOptions(); } @java.lang.Override @@ -22327,7 +22569,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private DropColumn( + private ChangeTableOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -22335,6 +22577,7 @@ private DropColumn( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -22346,9 +22589,12 @@ private DropColumn( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + changeTableOptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + changeTableOptions_.add( + input.readMessage(io.greptime.v1.Ddl.ChangeTableOption.parser(), extensionRegistry)); break; } default: { @@ -22368,59 +22614,64 @@ private DropColumn( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changeTableOptions_ = java.util.Collections.unmodifiableList(changeTableOptions_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + io.greptime.v1.Ddl.ChangeTableOptions.class, io.greptime.v1.Ddl.ChangeTableOptions.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 1; + private java.util.List changeTableOptions_; /** - * string name = 1; - * @return The name. + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; */ @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } + public java.util.List getChangeTableOptionsList() { + return changeTableOptions_; } /** - * string name = 1; - * @return The bytes for name. + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List + getChangeTableOptionsOrBuilderList() { + return changeTableOptions_; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + @java.lang.Override + public int getChangeTableOptionsCount() { + return changeTableOptions_.size(); + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOption getChangeTableOptions(int index) { + return changeTableOptions_.get(index); + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOptionOrBuilder getChangeTableOptionsOrBuilder( + int index) { + return changeTableOptions_.get(index); } private byte memoizedIsInitialized = -1; @@ -22437,8 +22688,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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + for (int i = 0; i < changeTableOptions_.size(); i++) { + output.writeMessage(1, changeTableOptions_.get(i)); } unknownFields.writeTo(output); } @@ -22449,8 +22700,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + for (int i = 0; i < changeTableOptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, changeTableOptions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -22462,13 +22714,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.DropColumn)) { + if (!(obj instanceof io.greptime.v1.Ddl.ChangeTableOptions)) { return super.equals(obj); } - io.greptime.v1.Ddl.DropColumn other = (io.greptime.v1.Ddl.DropColumn) obj; + io.greptime.v1.Ddl.ChangeTableOptions other = (io.greptime.v1.Ddl.ChangeTableOptions) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getChangeTableOptionsList() + .equals(other.getChangeTableOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -22480,76 +22732,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + if (getChangeTableOptionsCount() > 0) { + hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getChangeTableOptionsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions 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.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions 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.DropColumn parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.DropColumn parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions 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.DropColumn parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeTableOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.DropColumn parseDelimitedFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions 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.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22562,7 +22816,7 @@ public static io.greptime.v1.Ddl.DropColumn parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.DropColumn prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ChangeTableOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -22578,26 +22832,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.DropColumn} + * Protobuf type {@code greptime.v1.ChangeTableOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.DropColumn) - io.greptime.v1.Ddl.DropColumnOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeTableOptions) + io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + io.greptime.v1.Ddl.ChangeTableOptions.class, io.greptime.v1.Ddl.ChangeTableOptions.Builder.class); } - // Construct using io.greptime.v1.Ddl.DropColumn.newBuilder() + // Construct using io.greptime.v1.Ddl.ChangeTableOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -22610,30 +22864,35 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getChangeTableOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; - + if (changeTableOptionsBuilder_ == null) { + changeTableOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changeTableOptionsBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.DropColumn getDefaultInstanceForType() { - return io.greptime.v1.Ddl.DropColumn.getDefaultInstance(); + public io.greptime.v1.Ddl.ChangeTableOptions getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.DropColumn build() { - io.greptime.v1.Ddl.DropColumn result = buildPartial(); + public io.greptime.v1.Ddl.ChangeTableOptions build() { + io.greptime.v1.Ddl.ChangeTableOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -22641,9 +22900,18 @@ public io.greptime.v1.Ddl.DropColumn build() { } @java.lang.Override - public io.greptime.v1.Ddl.DropColumn buildPartial() { - io.greptime.v1.Ddl.DropColumn result = new io.greptime.v1.Ddl.DropColumn(this); - result.name_ = name_; + public io.greptime.v1.Ddl.ChangeTableOptions buildPartial() { + io.greptime.v1.Ddl.ChangeTableOptions result = new io.greptime.v1.Ddl.ChangeTableOptions(this); + int from_bitField0_ = bitField0_; + if (changeTableOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changeTableOptions_ = java.util.Collections.unmodifiableList(changeTableOptions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changeTableOptions_ = changeTableOptions_; + } else { + result.changeTableOptions_ = changeTableOptionsBuilder_.build(); + } onBuilt(); return result; } @@ -22682,15 +22950,1492 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.DropColumn) { - return mergeFrom((io.greptime.v1.Ddl.DropColumn)other); + if (other instanceof io.greptime.v1.Ddl.ChangeTableOptions) { + return mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.DropColumn other) { + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeTableOptions other) { + if (other == io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) return this; + if (changeTableOptionsBuilder_ == null) { + if (!other.changeTableOptions_.isEmpty()) { + if (changeTableOptions_.isEmpty()) { + changeTableOptions_ = other.changeTableOptions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.addAll(other.changeTableOptions_); + } + onChanged(); + } + } else { + if (!other.changeTableOptions_.isEmpty()) { + if (changeTableOptionsBuilder_.isEmpty()) { + changeTableOptionsBuilder_.dispose(); + changeTableOptionsBuilder_ = null; + changeTableOptions_ = other.changeTableOptions_; + bitField0_ = (bitField0_ & ~0x00000001); + changeTableOptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChangeTableOptionsFieldBuilder() : null; + } else { + changeTableOptionsBuilder_.addAllMessages(other.changeTableOptions_); + } + } + } + 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.ChangeTableOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.ChangeTableOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List changeTableOptions_ = + java.util.Collections.emptyList(); + private void ensureChangeTableOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changeTableOptions_ = new java.util.ArrayList(changeTableOptions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.ChangeTableOption, io.greptime.v1.Ddl.ChangeTableOption.Builder, io.greptime.v1.Ddl.ChangeTableOptionOrBuilder> changeTableOptionsBuilder_; + + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public java.util.List getChangeTableOptionsList() { + if (changeTableOptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeTableOptions_); + } else { + return changeTableOptionsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public int getChangeTableOptionsCount() { + if (changeTableOptionsBuilder_ == null) { + return changeTableOptions_.size(); + } else { + return changeTableOptionsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public io.greptime.v1.Ddl.ChangeTableOption getChangeTableOptions(int index) { + if (changeTableOptionsBuilder_ == null) { + return changeTableOptions_.get(index); + } else { + return changeTableOptionsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder setChangeTableOptions( + int index, io.greptime.v1.Ddl.ChangeTableOption value) { + if (changeTableOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.set(index, value); + onChanged(); + } else { + changeTableOptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder setChangeTableOptions( + int index, io.greptime.v1.Ddl.ChangeTableOption.Builder builderForValue) { + if (changeTableOptionsBuilder_ == null) { + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.set(index, builderForValue.build()); + onChanged(); + } else { + changeTableOptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder addChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOption value) { + if (changeTableOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.add(value); + onChanged(); + } else { + changeTableOptionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder addChangeTableOptions( + int index, io.greptime.v1.Ddl.ChangeTableOption value) { + if (changeTableOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.add(index, value); + onChanged(); + } else { + changeTableOptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder addChangeTableOptions( + io.greptime.v1.Ddl.ChangeTableOption.Builder builderForValue) { + if (changeTableOptionsBuilder_ == null) { + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.add(builderForValue.build()); + onChanged(); + } else { + changeTableOptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder addChangeTableOptions( + int index, io.greptime.v1.Ddl.ChangeTableOption.Builder builderForValue) { + if (changeTableOptionsBuilder_ == null) { + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.add(index, builderForValue.build()); + onChanged(); + } else { + changeTableOptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder addAllChangeTableOptions( + java.lang.Iterable values) { + if (changeTableOptionsBuilder_ == null) { + ensureChangeTableOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, changeTableOptions_); + onChanged(); + } else { + changeTableOptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder clearChangeTableOptions() { + if (changeTableOptionsBuilder_ == null) { + changeTableOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changeTableOptionsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public Builder removeChangeTableOptions(int index) { + if (changeTableOptionsBuilder_ == null) { + ensureChangeTableOptionsIsMutable(); + changeTableOptions_.remove(index); + onChanged(); + } else { + changeTableOptionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public io.greptime.v1.Ddl.ChangeTableOption.Builder getChangeTableOptionsBuilder( + int index) { + return getChangeTableOptionsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public io.greptime.v1.Ddl.ChangeTableOptionOrBuilder getChangeTableOptionsOrBuilder( + int index) { + if (changeTableOptionsBuilder_ == null) { + return changeTableOptions_.get(index); } else { + return changeTableOptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public java.util.List + getChangeTableOptionsOrBuilderList() { + if (changeTableOptionsBuilder_ != null) { + return changeTableOptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changeTableOptions_); + } + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public io.greptime.v1.Ddl.ChangeTableOption.Builder addChangeTableOptionsBuilder() { + return getChangeTableOptionsFieldBuilder().addBuilder( + io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public io.greptime.v1.Ddl.ChangeTableOption.Builder addChangeTableOptionsBuilder( + int index) { + return getChangeTableOptionsFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + */ + public java.util.List + getChangeTableOptionsBuilderList() { + return getChangeTableOptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.ChangeTableOption, io.greptime.v1.Ddl.ChangeTableOption.Builder, io.greptime.v1.Ddl.ChangeTableOptionOrBuilder> + getChangeTableOptionsFieldBuilder() { + if (changeTableOptionsBuilder_ == null) { + changeTableOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.ChangeTableOption, io.greptime.v1.Ddl.ChangeTableOption.Builder, io.greptime.v1.Ddl.ChangeTableOptionOrBuilder>( + changeTableOptions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + changeTableOptions_ = null; + } + return changeTableOptionsBuilder_; + } + @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.ChangeTableOptions) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOptions) + private static final io.greptime.v1.Ddl.ChangeTableOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeTableOptions(); + } + + public static io.greptime.v1.Ddl.ChangeTableOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeTableOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeTableOptions(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.ChangeTableOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChangeTableOptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeTableOption) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string value = 2; + * @return The value. + */ + java.lang.String getValue(); + /** + * string value = 2; + * @return The bytes for value. + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code greptime.v1.ChangeTableOption} + */ + public static final class ChangeTableOption extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeTableOption) + ChangeTableOptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeTableOption.newBuilder() to construct. + private ChangeTableOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ChangeTableOption() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChangeTableOption(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChangeTableOption( + 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(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = 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_ChangeTableOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.ChangeTableOption.class, io.greptime.v1.Ddl.ChangeTableOption.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * string key = 1; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + * string key = 1; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * string value = 2; + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * string value = 2; + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = 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(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + 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(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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.ChangeTableOption)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.ChangeTableOption other = (io.greptime.v1.Ddl.ChangeTableOption) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeTableOption 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.ChangeTableOption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeTableOption 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.ChangeTableOption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.ChangeTableOption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeTableOption 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.ChangeTableOption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeTableOption 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.ChangeTableOption parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeTableOption 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.ChangeTableOption 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.ChangeTableOption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeTableOption) + io.greptime.v1.Ddl.ChangeTableOptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.ChangeTableOption.class, io.greptime.v1.Ddl.ChangeTableOption.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.ChangeTableOption.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOption getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOption build() { + io.greptime.v1.Ddl.ChangeTableOption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeTableOption buildPartial() { + io.greptime.v1.Ddl.ChangeTableOption result = new io.greptime.v1.Ddl.ChangeTableOption(this); + result.key_ = key_; + result.value_ = value_; + 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.ChangeTableOption) { + return mergeFrom((io.greptime.v1.Ddl.ChangeTableOption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeTableOption other) { + if (other == io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + 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.ChangeTableOption parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.ChangeTableOption) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 1; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 1; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 2; + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 2; + * @return The bytes for value. + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 2; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * string value = 2; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * string value = 2; + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = 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.ChangeTableOption) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOption) + private static final io.greptime.v1.Ddl.ChangeTableOption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeTableOption(); + } + + public static io.greptime.v1.Ddl.ChangeTableOption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeTableOption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeTableOption(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.ChangeTableOption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DropColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.DropColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + * Protobuf type {@code greptime.v1.DropColumn} + */ + public static final class DropColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.DropColumn) + DropColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropColumn.newBuilder() to construct. + private DropColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DropColumn() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DropColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropColumn( + 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(); + + name_ = 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_DropColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.DropColumn)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.DropColumn other = (io.greptime.v1.Ddl.DropColumn) obj; + + if (!getName() + .equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.DropColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropColumn 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.DropColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropColumn 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.DropColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropColumn 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.DropColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropColumn 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.DropColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropColumn 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.DropColumn 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.DropColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.DropColumn) + io.greptime.v1.Ddl.DropColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.DropColumn.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropColumn getDefaultInstanceForType() { + return io.greptime.v1.Ddl.DropColumn.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropColumn build() { + io.greptime.v1.Ddl.DropColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropColumn buildPartial() { + io.greptime.v1.Ddl.DropColumn result = new io.greptime.v1.Ddl.DropColumn(this); + result.name_ = name_; + 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.DropColumn) { + return mergeFrom((io.greptime.v1.Ddl.DropColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.DropColumn other) { if (other == io.greptime.v1.Ddl.DropColumn.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -26323,6 +28068,16 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { 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_ChangeTableOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ChangeTableOption_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_DropColumn_descriptor; private static final @@ -26403,57 +28158,62 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { "ime.v1.CreateTableExpr.TableOptionsEntry" + "\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.TableId" + "\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\"\245\002\n\tAlterE" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\002\n\tAlterE" + "xpr\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\013add_column" + "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" + "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" + "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" + ".RenameTableH\000\022=\n\023change_column_types\030\007 " + - "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000B\006\n" + - "\004kind\"\216\001\n\rDropTableExpr\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.T" + - "ableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022Creat" + - "eDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + - "chema_name\030\002 \001(\t\022\034\n\024create_if_not_exists" + - "\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1.Cr" + - "eateDatabaseExpr.OptionsEntry\032.\n\014Options" + - "Entry\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.TableI" + - "d\"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_exis" + - "ts\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 " + - "\003(\0132\026.greptime.v1.AddColumn\"<\n\013DropColum" + - "ns\022-\n\014drop_columns\030\001 \003(\0132\027.greptime.v1.D" + - "ropColumn\"O\n\021ChangeColumnTypes\022:\n\023change" + - "_column_types\030\001 \003(\0132\035.greptime.v1.Change" + - "ColumnType\"%\n\013RenameTable\022\026\n\016new_table_n" + - "ame\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.Column" + - "DataType\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\002" + - "id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColum" + - "nDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033." + - "greptime.v1.ColumnDataType\022\023\n\013is_nullabl" + - "e\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rs" + - "emantic_type\030\005 \001(\0162\031.greptime.v1.Semanti" + - "cType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_exten" + - "sion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeE" + - "xtension\022+\n\007options\030\010 \001(\0132\032.greptime.v1." + - "ColumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rl" + - "ocation_type\030\001 \001(\0162+.greptime.v1.AddColu" + - "mnLocation.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/GreptimeTeam/greptime-proto/go/grept" + - "ime/v1b\006proto3" + "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022?\n" + + "\024change_table_options\030\010 \001(\0132\037.greptime.v" + + "1.ChangeTableOptionsH\000B\006\n\004kind\"\216\001\n\rDropT" + + "ableExpr\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_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024" + + "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + + "\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007optio" + + "ns\030\004 \003(\0132,.greptime.v1.CreateDatabaseExp" + + "r.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableE" + + "xpr\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\020DropDataba" + + "seExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n" + + "ame\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAdd" + + "Columns\022+\n\013add_columns\030\001 \003(\0132\026.greptime." + + "v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_colu" + + "mns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Ch" + + "angeColumnTypes\022:\n\023change_column_types\030\001" + + " \003(\0132\035.greptime.v1.ChangeColumnType\"%\n\013R" + + "enameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAd" + + "dColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v" + + "1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" + + ".v1.AddColumnLocation\"\236\001\n\020ChangeColumnTy" + + "pe\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002" + + " \001(\0162\033.greptime.v1.ColumnDataType\022C\n\025tar" + + "get_type_extension\030\003 \001(\0132$.greptime.v1.C" + + "olumnDataTypeExtension\"R\n\022ChangeTableOpt" + + "ions\022<\n\024change_table_options\030\001 \003(\0132\036.gre" + + "ptime.v1.ChangeTableOption\"/\n\021ChangeTabl" + + "eOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nD" + + "ropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id" + + "\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnD" + + "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" + + "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" + + "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" + + "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" + + "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" + + "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" + + "ension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Co" + + "lumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rloc" + + "ation_type\030\001 \001(\0162+.greptime.v1.AddColumn" + + "Location.LocationType\022\031\n\021after_column_na" + + "me\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005A" + + "FTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github.co" + + "m/GreptimeTeam/greptime-proto/go/greptim" + + "e/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -26513,7 +28273,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", "ChangeColumnTypes", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ChangeColumnTypes", "ChangeTableOptions", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -26580,32 +28340,44 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnType_descriptor, new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); - internal_static_greptime_v1_DropColumn_descriptor = + internal_static_greptime_v1_ChangeTableOptions_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ChangeTableOptions_descriptor, + new java.lang.String[] { "ChangeTableOptions", }); + internal_static_greptime_v1_ChangeTableOption_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ChangeTableOption_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_greptime_v1_DropColumn_descriptor = + getDescriptor().getMessageTypes().get(19); 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(18); + getDescriptor().getMessageTypes().get(20); 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_FlowId_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_greptime_v1_FlowId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_FlowId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); 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", "Options", }); internal_static_greptime_v1_AddColumnLocation_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); 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 755a4fe1..52a2b24d 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16433,6 +16433,21 @@ public interface AlterRequestOrBuilder extends */ io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); + /** + * .greptime.v1.ChangeTableOptions change_table_options = 6; + * @return Whether the changeTableOptions field is set. + */ + boolean hasChangeTableOptions(); + /** + * .greptime.v1.ChangeTableOptions change_table_options = 6; + * @return The changeTableOptions. + */ + io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions(); + /** + * .greptime.v1.ChangeTableOptions change_table_options = 6; + */ + io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder(); + /** *
      * The version of the schema before applying the alteration.
@@ -16542,6 +16557,20 @@ private AlterRequest(
               kindCase_ = 5;
               break;
             }
+            case 50: {
+              io.greptime.v1.Ddl.ChangeTableOptions.Builder subBuilder = null;
+              if (kindCase_ == 6) {
+                subBuilder = ((io.greptime.v1.Ddl.ChangeTableOptions) kind_).toBuilder();
+              }
+              kind_ =
+                  input.readMessage(io.greptime.v1.Ddl.ChangeTableOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions) kind_);
+                kind_ = subBuilder.buildPartial();
+              }
+              kindCase_ = 6;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -16584,6 +16613,7 @@ public enum KindCase
       ADD_COLUMNS(2),
       DROP_COLUMNS(3),
       CHANGE_COLUMN_TYPES(5),
+      CHANGE_TABLE_OPTIONS(6),
       KIND_NOT_SET(0);
       private final int value;
       private KindCase(int value) {
@@ -16604,6 +16634,7 @@ public static KindCase forNumber(int value) {
           case 2: return ADD_COLUMNS;
           case 3: return DROP_COLUMNS;
           case 5: return CHANGE_COLUMN_TYPES;
+          case 6: return CHANGE_TABLE_OPTIONS;
           case 0: return KIND_NOT_SET;
           default: return null;
         }
@@ -16723,6 +16754,37 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
       return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
     }
 
+    public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 6;
+    /**
+     * .greptime.v1.ChangeTableOptions change_table_options = 6;
+     * @return Whether the changeTableOptions field is set.
+     */
+    @java.lang.Override
+    public boolean hasChangeTableOptions() {
+      return kindCase_ == 6;
+    }
+    /**
+     * .greptime.v1.ChangeTableOptions change_table_options = 6;
+     * @return The changeTableOptions.
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
+      if (kindCase_ == 6) {
+         return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+      }
+      return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+    }
+    /**
+     * .greptime.v1.ChangeTableOptions change_table_options = 6;
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
+      if (kindCase_ == 6) {
+         return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+      }
+      return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+    }
+
     public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
     private long schemaVersion_;
     /**
@@ -16767,6 +16829,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (kindCase_ == 5) {
         output.writeMessage(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
       }
+      if (kindCase_ == 6) {
+        output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -16796,6 +16861,10 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
       }
+      if (kindCase_ == 6) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -16829,6 +16898,10 @@ public boolean equals(final java.lang.Object obj) {
           if (!getChangeColumnTypes()
               .equals(other.getChangeColumnTypes())) return false;
           break;
+        case 6:
+          if (!getChangeTableOptions()
+              .equals(other.getChangeTableOptions())) return false;
+          break;
         case 0:
         default:
       }
@@ -16862,6 +16935,10 @@ public int hashCode() {
           hash = (37 * hash) + CHANGE_COLUMN_TYPES_FIELD_NUMBER;
           hash = (53 * hash) + getChangeColumnTypes().hashCode();
           break;
+        case 6:
+          hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER;
+          hash = (53 * hash) + getChangeTableOptions().hashCode();
+          break;
         case 0:
         default:
       }
@@ -17052,6 +17129,13 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() {
             result.kind_ = changeColumnTypesBuilder_.build();
           }
         }
+        if (kindCase_ == 6) {
+          if (changeTableOptionsBuilder_ == null) {
+            result.kind_ = kind_;
+          } else {
+            result.kind_ = changeTableOptionsBuilder_.build();
+          }
+        }
         result.schemaVersion_ = schemaVersion_;
         result.kindCase_ = kindCase_;
         onBuilt();
@@ -17121,6 +17205,10 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) {
             mergeChangeColumnTypes(other.getChangeColumnTypes());
             break;
           }
+          case CHANGE_TABLE_OPTIONS: {
+            mergeChangeTableOptions(other.getChangeTableOptions());
+            break;
+          }
           case KIND_NOT_SET: {
             break;
           }
@@ -17626,6 +17714,148 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
         return changeColumnTypesBuilder_;
       }
 
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> changeTableOptionsBuilder_;
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * @return Whether the changeTableOptions field is set.
+       */
+      @java.lang.Override
+      public boolean hasChangeTableOptions() {
+        return kindCase_ == 6;
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * @return The changeTableOptions.
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
+        if (changeTableOptionsBuilder_ == null) {
+          if (kindCase_ == 6) {
+            return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+          }
+          return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+        } else {
+          if (kindCase_ == 6) {
+            return changeTableOptionsBuilder_.getMessage();
+          }
+          return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       */
+      public Builder setChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
+        if (changeTableOptionsBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          kind_ = value;
+          onChanged();
+        } else {
+          changeTableOptionsBuilder_.setMessage(value);
+        }
+        kindCase_ = 6;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       */
+      public Builder setChangeTableOptions(
+          io.greptime.v1.Ddl.ChangeTableOptions.Builder builderForValue) {
+        if (changeTableOptionsBuilder_ == null) {
+          kind_ = builderForValue.build();
+          onChanged();
+        } else {
+          changeTableOptionsBuilder_.setMessage(builderForValue.build());
+        }
+        kindCase_ = 6;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       */
+      public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
+        if (changeTableOptionsBuilder_ == null) {
+          if (kindCase_ == 6 &&
+              kind_ != io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.ChangeTableOptions.newBuilder((io.greptime.v1.Ddl.ChangeTableOptions) kind_)
+                .mergeFrom(value).buildPartial();
+          } else {
+            kind_ = value;
+          }
+          onChanged();
+        } else {
+          if (kindCase_ == 6) {
+            changeTableOptionsBuilder_.mergeFrom(value);
+          } else {
+            changeTableOptionsBuilder_.setMessage(value);
+          }
+        }
+        kindCase_ = 6;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       */
+      public Builder clearChangeTableOptions() {
+        if (changeTableOptionsBuilder_ == null) {
+          if (kindCase_ == 6) {
+            kindCase_ = 0;
+            kind_ = null;
+            onChanged();
+          }
+        } else {
+          if (kindCase_ == 6) {
+            kindCase_ = 0;
+            kind_ = null;
+          }
+          changeTableOptionsBuilder_.clear();
+        }
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       */
+      public io.greptime.v1.Ddl.ChangeTableOptions.Builder getChangeTableOptionsBuilder() {
+        return getChangeTableOptionsFieldBuilder().getBuilder();
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
+        if ((kindCase_ == 6) && (changeTableOptionsBuilder_ != null)) {
+          return changeTableOptionsBuilder_.getMessageOrBuilder();
+        } else {
+          if (kindCase_ == 6) {
+            return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+          }
+          return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       */
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> 
+          getChangeTableOptionsFieldBuilder() {
+        if (changeTableOptionsBuilder_ == null) {
+          if (!(kindCase_ == 6)) {
+            kind_ = io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+          }
+          changeTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>(
+                  (io.greptime.v1.Ddl.ChangeTableOptions) kind_,
+                  getParentForChildren(),
+                  isClean());
+          kind_ = null;
+        }
+        kindCase_ = 6;
+        onChanged();;
+        return changeTableOptionsBuilder_;
+      }
+
       private long schemaVersion_ ;
       /**
        * 
@@ -24564,34 +24794,36 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
       ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
       "\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" +
       "(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ." +
-      "greptime.v1.region.AlterRequest\"\360\001\n\014Alte" +
+      "greptime.v1.region.AlterRequest\"\261\002\n\014Alte" +
       "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" +
       "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" +
       "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" +
       "egion.DropColumnsH\000\022=\n\023change_column_typ" +
       "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" +
-      "H\000\022\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAd" +
-      "dColumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime" +
-      ".v1.region.AddColumn\"C\n\013DropColumns\0224\n\014d" +
-      "rop_columns\030\001 \003(\0132\036.greptime.v1.region.D" +
-      "ropColumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001" +
-      "(\0132#.greptime.v1.region.RegionColumnDef\022" +
-      "0\n\010location\030\003 \001(\0132\036.greptime.v1.AddColum" +
-      "nLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n" +
-      "\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regu" +
-      "lar\"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 " +
-      "\001(\003\"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(" +
-      "\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region." +
-      "RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept" +
-      "ime.v1.region.StrictWindowH\000B\t\n\007options\"" +
-      "$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n" +
-      "\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g" +
-      "reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2" +
-      "Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region" +
-      ".RegionRequest\032\".greptime.v1.region.Regi" +
-      "onResponseB]\n\025io.greptime.v1.regionB\006Ser" +
-      "verZ